Class: MsgCreateCollection<T>
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
BaseNumberTypeClass<MsgCreateCollection<T>>
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
Returns
MsgCreateCollection<T>
Overrides
BaseNumberTypeClass.constructor
Properties
aliasPathsToAdd?
optionalaliasPathsToAdd?: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?
optionalcollectionApprovals?: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?
optionalcollectionMetadata?: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?
optionalcollectionPermissions?: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?
optionalcosmosCoinWrapperPathsToAdd?: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
customData?
optionalcustomData?: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?
optionaldefaultBalances?: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?
optionalinvariants?: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?
optionalisArchived?: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?
optionalmanager?: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
mintEscrowCoinsToTransfer?
optionalmintEscrowCoinsToTransfer?: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?
optionalstandards?: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?
optionaltokenMetadata?: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?
optionalvalidTokenIds?: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
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?
Returns
MsgCreateCollection<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/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
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()
staticfromJson<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()
staticfromJsonString<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()
staticfromProto<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>