Class: MsgSetIsArchived<T>
MsgSetIsArchived sets the isArchived timeline and canArchiveCollection permission.
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:18
MsgSetIsArchived sets the isArchived timeline and canArchiveCollection permission.
Extends
CustomTypeClass<MsgSetIsArchived<T>>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new MsgSetIsArchived<
T>(msg):MsgSetIsArchived<T>
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:24
Parameters
msg
Returns
MsgSetIsArchived<T>
Overrides
Properties
canArchiveCollection
canArchiveCollection:
ActionPermission<T>[]
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:22
Permission to archive collection.
Implementation of
iMsgSetIsArchived.canArchiveCollection
collectionId
collectionId:
T
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:20
The ID of the collection.
Implementation of
iMsgSetIsArchived.collectionId
creator
creator:
string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:19
The creator of the transaction.
Implementation of
isArchived
isArchived:
boolean
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:21
New isArchived flag to set.
Implementation of
Methods
clone()
clone():
MsgSetIsArchived
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:105
Deep copies the object and returns a new instance.
Returns
MsgSetIsArchived
Inherited from
convert()
convert<
U>(_convertFunction?,options?):CustomType<any>
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:124
Type Parameters
U
U extends NumberType
Parameters
_convertFunction?
(val) => U
options?
Returns
CustomType<any>
Deprecated
This function is unnecessary as this field has no numeric types.
Please use the .clone() method instead.
Inherited from
equals()
equals<
U>(other,normalizeNumberTypes?):boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:101
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:111
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Inherited from
CustomTypeClass.getNumberFieldNames
hasNumberFields()
hasNumberFields():
boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:115
Checks if the object has number fields.
Returns
boolean
Inherited from
CustomTypeClass.hasNumberFields
toBech32Addresses()
toBech32Addresses(
prefix):MsgSetIsArchived<T>
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:58
Parameters
prefix
string
Returns
MsgSetIsArchived<T>
toCosmWasmPayloadString()
toCosmWasmPayloadString():
string
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:67
Returns
string
toJson()
toJson():
JsonObject
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:93
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:97
Converts the object to a JSON string.
Returns
string
Inherited from
toProto()
toProto():
MsgSetIsArchived
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:32
Returns
MsgSetIsArchived
fromJson()
staticfromJson(jsonValue,options?):MsgSetIsArchived<NumberType>
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:41
Parameters
jsonValue
JsonValue
options?
Partial<JsonReadOptions>
Returns
MsgSetIsArchived<NumberType>
fromJsonString()
staticfromJsonString(jsonString,options?):MsgSetIsArchived<NumberType>
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:45
Parameters
jsonString
string
options?
Partial<JsonReadOptions>
Returns
MsgSetIsArchived<NumberType>
fromProto()
staticfromProto(protoMsg):MsgSetIsArchived<NumberType>
Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetIsArchived.ts:49
Parameters
protoMsg
MsgSetIsArchived
Returns
MsgSetIsArchived<NumberType>