Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit tokenlon.im
Notice: This repository may contain changes that are under development. Make sure the correct commit is referenced when reviewing specific deployed contract.
Under construction
- node (>=16.0.0 <18)
- yarn (^1.22.10)
- foundry
- Environment Variables (Used for foundry fork tests)
MAINNET_NODE_RPC_URL
: The RPC URL for accessing forked states.
MAINNET_NODE_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/#####__YOUR_SECRET__#####
$ git submodule update --init --recursive
$ yarn run setup
# Compile contracts
$ yarn run compile
# Run unit tests with fresh states
$ yarn run test-foundry-local
# Run integration tests with forked states
$ yarn run test-foundry-fork