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
How do store cells within cells?

How do you define multiple cells in the storage of a contract?

const data = beginCell()
	.storeUint(someVar, 64)
	.storeMaybeSlice()
	.endCell();

In other words, how do I store a second cell in data? How much can I store?


This question was imported from Telegram Chat: https://t.me/tondev_eng/27876

  
  
Posted 10 months ago
Votes Newest

Answers


You can use store_ref(b, c): https://docs.ton.org/develop/func/stdlib/#store_ref
It stores a reference to cell c into builder b. You should be able to use references to store any amount of cells, but for a single cell there can only be 4 refs. This still allows for a tree of cells to read from.

https://answers.ton.org/question/1539108146436378624/does-store-slice-act-like-store-ref

  
  
Posted 10 months ago
Jeremy
384 × 5 Administrator