Constructors
constructor
- new U128(value: number | string | BigNumber | U64): U128
-
Parameters
-
value: number | string | BigNumber | U64
Properties
Static MAX_VALUE
MAX_
VALUE: U128 = new U128(new BigNumber("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"))
Methods
eq
-
Parameters
Returns boolean
gt
-
Parameters
Returns boolean
gte
-
Parameters
Returns boolean
isEqualTo
-
Parameters
Returns boolean
isGreaterThan
-
Parameters
Returns boolean
isGreaterThanOrEqualTo
- isGreaterThanOrEqualTo(rhs: U128Value): boolean
-
Parameters
Returns boolean
isLessThan
-
Parameters
Returns boolean
isLessThanOrEqualTo
-
Parameters
Returns boolean
lt
-
Parameters
Returns boolean
lte
-
Parameters
Returns boolean
toEncodeObject
- toEncodeObject(): string | number
toString
- toString(base?: 10 | 16): string
-
Parameters
Returns string
Static check
- check(param: any): boolean
-
Parameters
Returns boolean
Static Private checkString
- checkString(param: string): boolean
-
Parameters
Returns boolean
Static fromBytes
- fromBytes(buffer: Buffer): U128
Handles 128-bit unsigned integers. Used to express nonce, asset amount, etc.