Skip to content

Latest commit

 

History

History

core

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

cw-constructor

Use as a dependency:

[dependencies]
cw_constructor = "0.1.0"

API

Query msgs

ContractInfo

Get constructor contract's config

ContractInfoMsg {}

Traits

Get filtered trait tokens, e.g. by related base token's token_id or name of the slot

TraitsMsg {
  slot: Option<String>,
  token_id: Option<String>,
}

Tokens

Get filtered base tokens, e.g. by token_id or address of applied trait

TokensMsg {
  token_id: Option<String>,
  address: Option<String>,
}

Info

Get aggregated and separate metadata of the base token and its applied trait tokens

InfoMsg {
  token_id: String,
}

Execute msgs

Equip

Equip new trait tokens to the base token

EquipMsg {
  token_id: String,
  traits: Vec<TokenConfig {
    address: String,
    token_id: String,
  }>
}

Unequip

Remove equipped trait tokens

UnequipMsg {
  traits: Vec<TokenConfig {
    address: String,
    token_id: String,
  }>
}