warp_dre

Crates.iowarp_dre
lib.rswarp_dre
version1.0.1
sourcesrc
created_at2023-03-15 06:38:15.707771
updated_at2023-05-09 06:56:03.25276
descriptionRust package to interact with Warp DRE nodes
homepage
repositoryhttps://github.com/archivetheweb/warp_dre
max_upload_size
id810513
size20,553
(Dev43)

documentation

README

Warp DRE

crates.io

Rust package to interact with Warp's DRE nodes.

Example

    let client = warp_dre::WarpDRE::new(WarpDREOptionsBuilder::default().build()?);
    let contract_tx_id = "_z0ch80z_daDUFqC9jHjfOL8nekJcok4ZRkE_UesYsk";

    let mut query: HashMap<String, String> = HashMap::new();
    query.insert("query".into(), "$.name".into());

    let res = client.get_contract_with_query(contract_tx_id, query).await?;
    let r = res.result.unwrap();
    let result = r[0].as_str();
    assert!(result == Some("VouchDAO"));
Commit count: 7

cargo fmt