Class: UInt32
Hierarchy
↳
UInt32
Table of contents
Constructors
Properties
Accessors
Methods
- add
- assertEquals
- assertGt
- assertGte
- assertLt
- assertLte
- div
- divMod
- equals
- gt
- gte
- isConstant
- lt
- lte
- mod
- mul
- sub
- toConstant
- toFields
- toJSON
- toString
- toUInt64
- MAXINT
- check
- checkConstant
- from
- fromBigInt
- fromJSON
- fromNumber
- fromObject
- fromString
- ofFields
- sizeInFields
- toConstant
- toFields
- toInput
- toJSON
Constructors
constructor
• new UInt32(...props
)
Parameters
Name | Type |
---|---|
...props | any [] |
Inherited from
Defined in
Properties
value
• value: Field
Defined in
NUM_BITS
▪ Static
NUM_BITS: number
= 32
Defined in
Accessors
one
• Static
get
one(): UInt32
Returns
Defined in
zero
• Static
get
zero(): UInt32
Returns
Defined in
Methods
add
▸ add(y
): UInt32
Parameters
Name | Type |
---|---|
y | number | UInt32 |
Returns
Defined in
assertEquals
▸ assertEquals(x
): void
Parameters
Name | Type |
---|---|
x | UInt32 |
Returns
void
Inherited from
Defined in
assertGt
▸ assertGt(y
): void
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
void
Defined in
assertGte
▸ assertGte(y
): void
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
void
Defined in
assertLt
▸ assertLt(y
): void
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
void
Defined in
assertLte
▸ assertLte(y
): void
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
void
Defined in
div
▸ div(y
): UInt32
Parameters
Name | Type |
---|---|
y | number | UInt32 |
Returns
Defined in
divMod
▸ divMod(y
): Object
Parameters
Name | Type |
---|---|
y | string | number | UInt32 |
Returns
Object
Name | Type |
---|---|
quotient | UInt32 |
rest | UInt32 |
Defined in
equals
▸ equals(x
): Bool
Parameters
Name | Type |
---|---|
x | UInt32 |
Returns
Inherited from
Defined in
gt
▸ gt(y
): Bool
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
Defined in
gte
▸ gte(y
): Bool
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
Defined in
isConstant
▸ isConstant(): boolean
Returns
boolean
Inherited from
Defined in
lt
▸ lt(y
): Bool
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
Defined in
lte
▸ lte(y
): Bool
Parameters
Name | Type |
---|---|
y | UInt32 |
Returns
Defined in
mod
▸ mod(y
): UInt32
Parameters
Name | Type |
---|---|
y | number | UInt32 |
Returns
Defined in
mul
▸ mul(y
): UInt32
Parameters
Name | Type |
---|---|
y | number | UInt32 |
Returns
Defined in
sub
▸ sub(y
): UInt32
Parameters
Name | Type |
---|---|
y | number | UInt32 |
Returns
Defined in
toConstant
▸ toConstant(): UInt32
Returns
Inherited from
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
toUInt64
▸ toUInt64(): UInt64
Returns
Defined in
MAXINT
▸ Static
MAXINT(): UInt32
Returns
Defined in
check
▸ Static
check(x
): void
Parameters
Name | Type |
---|---|
x | UInt32 |
Returns
void
Overrides
Defined in
checkConstant
▸ Static
Private
checkConstant(x
): Field
Parameters
Name | Type |
---|---|
x | Field |
Returns
Defined in
from
▸ Static
from(x
): UInt32
Parameters
Name | Type |
---|---|
x | string | number | bigint | Field | UInt32 |
Returns
Defined in
fromBigInt
▸ Static
fromBigInt(x
): UInt32
Parameters
Name | Type |
---|---|
x | bigint |
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
): UInt32
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
): UInt32
Parameters
Name | Type |
---|---|
x | string |
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(x
): HashInput
Parameters
Name | Type |
---|---|
x | UInt32 |
Returns
HashInput
Overrides
Defined in
toJSON
▸ Static
toJSON(x
): string
Parameters
Name | Type |
---|---|
x | UInt32 |
Returns
string