Skip to content

MsgUpdateCollection is a transaction that can be used to update any collection. It is only executable by the manager.

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

MsgUpdateCollection is a transaction that can be used to update any collection. It is only executable by the manager.

Note that you must have the necessary privileges to update specific fields. If you do not have the necessary privileges, it will throw an error. We update any CollectionPermissions at the end, so the permissions checked for the current execution are the permissions BEFORE the update. In the case of the first MsgUpdateCollection, the previous permissions are by default all permitted.

To specify you would like to update a field, the corresponding update field must be set to true. If it is set to false, we ignore it.

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:56

Parameters

msg

iMsgUpdateCollection<T>

Returns

MsgUpdateCollection<T>

Overrides

BaseNumberTypeClass.constructor

Properties

aliasPathsToAdd?

optional aliasPathsToAdd?: AliasPathAddObject<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:53

The alias (non-wrapping) paths to add.

Implementation of

iMsgUpdateCollection.aliasPathsToAdd


collectionApprovals?

optional collectionApprovals?: CollectionApproval<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:46

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

Implementation of

iMsgUpdateCollection.collectionApprovals


collectionId

collectionId: string

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

The ID of the collection to update.

Implementation of

iMsgUpdateCollection.collectionId


collectionMetadata?

optional collectionMetadata?: CollectionMetadata

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

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

Implementation of

iMsgUpdateCollection.collectionMetadata


collectionPermissions?

optional collectionPermissions?: CollectionPermissions<T>

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

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

Implementation of

iMsgUpdateCollection.collectionPermissions


cosmosCoinWrapperPathsToAdd?

optional cosmosCoinWrapperPathsToAdd?: CosmosCoinWrapperPathAddObject<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:52

The IBC wrapper paths to add.

Implementation of

iMsgUpdateCollection.cosmosCoinWrapperPathsToAdd


creator

creator: string

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

The creator of the transaction.

Implementation of

iMsgUpdateCollection.creator


customData?

optional customData?: string

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

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

Implementation of

iMsgUpdateCollection.customData


invariants?

optional invariants?: InvariantsAddObject<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:54

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

Implementation of

iMsgUpdateCollection.invariants


isArchived?

optional isArchived?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:50

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

Implementation of

iMsgUpdateCollection.isArchived


manager?

optional manager?: string

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

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

Implementation of

iMsgUpdateCollection.manager


mintEscrowCoinsToTransfer?

optional mintEscrowCoinsToTransfer?: CosmosCoin<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:51

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

Implementation of

iMsgUpdateCollection.mintEscrowCoinsToTransfer


standards?

optional standards?: string[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:48

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

Implementation of

iMsgUpdateCollection.standards


tokenMetadata?

optional tokenMetadata?: TokenMetadata<T>[]

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

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

iMsgUpdateCollection.tokenMetadata


updateCollectionApprovals?

optional updateCollectionApprovals?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:45

Whether or not to update the collection approved transfers.

Implementation of

iMsgUpdateCollection.updateCollectionApprovals


updateCollectionMetadata?

optional updateCollectionMetadata?: boolean

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

Whether or not to update the collection metadata.

Implementation of

iMsgUpdateCollection.updateCollectionMetadata


updateCollectionPermissions?

optional updateCollectionPermissions?: boolean

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

Whether or not to update the collection permissions.

Implementation of

iMsgUpdateCollection.updateCollectionPermissions


updateCustomData?

optional updateCustomData?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:43

Whether or not to update the custom data.

Implementation of

iMsgUpdateCollection.updateCustomData


updateIsArchived?

optional updateIsArchived?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:49

Whether or not to update the is archived flag.

Implementation of

iMsgUpdateCollection.updateIsArchived


updateManager?

optional updateManager?: boolean

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

Whether or not to update the manager.

Implementation of

iMsgUpdateCollection.updateManager


updateStandards?

optional updateStandards?: boolean

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:47

Whether or not to update the standards.

Implementation of

iMsgUpdateCollection.updateStandards


updateTokenMetadata?

optional updateTokenMetadata?: boolean

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

Whether or not to update the token metadata.

Implementation of

iMsgUpdateCollection.updateTokenMetadata


updateValidTokenIds?

optional updateValidTokenIds?: boolean

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

Whether or not to update the valid token IDs.

Implementation of

iMsgUpdateCollection.updateValidTokenIds


validTokenIds?

optional validTokenIds?: UintRangeArray<T>

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

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

iMsgUpdateCollection.validTokenIds

Methods

clone()

clone(): MsgUpdateCollection

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

Deep copies the object and returns a new instance.

Returns

MsgUpdateCollection

Inherited from

BaseNumberTypeClass.clone


convert()

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:89

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

MsgUpdateCollection<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/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:85

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

Returns

string[]

Overrides

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): MsgUpdateCollection<T>

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:147

Parameters

prefix

string

Returns

MsgUpdateCollection<T>


toCosmWasmPayloadString()

toCosmWasmPayloadString(): string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:158

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(): MsgUpdateCollection

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:93

Returns

MsgUpdateCollection


fromJson()

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:97

Type Parameters

U

U extends NumberType

Parameters

jsonValue

JsonValue

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

MsgUpdateCollection<U>


fromJsonString()

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:105

Type Parameters

U

U extends NumberType

Parameters

jsonString

string

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

MsgUpdateCollection<U>


fromProto()

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgUpdateCollection.ts:113

Type Parameters

U

U extends NumberType

Parameters

protoMsg

MsgUpdateCollection

convertFunction

(item) => U

Returns

MsgUpdateCollection<U>

Edit this page on GitHub