interbtc-api

@interlay/interbtc-api / Exports / InterbtcPrimitivesCurrencyId

Interface: InterbtcPrimitivesCurrencyId

Name

InterbtcPrimitivesCurrencyId

Hierarchy

Table of contents

Properties

Accessors

Methods

Properties

#private

Private #private: any

Inherited from

Enum.#private

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:23


asForeignAsset

Readonly asForeignAsset: InterbtcForeignAssetId

Defined in

src/interfaces/default/types.ts:62


asLendToken

Readonly asLendToken: InterbtcLendTokenId

Defined in

src/interfaces/default/types.ts:64


asLpToken

Readonly asLpToken: ITuple<[InterbtcLpToken, InterbtcLpToken]>

Defined in

src/interfaces/default/types.ts:66


asStableLpToken

Readonly asStableLpToken: InterbtcStablePoolId

Defined in

src/interfaces/default/types.ts:68


asToken

Readonly asToken: InterbtcPrimitivesTokenSymbol

Defined in

src/interfaces/default/types.ts:60


createdAtHash

Optional createdAtHash: IU8a

Inherited from

Enum.createdAtHash

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:25


initialU8aLength

Optional initialU8aLength: number

Inherited from

Enum.initialU8aLength

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:26


isForeignAsset

Readonly isForeignAsset: boolean

Defined in

src/interfaces/default/types.ts:61


isLendToken

Readonly isLendToken: boolean

Defined in

src/interfaces/default/types.ts:63


isLpToken

Readonly isLpToken: boolean

Defined in

src/interfaces/default/types.ts:65


isStableLpToken

Readonly isStableLpToken: boolean

Defined in

src/interfaces/default/types.ts:67


isStorageFallback

Optional isStorageFallback: boolean

Inherited from

Enum.isStorageFallback

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:27


isToken

Readonly isToken: boolean

Defined in

src/interfaces/default/types.ts:59


registry

Readonly registry: Registry

Inherited from

Enum.registry

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:24


type

Readonly type: "Token" | "ForeignAsset" | "LendToken" | "LpToken" | "StableLpToken"

Overrides

Enum.type

Defined in

src/interfaces/default/types.ts:69

Accessors

defIndexes

get defIndexes(): number[]

Returns

number[]

Description

The available keys for this enum

Inherited from

Enum.defIndexes

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:61


defKeys

get defKeys(): string[]

Returns

string[]

Description

The available keys for this enum

Inherited from

Enum.defKeys

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:65


encodedLength

get encodedLength(): number

Returns

number

Description

The length of the value when encoded as a Uint8Array

Inherited from

Enum.encodedLength

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:33


hash

get hash(): IU8a

Returns

IU8a

Description

returns a hash of the contents

Inherited from

Enum.hash

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:37


index

get index(): number

Returns

number

Description

The index of the enum value

Inherited from

Enum.index

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:41


inner

get inner(): Codec

Returns

Codec

Description

The value of the enum

Inherited from

Enum.inner

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:45


isBasic

get isBasic(): boolean

Returns

boolean

Description

true if this is a basic enum (no values)

Inherited from

Enum.isBasic

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:49


isEmpty

get isEmpty(): boolean

Returns

boolean

Description

Checks if the value is an empty value

Inherited from

Enum.isEmpty

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:53


isNone

get isNone(): boolean

Returns

boolean

Description

Checks if the Enum points to a [[Null]] type

Inherited from

Enum.isNone

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:57


value

get value(): Codec

Returns

Codec

Description

The value of the enum

Inherited from

Enum.value

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:73

Methods

_toRawStruct

_toRawStruct(): string[] | Record<string, string | number>

Returns

string[] | Record<string, string | number>

Description

Returns a raw struct representation of the enum types

Inherited from

Enum._toRawStruct

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:105


eq

eq(other?): boolean

Parameters

Name Type
other? unknown

Returns

boolean

Description

Compares the value of the input to see if there is a match

Inherited from

Enum.eq

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:77


inspect

inspect(): Inspect

Returns

Inspect

Description

Returns a breakdown of the hex encoding for this Codec

Inherited from

Enum.inspect

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:81


toHex

toHex(): `0x${string}`

Returns

`0x${string}`

Description

Returns a hex string representation of the value

Inherited from

Enum.toHex

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:85


toHuman

toHuman(isExtended?): AnyJson

Parameters

Name Type
isExtended? boolean

Returns

AnyJson

Description

Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

Inherited from

Enum.toHuman

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:89


toJSON

toJSON(): AnyJson

Returns

AnyJson

Description

Converts the Object to JSON, typically used for RPC transfers

Inherited from

Enum.toJSON

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:93


toNumber

toNumber(): number

Returns

number

Description

Returns the number representation for the value

Inherited from

Enum.toNumber

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:97


toPrimitive

toPrimitive(): AnyJson

Returns

AnyJson

Description

Converts the value in a best-fit primitive form

Inherited from

Enum.toPrimitive

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:101


toRawType

toRawType(): string

Returns

string

Description

Returns the base runtime type name for this instance

Inherited from

Enum.toRawType

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:109


toString

toString(): string

Returns

string

Description

Returns the string representation of the value

Inherited from

Enum.toString

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:113


toU8a

toU8a(isBare?): Uint8Array

Parameters

Name Type Description
isBare? boolean true when the value has none of the type-specific prefixes (internal)

Returns

Uint8Array

Description

Encodes the value as a Uint8Array as per the SCALE specifications

Inherited from

Enum.toU8a

Defined in

node_modules/@polkadot/types-codec/base/Enum.d.ts:118