Set of smart contracts, docs, tests and additional tools for the Bridge between the Ethereum and Free TON networks.
Clone settings.template.env
into the settings.env
and fill the data. Specify seeds for Ethereum and TON.
After configuration is specified, run docker-compose in a single command
set -a; source settings.env; set +a; docker-compose up -d
This section explains how to run and test contracts locally.
Following versions were used for development
npm --version
6.14.8
node --version
v10.22.1
Install all the dependencies both for FreeTON and Ethereum parts.
npm install
By default, the RPC will be available on the http://127.0.0.1:8545
ganache-cli
cd ethereum/
truffle migrate
Use the TON local-node for local environment.
docker run --rm -d --name local-node -p80:80 tonlabs/local-node
By default, there're all the necessary artifacts at the free-ton/build/
directory. To rebuild the contracts, use the one liner:
set -a; source settings.env; set +a; npm run compile-ton
set -a; source settings.env; set +a; npm run migrate-ton
set -a; source settings.env; set +a; npm run test-ton