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

Questions with tag func

Questions with tag func

Tags
Sorting
Results
per page
Filter

   
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Programming languages often use 0 for "false" and -1 for "true". It works that way in FunC, too. But what about all the other numbers? Do they have a boolean...
one year ago
0 Votes
2 Answers
19K Views
0 Votes 2 Answers 19K Views
How do you hardcode an address in a smart contract? An example in both FunC would be helpful. https://t.me/tondev_eng/4099
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
In the Ston.fi core contract GitHub repository (https://github.com/ston-fi/dex-core), there is a line of FunC code as shown below: force_chain(WORKCHAIN, sen...
Howard Peng
10 × 1 Administrator
one year ago
0 Votes
1 Answers
4K Views
0 Votes 1 Answers 4K Views
There are different approaches to division: * using floating-point numbers (so 23 / 4 = 5.75) * mathematical rounding (23 / 4 = 6 since it's the closest inte...
one year ago
1 Votes
2 Answers
19K Views
1 Votes 2 Answers 19K Views
I've heard from the TON Spanish DevChat that there exists "Ten Lessons for learning FunC". Are those video lessons? --- > This question was imported from Tel...
2 years ago
2 Votes
1 Answers
24K Views
2 Votes 1 Answers 24K Views
There's an existing contract that was deployed by somebody else, for example a token, that has getter methods like get_balance(address) or get_total_supply()...
Tal Kol
359 × 3 Administrator
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Is there any more materials on writing those tests? Since I am just joined the TON ecosytem. As far as I understood, in order to test internal command, tests...
1 Votes
1 Answers
8K Views
1 Votes 1 Answers 8K Views
In TON, messages are used to send data and instructions to smart contracts. Sometimes, these messages can contain large amounts of data such as media files, ...
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Is there a built-in way to exponentiate numbers in FunC? If there isn't and it is up to developer to write a function, probably the community has already wri...
2 years ago
0 Votes
1 Answers
5K Views
0 Votes 1 Answers 5K Views
How do you define multiple cells in the storage of a contract? clike const data = beginCell() .storeUint(someVar, 64) .storeMaybeSlice() .endCell(); In other...
one year ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Do I get it right that FunC treats int and (int) (a tuple with only one integer in it) as two different types even though they both are really integers? I ha...
2 years ago
0 Votes
1 Answers
16K Views
0 Votes 1 Answers 16K Views
If there are two dicts and one of them is bigger than other, would the operations like insert require more gas for the bigger one, or would the gas fees be t...
one year ago
0 Votes
1 Answers
7K Views
0 Votes 1 Answers 7K Views
Is there a size limit for bocs? I've heard values such as 64kb, but I don't know where this limit is defined. --- > This question was imported from Telegram ...
0 Votes
1 Answers
14K Views
0 Votes 1 Answers 14K Views
Is there a built-in square root function in the language? And if not, maybe there is a popular library with the optimal implementation? --- > This question w...
2 years ago
0 Votes
0 Answers
13K Views
0 Votes 0 Answers 13K Views
here is my FunC code: C-like forall X -> int is_null (X x) asm "ISNULL"; forall X -> (tuple, ()) push_back (tuple tail, X head) asm "CONS"; forall X -> (tupl...
one year ago
0 Votes
1 Answers
8K Views
0 Votes 1 Answers 8K Views
I have a simple transfer from a TON wallet to a contract. It has a comment: "2". Is there a way to parse this comment within the recv_internal function? Here...
0 Votes
1 Answers
12K Views
0 Votes 1 Answers 12K Views
What's the best way to debug unexpected test failures? Does FunC have a print function? My test failed on first check: throw_if(100, exit_code != 0); but how...
0 Votes
0 Answers
8K Views
0 Votes 0 Answers 8K Views
For example, if you examine the code in detail here: https://github.com/ton-blockchain/payment-channels/blob/e605580c3fb1feb22d80be9a0cddfcd05671c347/func/as...
2 years ago
0 Votes
1 Answers
17K Views
0 Votes 1 Answers 17K Views
It looks like Message X is almost the same as MessageAny. What is the difference? --- > This question was imported from Telegram Chat: https://t.me/tondev_en...
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Does anyone know or have an example how can I store a static address in FunC? I'm thinking about using the asm command, but I'm not sure what the syntax is f...
0 Votes
1 Answers
7K Views
0 Votes 1 Answers 7K Views
It is well known that code written in FunC gets compiled to the Fift language (which is more low-level). But is there a way to go back and turn Fift code fil...
2 years ago
0 Votes
0 Answers
13K Views
0 Votes 0 Answers 13K Views
Is there a conventional way to concatenate two strings using FunC? --- > This question was imported from Telegram Chat: https://t.me/tondev/130472
one year ago
0 Votes
1 Answers
14K Views
0 Votes 1 Answers 14K Views
FunC standard library includes Lisp-style lists. TON documentation describes them and their basic functionality like adding an element to the beginning of a ...
one year ago
0 Votes
1 Answers
17K Views
0 Votes 1 Answers 17K Views
How do you access individual elements of a tuple in FunC using a while loop? As in, say there are 5 values in a tuple. How do I access the "nth" value in my ...
2 years ago
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Some programming languages let assign a variable the result of a logical expression. In FunC that could look like this: int enough? = (s.slice_bits() >= flag...
one year ago
0 Votes
0 Answers
6K Views
0 Votes 0 Answers 6K Views
Suppose we check for two conditions at the same time: if( (a == b) & (b == c) ). If a is not equal to b, that makes the first condition false. And that means...
one year ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
What would be your suggestions on some basic pet projects for studying main concepts of ton? These would be smart contracts to write immidiately after doing ...
2 years ago
0 Votes
1 Answers
8K Views
0 Votes 1 Answers 8K Views
Hi, I transferred my TG NFT username to another wallet, but the transfer has not happened yet. The transaction generated exit code 206. Is this normal? Can s...
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Suppose I have a slice that contains a string and I want to read it char by char. How do I do it? --- > This question was imported from Telegram Chat: https:...
one year ago
Show more results questions