Skip to content

MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission.

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:19

MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission.

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

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

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

Parameters

msg

iMsgSetCollectionApprovals<T>

Returns

MsgSetCollectionApprovals<T>

Overrides

CustomTypeClass.constructor

Properties

canUpdateCollectionApprovals

canUpdateCollectionApprovals: CollectionApprovalPermission<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:26

Permission to update collection approvals.

Implementation of

iMsgSetCollectionApprovals.canUpdateCollectionApprovals


collectionApprovals

collectionApprovals: CollectionApproval<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:25

New collection approvals to set.

Implementation of

iMsgSetCollectionApprovals.collectionApprovals


collectionId

collectionId: T

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:24

The ID of the collection.

Implementation of

iMsgSetCollectionApprovals.collectionId


creator

creator: string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:23

The creator of the transaction.

Implementation of

iMsgSetCollectionApprovals.creator

Methods

clone()

clone(): MsgSetCollectionApprovals

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

Deep copies the object and returns a new instance.

Returns

MsgSetCollectionApprovals

Inherited from

CustomTypeClass.clone


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?

ConvertOptions

Returns

CustomType<any>

Deprecated

This function is unnecessary as this field has no numeric types. Please use the .clone() method instead.

Inherited from

CustomTypeClass.convert


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

CustomTypeClass.equals


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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:64

Parameters

prefix

string

Returns

MsgSetCollectionApprovals<T>


toCosmWasmPayloadString()

toCosmWasmPayloadString(): string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetCollectionApprovals.ts:73

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

CustomTypeClass.toJson


toJsonString()

toJsonString(): string

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

Converts the object to a JSON string.

Returns

string

Inherited from

CustomTypeClass.toJsonString


toProto()

toProto(): MsgSetCollectionApprovals

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

Returns

MsgSetCollectionApprovals


fromJson()

static fromJson(jsonValue, options?): MsgSetCollectionApprovals<NumberType>

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

Parameters

jsonValue

JsonValue

options?

Partial<JsonReadOptions>

Returns

MsgSetCollectionApprovals<NumberType>


fromJsonString()

static fromJsonString(jsonString, options?): MsgSetCollectionApprovals<NumberType>

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

Parameters

jsonString

string

options?

Partial<JsonReadOptions>

Returns

MsgSetCollectionApprovals<NumberType>


fromProto()

static fromProto(protoMsg): MsgSetCollectionApprovals<NumberType>

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

Parameters

protoMsg

MsgSetCollectionApprovals

Returns

MsgSetCollectionApprovals<NumberType>

Edit this page on GitHub