Class: MsgUpdateCollection<T>
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
BaseNumberTypeClass<MsgUpdateCollection<T>>
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
Returns
MsgUpdateCollection<T>
Overrides
BaseNumberTypeClass.constructor
Properties
aliasPathsToAdd?
optionalaliasPathsToAdd?: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?
optionalcollectionApprovals?: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?
optionalcollectionMetadata?: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?
optionalcollectionPermissions?: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?
optionalcosmosCoinWrapperPathsToAdd?: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
customData?
optionalcustomData?: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?
optionalinvariants?: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?
optionalisArchived?: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?
optionalmanager?: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
mintEscrowCoinsToTransfer?
optionalmintEscrowCoinsToTransfer?: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?
optionalstandards?: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?
optionaltokenMetadata?: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?
optionalupdateCollectionApprovals?: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?
optionalupdateCollectionMetadata?: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?
optionalupdateCollectionPermissions?: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?
optionalupdateCustomData?: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?
optionalupdateIsArchived?: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?
optionalupdateManager?: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?
optionalupdateStandards?: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?
optionalupdateTokenMetadata?: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?
optionalupdateValidTokenIds?: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?
optionalvalidTokenIds?: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
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?
Returns
MsgUpdateCollection<U>
Overrides
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
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
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()
staticfromJson<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()
staticfromJsonString<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()
staticfromProto<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>