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...
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
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...
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
one year ago
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...
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
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...
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, ...
one year ago
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...
2 years ago
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...
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." ...
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
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 ...
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
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...
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()...
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...
2 years ago
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...
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...
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
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 ...
one year ago
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...
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
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...
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...
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
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
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
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
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...