Registry / crypto / terra-cosmwasm

terra-cosmwasm

JSON →
library2.2.0rscratesunverified

Bindings for CosmWasm contracts to call into custom modules of Terra Core.

# Cargo.toml [dependencies] terra-cosmwasm = "2.2.0"
INSTALL
IMPORT
SIG · TERRA-COSMWASM
T
terra-cosmwasm
cryptorustv2.2.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.

TerraQuerier
use terra_cosmwasm::TerraQuerier;

Uses TerraQuerier to query a swap on Terra blockchain from a CosmWasm contract.

use terra_cosmwasm::TerraQuerier; use cosmwasm_std::{Deps, StdResult}; fn query_swap(deps: Deps) -> StdResult<terra_cosmwasm::SwapResponse> { let querier = TerraQuerier::new(&deps.querier); querier.query_swap(/* params */) }
Debug
Known issues
breakingRequires specific Terra Core version compatibility
fix
Check the Terra Core version and use matching terra-cosmwasm version.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Resources
terra-cosmwasm — cargo add terra-cosmwasm · libregistry