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

   
5 Votes
2 Answers
23K Views
5 Votes 2 Answers 23K Views
There's a lot of setup for a project to implement a smart contract in FunC for TON blockchain (ton.org). Is there a good practice setup project that provides...
Tal Kol
359 × 3 Administrator
2 years ago
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
If there are two numbers, like 1100 and 0011, what is the easiest way to "concatenate" them (not adding, but merging into a single number containing all the ...
one year ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
how can I calculate the gas price for get/set operations to Hashmap? https://docs.ton.org/learn/tvm-instructions/instructions for these operations the gas pr...
one year ago
0 Votes
1 Answers
8K Views
0 Votes 1 Answers 8K Views
What is the byte size of a smart contract that can be deployed on TON? --------- > This question was imported from Telegram Chat: https://t.me/tondev_eng/26332
Howard Peng
10 × 1 Administrator
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...
0 Votes
1 Answers
12K Views
0 Votes 1 Answers 12K 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
16K Views
0 Votes 2 Answers 16K Views
I found a strange behavior in func bitwise operation. I don't understand why. slice slice0 = begin_cell().store_coins(123).end_cell().begin_parse(); int resu...
one year ago
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, ...
2 Votes
1 Answers
21K Views
2 Votes 1 Answers 21K Views
I am new to developing smart contracts on the TON blockchain and I am looking for assistance in creating a contract that can automatically distribute a jetto...
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
18K Views
0 Votes 1 Answers 18K Views
I am getting an error with TonWeb - "tonweb/src/boc/Cell.js:347 const prefix = serializedBoc.slice(0, 4); TypeError: serializedBoc.slice is not a function." ...
one year ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
In general-purpose languages there often is some form of try. Is there anything like that in FunC I could use to validate data in msg_body? > This question w...
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
We have a project written in Solidity. How much effort would it take to move such a project to TON? Does it mean a total rewrite from scratch in FunC, or is ...
2 years 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 ...
one year ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
I would like to put some utility functions into different files and call them from the main contract file. How can I do that? --- > This question was importe...
one year 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
22K Views
0 Votes 1 Answers 22K Views
I want to deploy a new smart contract that I've written. Where can I read how the gas cost of deploying the smart contract in TON is calculated? Is there a c...
0 Votes
1 Answers
7K Views
0 Votes 1 Answers 7K Views
Both FunC and Tact languages can be used for developing on TON. But from what I see, tutorials, questions and other resources are currently focused mostly on...
one year 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...
one year ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Is there any specific reason why single line comments in FunC start with ;; and not something more common like //? It feels very odd. --- > This question was...
one year ago
0 Votes
1 Answers
8K Views
0 Votes 1 Answers 8K Views
When "throwing" inside a function, is the transaction cancelled? For example, if I send 10 TON from a main account but in a smart contract there an error is ...
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
18K Views
0 Votes 1 Answers 18K Views
In general-purpose languages like Java it is possible to get server time by using things like System.currentTimeMills(). Is there a way to retrieve server ti...
2 years ago
0 Votes
1 Answers
18K Views
0 Votes 1 Answers 18K Views
Do I get it right that there is no implementation of a floating-point numbers type such as float in FunC? --- > This question was imported from Telegram Chat...
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
0 Answers
12K Views
0 Votes 0 Answers 12K Views
According to the documentation, we find the commit() FunC code described as follows: Commits the current state of registers c4 (“persistent data”) and c5 (“a...
one year 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
1 Answers
4K Views
0 Votes 1 Answers 4K 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
3K Views
0 Votes 1 Answers 3K 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
0 Votes
2 Answers
19K Views
0 Votes 2 Answers 19K Views
Do I get it right that if my smart contract needs to store a string longer than 1023 bits, I should split that thing in parts and make a chain of cells conta...
one year ago
Show more results questions