Registry / other / cw-controllers

cw-controllers

JSON →
library3.0.0rscratesunverified

Common controllers to be reused in multiple contracts for CosmWasm smart contracts.

# Cargo.toml [dependencies] cw-controllers = "3.0.0"
INSTALL
IMPORT
SIG · CW-CONTROLLERS
C
cw-controllers
otherrustv3.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.

Admin
use cw_controllers::Admin;

Creates an Admin controller for managing contract permissions.

use cw_controllers::Admin; use cosmwasm_std::Addr; fn main() { let admin = Admin::new("admin".to_string()); println!("Admin address: {:?}", admin); }
Debug
Known issues
gotchaRequires CosmWasm environment (e.g., cosmwasm_std) to function properly.
fix
Ensure you are building for a CosmWasm smart contract target.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
cw-controllers — cargo add cw-controllers · libregistry