cots
Module0x47f4…aacf
- Move path
- 0x47f4…aacf::cots
- Functions
- 1410 public, 6 entry
- Structs
- 7
- Friend modules
- None
cots
Functions14
- public entry fun add_nft_metadata(&Publisher,&mut tradeport_launchpad::Store,String,u64,u64,u64,String,String,String,vector<String>,vector<String>,vector<u8>)
- public entry fun mint_nft(&Clock,&mut Manager,&mut tradeport_launchpad::Store,String,u64,String,u64,String,u64,u64,u64,vector<u8>,&mut Coin<SUI>,&mut Kiosk,&KioskOwnerCap,&TransferPolicy<Nft>)
- public fun package_version(): u64
- public entry fun update_nft(&tradeport_launchpad::Store,vector<u8>,String,String,vector<String>,vector<String>,vector<u8>,&mut Kiosk,&KioskOwnerCap)
Structs7
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- AddNftMetadataEventcopydrop
group_id String type u64 index u64 collection_id String - COTSdrop
dummy_field bool - CreateCollectionEventcopydrop
publisher_id ID manager_id ID transfer_policy_id ID collection_id String - Managerstorekey
id UID version u64 display Display<Nft> transfer_policy_cap TransferPolicyCap<Nft> balance Balance<SUI> reserved_nft_ids vector<ID> - MintNftEventcopydrop
id ID group_id String type u64 index u64 order_id String stage_id String is_autoreserve bool price u64 collection_id String collection_creator_wallet address manager_id ID - Nftstorekey
id UID group_id String type u64 name String index u64 description String media_url String attributes VecMap<String, String> - UpdateNftEventcopydrop
id ID collection_id String
Constants24
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "COTS" // interpreted as UTF8 string | vector<u8> | Value | init |
| 1 | "Characters of the Sea" // interpreted as UTF8 string | vector<u8> | Value | init |
| 2 | "ipfs://QmS4p5MSTvcG6sYENiJ95Vfy6DkUYc4WkCkzAdZRcStDgX" // interpreted as UTF8 string | vector<u8> | Value | init |
| 3 | 600 | u16 | Value | init |
| 4 | 1 | u64 | Abort code | package_versionassert_versionassert_version_and_upgrade |
| 5 | 2 | u64 | Abort code | initdisplay_mutpolicy_cap |
| 6 | "collection_name" // interpreted as UTF8 string | vector<u8> | Value | init |
| 7 | "collection_description" // interpreted as UTF8 string | vector<u8> | Value | init |
| 8 | "collection_cover_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 9 | "group_id" // interpreted as UTF8 string | vector<u8> | Value | initto_nft |
| 10 | "{group_id}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 11 | "name" // interpreted as UTF8 string | vector<u8> | Value | initto_nft |
| 12 | "{name}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 13 | "description" // interpreted as UTF8 string | vector<u8> | Value | initto_nft |
| 14 | "{description}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 15 | "media_url" // interpreted as UTF8 string | vector<u8> | Value | initto_nft |
| 16 | "{media_url}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 17 | "image_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 18 | "attributes" // interpreted as UTF8 string | vector<u8> | Value | initto_nft |
| 19 | "{attributes}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 20 | "1b086abb-2293-4cd1-93c4-7168ffe525f6" // interpreted as UTF8 string | vector<u8> | Value | init |
| 21 | 0xe67f4b76f53e2f7c4b43c32adecbe0ae2fe3a20c810430c619b3af1984d25308 | address | Value | init |
| 22 | "type" // interpreted as UTF8 string | vector<u8> | Value | to_nft |
| 23 | "index" // interpreted as UTF8 string | vector<u8> | Value | to_nft |