10 releases

0.2.1 May 10, 2023
0.2.0 Jan 10, 2023
0.1.7 Oct 26, 2022

#4 in #cosmos-sdk


Used in gaal

MIT license

105KB
2.5K SLoC

Synnax is an attempt to provide a front for Cosmos-SDK using Rust.

Known limitations.

Synnax for the moment only support Cosmos queries using REST transport (LCD).

Examples

Balance querying

// Create a lcd transport using 
let lcd = Lcd::new("https://api-kichain-ia.cosmosia.notional.ventures/".to_string()).unwrap();

let address = "ki1....cafe".to_string();

// Load cosmos interface using the lcd as transport 
let cosmos = Cosmos::new(&lcd);

// query balance for address
let balances = cosmos
    .bank
    .balances(address)
    .unwrap();

// print the result
println!("balance for {} {:#?}", balances);

Contract Helper


Dependencies

~17–32MB
~525K SLoC