cw1155-base

Crates.iocw1155-base
lib.rscw1155-base
version0.16.0
sourcesrc
created_at2021-04-13 18:34:52.993237
updated_at2022-10-17 09:45:17.631978
descriptionBasic implementation of a CosmWasm-1155 compliant token
homepagehttps://cosmwasm.com
repositoryhttps://github.com/CosmWasm/cw-plus
max_upload_size
id383052
size58,921
Core Rust Developers (github:cosmwasm:core-rust-developers)

documentation

https://docs.cosmwasm.com

README

CW1155 Basic

This is a basic implementation of a cw1155 contract. It implements the CW1155 spec and manages multiple tokens (fungible or non-fungible) under one contract.

Instantiation

To create it, you must pass in a minter address.

#[cw_serde]
pub struct InstantiateMsg {
    /// The minter is the only one who can create new tokens.
    /// This is designed for a base token platform that is controlled by an external program or
    /// contract.
    pub minter: String,
}

Messages

All other messages and queries are defined by the CW1155 spec. Please refer to it for more info.

Commit count: 3157

cargo fmt