Hi there. In my app I allow deposit and withdraw some Jetton. I would like to implement withdrawal in such way that user compensate transaction fee (somethin...
one year ago
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...
I have a problem when deploying the contract on the console when writing the command: toncli deploy -n testnet
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 ...
I've read in the TON whitepaper that smart contacts in TON can change their code. But if I simply change the code myself and deploy the contract, it gets a n...
one year ago
I know there is an unofficial Python library "TON Fragment". Are there any other libraries or an official API to interact with fragment.com programmatically?...
Sometimes it would be convenient if the gas fee for the transactions would be paid by some other account. In the EVM ecosystem there's EIP-2711 for that: htt...
one year ago
Using the TON documentation, one can stumble upon tables that have a column with some "x - y" notation, like this one: What exactly does "b - x" mean here? -...
one year ago
What types of smart contracts are there in the TON blockchain? For example: raw.fullAccountState.
2 years ago
i have tonk tonkens. i have them in trustwallet. but i cant import this wallet to another ton wallet because it has 12 words and the others have 24. moreover...
one year ago
What is the minimum stake for a validator? On GitHub (https://github.com/ton-blockchain/mytonctrl/blob/master/docs/en/nominator-pool.md) I found that the min...
Sometimes I encounter "out of gas" error, and it's hard to predict. Are there any best practices on how to deal with that and make sure in advance the code w...
I want to develop different things on TON, like: * Smart contracts * Telegram bots * Dapps What programming languages can be used for building these things? ...
2 years ago
I would like to develop a lottery smart contract on TON. This would likely require a source of randomness. How would I start? --- > This question was importe...
one year ago
It's possible to create voting systems on TON, such as ton.vote. But usually it's known how a specific account voted. Is it possible to create a voting syste...
Many TON tutorials and whitepapers mention Linux/macOS-specific things like /usr/lib/fift path, terminal commands and so on. Can I develop smart contract on ...
Hello! I have a question regarding crafting a transaction using Tonweb. I attached the SENDER seqno using wallet.methods.seqno().call(), and then sent the tr...
2 years ago
I'm getting the following error when compiling Fift. I'm using this command: ./ton-build/crypto/fift counter.fif I followed this tutorial, but when I run fun...
I see that there is a touch method in the wallet v4 contract: https://github.com/ton-blockchain/wallet-contract/blob/main/func/wallet-v4-code.fc#L90 What exa...
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
Fully on-chain services are hard to find. I've seen the opinion that business isn't interested in making them because it's much easier to put a part of the s...
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...
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...
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
I remember there was a function equal_slices in stdlib for comparing two slices, but now at compilation time I get an error saying such a function does not e...
I'd like to learn developing on TON by creating some small pet projects. What kinds of such projects would be the most helpful and give the most useful exper...
one year ago
Please tell me how to transfer tokens without privatekey, I found only such examples in the documentation. const transaction = { validUntil: Math.floor(Date....
one year ago
It's planned to separate the roles of Collator and Validator in TON blockchain. So in addition to current node types such as the Validator node there will be...