New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@invariant-labs/cspr-sdk

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invariant-labs/cspr-sdk

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

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

⚡Invariant protocol⚡

| DOCS 📚 | MATH SPEC 📄 | DISCORD 🌐 |

Invariant protocol is an AMM built on Casper Network, 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 Erc20 standard. The protocol is structured around a single contract architecture.

Usage

It's recommend to install:

To install wasm-strip using apt, run the following command:

sudo apt install wabt

Additionally, add the wasm32-unknown-unknown target by running:

rustup target add wasm32-unknown-unknown

Build

$ cargo odra build

To build a wasm file, you need to pass the -b parameter. The result files will be placed in ${project-root}/wasm directory.

$ cargo odra build -b casper

Test

To run tests, choose between the MockVM and Casper backend using the following commands:

Run tests on MockVM
cargo odra test
Run tests on Casper backend

To test actual wasm files against a backend, you need to specify the backend passing -b argument to cargo-odra.

cargo odra test -b casper

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

Package last updated on 19 Mar 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc