Crates.io | cw1155-base |
lib.rs | cw1155-base |
version | 0.16.0 |
source | src |
created_at | 2021-04-13 18:34:52.993237 |
updated_at | 2022-10-17 09:45:17.631978 |
description | Basic implementation of a CosmWasm-1155 compliant token |
homepage | https://cosmwasm.com |
repository | https://github.com/CosmWasm/cw-plus |
max_upload_size | |
id | 383052 |
size | 58,921 |
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.
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,
}
All other messages and queries are defined by the CW1155 spec. Please refer to it for more info.