Awesome
Tokenlon
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.
Architecture
Deployed contracts
Under construction
Prerequisite
- 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.
Example
MAINNET_NODE_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/#####__YOUR_SECRET__#####
Installation
$ git submodule update --init --recursive
$ yarn run setup
Compile contracts
# Compile contracts
$ yarn run compile
Run unit test
# Run unit tests with fresh states
$ yarn run test-foundry-local
# Run integration tests with forked states
$ yarn run test-foundry-fork