@interlay/interbtc-api / Exports / Liquidity
Name
Liquidity
FixedU128
↳ Liquidity
• Private
#private: any
FixedU128.#private
node_modules/@polkadot/types-codec/abstract/Int.d.ts:12
• Optional
createdAtHash: IU8a
FixedU128.createdAtHash
node_modules/@polkadot/types-codec/abstract/Int.d.ts:16
• Readonly
encodedLength: number
FixedU128.encodedLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:14
• Optional
initialU8aLength: number
FixedU128.initialU8aLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:17
• Optional
isStorageFallback: boolean
FixedU128.isStorageFallback
node_modules/@polkadot/types-codec/abstract/Int.d.ts:18
• Readonly
isUnsigned: boolean
FixedU128.isUnsigned
node_modules/@polkadot/types-codec/abstract/Int.d.ts:15
• Readonly
registry: Registry
FixedU128.registry
node_modules/@polkadot/types-codec/abstract/Int.d.ts:13
• get
hash(): IU8a
IU8a
Description
returns a hash of the contents
FixedU128.hash
node_modules/@polkadot/types-codec/abstract/Int.d.ts:23
• get
isEmpty(): boolean
boolean
Description
Checks if the value is a zero value (align elsewhere)
FixedU128.isEmpty
node_modules/@polkadot/types-codec/abstract/Int.d.ts:27
▸ abs(): BN
BN
Description
absolute value
FixedU128.abs
node_modules/@types/bn.js/index.d.ts:233
▸ add(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
addition
FixedU128.add
node_modules/@types/bn.js/index.d.ts:243
▸ addn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
addition
FixedU128.addn
node_modules/@types/bn.js/index.d.ts:253
▸ and(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
FixedU128.and
node_modules/@types/bn.js/index.d.ts:384
▸ andln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
and (NOTE: andln
is going to be replaced with andn
in future)
FixedU128.andln
node_modules/@types/bn.js/index.d.ts:404
▸ bincn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
add 1 << b
to the number
FixedU128.bincn
node_modules/@types/bn.js/index.d.ts:488
▸ bitLength(): number
number
Description
Returns the number of bits in the value
FixedU128.bitLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:31
▸ byteLength(): number
number
Description
return number of bytes occupied
FixedU128.byteLength
node_modules/@types/bn.js/index.d.ts:123
▸ clone(): BN
BN
Description
clone number
FixedU128.clone
node_modules/@types/bn.js/index.d.ts:68
▸ cmp(b
): -1
| 0
| 1
Name | Type |
---|---|
b |
BN |
-1
| 0
| 1
Description
compare numbers and return -1 (a < b)
, 0 (a == b)
, or 1 (a > b)
depending on the comparison result
FixedU128.cmp
node_modules/@types/bn.js/index.d.ts:148
▸ cmpn(b
): -1
| 0
| 1
Name | Type |
---|---|
b |
number |
-1
| 0
| 1
Description
compare numbers and return -1 (a < b)
, 0 (a == b)
, or 1 (a > b)
depending on the comparison result
FixedU128.cmpn
node_modules/@types/bn.js/index.d.ts:158
▸ copy(dest
): void
Name | Type |
---|---|
dest |
BN |
void
Description
Copy to dest number
FixedU128.copy
node_modules/@types/bn.js/index.d.ts:63
▸ div(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
divide
FixedU128.div
node_modules/@types/bn.js/index.d.ts:318
▸ divRound(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
rounded division
FixedU128.divRound
node_modules/@types/bn.js/index.d.ts:359
▸ divmod(b
, mode?
, positive?
): Object
Name | Type |
---|---|
b |
BN |
mode? |
"div" | "mod" |
positive? |
boolean |
Object
Name | Type |
---|---|
div |
BN |
mod |
BN |
Description
division with remainder
FixedU128.divmod
node_modules/@types/bn.js/index.d.ts:333
▸ divn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
divide
FixedU128.divn
node_modules/@types/bn.js/index.d.ts:323
▸ egcd(b
): Object
Name | Type |
---|---|
b |
BN |
Object
Name | Type |
---|---|
a |
BN |
b |
BN |
gcd |
BN |
Description
Extended GCD results ({ a: ..., b: ..., gcd: ... })
FixedU128.egcd
node_modules/@types/bn.js/index.d.ts:508
▸ eq(other?
): boolean
Name | Type |
---|---|
other? |
unknown |
boolean
Description
Compares the value of the input to see if there is a match
FixedU128.eq
node_modules/@polkadot/types-codec/abstract/Int.d.ts:35
▸ eqn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a equals b
FixedU128.eqn
node_modules/@types/bn.js/index.d.ts:208
▸ fromTwos(width
): BN
Name | Type |
---|---|
width |
number |
BN
Description
convert from two’s complement representation, where width is the bit width
FixedU128.fromTwos
node_modules/@types/bn.js/index.d.ts:218
▸ gcd(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
GCD
FixedU128.gcd
node_modules/@types/bn.js/index.d.ts:503
▸ gt(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a greater than b
FixedU128.gt
node_modules/@types/bn.js/index.d.ts:183
▸ gte(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a greater than or equals b
FixedU128.gte
node_modules/@types/bn.js/index.d.ts:193
▸ gten(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a greater than or equals b
FixedU128.gten
node_modules/@types/bn.js/index.d.ts:198
▸ gtn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a greater than b
FixedU128.gtn
node_modules/@types/bn.js/index.d.ts:188
▸ iabs(): BN
BN
Description
absolute value
FixedU128.iabs
node_modules/@types/bn.js/index.d.ts:238
▸ iadd(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
addition
FixedU128.iadd
node_modules/@types/bn.js/index.d.ts:248
▸ iaddn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
addition
FixedU128.iaddn
node_modules/@types/bn.js/index.d.ts:258
▸ iand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
FixedU128.iand
node_modules/@types/bn.js/index.d.ts:389
▸ idivn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
divide
FixedU128.idivn
node_modules/@types/bn.js/index.d.ts:328
▸ imaskn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
clear bits with indexes higher or equal to b
FixedU128.imaskn
node_modules/@types/bn.js/index.d.ts:484
▸ imul(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
multiply
FixedU128.imul
node_modules/@types/bn.js/index.d.ts:288
▸ imuln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
multiply
FixedU128.imuln
node_modules/@types/bn.js/index.d.ts:298
▸ ineg(): BN
BN
Description
negate sign
FixedU128.ineg
node_modules/@types/bn.js/index.d.ts:228
▸ inotn(w
): BN
Name | Type |
---|---|
w |
number |
BN
Description
not (for the width specified by w
)
FixedU128.inotn
node_modules/@types/bn.js/index.d.ts:498
▸ inspect(): Inspect
Inspect
Description
Returns a breakdown of the hex encoding for this Codec
FixedU128.inspect
node_modules/@polkadot/types-codec/abstract/Int.d.ts:39
▸ invm(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
inverse a
modulo b
FixedU128.invm
node_modules/@types/bn.js/index.d.ts:513
▸ ior(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
FixedU128.ior
node_modules/@types/bn.js/index.d.ts:369
▸ isEven(): boolean
boolean
Description
check if value is even
FixedU128.isEven
node_modules/@types/bn.js/index.d.ts:133
▸ isMax(): boolean
boolean
Description
True if this value is the max of the type
FixedU128.isMax
node_modules/@polkadot/types-codec/abstract/Int.d.ts:43
▸ isNeg(): boolean
boolean
Description
true if the number is negative
FixedU128.isNeg
node_modules/@types/bn.js/index.d.ts:128
▸ isOdd(): boolean
boolean
Description
check if value is odd
FixedU128.isOdd
node_modules/@types/bn.js/index.d.ts:138
▸ isZero(): boolean
boolean
Description
check if value is zero
FixedU128.isZero
node_modules/@types/bn.js/index.d.ts:143
▸ ishln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
FixedU128.ishln
node_modules/@types/bn.js/index.d.ts:439
▸ ishrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right (unimplemented https://github.com/indutny/bn.js/blob/master/lib/bn.js#L2086)
FixedU128.ishrn
node_modules/@types/bn.js/index.d.ts:459
▸ isqr(): BN
BN
Description
square
FixedU128.isqr
node_modules/@types/bn.js/index.d.ts:308
▸ isub(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
subtraction
FixedU128.isub
node_modules/@types/bn.js/index.d.ts:268
▸ isubn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
subtraction
FixedU128.isubn
node_modules/@types/bn.js/index.d.ts:278
▸ iuand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
FixedU128.iuand
node_modules/@types/bn.js/index.d.ts:399
▸ iuor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
FixedU128.iuor
node_modules/@types/bn.js/index.d.ts:379
▸ iushln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
FixedU128.iushln
node_modules/@types/bn.js/index.d.ts:449
▸ iushrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
FixedU128.iushrn
node_modules/@types/bn.js/index.d.ts:469
▸ iuxor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
FixedU128.iuxor
node_modules/@types/bn.js/index.d.ts:424
▸ ixor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
FixedU128.ixor
node_modules/@types/bn.js/index.d.ts:414
▸ lt(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a less than b
FixedU128.lt
node_modules/@types/bn.js/index.d.ts:163
▸ lte(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a less than or equals b
FixedU128.lte
node_modules/@types/bn.js/index.d.ts:173
▸ lten(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a less than or equals b
FixedU128.lten
node_modules/@types/bn.js/index.d.ts:178
▸ ltn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a less than b
FixedU128.ltn
node_modules/@types/bn.js/index.d.ts:168
▸ maskn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
clear bits with indexes higher or equal to b
FixedU128.maskn
node_modules/@types/bn.js/index.d.ts:479
▸ mod(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
reduct
FixedU128.mod
node_modules/@types/bn.js/index.d.ts:338
▸ modn(b
): number
Name | Type |
---|---|
b |
number |
number
Deprecated
Description
reduct
FixedU128.modn
node_modules/@types/bn.js/index.d.ts:349
▸ modrn(b
): number
Name | Type |
---|---|
b |
number |
number
Description
reduct
FixedU128.modrn
node_modules/@types/bn.js/index.d.ts:354
▸ mul(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
multiply
FixedU128.mul
node_modules/@types/bn.js/index.d.ts:283
▸ muln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
multiply
FixedU128.muln
node_modules/@types/bn.js/index.d.ts:293
▸ neg(): BN
BN
Description
negate sign
FixedU128.neg
node_modules/@types/bn.js/index.d.ts:223
▸ notn(w
): BN
Name | Type |
---|---|
w |
number |
BN
Description
not (for the width specified by w
)
FixedU128.notn
node_modules/@types/bn.js/index.d.ts:493
▸ or(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
FixedU128.or
node_modules/@types/bn.js/index.d.ts:364
▸ pow(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
raise a
to the power of b
FixedU128.pow
node_modules/@types/bn.js/index.d.ts:313
▸ setn(b
, value
): BN
Name | Type |
---|---|
b |
number |
value |
boolean | 0 | 1 |
BN
Description
set specified bit to value
FixedU128.setn
node_modules/@types/bn.js/index.d.ts:429
▸ shln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
FixedU128.shln
node_modules/@types/bn.js/index.d.ts:434
▸ shrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
FixedU128.shrn
node_modules/@types/bn.js/index.d.ts:454
▸ sqr(): BN
BN
Description
square
FixedU128.sqr
node_modules/@types/bn.js/index.d.ts:303
▸ sub(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
subtraction
FixedU128.sub
node_modules/@types/bn.js/index.d.ts:263
▸ subn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
subtraction
FixedU128.subn
node_modules/@types/bn.js/index.d.ts:273
▸ testn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
test if specified bit is set
FixedU128.testn
node_modules/@types/bn.js/index.d.ts:474
▸ toArray(endian?
, length?
): number
[]
Name | Type |
---|---|
endian? |
Endianness |
length? |
number |
number
[]
Description
convert to byte Array, and optionally zero pad to length, throwing if already exceeding
FixedU128.toArray
node_modules/@types/bn.js/index.d.ts:88
▸ toArrayLike(ArrayType
, endian?
, length?
): Buffer
Name | Type |
---|---|
ArrayType |
BufferConstructor |
endian? |
Endianness |
length? |
number |
Buffer
Description
convert to an instance of type
, which must behave like an Array
FixedU128.toArrayLike
node_modules/@types/bn.js/index.d.ts:93
▸ toArrayLike(ArrayType
, endian?
, length?
): any
[]
Name | Type |
---|---|
ArrayType |
any [] |
endian? |
Endianness |
length? |
number |
any
[]
FixedU128.toArrayLike
node_modules/@types/bn.js/index.d.ts:99
▸ toBigInt(): bigint
bigint
Description
Returns a BigInt representation of the number
FixedU128.toBigInt
node_modules/@polkadot/types-codec/abstract/Int.d.ts:47
▸ toBn(): BN
BN
Description
Returns the BN representation of the number. (Compatibility)
FixedU128.toBn
node_modules/@polkadot/types-codec/abstract/Int.d.ts:51
▸ toBuffer(endian?
, length?
): Buffer
Name | Type |
---|---|
endian? |
Endianness |
length? |
number |
Buffer
Description
convert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)
FixedU128.toBuffer
node_modules/@types/bn.js/index.d.ts:108
▸ toHex(isLe?
): `0x${string}`
Name | Type |
---|---|
isLe? |
boolean |
`0x${string}`
Description
Returns a hex string representation of the value
FixedU128.toHex
node_modules/@polkadot/types-codec/abstract/Int.d.ts:55
▸ toHuman(_isExpanded?
): string
Name | Type |
---|---|
_isExpanded? |
boolean |
string
Description
Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
FixedU128.toHuman
node_modules/@polkadot/types-codec/abstract/Int.d.ts:59
▸ toJSON(onlyHex?
): any
Name | Type |
---|---|
onlyHex? |
boolean |
any
Description
Converts the Object to JSON, typically used for RPC transfers
FixedU128.toJSON
node_modules/@polkadot/types-codec/abstract/Int.d.ts:63
▸ toNumber(): number
number
Description
convert to Javascript Number (limited to 53 bits)
FixedU128.toNumber
node_modules/@types/bn.js/index.d.ts:78
▸ toPrimitive(): string
| number
string
| number
Description
Returns the value in a primitive form, either number when <= 52 bits, or string otherwise
FixedU128.toPrimitive
node_modules/@polkadot/types-codec/abstract/Int.d.ts:67
▸ toRawType(): string
string
Description
Returns the base runtime type name for this instance
FixedU128.toRawType
node_modules/@polkadot/types-codec/abstract/Int.d.ts:71
▸ toRed(reductionContext
): RedBN
Name | Type |
---|---|
reductionContext |
ReductionContext |
RedBN
Description
Convert number to red
FixedU128.toRed
node_modules/@types/bn.js/index.d.ts:518
▸ toString(base?
): string
Name | Type | Description |
---|---|---|
base? |
number |
The base to use for the conversion |
string
Description
Returns the string representation of the value
FixedU128.toString
node_modules/@polkadot/types-codec/abstract/Int.d.ts:76
▸ toTwos(width
): BN
Name | Type |
---|---|
width |
number |
BN
Description
convert to two’s complement representation, where width is bit width
FixedU128.toTwos
node_modules/@types/bn.js/index.d.ts:213
▸ toU8a(_isBare?
): Uint8Array
Name | Type |
---|---|
_isBare? |
boolean |
Uint8Array
Description
Encodes the value as a Uint8Array as per the SCALE specifications
FixedU128.toU8a
node_modules/@polkadot/types-codec/abstract/Int.d.ts:80
▸ uand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
FixedU128.uand
node_modules/@types/bn.js/index.d.ts:394
▸ ucmp(b
): -1
| 0
| 1
Name | Type |
---|---|
b |
BN |
-1
| 0
| 1
Description
compare numbers and return -1 (a < b)
, 0 (a == b)
, or 1 (a > b)
depending on the comparison result
FixedU128.ucmp
node_modules/@types/bn.js/index.d.ts:153
▸ umod(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
reduct
FixedU128.umod
node_modules/@types/bn.js/index.d.ts:343
▸ uor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
FixedU128.uor
node_modules/@types/bn.js/index.d.ts:374
▸ ushln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
FixedU128.ushln
node_modules/@types/bn.js/index.d.ts:444
▸ ushrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
FixedU128.ushrn
node_modules/@types/bn.js/index.d.ts:464
▸ uxor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
FixedU128.uxor
node_modules/@types/bn.js/index.d.ts:419
▸ xor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
FixedU128.xor
node_modules/@types/bn.js/index.d.ts:409
▸ zeroBits(): number
number
Description
return number of less-significant consequent zero bits (example: 1010000 has 4 zero bits)
FixedU128.zeroBits
node_modules/@types/bn.js/index.d.ts:118