#defi #bitcoin #bitcoin-cash #cauldron #cpmm

riftenlabs-defi

Collection of utilities for working with DeFi contracts on Bitcoin Cash

3 releases

0.1.3 Oct 24, 2024
0.1.2 Jan 25, 2024
0.1.0 Jan 5, 2024

#4 in #bitcoin-cash

Download history 7/week @ 2024-07-29 13/week @ 2024-09-23 10/week @ 2024-09-30 2/week @ 2024-10-07 125/week @ 2024-10-21 17/week @ 2024-10-28

144 downloads per month
Used in riftenlabs-indexer

MIT license

140KB
347 lines

pipeline status Safety Dance

Rust RiftenLabs DeFi Library

Collection of utilities for working with DeFi contracts on Bitcoin Cash.

Contributing

Contributions are generally welcome. If you intend to make larger changes please discuss them in an issue before MRing them to avoid duplicate work and architectural mismatches.

Installing Rust

Rust can be installed using your package manager of choice or rustup.rs. The former way is considered more secure since it typically doesn't involve trust in the CA system. But you should be aware that the version of Rust shipped by your distribution might be out of date.

Building

The library can be built and tested using cargo:

git clone https://gitlab.com/riftenlabs/rust-riftenlabs-defi.git
cd rust-riftenlabs-defi
cargo build

You can run tests with:

cargo test

Dependencies

~8MB
~101K SLoC