Skip to content

MsgSetStandards sets the standards timeline and canUpdateStandards permission.

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.ts:18

MsgSetStandards sets the standards timeline and canUpdateStandards permission.

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

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

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

Parameters

msg

iMsgSetStandards<T>

Returns

MsgSetStandards<T>

Overrides

CustomTypeClass.constructor

Properties

canUpdateStandards

canUpdateStandards: ActionPermission<T>[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.ts:22

Permission to update standards.

Implementation of

iMsgSetStandards.canUpdateStandards


collectionId

collectionId: T

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.ts:20

The ID of the collection.

Implementation of

iMsgSetStandards.collectionId


creator

creator: string

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

The creator of the transaction.

Implementation of

iMsgSetStandards.creator


standards

standards: string[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.ts:21

New standards to set.

Implementation of

iMsgSetStandards.standards

Methods

clone()

clone(): MsgSetStandards

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

Deep copies the object and returns a new instance.

Returns

MsgSetStandards

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

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.ts:58

Parameters

prefix

string

Returns

MsgSetStandards<T>


toCosmWasmPayloadString()

toCosmWasmPayloadString(): string

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/bitbadges/tokenization/msgSetStandards.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

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

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

Returns

MsgSetStandards


fromJson()

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

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

Parameters

jsonValue

JsonValue

options?

Partial<JsonReadOptions>

Returns

MsgSetStandards<NumberType>


fromJsonString()

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

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

Parameters

jsonString

string

options?

Partial<JsonReadOptions>

Returns

MsgSetStandards<NumberType>


fromProto()

static fromProto(protoMsg): MsgSetStandards<NumberType>

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

Parameters

protoMsg

MsgSetStandards

Returns

MsgSetStandards<NumberType>

Edit this page on GitHub