Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 2

In FunC, is there an equivalent to Solidity's mapping?
In FunC, is there an equivalent to Solidity's mapping?
I have a smart contract that accepts messages from users. I would like to keep a history of requests. How can I save a list of pairs (address, text of the message)? Do I understand correctly that I cannot use tuple for such a case because it has a limit of 256 entries? Are there any best practices for storing such a dynamic list? Similar to a mapping in Solidity. --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/9905
I have a smart contract that accepts messages from users. I would like to keep a history of requests. How can I save a list of pairs (address, text of the message)? Do I understand correctly that I cannot use tuple for such a case because it has a limit of 256 entries? Are there any best practices for storing such a dynamic list? Similar to a mapping in Solidity.
#smart-contract #solidity #func
#smart-contract #solidity #func
one year ago
Original
In FunC, is there an equivalent to Solidity's mapping?

I have a smart contract that accepts messages from users. I would like to keep a history of requests. How can I save a list of pairs (address, text of the message)? Do I understand correctly that I cannot use tuple for such a case because it has a limit of 256 entries? Are there any best practices for storing such a dynamic list? Similar to a mapping in Solidity.
#smart-contract #solidity #func