Registry / utility / cw-asset

cw-asset

JSON →
library4.0.0rscratesunverified

Helper library for interacting with Cosmos assets, including native coins and CW20 tokens.

# Cargo.toml [dependencies] cw-asset = "4.0.0"
INSTALL
IMPORT
SIG · CW-ASSET
C
cw-asset
utilityrustv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Asset
use cw_asset::Asset;

Creates a native asset from a coin.

use cw_asset::Asset; use cosmwasm_std::Coin; let coin = Coin::new(100, "uosmo"); let asset = Asset::native("uosmo", 100); assert_eq!(asset.to_coin(), coin);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cw-asset — cargo add cw-asset · libregistry