Registry / other / cw20
library2.0.0rscratesunverified

Definition and types for the CosmWasm-20 fungible token interface.

# Cargo.toml [dependencies] cw20 = "2.0.0"
INSTALL
IMPORT
SIG · CW20
C
cw20
otherrustv2.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.

Cw20ExecuteMsg
use cw20::Cw20ExecuteMsg;

Create a CW20 transfer message.

use cw20::Cw20ExecuteMsg; let msg = Cw20ExecuteMsg::Transfer { recipient: "addr".to_string(), amount: 100u128.into(), };
Debug
Known issues
gotchaRequires CosmWasm environment (wasm32 target) and proper contract setup.
fix
Use only in CosmWasm smart contracts; ensure wasm32-unknown-unknown target is installed.
affects: >=1.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources