interbtc-api

@interlay/interbtc-api / Exports / StablePoolId

Interface: StablePoolId

Name

StablePoolId

Hierarchy

Table of contents

Properties

Accessors

Methods

Properties

#private

Private #private: any

Inherited from

u32.#private

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:12


__UIntType

Readonly __UIntType: "u32"

Inherited from

u32.__UIntType

Defined in

node_modules/@polkadot/types-codec/primitive/U32.d.ts:9


createdAtHash

Optional createdAtHash: IU8a

Inherited from

u32.createdAtHash

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:16


encodedLength

Readonly encodedLength: number

Inherited from

u32.encodedLength

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:14


initialU8aLength

Optional initialU8aLength: number

Inherited from

u32.initialU8aLength

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:17


isStorageFallback

Optional isStorageFallback: boolean

Inherited from

u32.isStorageFallback

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:18


isUnsigned

Readonly isUnsigned: boolean

Inherited from

u32.isUnsigned

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:15


registry

Readonly registry: Registry

Inherited from

u32.registry

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:13

Accessors

hash

get hash(): IU8a

Returns

IU8a

Description

returns a hash of the contents

Inherited from

u32.hash

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:23


isEmpty

get isEmpty(): boolean

Returns

boolean

Description

Checks if the value is a zero value (align elsewhere)

Inherited from

u32.isEmpty

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:27

Methods

abs

abs(): BN

Returns

BN

Description

absolute value

Inherited from

u32.abs

Defined in

node_modules/@types/bn.js/index.d.ts:228


add

add(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

addition

Inherited from

u32.add

Defined in

node_modules/@types/bn.js/index.d.ts:238


addn

addn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

addition

Inherited from

u32.addn

Defined in

node_modules/@types/bn.js/index.d.ts:248


and

and(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

and

Inherited from

u32.and

Defined in

node_modules/@types/bn.js/index.d.ts:379


andln

andln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

and (NOTE: andln is going to be replaced with andn in future)

Inherited from

u32.andln

Defined in

node_modules/@types/bn.js/index.d.ts:399


bincn

bincn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

add 1 << b to the number

Inherited from

u32.bincn

Defined in

node_modules/@types/bn.js/index.d.ts:483


bitLength

bitLength(): number

Returns

number

Description

Returns the number of bits in the value

Inherited from

u32.bitLength

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:31


byteLength

byteLength(): number

Returns

number

Description

return number of bytes occupied

Inherited from

u32.byteLength

Defined in

node_modules/@types/bn.js/index.d.ts:118


clone

clone(): BN

Returns

BN

Description

clone number

Inherited from

u32.clone

Defined in

node_modules/@types/bn.js/index.d.ts:63


cmp

cmp(b): -1 | 0 | 1

Parameters

Name Type
b BN

Returns

-1 | 0 | 1

Description

compare numbers and return -1 (a < b), 0 (a == b), or 1 (a > b) depending on the comparison result

Inherited from

u32.cmp

Defined in

node_modules/@types/bn.js/index.d.ts:143


cmpn

cmpn(b): -1 | 0 | 1

Parameters

Name Type
b number

Returns

-1 | 0 | 1

Description

compare numbers and return -1 (a < b), 0 (a == b), or 1 (a > b) depending on the comparison result

Inherited from

u32.cmpn

Defined in

node_modules/@types/bn.js/index.d.ts:153


div

div(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

divide

Inherited from

u32.div

Defined in

node_modules/@types/bn.js/index.d.ts:313


divRound

divRound(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

rounded division

Inherited from

u32.divRound

Defined in

node_modules/@types/bn.js/index.d.ts:354


divmod

divmod(b, mode?, positive?): Object

Parameters

Name Type
b BN
mode? "div" | "mod"
positive? boolean

Returns

Object

Name Type
div BN
mod BN

Description

division with remainder

Inherited from

u32.divmod

Defined in

node_modules/@types/bn.js/index.d.ts:328


divn

divn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

divide

Inherited from

u32.divn

Defined in

node_modules/@types/bn.js/index.d.ts:318


egcd

egcd(b): Object

Parameters

Name Type
b BN

Returns

Object

Name Type
a BN
b BN
gcd BN

Description

Extended GCD results ({ a: ..., b: ..., gcd: ... })

Inherited from

u32.egcd

Defined in

node_modules/@types/bn.js/index.d.ts:503


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

u32.eq

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:35


eqn

eqn(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

a equals b

Inherited from

u32.eqn

Defined in

node_modules/@types/bn.js/index.d.ts:203


fromTwos

fromTwos(width): BN

Parameters

Name Type
width number

Returns

BN

Description

convert from two’s complement representation, where width is the bit width

Inherited from

u32.fromTwos

Defined in

node_modules/@types/bn.js/index.d.ts:213


gcd

gcd(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

GCD

Inherited from

u32.gcd

Defined in

node_modules/@types/bn.js/index.d.ts:498


gt

gt(b): boolean

Parameters

Name Type
b BN

Returns

boolean

Description

a greater than b

Inherited from

u32.gt

Defined in

node_modules/@types/bn.js/index.d.ts:178


gte

gte(b): boolean

Parameters

Name Type
b BN

Returns

boolean

Description

a greater than or equals b

Inherited from

u32.gte

Defined in

node_modules/@types/bn.js/index.d.ts:188


gten

gten(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

a greater than or equals b

Inherited from

u32.gten

Defined in

node_modules/@types/bn.js/index.d.ts:193


gtn

gtn(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

a greater than b

Inherited from

u32.gtn

Defined in

node_modules/@types/bn.js/index.d.ts:183


iabs

iabs(): BN

Returns

BN

Description

absolute value

Inherited from

u32.iabs

Defined in

node_modules/@types/bn.js/index.d.ts:233


iadd

iadd(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

addition

Inherited from

u32.iadd

Defined in

node_modules/@types/bn.js/index.d.ts:243


iaddn

iaddn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

addition

Inherited from

u32.iaddn

Defined in

node_modules/@types/bn.js/index.d.ts:253


iand

iand(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

and

Inherited from

u32.iand

Defined in

node_modules/@types/bn.js/index.d.ts:384


idivn

idivn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

divide

Inherited from

u32.idivn

Defined in

node_modules/@types/bn.js/index.d.ts:323


imaskn

imaskn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

clear bits with indexes higher or equal to b

Inherited from

u32.imaskn

Defined in

node_modules/@types/bn.js/index.d.ts:479


imul

imul(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

multiply

Inherited from

u32.imul

Defined in

node_modules/@types/bn.js/index.d.ts:283


imuln

imuln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

multiply

Inherited from

u32.imuln

Defined in

node_modules/@types/bn.js/index.d.ts:293


ineg

ineg(): BN

Returns

BN

Description

negate sign

Inherited from

u32.ineg

Defined in

node_modules/@types/bn.js/index.d.ts:223


inotn

inotn(w): BN

Parameters

Name Type
w number

Returns

BN

Description

not (for the width specified by w)

Inherited from

u32.inotn

Defined in

node_modules/@types/bn.js/index.d.ts:493


inspect

inspect(): Inspect

Returns

Inspect

Description

Returns a breakdown of the hex encoding for this Codec

Inherited from

u32.inspect

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:39


invm

invm(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

inverse a modulo b

Inherited from

u32.invm

Defined in

node_modules/@types/bn.js/index.d.ts:508


ior

ior(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

or

Inherited from

u32.ior

Defined in

node_modules/@types/bn.js/index.d.ts:364


isEven

isEven(): boolean

Returns

boolean

Description

check if value is even

Inherited from

u32.isEven

Defined in

node_modules/@types/bn.js/index.d.ts:128


isMax

isMax(): boolean

Returns

boolean

Description

True if this value is the max of the type

Inherited from

u32.isMax

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:43


isNeg

isNeg(): boolean

Returns

boolean

Description

true if the number is negative

Inherited from

u32.isNeg

Defined in

node_modules/@types/bn.js/index.d.ts:123


isOdd

isOdd(): boolean

Returns

boolean

Description

check if value is odd

Inherited from

u32.isOdd

Defined in

node_modules/@types/bn.js/index.d.ts:133


isZero

isZero(): boolean

Returns

boolean

Description

check if value is zero

Inherited from

u32.isZero

Defined in

node_modules/@types/bn.js/index.d.ts:138


ishln

ishln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift left

Inherited from

u32.ishln

Defined in

node_modules/@types/bn.js/index.d.ts:434


ishrn

ishrn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift right (unimplemented https://github.com/indutny/bn.js/blob/master/lib/bn.js#L2086)

Inherited from

u32.ishrn

Defined in

node_modules/@types/bn.js/index.d.ts:454


isqr

isqr(): BN

Returns

BN

Description

square

Inherited from

u32.isqr

Defined in

node_modules/@types/bn.js/index.d.ts:303


isub

isub(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

subtraction

Inherited from

u32.isub

Defined in

node_modules/@types/bn.js/index.d.ts:263


isubn

isubn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

subtraction

Inherited from

u32.isubn

Defined in

node_modules/@types/bn.js/index.d.ts:273


iuand

iuand(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

and

Inherited from

u32.iuand

Defined in

node_modules/@types/bn.js/index.d.ts:394


iuor

iuor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

or

Inherited from

u32.iuor

Defined in

node_modules/@types/bn.js/index.d.ts:374


iushln

iushln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift left

Inherited from

u32.iushln

Defined in

node_modules/@types/bn.js/index.d.ts:444


iushrn

iushrn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift right

Inherited from

u32.iushrn

Defined in

node_modules/@types/bn.js/index.d.ts:464


iuxor

iuxor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

xor

Inherited from

u32.iuxor

Defined in

node_modules/@types/bn.js/index.d.ts:419


ixor

ixor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

xor

Inherited from

u32.ixor

Defined in

node_modules/@types/bn.js/index.d.ts:409


lt

lt(b): boolean

Parameters

Name Type
b BN

Returns

boolean

Description

a less than b

Inherited from

u32.lt

Defined in

node_modules/@types/bn.js/index.d.ts:158


lte

lte(b): boolean

Parameters

Name Type
b BN

Returns

boolean

Description

a less than or equals b

Inherited from

u32.lte

Defined in

node_modules/@types/bn.js/index.d.ts:168


lten

lten(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

a less than or equals b

Inherited from

u32.lten

Defined in

node_modules/@types/bn.js/index.d.ts:173


ltn

ltn(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

a less than b

Inherited from

u32.ltn

Defined in

node_modules/@types/bn.js/index.d.ts:163


maskn

maskn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

clear bits with indexes higher or equal to b

Inherited from

u32.maskn

Defined in

node_modules/@types/bn.js/index.d.ts:474


mod

mod(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

reduct

Inherited from

u32.mod

Defined in

node_modules/@types/bn.js/index.d.ts:333


modn

modn(b): number

Parameters

Name Type
b number

Returns

number

Deprecated

Description

reduct

Inherited from

u32.modn

Defined in

node_modules/@types/bn.js/index.d.ts:344


modrn

modrn(b): number

Parameters

Name Type
b number

Returns

number

Description

reduct

Inherited from

u32.modrn

Defined in

node_modules/@types/bn.js/index.d.ts:349


mul

mul(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

multiply

Inherited from

u32.mul

Defined in

node_modules/@types/bn.js/index.d.ts:278


muln

muln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

multiply

Inherited from

u32.muln

Defined in

node_modules/@types/bn.js/index.d.ts:288


neg

neg(): BN

Returns

BN

Description

negate sign

Inherited from

u32.neg

Defined in

node_modules/@types/bn.js/index.d.ts:218


notn

notn(w): BN

Parameters

Name Type
w number

Returns

BN

Description

not (for the width specified by w)

Inherited from

u32.notn

Defined in

node_modules/@types/bn.js/index.d.ts:488


or

or(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

or

Inherited from

u32.or

Defined in

node_modules/@types/bn.js/index.d.ts:359


pow

pow(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

raise a to the power of b

Inherited from

u32.pow

Defined in

node_modules/@types/bn.js/index.d.ts:308


setn

setn(b, value): BN

Parameters

Name Type
b number
value boolean | 0 | 1

Returns

BN

Description

set specified bit to value

Inherited from

u32.setn

Defined in

node_modules/@types/bn.js/index.d.ts:424


shln

shln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift left

Inherited from

u32.shln

Defined in

node_modules/@types/bn.js/index.d.ts:429


shrn

shrn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift right

Inherited from

u32.shrn

Defined in

node_modules/@types/bn.js/index.d.ts:449


sqr

sqr(): BN

Returns

BN

Description

square

Inherited from

u32.sqr

Defined in

node_modules/@types/bn.js/index.d.ts:298


sub

sub(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

subtraction

Inherited from

u32.sub

Defined in

node_modules/@types/bn.js/index.d.ts:258


subn

subn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

subtraction

Inherited from

u32.subn

Defined in

node_modules/@types/bn.js/index.d.ts:268


testn

testn(b): boolean

Parameters

Name Type
b number

Returns

boolean

Description

test if specified bit is set

Inherited from

u32.testn

Defined in

node_modules/@types/bn.js/index.d.ts:469


toArray

toArray(endian?, length?): number[]

Parameters

Name Type
endian? Endianness
length? number

Returns

number[]

Description

convert to byte Array, and optionally zero pad to length, throwing if already exceeding

Inherited from

u32.toArray

Defined in

node_modules/@types/bn.js/index.d.ts:83


toArrayLike

toArrayLike(ArrayType, endian?, length?): Buffer

Parameters

Name Type
ArrayType BufferConstructor
endian? Endianness
length? number

Returns

Buffer

Description

convert to an instance of type, which must behave like an Array

Inherited from

u32.toArrayLike

Defined in

node_modules/@types/bn.js/index.d.ts:88

toArrayLike(ArrayType, endian?, length?): any[]

Parameters

Name Type
ArrayType any[]
endian? Endianness
length? number

Returns

any[]

Inherited from

u32.toArrayLike

Defined in

node_modules/@types/bn.js/index.d.ts:94


toBigInt

toBigInt(): bigint

Returns

bigint

Description

Returns a BigInt representation of the number

Inherited from

u32.toBigInt

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:47


toBn

toBn(): BN

Returns

BN

Description

Returns the BN representation of the number. (Compatibility)

Inherited from

u32.toBn

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:51


toBuffer

toBuffer(endian?, length?): Buffer

Parameters

Name Type
endian? Endianness
length? number

Returns

Buffer

Description

convert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)

Inherited from

u32.toBuffer

Defined in

node_modules/@types/bn.js/index.d.ts:103


toHex

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

Parameters

Name Type
isLe? boolean

Returns

`0x${string}`

Description

Returns a hex string representation of the value

Inherited from

u32.toHex

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:55


toHuman

toHuman(_isExpanded?): string

Parameters

Name Type
_isExpanded? boolean

Returns

string

Description

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

Inherited from

u32.toHuman

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:59


toJSON

toJSON(onlyHex?): any

Parameters

Name Type
onlyHex? boolean

Returns

any

Description

Converts the Object to JSON, typically used for RPC transfers

Inherited from

u32.toJSON

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:63


toNumber

toNumber(): number

Returns

number

Description

convert to Javascript Number (limited to 53 bits)

Inherited from

u32.toNumber

Defined in

node_modules/@types/bn.js/index.d.ts:73


toPrimitive

toPrimitive(): string | number

Returns

string | number

Description

Returns the value in a primitive form, either number when <= 52 bits, or string otherwise

Inherited from

u32.toPrimitive

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:67


toRawType

toRawType(): string

Returns

string

Description

Returns the base runtime type name for this instance

Inherited from

u32.toRawType

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:71


toRed

toRed(reductionContext): RedBN

Parameters

Name Type
reductionContext ReductionContext

Returns

RedBN

Description

Convert number to red

Inherited from

u32.toRed

Defined in

node_modules/@types/bn.js/index.d.ts:513


toString

toString(base?): string

Parameters

Name Type Description
base? number The base to use for the conversion

Returns

string

Description

Returns the string representation of the value

Inherited from

u32.toString

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:76


toTwos

toTwos(width): BN

Parameters

Name Type
width number

Returns

BN

Description

convert to two’s complement representation, where width is bit width

Inherited from

u32.toTwos

Defined in

node_modules/@types/bn.js/index.d.ts:208


toU8a

toU8a(_isBare?): Uint8Array

Parameters

Name Type
_isBare? boolean

Returns

Uint8Array

Description

Encodes the value as a Uint8Array as per the SCALE specifications

Inherited from

u32.toU8a

Defined in

node_modules/@polkadot/types-codec/abstract/Int.d.ts:80


uand

uand(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

and

Inherited from

u32.uand

Defined in

node_modules/@types/bn.js/index.d.ts:389


ucmp

ucmp(b): -1 | 0 | 1

Parameters

Name Type
b BN

Returns

-1 | 0 | 1

Description

compare numbers and return -1 (a < b), 0 (a == b), or 1 (a > b) depending on the comparison result

Inherited from

u32.ucmp

Defined in

node_modules/@types/bn.js/index.d.ts:148


umod

umod(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

reduct

Inherited from

u32.umod

Defined in

node_modules/@types/bn.js/index.d.ts:338


uor

uor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

or

Inherited from

u32.uor

Defined in

node_modules/@types/bn.js/index.d.ts:369


ushln

ushln(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift left

Inherited from

u32.ushln

Defined in

node_modules/@types/bn.js/index.d.ts:439


ushrn

ushrn(b): BN

Parameters

Name Type
b number

Returns

BN

Description

shift right

Inherited from

u32.ushrn

Defined in

node_modules/@types/bn.js/index.d.ts:459


uxor

uxor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

xor

Inherited from

u32.uxor

Defined in

node_modules/@types/bn.js/index.d.ts:414


xor

xor(b): BN

Parameters

Name Type
b BN

Returns

BN

Description

xor

Inherited from

u32.xor

Defined in

node_modules/@types/bn.js/index.d.ts:404


zeroBits

zeroBits(): number

Returns

number

Description

return number of less-significant consequent zero bits (example: 1010000 has 4 zero bits)

Inherited from

u32.zeroBits

Defined in

node_modules/@types/bn.js/index.d.ts:113