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
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 one year ago
Votes Newest

Answers 2


  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 one year ago
  
  

nice

Howard   4 months ago Report

  • "store_uint" is presumably a function or method that takes two parameters.
  • The first parameter, "0x18", is a hexadecimal representation of a number. In decimal form, "0x18" equals 24.
  • The second parameter, "6", could be the size or length of the data that's being stored, often referring to the number of bits. In this case, the integer 24 is being stored in a 6-bit format.

In general, serialization is the process of converting data structures or object states into a format that can be stored, transmitted, and reconstructed later. This is often used in network communication, when data needs to be sent over a network, or when complex data structures need to be saved for later use.

  
  
Posted 9 months ago
Edited 9 months ago
17K Views
2 Answers
one year ago
9 months ago
Tags