Provided by disintar.io team
This quide contains simple steps how-to deploy example smart contract to TON.
git clone --recursive https://github.com/newton-blockchain/ton
cd ton
-
Compile
fift
,func
,lite-client
from ton, official docs can be founded here- For Arch Linux we have AUR package of ton
- For Apple computers on M1 we have a guide "How to compile them from official repo" M1 Guide
-
Add binary files to
PATH
env variable or add them to/usr/bin
pip install toncli
needed Python 3.8
or higher
toncli start wallet
cd wallet
"wallet" is a project and folder name.
toncli deploy -n testnet
It this case contract is deploying to testnet, you can switch it to mainnet if you want
To call a GET method of your contract you can use this command:
toncli get hello_world
in the directory of your contract, where hello world is the name of a GET method
- External data
- To use this function you need to run
toncli start external_data
- It loads data of another smart-contract
- For detailed usage info you can read Example
- To use this function you need to run
- External code
- To use this function you need to run
toncli start external_code
- Using this function you can load code and data of another contract
- For detailed usage info you can read Example
- To use this function you need to run