@interlay/interbtc-api / Exports / InterbtcLendTokenId
Name
InterbtcLendTokenId
u32
↳ InterbtcLendTokenId
• Private
#private: any
u32.#private
node_modules/@polkadot/types-codec/abstract/Int.d.ts:12
• Readonly
__UIntType: "u32"
u32.__UIntType
node_modules/@polkadot/types-codec/primitive/U32.d.ts:9
• Optional
createdAtHash: IU8a
u32.createdAtHash
node_modules/@polkadot/types-codec/abstract/Int.d.ts:16
• Readonly
encodedLength: number
u32.encodedLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:14
• Optional
initialU8aLength: number
u32.initialU8aLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:17
• Optional
isStorageFallback: boolean
u32.isStorageFallback
node_modules/@polkadot/types-codec/abstract/Int.d.ts:18
• Readonly
isUnsigned: boolean
u32.isUnsigned
node_modules/@polkadot/types-codec/abstract/Int.d.ts:15
• Readonly
registry: Registry
u32.registry
node_modules/@polkadot/types-codec/abstract/Int.d.ts:13
• get
hash(): IU8a
IU8a
Description
returns a hash of the contents
u32.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)
u32.isEmpty
node_modules/@polkadot/types-codec/abstract/Int.d.ts:27
▸ abs(): BN
BN
Description
absolute value
u32.abs
node_modules/@types/bn.js/index.d.ts:233
▸ add(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
addition
u32.add
node_modules/@types/bn.js/index.d.ts:243
▸ addn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
addition
u32.addn
node_modules/@types/bn.js/index.d.ts:253
▸ and(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
u32.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)
u32.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
u32.bincn
node_modules/@types/bn.js/index.d.ts:488
▸ bitLength(): number
number
Description
Returns the number of bits in the value
u32.bitLength
node_modules/@polkadot/types-codec/abstract/Int.d.ts:31
▸ byteLength(): number
number
Description
return number of bytes occupied
u32.byteLength
node_modules/@types/bn.js/index.d.ts:123
▸ clone(): BN
BN
Description
clone number
u32.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
u32.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
u32.cmpn
node_modules/@types/bn.js/index.d.ts:158
▸ copy(dest
): void
Name | Type |
---|---|
dest |
BN |
void
Description
Copy to dest number
u32.copy
node_modules/@types/bn.js/index.d.ts:63
▸ div(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
divide
u32.div
node_modules/@types/bn.js/index.d.ts:318
▸ divRound(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
rounded division
u32.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
u32.divmod
node_modules/@types/bn.js/index.d.ts:333
▸ divn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
divide
u32.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: ... })
u32.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
u32.eq
node_modules/@polkadot/types-codec/abstract/Int.d.ts:35
▸ eqn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a equals b
u32.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
u32.fromTwos
node_modules/@types/bn.js/index.d.ts:218
▸ gcd(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
GCD
u32.gcd
node_modules/@types/bn.js/index.d.ts:503
▸ gt(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a greater than b
u32.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
u32.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
u32.gten
node_modules/@types/bn.js/index.d.ts:198
▸ gtn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a greater than b
u32.gtn
node_modules/@types/bn.js/index.d.ts:188
▸ iabs(): BN
BN
Description
absolute value
u32.iabs
node_modules/@types/bn.js/index.d.ts:238
▸ iadd(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
addition
u32.iadd
node_modules/@types/bn.js/index.d.ts:248
▸ iaddn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
addition
u32.iaddn
node_modules/@types/bn.js/index.d.ts:258
▸ iand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
u32.iand
node_modules/@types/bn.js/index.d.ts:389
▸ idivn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
divide
u32.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
u32.imaskn
node_modules/@types/bn.js/index.d.ts:484
▸ imul(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
multiply
u32.imul
node_modules/@types/bn.js/index.d.ts:288
▸ imuln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
multiply
u32.imuln
node_modules/@types/bn.js/index.d.ts:298
▸ ineg(): BN
BN
Description
negate sign
u32.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
)
u32.inotn
node_modules/@types/bn.js/index.d.ts:498
▸ inspect(): Inspect
Inspect
Description
Returns a breakdown of the hex encoding for this Codec
u32.inspect
node_modules/@polkadot/types-codec/abstract/Int.d.ts:39
▸ invm(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
inverse a
modulo b
u32.invm
node_modules/@types/bn.js/index.d.ts:513
▸ ior(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
u32.ior
node_modules/@types/bn.js/index.d.ts:369
▸ isEven(): boolean
boolean
Description
check if value is even
u32.isEven
node_modules/@types/bn.js/index.d.ts:133
▸ isMax(): boolean
boolean
Description
True if this value is the max of the type
u32.isMax
node_modules/@polkadot/types-codec/abstract/Int.d.ts:43
▸ isNeg(): boolean
boolean
Description
true if the number is negative
u32.isNeg
node_modules/@types/bn.js/index.d.ts:128
▸ isOdd(): boolean
boolean
Description
check if value is odd
u32.isOdd
node_modules/@types/bn.js/index.d.ts:138
▸ isZero(): boolean
boolean
Description
check if value is zero
u32.isZero
node_modules/@types/bn.js/index.d.ts:143
▸ ishln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
u32.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)
u32.ishrn
node_modules/@types/bn.js/index.d.ts:459
▸ isqr(): BN
BN
Description
square
u32.isqr
node_modules/@types/bn.js/index.d.ts:308
▸ isub(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
subtraction
u32.isub
node_modules/@types/bn.js/index.d.ts:268
▸ isubn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
subtraction
u32.isubn
node_modules/@types/bn.js/index.d.ts:278
▸ iuand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
u32.iuand
node_modules/@types/bn.js/index.d.ts:399
▸ iuor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
u32.iuor
node_modules/@types/bn.js/index.d.ts:379
▸ iushln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
u32.iushln
node_modules/@types/bn.js/index.d.ts:449
▸ iushrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
u32.iushrn
node_modules/@types/bn.js/index.d.ts:469
▸ iuxor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
u32.iuxor
node_modules/@types/bn.js/index.d.ts:424
▸ ixor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
u32.ixor
node_modules/@types/bn.js/index.d.ts:414
▸ lt(b
): boolean
Name | Type |
---|---|
b |
BN |
boolean
Description
a less than b
u32.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
u32.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
u32.lten
node_modules/@types/bn.js/index.d.ts:178
▸ ltn(b
): boolean
Name | Type |
---|---|
b |
number |
boolean
Description
a less than b
u32.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
u32.maskn
node_modules/@types/bn.js/index.d.ts:479
▸ mod(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
reduct
u32.mod
node_modules/@types/bn.js/index.d.ts:338
▸ modn(b
): number
Name | Type |
---|---|
b |
number |
number
Deprecated
Description
reduct
u32.modn
node_modules/@types/bn.js/index.d.ts:349
▸ modrn(b
): number
Name | Type |
---|---|
b |
number |
number
Description
reduct
u32.modrn
node_modules/@types/bn.js/index.d.ts:354
▸ mul(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
multiply
u32.mul
node_modules/@types/bn.js/index.d.ts:283
▸ muln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
multiply
u32.muln
node_modules/@types/bn.js/index.d.ts:293
▸ neg(): BN
BN
Description
negate sign
u32.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
)
u32.notn
node_modules/@types/bn.js/index.d.ts:493
▸ or(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
u32.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
u32.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
u32.setn
node_modules/@types/bn.js/index.d.ts:429
▸ shln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
u32.shln
node_modules/@types/bn.js/index.d.ts:434
▸ shrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
u32.shrn
node_modules/@types/bn.js/index.d.ts:454
▸ sqr(): BN
BN
Description
square
u32.sqr
node_modules/@types/bn.js/index.d.ts:303
▸ sub(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
subtraction
u32.sub
node_modules/@types/bn.js/index.d.ts:263
▸ subn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
subtraction
u32.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
u32.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
u32.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
u32.toArrayLike
node_modules/@types/bn.js/index.d.ts:93
▸ toArrayLike(ArrayType
, endian?
, length?
): any
[]
Name | Type |
---|---|
ArrayType |
any [] |
endian? |
Endianness |
length? |
number |
any
[]
u32.toArrayLike
node_modules/@types/bn.js/index.d.ts:99
▸ toBigInt(): bigint
bigint
Description
Returns a BigInt representation of the number
u32.toBigInt
node_modules/@polkadot/types-codec/abstract/Int.d.ts:47
▸ toBn(): BN
BN
Description
Returns the BN representation of the number. (Compatibility)
u32.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)
u32.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
u32.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
u32.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
u32.toJSON
node_modules/@polkadot/types-codec/abstract/Int.d.ts:63
▸ toNumber(): number
number
Description
convert to Javascript Number (limited to 53 bits)
u32.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
u32.toPrimitive
node_modules/@polkadot/types-codec/abstract/Int.d.ts:67
▸ toRawType(): string
string
Description
Returns the base runtime type name for this instance
u32.toRawType
node_modules/@polkadot/types-codec/abstract/Int.d.ts:71
▸ toRed(reductionContext
): RedBN
Name | Type |
---|---|
reductionContext |
ReductionContext |
RedBN
Description
Convert number to red
u32.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
u32.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
u32.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
u32.toU8a
node_modules/@polkadot/types-codec/abstract/Int.d.ts:80
▸ uand(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
and
u32.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
u32.ucmp
node_modules/@types/bn.js/index.d.ts:153
▸ umod(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
reduct
u32.umod
node_modules/@types/bn.js/index.d.ts:343
▸ uor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
or
u32.uor
node_modules/@types/bn.js/index.d.ts:374
▸ ushln(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift left
u32.ushln
node_modules/@types/bn.js/index.d.ts:444
▸ ushrn(b
): BN
Name | Type |
---|---|
b |
number |
BN
Description
shift right
u32.ushrn
node_modules/@types/bn.js/index.d.ts:464
▸ uxor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
u32.uxor
node_modules/@types/bn.js/index.d.ts:419
▸ xor(b
): BN
Name | Type |
---|---|
b |
BN |
BN
Description
xor
u32.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)
u32.zeroBits
node_modules/@types/bn.js/index.d.ts:118