Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles 256-bit unsigned integers.

Hierarchy

  • U256

Index

Constructors

constructor

  • new U256(value: number | string | BigNumber | U128 | U64): U256

Properties

value

value: BigNumber

Static MAX_VALUE

MAX_VALUE: U256 = new U256(new BigNumber("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"))

Methods

eq

gt

gte

idiv

isEqualTo

isGreaterThan

isGreaterThanOrEqualTo

  • isGreaterThanOrEqualTo(rhs: U256Value): boolean

isLessThan

isLessThanOrEqualTo

  • isLessThanOrEqualTo(rhs: U256Value): boolean

lt

lte

minus

mod

plus

rlpBytes

  • rlpBytes(): Buffer

times

toEncodeObject

  • toEncodeObject(): string | number

toJSON

  • toJSON(): string

toLocaleString

  • toLocaleString(): string

toString

  • toString(base?: 10 | 16): string

Static check

  • check(param: any): boolean

Static Private checkString

  • checkString(param: string): boolean

Static ensure

Static fromBytes

  • fromBytes(buffer: Buffer): U256

Static idiv

Static minus

Static mod

Static plus

Static times

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc