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")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, 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
Answered
Follow the Docs for `send_raw_message`.

Follow the docs there:https://ton.org/docs/develop/func/overview

back by the code:

() send_money(slice address, int amount) impure inline {
    var msg = begin_cell()
        .store_uint(0x10, 6) ;; nobounce
        .store_slice(address)
        .store_grams(amount)
        .end_cell();

    send_raw_message(msg, 64);
}
  • What is the meaning for 64 here for send_raw_message?
  • And what is more expand and the usage for .store_uint(0x10, 6)? Is there more than just nobounce? Then what is the number for it.
  
  
Posted 4 months ago
Votes Newest

Answers


  1. 64 = carry unused gas, basically forwards gas left from the message to the next transaction.
  2. it's easier to understand this via binary representation. anyway, the only thing you must know: use 0x10 for non-bouncable messages, 0x18 for bouncanles ones.

check here for more example on how to craft messages and available modes
https://github.com/TonoxDeFi/open-contracts/blob/main/contracts/messages/messages.func

3
3
Posted 4 months ago
2K Views
1 Answer
4 months ago
4 months ago
Tags