Skip to content

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:27

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.

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new MsgCreateCollection<T>(msg): MsgCreateCollection<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:44

Parameters

msg

iMsgCreateCollection<T>

Returns

MsgCreateCollection<T>

Overrides

BaseNumberTypeClass.constructor

Properties

aliasPathsToAdd?

optional aliasPathsToAdd?: AliasPathAddObject<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:41

The alias (non-wrapping) paths to add.

Implementation of

iMsgCreateCollection.aliasPathsToAdd


collectionApprovals?

optional collectionApprovals?: CollectionApproval<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:36

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

Implementation of

iMsgCreateCollection.collectionApprovals


collectionMetadata?

optional collectionMetadata?: CollectionMetadata

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:33

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

Implementation of

iMsgCreateCollection.collectionMetadata


collectionPermissions?

optional collectionPermissions?: CollectionPermissions<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:31

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

Implementation of

iMsgCreateCollection.collectionPermissions


cosmosCoinWrapperPathsToAdd?

optional cosmosCoinWrapperPathsToAdd?: CosmosCoinWrapperPathAddObject<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:40

The IBC wrapper paths to add.

Implementation of

iMsgCreateCollection.cosmosCoinWrapperPathsToAdd


creator

creator: string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:28

The creator of the transaction.

Implementation of

iMsgCreateCollection.creator


customData?

optional customData?: string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:35

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

Implementation of

iMsgCreateCollection.customData


defaultBalances?

optional defaultBalances?: UserBalanceStore<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:29

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.

Implementation of

iMsgCreateCollection.defaultBalances


invariants?

optional invariants?: InvariantsAddObject<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:42

Collection-level invariants that cannot be broken. These are set upon genesis and cannot be modified. Addresses are generated by the keeper.

Implementation of

iMsgCreateCollection.invariants


isArchived?

optional isArchived?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:38

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

Implementation of

iMsgCreateCollection.isArchived


manager?

optional manager?: string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:32

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

Implementation of

iMsgCreateCollection.manager


mintEscrowCoinsToTransfer?

optional mintEscrowCoinsToTransfer?: CosmosCoin<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:39

The coins to mint to the transfer address. Only used if collection has "Non-Public" balance type.

Implementation of

iMsgCreateCollection.mintEscrowCoinsToTransfer


standards?

optional standards?: string[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:37

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

Implementation of

iMsgCreateCollection.standards


tokenMetadata?

optional tokenMetadata?: TokenMetadata<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:34

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

Implementation of

iMsgCreateCollection.tokenMetadata


validTokenIds?

optional validTokenIds?: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:30

The tokens to create. Newly created tokens 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.

Implementation of

iMsgCreateCollection.validTokenIds

Methods

clone()

clone(): MsgCreateCollection

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151

Deep copies the object and returns a new instance.

Returns

MsgCreateCollection

Inherited from

BaseNumberTypeClass.clone


convert()

convert<U>(convertFunction, options?): MsgCreateCollection<U>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:63

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

MsgCreateCollection<U>

Overrides

BaseNumberTypeClass.convert


equals()

equals<U>(other, normalizeNumberTypes?): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147

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

U

U extends CustomType<U>

Parameters

other

CustomType<U> | null | undefined

normalizeNumberTypes?

boolean

Returns

boolean

Inherited from

BaseNumberTypeClass.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:157

Internal helper method to convert the number fields of the object to a different NumberType equivalent.

Returns

string[]

Inherited from

BaseNumberTypeClass.getNumberFieldNames


hasNumberFields()

hasNumberFields(): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161

Checks if the object has number fields.

Returns

boolean

Inherited from

BaseNumberTypeClass.hasNumberFields


toBech32Addresses()

toBech32Addresses(prefix): MsgCreateCollection<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:112

Parameters

prefix

string

Returns

MsgCreateCollection<T>


toCosmWasmPayloadString()

toCosmWasmPayloadString(): string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:123

Returns

string


toJson()

toJson(): JsonObject

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139

Converts the object to a JSON object with all primitive types.

Returns

JsonObject

Inherited from

BaseNumberTypeClass.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143

Converts the object to a JSON string.

Returns

string

Inherited from

BaseNumberTypeClass.toJsonString


toProto()

toProto(): MsgCreateCollection

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:67

Returns

MsgCreateCollection


fromJson()

static fromJson<U>(jsonValue, convertFunction, options?): MsgCreateCollection<U>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:71

Type Parameters

U

U extends NumberType

Parameters

jsonValue

JsonValue

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

MsgCreateCollection<U>


fromJsonString()

static fromJsonString<U>(jsonString, convertFunction, options?): MsgCreateCollection<U>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:79

Type Parameters

U

U extends NumberType

Parameters

jsonString

string

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

MsgCreateCollection<U>


fromProto()

static fromProto<U>(protoMsg, convertFunction): MsgCreateCollection<U>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgCreateCollection.ts:87

Type Parameters

U

U extends NumberType

Parameters

protoMsg

MsgCreateCollection

convertFunction

(item) => U

Returns

MsgCreateCollection<U>

Edit this page on GitHub