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.
- node (>=14.0.0 <16)
- 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
$ yarn run compile # compile contracts
$ yarn run test-hardhat # run PMM unit test (hardhat environment)
$ yarn run test-foundry-local # run unit tests with fresh states
$ yarn run test-foundry-fork # run unit tests with forked states