Class: Int64
Hierarchy
↳
Int64
Implements
BalanceChange
Table of contents
Constructors
Properties
Accessors
Methods
- add
- assertEquals
- div
- equals
- isConstant
- isPositive
- mod
- mul
- neg
- sub
- toConstant
- toField
- toFields
- toJSON
- toString
- check
- from
- fromBigInt
- fromField
- fromFieldUnchecked
- fromJSON
- fromNumber
- fromObject
- fromString
- fromUnsigned
- ofFields
- sizeInFields
- toConstant
- toFields
- toInput
- toJSON
Constructors
constructor
• new Int64(magnitude
, sgn?
)
Parameters
Name | Type | Default value |
---|---|---|
magnitude | UInt64 | undefined |
sgn | Sign | Sign.one |
Overrides
Defined in
Properties
magnitude
• magnitude: UInt64
Implementation of
BalanceChange.magnitude
Defined in
sgn
• sgn: Sign
Implementation of
BalanceChange.sgn
Defined in
Accessors
minusOne
• Static
get
minusOne(): Int64
Returns
Defined in
one
• Static
get
one(): Int64
Returns
Defined in
zero
• Static
get
zero(): Int64
Returns
Defined in
Methods
add
▸ add(y
): Int64
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
Defined in
assertEquals
▸ assertEquals(y
): void
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
void
Overrides
Defined in
div
▸ div(y
): Int64
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
Defined in
equals
▸ equals(y
): Bool
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
Overrides
Defined in
isConstant
▸ isConstant(): boolean
Returns
boolean
Overrides
Defined in
isPositive
▸ isPositive(): Bool
Returns
Defined in
mod
▸ mod(y
): Int64
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 |
Returns
Defined in
mul
▸ mul(y
): Int64
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
Defined in
neg
▸ neg(): Int64
Returns
Defined in
sub
▸ sub(y
): Int64
Parameters
Name | Type |
---|---|
y | string | number | bigint | UInt64 | UInt32 | Int64 |
Returns
Defined in
toConstant
▸ toConstant(): Int64
Returns
Inherited from
Defined in
toField
▸ toField(): Field
Returns
Defined in
toFields
▸ toFields(): Field
[]
Returns
Field
[]
Inherited from
Defined in
toJSON
▸ toJSON(): JSONValue
Returns
JSONValue
Inherited from
Defined in
toString
▸ toString(): string
Returns
string
Defined in
check
▸ Static
check<T
>(this
, v
): void
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
void
Inherited from
Defined in
from
▸ Static
from(x
): Int64
Parameters
Name | Type |
---|---|
x | string | number | bigint | Field | UInt64 | UInt32 | Int64 |
Returns
Defined in
fromBigInt
▸ Static
fromBigInt(x
): Int64
Parameters
Name | Type |
---|---|
x | bigint |
Returns
Defined in
fromField
▸ Static
fromField(x
): Int64
Parameters
Name | Type |
---|---|
x | Field |
Returns
Defined in
fromFieldUnchecked
▸ Static
Private
fromFieldUnchecked(x
): Int64
Parameters
Name | Type |
---|---|
x | Field |
Returns
Defined in
fromJSON
▸ Static
fromJSON<T
>(this
, value
): null
| InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
value | JSONValue |
Returns
null
| InstanceType
<T
>
Inherited from
Defined in
fromNumber
▸ Static
fromNumber(x
): Int64
Parameters
Name | Type |
---|---|
x | number |
Returns
Defined in
fromObject
▸ Static
fromObject<T
>(this
, value
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
value | NonMethods <InstanceType <T >> |
Returns
InstanceType
<T
>
Inherited from
Defined in
fromString
▸ Static
fromString(x
): Int64
Parameters
Name | Type |
---|---|
x | string |
Returns
Defined in
fromUnsigned
▸ Static
fromUnsigned(x
): Int64
Parameters
Name | Type |
---|---|
x | UInt64 | UInt32 |
Returns
Defined in
ofFields
▸ Static
ofFields<T
>(this
, xs
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
xs | Field [] |
Returns
InstanceType
<T
>
Inherited from
Defined in
sizeInFields
▸ Static
sizeInFields(): number
Returns
number
Inherited from
Defined in
toConstant
▸ Static
toConstant<T
>(this
, t
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
t | InstanceType <T > |
Returns
InstanceType
<T
>
Inherited from
Defined in
toFields
▸ Static
toFields<T
>(this
, v
): Field
[]
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
Field
[]
Inherited from
Defined in
toInput
▸ Static
toInput<T
>(this
, v
): HashInput
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
HashInput
Inherited from
Defined in
toJSON
▸ Static
toJSON<T
>(this
, v
): JSONValue
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
JSONValue