Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

collection

Module0x34a2…c82c
Move path
0xbc3d…e5f9::collection
Functions
1915 public, 2 entry
Structs
3
Friend modules
None
collection

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module collection;
struct Collection<phantom T0> has store, key {
id: UID,
version: u64,
}
struct MintCollectionEvent has copy, drop {
collection_id: ID,
type_name: TypeName,
}
struct Witness has drop {
dummy_field: bool,
}
public fun add_domain<T0, T1: store>(witness::Witness<T0>,&mut Collection<T0>,T1)
public fun assert_domain<T0, T1: store>(&Collection<T0>)
public fun assert_no_domain<T0, T1: store>(&Collection<T0>)
fun assert_version<T0>(&Collection<T0>)
fun assert_version_and_upgrade<T0>(&mut Collection<T0>)
public fun borrow_domain<T0, T1: store>(&Collection<T0>): &T1
public fun borrow_domain_mut<T0, T1: store>(witness::Witness<T1>,&mut Collection<T0>): &mut T1
public fun borrow_uid<T0>(&Collection<T0>): &UID
public fun borrow_uid_mut<T0>(witness::Witness<T0>,&mut Collection<T0>): &mut UID
public fun create<T0>(witness::Witness<T0>): Collection<T0>
fun create_<T0>(): Collection<T0>
public fun create_from_otw<T0: drop, T1>(&T0): Collection<T1>
public fun create_with_mint_cap<T0: drop, T1>(&T0, Option<u64>): (Collection<T1>, mint_cap::MintCap<T1>)
public entry fun delete<T0>(Collection<T0>)
public fun has_domain<T0, T1: store>(&Collection<T0>): bool
public fun init_collection<T0>(witness::Witness<T0>): ID
entry fun migrate_as_creator<T0: store + key>(&mut Collection<T0>,&Publisher)
public fun new_display<T0: store + key>(witness::Witness<T0>,&frozen_publisher::FrozenPublisher): Display<Collection<T0>>
public fun remove_domain<T0, T1: store>(witness::Witness<T0>,&mut Collection<T0>): T1