The underlying BN.js instance – don't modify this
directly – take a copy first using .clone().
StaticabiStaticbackgroundStaticbroadcastStaticbyteStaticisNumber as bytes in little endian (matches memory layout in C++ contract).
StaticmaxLargest value that can be represented by this integer type.
StaticminSmallest value that can be represented by this integer type.
StaticzeroReturn a zero value of this type
Mutating add.
Non-mutating add.
Compare two integers, if strict is set to true the test will only consider integers of the exact same type. I.e. Int64.from(1).equals(UInt64.from(1)) will return false.
Optionalstrict: booleanGreater than comparision operator
Greater than or equal comparision operator
Less than comparision operator
Less than or equal comparision operator
Mutating multiply.
Non-mutating multiply.
Mutating subtract.
Non-mutating subtract.
Called when encoding to binary abi format.
Called when encoding to json abi format.
Returns a string representation of an object.
StaticabiStaticaddAdd lhs to rhs and return the resulting value.
Optionaloverflow: OverflowBehaviorStaticdivStaticdivStaticdivStaticfromCreate a new instance from value.
Value to create new Int instance from, can be a string, number, little-endian byte array or another Int instance.
Optionaloverflow: OverflowBehavior
How to handle integer overflow, default behavior is to throw.
Create a new instance from value.
Value to create new Int instance from, can be a string, number, little-endian byte array or another Int instance.
Optionaloverflow: OverflowBehavior
How to handle integer overflow, default behavior is to throw.
StaticfromStaticgtCompare lhs to rhs and return true if lhs is greater than rhs.
StaticgteCompare lhs to rhs and return true if lhs is greater than or equal to rhs.
StaticltCompare lhs to rhs and return true if lhs is less than rhs.
StaticlteCompare lhs to rhs and return true if lhs is less than or equal to rhs.
StaticmulMultiply lhs by rhs and return the resulting value.
Optionaloverflow: OverflowBehaviorStaticrandomStaticsubAdd lhs to rhs and return the resulting value.
Optionaloverflow: OverflowBehavior
Create a new instance, don't use this directly. Use the
.fromfactory method instead.