Skip to content

Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit https://tokenlon.im/

License

Notifications You must be signed in to change notification settings

consenlabs/tokenlon-contracts

Repository files navigation

Tokenlon

Node.js CI Built-with openzeppelin

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

Tokenlon 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

About

Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit https://tokenlon.im/

Resources

License

Stars

Watchers

Forks

Packages

No packages published