Class: CosmosCoinWrapperPathAddObject<T>
Type for Cosmos SDK Coin information with support for bigint amounts (e.g. { amount: 1000000, denom: 'ubadge' }).
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:303
Type for Cosmos SDK Coin information with support for bigint amounts (e.g. { amount: 1000000, denom: 'ubadge' }).
Extends
BaseNumberTypeClass<CosmosCoinWrapperPathAddObject<T>>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new CosmosCoinWrapperPathAddObject<
T>(data):CosmosCoinWrapperPathAddObject<T>
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:314
Parameters
data
iCosmosCoinWrapperPathAddObject<T>
Returns
CosmosCoinWrapperPathAddObject<T>
Overrides
BaseNumberTypeClass.constructor
Properties
allowOverrideWithAnyValidToken
allowOverrideWithAnyValidToken:
boolean
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:311
Whether to allow override with any valid token.
Implementation of
iCosmosCoinWrapperPathAddObject.allowOverrideWithAnyValidToken
conversion
conversion:
ConversionWithoutDenom<T>
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:308
The conversion between cosmos coin and badge balances.
Implementation of
iCosmosCoinWrapperPathAddObject.conversion
denom
denom:
string
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:307
The denom of the IBC wrapper path.
Implementation of
iCosmosCoinWrapperPathAddObject.denom
denomUnits
denomUnits:
DenomUnit<T>[]
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:310
The denomination units for this IBC wrapper path.
Implementation of
iCosmosCoinWrapperPathAddObject.denomUnits
metadata
metadata:
PathMetadata
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:312
The metadata for this wrapper path.
Implementation of
iCosmosCoinWrapperPathAddObject.metadata
symbol
symbol:
string
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:309
The symbol for this IBC wrapper path.
Implementation of
iCosmosCoinWrapperPathAddObject.symbol
Methods
clone()
clone():
CosmosCoinWrapperPathAddObject
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
CosmosCoinWrapperPathAddObject
Inherited from
convert()
convert<
U>(convertFunction,options?):CosmosCoinWrapperPathAddObject<U>
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:328
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
CosmosCoinWrapperPathAddObject<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/core/ibc-wrappers.ts:324
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
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():
CosmosCoinWrapperPathAddObject
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:348
Returns
CosmosCoinWrapperPathAddObject
fromProto()
staticfromProto<T>(data,convertFunction):CosmosCoinWrapperPathAddObject<T>
Defined in: packages/bitbadgesjs-sdk/src/core/ibc-wrappers.ts:332
Type Parameters
T
T extends NumberType
Parameters
data
CosmosCoinWrapperPathAddObject
convertFunction
(val) => T
Returns
CosmosCoinWrapperPathAddObject<T>