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
Profile picture
ProgramCrafter
Moderator
0 Questions, 7 Answers
  Active since 23 February 2023
  Last activity one year ago
t.me/ratelance

Reputation

200 + 3 this July 1 2

Badges 1

Enthusiast
1 How to implement a VRF like ChainLink?

I have created elliptic curve VRF for TON: https://github.com/ProgramCrafter/ecvrf-coordinator-contract.

Its coordinator contract in testnet is kQAkRQPZL7siQjoc26FFXRGgb/r/ZzmdP4P+anwZfcwvkWkh, accepting messages from users according to the following TL-B:

op::subscribe_random#AB4C4859 consumer:MsgAddressInt = InMsgBody;
op::provide_random#069CECA8 rnd:u256 = OutMsgBody;

Script calculating the random values and sending them to blockchain is private but it's not ...

5 months ago
2 How to retrieve TON assets from my own Telegram Wallet

You can't return these jettons unless @wallet team manually does that.

Actually, that's a problem of custodial services and reason why you can't call yourself "the owner" of the wallet there.

6 months ago
1 How can I get the current gas used as a variable for some operations in FunC ?

In testnet environment, there is opcode GASCONSUMED, doing exactly that. The update isn't shipped in mainnet yet.

9 months ago
0 Import wallet by private key

It should be possible to cut off the last half of key (64 HEX characters), which is actually public key, and use the rest in other wallets.

9 months ago
2 Efficiently storing Up to 4 million bits in a TON smart contract

Strictly speaking, finding the most efficient way to structure storage is NP-class task meaning that it will require too much resources given the amount of bits.
Dictionaries are binary trees (up to 2 branches in cell), though reading and updating them is actually cheaper than quadro-trees. So I'd recommend using dicts.

10 months ago
1 Linux Command-Line CLI Wallet

tonlib-cli from the TON monorepo should work well.

one year ago
2 Do wallets without transactions lose their value over time?

Yes, the owner will eventually lose all the money.
However, data stored by wallet (let's assume v3r2) is less than 1 KiB, so to lose even 1 TON you'll have to wait thousands of years, over which time the network will clearly have some other breaking changes.

one year ago