Hi. I try to deploy my contract in main net, but I get an error «Account ___ has low balance to deploy.»
This account has 1.5 TON balance. What amount of TON is enough for deploying?
Jul 18, 2022, 6:29 PM
Can anybody help with that?
Jul 18, 2022, 6:46 PM
1.5 TON is usually much more than you need to deploy. What tool are you using for deployment?
Jul 18, 2022, 7:33 PM
tondev
I call "tondev contract deploy test.abi.json -s mykeys"
I call "tondev contract deploy test.abi.json -s mykeys"
Jul 18, 2022, 7:35 PM
wrong blockchain :)
Jul 18, 2022, 7:36 PM
What's the right one?
Jul 18, 2022, 7:37 PM
tondev is everscale (ex free ton) tool, this chat is about ton blockchain
Jul 18, 2022, 7:39 PM
How to deploy in ton Blockchain?
Jul 18, 2022, 7:44 PM
There are 3 ways I’ve seen around:
1. Write a script in TypeScript to deploy, that’s my favorite way, example: https://github.com/ton-defi-org/tonstarter-contracts/tree/main/build
2. Use toncli command line tool: https://github.com/disintar/toncli
3. Write a Fift deployment script, but then you need to learn Fift 😅
1. Write a script in TypeScript to deploy, that’s my favorite way, example: https://github.com/ton-defi-org/tonstarter-contracts/tree/main/build
2. Use toncli command line tool: https://github.com/disintar/toncli
3. Write a Fift deployment script, but then you need to learn Fift 😅
Probably so, isn’t most of their dev done in Solidity-ish?
Jul 18, 2022, 8:08 PM
Yes, Solidity and other popular languages
But their ecosystem is doing well, probably we can use it , then audite the code.
Jul 18, 2022, 8:09 PM
> their ecosystem is doing well
go there :)
go there :)
Jul 18, 2022, 8:10 PM
In general, the EVM state of mind is very different from TON state of mind so we encourage learning the TON native way instead
Jul 18, 2022, 8:11 PM
Oke, what about EVM workchain in 2023?
Jul 18, 2022, 8:12 PM
It may exist but it won’t be scalable like native TON
There are inherent things preventing EVM from scaling
Jul 18, 2022, 8:12 PM
Why not? EVM chains like Avalanche are still fast
Jul 18, 2022, 8:13 PM
Not really, they’re not sharded because all contracts assume all data is found on the same machine
Jul 18, 2022, 8:13 PM
Avalanche is multichain :/
Jul 18, 2022, 8:14 PM
Read this: https://society.ton.org/six-unique-aspects-of-ton-blockchain-that-will-surprise-solidity-developers
TON is different from every other L1 out there, to achieve its sharding the contract developer must implement sharded contracts
TON is different from every other L1 out there, to achieve its sharding the contract developer must implement sharded contracts
Jul 18, 2022, 8:14 PM
Do you have some info about workchain communication? Will it work like Cosmos IBC and Polkadot XCMP?
Jul 18, 2022, 8:14 PM
With Everscale, we can do a security analysis and I bet that we can show a problem with their native ERC20. Is their ERC20 Solidity-ish implementation sharded on a new contract per balance? I bet they hold all balances in one contract like the Ethereum way. This means an attacker can write keys to the map continuously until some poor account is so deep in the tree that it can’t be updated anymore since gas for updates costs in proportion to the height of the cell tree
This could be a very nice answer as to why we don’t try to force EVM notions on TON
We should create a footstep for this 😂
Jul 18, 2022, 8:19 PM
?
Jul 18, 2022, 8:19 PM
> Its wrong
Done, its 20°000 TON.
Done, its 20°000 TON.
Jul 18, 2022, 8:19 PM
Thanks 🙏
Jul 18, 2022, 8:29 PM