This is a Permit2 TronBox project.
Your configuration file is called tronbox-config.js and is located at the root of your project directory.
To compile your contracts, use the following command:
tronbox compileThe project comes pre-configured with four separate networks:
- Mainnet (https://api.trongrid.io)
- Shasta Testnet (https://api.shasta.trongrid.io)
- Nile Testnet (https://nile.trongrid.io).
- Localnet (http://127.0.0.1:9090)
To deploy your contracts to Mainnet, you can run the following:
tronbox migrate --network mainnetObtain test coin at https://shasta.tronex.io/
To deploy your contracts to Shasta Testnet, you can run the following:
tronbox migrate --network shastaObtain test coin at https://nileex.io/join/getJoinPage
To deploy your contracts to Nile Testnet, you can run the following:
tronbox migrate --network nileThe TronBox Runtime Environment provides a complete development framework for Tron, including a private network for testing.
Get tronbox/tre docker image at https://hub.docker.com/r/tronbox/tre
docker-compose up -d
docker-compose down
To deploy your contracts to Localnet, you can run the following:
tronbox migrateTo test your contracts, you can run the following:
tronbox test --network <mainnet|shasta|nile|development>TronBox supports deploying contracts on EVM-compatible blockchains.
For more information, please refer to: https://tronbox.io/docs/guides/work-with-evm
For further learning, visit the official TronBox site at https://tronbox.io