Socket
Socket
Sign inDemoInstall

@invariant-labs/a0-sdk

Package Overview
Dependencies
6
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @invariant-labs/a0-sdk

⚡Invariant protocol⚡ | DOCS 📚 | MATH SPEC 📄 | <a href="https://discord.gg/VzS


Version published
Weekly downloads
473
increased by28.18%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

⚡Invariant protocol⚡

| DOCS 📚 | MATH SPEC 📄 | DISCORD 🌐 |

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
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 git@github.com: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
./test.sh

Keywords

FAQs

Last updated on 04 Jun 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc