Class MsgCreateCollection<T>

MsgCreateCollection is a transaction that can be used to create a collection.

Upon initial creation, you can set the default approved outgoing transfers, default approved incoming transfers, default user permissions, and balances type. However, after that, they are final and ignored in subsequent MsgCreateCollection calls.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

badgeIdsToAdd?: UintRangeArray<T>

The badges to create. Newly created badges will be sent to the "Mint" address. Must have necessary permissions in future transactions to update. However, no restrictions in this genesis Msg. Only used if collection has "Standard" balance type.

badgeMetadataTimeline?: BadgeMetadataTimeline<T>[]

The new badge metadata timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg. Note we take first-match only for badge IDs, so do not define duplicates.

balancesType?: string

The balances type. Either "Standard", "Off-Chain - Indexed", "Off-Chain - Non-Indexed" or "Non-Public"

collectionApprovals?: CollectionApproval<T>[]

The new collection approved transfers timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

collectionMetadataTimeline?: CollectionMetadataTimeline<T>[]

The new collection metadata timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

collectionPermissions?: CollectionPermissions<T>

The new collection permissions. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

creator: string

The creator of the transaction.

customDataTimeline?: CustomDataTimeline<T>[]

The new custom data timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

defaultBalances?: UserBalanceStore<T>

The default balances for users who have not interacted with the collection yet. Only can be set on initial creation. Only used if collection has "Standard" balance type.

isArchivedTimeline?: IsArchivedTimeline<T>[]

The new is archived timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

managerTimeline?: ManagerTimeline<T>[]

The new manager timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

offChainBalancesMetadataTimeline?: OffChainBalancesMetadataTimeline<T>[]

The new off-chain balances metadata timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg. Only used if "Off-Chain - Indexed" or "Off-Chain - Non-Indexed" balance type.

standardsTimeline?: StandardsTimeline<T>[]

The new standards timeline. Must have the necessary permissions in future transactions to update. However, no restrictions in this genesis Msg.

Methods

  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters

    Parameters

    • other: undefined | null | CustomType<U>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean