@elliottech/lighter-v2-core
v1.0.1
Published
Lighter V2 Core Smart Contracts
Downloads
6
Readme
Lighter Exchange V2
Lighter is fully decentralized order book exchange protocol designed for permission-less, zero slippage and MEV-protected trades.
Contract Structure
contracts
├── Factory.sol
├── OrderBook.sol
├── interfaces
│ ├── IFactory.sol
│ ├── ILighterV2FlashCallback.sol
│ ├── ILighterV2TransferCallback.sol
│ ├── IOrderBook.sol
│ └── external
│ └── IERC20Minimal.sol
└── libraries
├── Errors.sol
├── LinkedList.sol
└── OrderBookDeployerLib.sol
Installing the dependencies
npm install
Compiling the contracts
npm compile
Running the tests
npm test
License
- The primary license for Lighter V2 is the Business Source License 1.1 (
BUSL-1.1
) - All external interface files in
contracts/interfaces/
are licensed underSPDX-License-Identifier: MIT