Registry / crypto / cosmwasm

cosmwasm

JSON →
libraryrscratesunverified

Standard library for Wasm based smart contracts on Cosmos blockchains

# Cargo.toml [dependencies] cosmwasm = "latest"
INSTALL
IMPORT
SIG · COSMWASM
C
cosmwasm
cryptorust
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.

entry_point
use cosmwasm_std::entry_point;

Define a smart contract entry point

use cosmwasm_std::{entry_point, DepsMut, Env, MessageInfo, Response, StdResult}; #[entry_point] pub fn instantiate( _deps: DepsMut, _env: Env, _info: MessageInfo, _msg: InstantiateMsg, ) -> StdResult<Response> { Ok(Response::new()) }
Debug
Known issues
gotchaRequires wasm32 target and specific build setup
fix
Use `cargo build --target wasm32-unknown-unknown` and optimize with cosmwasm-opt
affects: >=1.0.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
cosmwasm — cargo add cosmwasm · libregistry