perpl-sdk 0.2.4

Rust SDK for the Perpl decentralized perpetuals exchange
Documentation
1
2
3
4
5
6
7
8
use std::fs;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("cargo::rerun-if-changed=abi/dex/REVISION");
    let rev = fs::read_to_string("abi/dex/REVISION")?;
    println!("cargo::rustc-env=DEX_REVISION={rev}");
    Ok(())
}