I'm developing a smart contract for TON blockchain in FunC and I'm trying to find a bug in my code. I'm trying to debug the issue and will appreciate somethi...
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...
I have function like this: clike () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress...
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()...
In TON blockchain, when implementing my dapp smart contract in FunC, my contract can accept both internal messages handled by recv_internal() and external me...
2 years ago
Hello, I'm considering to move my projects from another blockchain to TON but I still don't understand how to handle the asynchronous part. One of my project...
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...
one year ago
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
Is my understanding correct that smart contracts are written in FunC, then compiled into Fift, and deployed on the blockchain, and they can later be interact...
one year ago
Many programming languages have a ternary operator, such as booleanExpression ? expression1 : expression2 in Java (if booleanExpression equals true, than exp...
Is there any call to get the contract address inside it? I cant find anything like that in tvm https://t.me/tondev_eng/363
one year ago
Hello everyone, please explain: ```` () send_message_back(addr, ans_tag, query_id, body, grams, mode) impure inline_ref { ;; int_msg_info$0 ihr_disabled:Bool...
one year ago
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...
In developing for blockchain it's important to save space, so it seems better to store the dates using 32-bit timestamps instead of 64-bit. But blockchain is...
one year ago
In Blueprint, we will need to write the Wrapper functions ourselves. More importantly, when we code the op code in our FunC code, we need to decode the strin...
In order to compile smart contracts in the FunC language I need the executables named func and fift. They are used to compile my FunC source code to TVM byte...
2 years ago
There are extensions for code editors like Visual Studio Code providing syntax highlighting for FunC. Is there anything like that for the vim editor? --- > T...
Is the function recv_internal required to have certain arguments or is it completely up to what you want the message sender to send you? I've noticed some Fu...
In TON software development, everything is a cell. Every cell can reference up to 4 other cells, creating a parent-child relationship. What if I have a speci...
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...
one year ago
I've previously seen tilde symbol used for bitwise NOT in other programming languages, so placing ~ before some X means "not X". But it seems in FunC it work...
one year ago
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
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
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 ...
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...
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 ...
Case 1: () recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body) impure { slice cs = in_msg_full.begin_parse(); int flags = cs~lo...
one year ago
Suppose there is a web3 blog platform where people follow specific writers. Each follower has its own smart contract. Usually data such as "X follows Y" woul...
one year ago
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
On TON, everything is a cell, and a slice is a cell opened up for reading. But can a slice contain another slice inside? --- > This question was imported fro...
one year ago