Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/consenlabs/tokenlon-contracts
Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit https://tokenlon.im/
https://github.com/consenlabs/tokenlon-contracts
Last synced: 4 days ago
JSON representation
Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit https://tokenlon.im/
- Host: GitHub
- URL: https://github.com/consenlabs/tokenlon-contracts
- Owner: consenlabs
- License: mit
- Created: 2022-04-26T14:54:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T09:48:46.000Z (13 days ago)
- Last Synced: 2025-01-15T20:16:50.050Z (11 days ago)
- Language: Solidity
- Homepage:
- Size: 11.6 MB
- Stars: 89
- Watchers: 11
- Forks: 24
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Audit: audits/PeckShield-Audit-Report-Tokenlon-LimitOrder-v1.0.pdf
Awesome Lists containing this project
- awesome-foundry - Tokenlon - Tokenlon is a decentralized exchange and payment settlement protocol. (Projects Using Foundry)
README
# Tokenlon
[![Node.js CI](https://github.com/consenlabs/tokenlon-contracts/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/consenlabs/tokenlon-contracts/actions/workflows/node.js.yml)
[![Built-with openzeppelin](https://img.shields.io/badge/built%20with-OpenZeppelin-3677FF)](https://docs.openzeppelin.com/)Tokenlon is a decentralized exchange and payment settlement protocol based on blockchain technology. Visit [tokenlon.im](https://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](./Tokenlon-Architecture.png)
## Deployed contracts
Under construction
## Prerequisite
- node (>=16.0.0 <18)
- yarn (^1.22.10)
- [foundry](https://github.com/foundry-rs/foundry)
- Environment Variables (Used for foundry fork tests)
- `MAINNET_NODE_RPC_URL`: The RPC URL for accessing forked states.### Example
```bash
MAINNET_NODE_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/#####__YOUR_SECRET__#####
```## Installation
```bash
$ git submodule update --init --recursive
$ yarn run setup
```## Compile contracts
```bash
# Compile contracts
$ yarn run compile
```## Run unit test
```bash
# Run unit tests with fresh states
$ yarn run test-foundry-local# Run integration tests with forked states
$ yarn run test-foundry-fork
```