@invariant-labs/a0-sdk
v0.2.32
Published
<div align="center"> <h1>⚡Invariant protocol⚡</h1> <p> | <a href="https://docs.invariant.app/docs/aleph_zero">DOCS 📚</a> | <a href="https://invariant.app/math-spec-a0.pdf">MATH SPEC 📄</a> | <a href="https://discord.gg/VzS
Downloads
249
Readme
Invariant protocol is an AMM built on Aleph Zero, leveraging high capital efficiency and the ability to list markets in a permissionless manner. At the core of the DEX is the Concentrated Liquidity mechanism, designed to handle tokens compatible with the PSP22 standard. The protocol is structured around a single contract architecture.
🔨 Getting Started
Prerequisites
- Rust & Cargo (rustup)
- cargo-contract (cargo-contract)
- substrate-contracts-node (substrate-contracts-node)
Rust & Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo-contract
rustup component add rust-src && cargo install --force --locked cargo-contract
substrate-contracts-node
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git
Build protocol
- Clone repository
git clone [email protected]:invariant-labs/protocol-a0.git
- Build contract
cargo contract build
- Run tests
cargo test --features e2e-tests
Typescript SDK
Utilize the Invariant SDK from the npm registry by including it as a dependency. Alternatively, for a customized approach, build the SDK on your own using the commands provided below:
To begin, navigate to the directory dedicated to the SDK
- Build SDK
./build.sh
- Run e2e tests
./tests.sh