@interlay/interbtc-api / Exports / CurrencyId
Name
CurrencyId
Enum
↳ CurrencyId
• Private
#private: any
Enum.#private
node_modules/@polkadot/types-codec/base/Enum.d.ts:23
• Readonly
asForeignAsset: ForeignAssetId
src/interfaces/default/types.ts:18
• Readonly
asLendToken: LendTokenId
src/interfaces/default/types.ts:20
• Readonly
asLpToken: ITuple
<[LpToken
, LpToken
]>
src/interfaces/default/types.ts:22
• Readonly
asStableLpToken: StablePoolId
src/interfaces/default/types.ts:24
• Readonly
asToken: TokenSymbol
src/interfaces/default/types.ts:16
• Optional
createdAtHash: IU8a
Enum.createdAtHash
node_modules/@polkadot/types-codec/base/Enum.d.ts:25
• Optional
initialU8aLength: number
Enum.initialU8aLength
node_modules/@polkadot/types-codec/base/Enum.d.ts:26
• Readonly
isForeignAsset: boolean
src/interfaces/default/types.ts:17
• Readonly
isLendToken: boolean
src/interfaces/default/types.ts:19
• Readonly
isLpToken: boolean
src/interfaces/default/types.ts:21
• Readonly
isStableLpToken: boolean
src/interfaces/default/types.ts:23
• Optional
isStorageFallback: boolean
Enum.isStorageFallback
node_modules/@polkadot/types-codec/base/Enum.d.ts:27
• Readonly
isToken: boolean
src/interfaces/default/types.ts:15
• Readonly
registry: Registry
Enum.registry
node_modules/@polkadot/types-codec/base/Enum.d.ts:24
• Readonly
type: "Token"
| "ForeignAsset"
| "LendToken"
| "LpToken"
| "StableLpToken"
Enum.type
src/interfaces/default/types.ts:25
• get
defIndexes(): number
[]
number
[]
Description
The available keys for this enum
Enum.defIndexes
node_modules/@polkadot/types-codec/base/Enum.d.ts:61
• get
defKeys(): string
[]
string
[]
Description
The available keys for this enum
Enum.defKeys
node_modules/@polkadot/types-codec/base/Enum.d.ts:65
• get
encodedLength(): number
number
Description
The length of the value when encoded as a Uint8Array
Enum.encodedLength
node_modules/@polkadot/types-codec/base/Enum.d.ts:33
• get
hash(): IU8a
IU8a
Description
returns a hash of the contents
Enum.hash
node_modules/@polkadot/types-codec/base/Enum.d.ts:37
• get
index(): number
number
Description
The index of the enum value
Enum.index
node_modules/@polkadot/types-codec/base/Enum.d.ts:41
• get
inner(): Codec
Codec
Description
The value of the enum
Enum.inner
node_modules/@polkadot/types-codec/base/Enum.d.ts:45
• get
isBasic(): boolean
boolean
Description
true if this is a basic enum (no values)
Enum.isBasic
node_modules/@polkadot/types-codec/base/Enum.d.ts:49
• get
isEmpty(): boolean
boolean
Description
Checks if the value is an empty value
Enum.isEmpty
node_modules/@polkadot/types-codec/base/Enum.d.ts:53
• get
isNone(): boolean
boolean
Description
Checks if the Enum points to a [[Null]] type
Enum.isNone
node_modules/@polkadot/types-codec/base/Enum.d.ts:57
• get
value(): Codec
Codec
Description
The value of the enum
Enum.value
node_modules/@polkadot/types-codec/base/Enum.d.ts:73
▸ _toRawStruct(): string
[] | Record
<string
, string
| number
>
string
[] | Record
<string
, string
| number
>
Description
Returns a raw struct representation of the enum types
Enum._toRawStruct
node_modules/@polkadot/types-codec/base/Enum.d.ts:105
▸ eq(other?
): boolean
Name | Type |
---|---|
other? |
unknown |
boolean
Description
Compares the value of the input to see if there is a match
Enum.eq
node_modules/@polkadot/types-codec/base/Enum.d.ts:77
▸ inspect(): Inspect
Inspect
Description
Returns a breakdown of the hex encoding for this Codec
Enum.inspect
node_modules/@polkadot/types-codec/base/Enum.d.ts:81
▸ toHex(): `0x${string}`
`0x${string}`
Description
Returns a hex string representation of the value
Enum.toHex
node_modules/@polkadot/types-codec/base/Enum.d.ts:85
▸ toHuman(isExtended?
): AnyJson
Name | Type |
---|---|
isExtended? |
boolean |
AnyJson
Description
Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
Enum.toHuman
node_modules/@polkadot/types-codec/base/Enum.d.ts:89
▸ toJSON(): AnyJson
AnyJson
Description
Converts the Object to JSON, typically used for RPC transfers
Enum.toJSON
node_modules/@polkadot/types-codec/base/Enum.d.ts:93
▸ toNumber(): number
number
Description
Returns the number representation for the value
Enum.toNumber
node_modules/@polkadot/types-codec/base/Enum.d.ts:97
▸ toPrimitive(): AnyJson
AnyJson
Description
Converts the value in a best-fit primitive form
Enum.toPrimitive
node_modules/@polkadot/types-codec/base/Enum.d.ts:101
▸ toRawType(): string
string
Description
Returns the base runtime type name for this instance
Enum.toRawType
node_modules/@polkadot/types-codec/base/Enum.d.ts:109
▸ toString(): string
string
Description
Returns the string representation of the value
Enum.toString
node_modules/@polkadot/types-codec/base/Enum.d.ts:113
▸ toU8a(isBare?
): Uint8Array
Name | Type | Description |
---|---|---|
isBare? |
boolean |
true when the value has none of the type-specific prefixes (internal) |
Uint8Array
Description
Encodes the value as a Uint8Array as per the SCALE specifications
Enum.toU8a
node_modules/@polkadot/types-codec/base/Enum.d.ts:118