Crates.io | warp_dre |
lib.rs | warp_dre |
version | 1.0.1 |
source | src |
created_at | 2023-03-15 06:38:15.707771 |
updated_at | 2023-05-09 06:56:03.25276 |
description | Rust package to interact with Warp DRE nodes |
homepage | |
repository | https://github.com/archivetheweb/warp_dre |
max_upload_size | |
id | 810513 |
size | 20,553 |
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"));