Skip to content

EthanOK/tron-permit2

Repository files navigation

Permit2 TronBox Project

This is a Permit2 TronBox project.

Configuration

Your configuration file is called tronbox-config.js and is located at the root of your project directory.

Compiling

To compile your contracts, use the following command:

tronbox compile

Migration

The project comes pre-configured with four separate networks:

Mainnet

To deploy your contracts to Mainnet, you can run the following:

tronbox migrate --network mainnet

Shasta Testnet

Obtain test coin at https://shasta.tronex.io/

To deploy your contracts to Shasta Testnet, you can run the following:

tronbox migrate --network shasta

Nile Testnet

Obtain test coin at https://nileex.io/join/getJoinPage

To deploy your contracts to Nile Testnet, you can run the following:

tronbox migrate --network nile

Localnet

The 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

Start Docker Service

docker-compose up -d

Stop Docker Service

docker-compose down

To deploy your contracts to Localnet, you can run the following:

tronbox migrate

Testing

To test your contracts, you can run the following:

tronbox test --network <mainnet|shasta|nile|development>

Work with EVM

TronBox supports deploying contracts on EVM-compatible blockchains.

For more information, please refer to: https://tronbox.io/docs/guides/work-with-evm

Additional Resources

For further learning, visit the official TronBox site at https://tronbox.io

About

TronBox-based Permit2 contract enabling token approvals on Tron network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published