Typed
The Typed class to wrap values providing explicit type information.
Properties
Property | Modifier | Type | Description |
---|---|---|---|
type | readonly | string | The type, as a Solidity-compatible type. |
value | readonly | any | The actual value. |
Accessors
arrayLength
get arrayLength(): null | number
Returns the length of a typed array.
Throws
If this is not an array.
Returns
null
| number
The length of the array type or -1
if it is dynamic.
Source
tupleName
get tupleName(): null | string
Returns the tuple name.
Throws
If this is not a tuple.
Returns
null
| string
The tuple name if this is a tuple.
Source
Methods
defaultValue()
defaultValue(): string | number | bigint | Result
The default value returned by this type.
Returns
string
| number
| bigint
| Result
The default value for this type.
Source
format()
format(): string
Format the type as a Human-Readable type.
Returns
string
The human-readable type for the provided type.
Throws
If the type is array or dynamic array.
Source
isBigInt()
isBigInt(): this is TypedBigInt
Returns whether this is a TypedBigInt | TypedBigInt. If true, a type guard is provided.
Returns
this is TypedBigInt
true
if this is a big integer.
Source
isData()
isData(): this is TypedData
Returns whether this is a TypedData | TypedData. If true, a type guard is provided.
Returns
this is TypedData
true
if this is a number.
Source
isString()
isString(): this is TypedString
Return whether this is a TypedString | TypedString. If true, a type guard is provided.
Returns
this is TypedString
true
if this is a string.
Source
maxValue()
maxValue(): string | number | bigint
The maximum value for numeric types.
Returns
string
| number
| bigint
The maximum value for the provided numeric type.
Source
minValue()
minValue(): string | number | bigint
The minimum value for numeric types.
Returns
string
| number
| bigint
The minimum value for the provided numeric type.
Source
address()
static address(v): Typed
Return a new address
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | string | Addressable | The value to convert to an address . |
Returns
A new address
type for v
.
Source
array()
static array(v, dynamic?): Typed
Return a new array
type for v, allowing dynamic length.
Parameters
Parameter | Type | Description |
---|---|---|
v | any [] | The value to convert to an array . |
dynamic ? | null | boolean | Whether the array is dynamic. |
Returns
A new array
type for v
.
Source
bool()
static bool(v): Typed
Return a new bool
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | any | The value to convert to a bool . |
Returns
A new bool
type for v
.
Source
bytes()
static bytes(v): Typed
Return a new bytes
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes . |
Returns
A new bytes
type for v
.
Source
bytes1()
static bytes1(v): Typed
Return a new bytes1
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes1 . |
Returns
A new bytes1
type for v
.
Source
bytes10()
static bytes10(v): Typed
Return a new bytes10
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes10 . |
Returns
A new bytes10
type for v
.
Source
bytes11()
static bytes11(v): Typed
Return a new bytes11
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes11 . |
Returns
A new bytes11
type for v
.
Source
bytes12()
static bytes12(v): Typed
Return a new bytes12
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes12 . |
Returns
A new bytes12
type for v
.
Source
bytes13()
static bytes13(v): Typed
Return a new bytes13
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes13 . |
Returns
A new bytes13
type for v
.
Source
bytes14()
static bytes14(v): Typed
Return a new bytes14
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes14 . |
Returns
A new bytes14
type for v
.
Source
bytes15()
static bytes15(v): Typed
Return a new bytes15
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes15 . |
Returns
A new bytes15
type for v
.
Source
bytes16()
static bytes16(v): Typed
Return a new bytes16
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes16 . |
Returns
A new bytes16
type for v
.
Source
bytes17()
static bytes17(v): Typed
Return a new bytes17
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes17 . |
Returns
A new bytes17
type for v
.
Source
bytes18()
static bytes18(v): Typed
Return a new bytes18
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes18 . |
Returns
A new bytes18
type for v
.
Source
bytes19()
static bytes19(v): Typed
Return a new bytes19
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes19 . |
Returns
A new bytes19
type for v
.
Source
bytes2()
static bytes2(v): Typed
Return a new bytes2
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes2 . |
Returns
A new bytes2
type for v
.
Source
bytes20()
static bytes20(v): Typed
Return a new bytes20
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes20 . |
Returns
A new bytes20
type for v
.
Source
bytes21()
static bytes21(v): Typed
Return a new bytes21
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes21 . |
Returns
A new bytes21
type for v
.
Source
bytes22()
static bytes22(v): Typed
Return a new bytes22
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes22 . |
Returns
A new bytes22
type for v
.
Source
bytes23()
static bytes23(v): Typed
Return a new bytes23
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes23 . |
Returns
A new bytes23
type for v
.
Source
bytes24()
static bytes24(v): Typed
Return a new bytes24
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes24 . |
Returns
A new bytes24
type for v
.
Source
bytes25()
static bytes25(v): Typed
Return a new bytes25
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes25 . |
Returns
A new bytes25
type for v
.
Source
bytes26()
static bytes26(v): Typed
Return a new bytes26
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes26 . |
Returns
A new bytes26
type for v
.
Source
bytes27()
static bytes27(v): Typed
Return a new bytes27
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes27 . |
Returns
A new bytes27
type for v
.
Source
bytes28()
static bytes28(v): Typed
Return a new bytes28
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes28 . |
Returns
A new bytes28
type for v
.
Source
bytes29()
static bytes29(v): Typed
Return a new bytes29
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes29 . |
Returns
A new bytes29
type for v
.
Source
bytes3()
static bytes3(v): Typed
Return a new bytes3
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes3 . |
Returns
A new bytes3
type for v
.
Source
bytes30()
static bytes30(v): Typed
Return a new bytes30
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes30 . |
Returns
A new bytes30
type for v
.
Source
bytes31()
static bytes31(v): Typed
Return a new bytes31
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes31 . |
Returns
A new bytes31
type for v
.
Source
bytes32()
static bytes32(v): Typed
Return a new bytes32
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes32 . |
Returns
A new bytes32
type for v
.
Source
bytes4()
static bytes4(v): Typed
Return a new bytes4
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes4 . |
Returns
A new bytes4
type for v
.
Source
bytes5()
static bytes5(v): Typed
Return a new bytes5
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes5 . |
Returns
A new bytes5
type for v
.
Source
bytes6()
static bytes6(v): Typed
Return a new bytes6
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes6 . |
Returns
A new bytes6
type for v
.
Source
bytes7()
static bytes7(v): Typed
Return a new bytes7
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes7 . |
Returns
A new bytes7
type for v
.
Source
bytes8()
static bytes8(v): Typed
Return a new bytes8
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes8 . |
Returns
A new bytes8
type for v
.
Source
bytes9()
static bytes9(v): Typed
Return a new bytes9
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes9 . |
Returns
A new bytes9
type for v
.
Source
dereference()
static dereference<T>(value, type): T
If the value is a Typed instance, validates the underlying value and returns it, otherwise returns value directly.
This is useful for functions that with to accept either a Typed object or values.
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type | Description |
---|---|---|
value | Typed | T | The value to dereference. |
type | string | The dereferenced value. |
Returns
T
Source
from()
static from(type, value): Typed
Returns a new Typed of type
with the value
.
Parameters
Parameter | Type | Description |
---|---|---|
type | string | The type to use. |
value | any | The value to use. |
Returns
Source
int()
static int(v): Typed
Return a new int256
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int256 . |
Returns
A new int256
type for v
.
Source
int104()
static int104(v): Typed
Return a new int104
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int104 . |
Returns
A new int104
type for v
.
Source
int112()
static int112(v): Typed
Return a new int112
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int112 . |
Returns
A new int112
type for v
.
Source
int120()
static int120(v): Typed
Return a new int120
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int120 . |
Returns
A new int120
type for v
.
Source
int128()
static int128(v): Typed
Return a new int128
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int128 . |
Returns
A new int128
type for v
.
Source
int136()
static int136(v): Typed
Return a new int136
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int136 . |
Returns
A new int136
type for v
.
Source
int144()
static int144(v): Typed
Return a new int144
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int144 . |
Returns
A new int144
type for v
.
Source
int152()
static int152(v): Typed
Return a new int152
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int152 . |
Returns
A new int152
type for v
.
Source
int16()
static int16(v): Typed
Return a new int16
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int16 . |
Returns
A new int16
type for v
.
Source
int160()
static int160(v): Typed
Return a new int160
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int160 . |
Returns
A new int160
type for v
.
Source
int168()
static int168(v): Typed
Return a new int168
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int168 . |
Returns
A new int168
type for v
.
Source
int176()
static int176(v): Typed
Return a new int176
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int176 . |
Returns
A new int176
type for v
.
Source
int184()
static int184(v): Typed
Return a new int184
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int184 . |
Returns
A new int184
type for v
.
Source
int192()
static int192(v): Typed
Return a new int192
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int192 . |
Returns
A new int192
type for v
.
Source
int200()
static int200(v): Typed
Return a new int200
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int200 . |
Returns
A new int200
type for v
.
Source
int208()
static int208(v): Typed
Return a new int208
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int208 . |
Returns
A new int208
type for v
.
Source
int216()
static int216(v): Typed
Return a new int216
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int216 . |
Returns
A new int216
type for v
.
Source
int224()
static int224(v): Typed
Return a new int224
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int224 . |
Returns
A new int224
type for v
.
Source
int232()
static int232(v): Typed
Return a new int232
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int232 . |
Returns
A new int232
type for v
.
Source
int24()
static int24(v): Typed
Return a new int24
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int24 . |
Returns
A new int24
type for v
.
Source
int240()
static int240(v): Typed
Return a new int240
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int240 . |
Returns
A new int240
type for v
.
Source
int248()
static int248(v): Typed
Return a new int248
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int248 . |
Returns
A new int248
type for v
.
Source
int256()
static int256(v): Typed
Return a new int256
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int256 . |
Returns
A new int256
type for v
.
Source
int32()
static int32(v): Typed
Return a new int32
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int32 . |
Returns
A new int32
type for v
.
Source
int40()
static int40(v): Typed
Return a new int40
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int40 . |
Returns
A new int40
type for v
.
Source
int48()
static int48(v): Typed
Return a new int48
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int48 . |
Returns
A new int48
type for v
.
Source
int56()
static int56(v): Typed
Return a new int56
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int56 . |
Returns
A new int56
type for v
.
Source
int64()
static int64(v): Typed
Return a new int64
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int64 . |
Returns
A new int64
type for v
.
Source
int72()
static int72(v): Typed
Return a new int72
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int72 . |
Returns
A new int72
type for v
.
Source
int8()
static int8(v): Typed
Return a new int8
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int8 . |
Returns
A new int8
type for v
.
Source
int80()
static int80(v): Typed
Return a new int80
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int80 . |
Returns
A new int80
type for v
.
Source
int88()
static int88(v): Typed
Return a new int88
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int88 . |
Returns
A new int88
type for v
.
Source
int96()
static int96(v): Typed
Return a new int96
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int96 . |
Returns
A new int96
type for v
.
Source
isTyped()
static isTyped(value): value is Typed
Returns true only if value
is a Typed instance.
Parameters
Parameter | Type | Description |
---|---|---|
value | any | The value to check. |
Returns
value is Typed
True if value
is a Typed instance.
Source
overrides()
static overrides(v): Typed
Return a new overrides
type with the provided properties.
Parameters
Parameter | Type | Description |
---|---|---|
v | Record <string , any > | A record containing the properties to be included in the overrides type. |
Returns
A new overrides
type with the given properties.
Source
string()
static string(v): Typed
Return a new string
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | string | The value to convert to a string . |
Returns
A new string
type for v
.
Source
tuple()
static tuple(v, name?): Typed
Return a new tuple
type for v, with the optional name.
Parameters
Parameter | Type | Description |
---|---|---|
v | any [] | Record <string , any > | The value to convert to a tuple . |
name ? | string | The name of the tuple. |
Returns
A new tuple
type for v
.
Source
uint()
static uint(v): Typed
Return a new uint256
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint256 . |
Returns
A new uint256
type for v
.
Source
uint104()
static uint104(v): Typed
Return a new uint104
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint104 . |
Returns
A new uint104
type for v
.
Source
uint112()
static uint112(v): Typed
Return a new uint112
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint112 . |
Returns
A new uint112
type for v
.
Source
uint120()
static uint120(v): Typed
Return a new uint120
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint120 . |
Returns
A new uint120
type for v
.
Source
uint128()
static uint128(v): Typed
Return a new uint128
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint128 . |
Returns
A new uint128
type for v
.
Source
uint136()
static uint136(v): Typed
Return a new uint136
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint136 . |
Returns
A new uint136
type for v
.
Source
uint144()
static uint144(v): Typed
Return a new uint144
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint144 . |
Returns
A new uint144
type for v
.
Source
uint152()
static uint152(v): Typed
Return a new uint152
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint152 . |
Returns
A new uint152
type for v
.
Source
uint16()
static uint16(v): Typed
Return a new uint16
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint16 . |
Returns
A new uint16
type for v
.
Source
uint160()
static uint160(v): Typed
Return a new uint160
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint160 . |
Returns
A new uint160
type for v
.
Source
uint168()
static uint168(v): Typed
Return a new uint168
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint168 . |
Returns
A new uint168
type for v
.
Source
uint176()
static uint176(v): Typed
Return a new uint176
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint176 . |
Returns
A new uint176
type for v
.
Source
uint184()
static uint184(v): Typed
Return a new uint184
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint184 . |
Returns
A new uint184
type for v
.
Source
uint192()
static uint192(v): Typed
Return a new uint192
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint192 . |
Returns
A new uint192
type for v
.
Source
uint200()
static uint200(v): Typed
Return a new uint200
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint200 . |
Returns
A new uint200
type for v
.
Source
uint208()
static uint208(v): Typed
Return a new uint208
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint208 . |
Returns
A new uint208
type for v
.
Source
uint216()
static uint216(v): Typed
Return a new uint216
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint216 . |
Returns
A new uint216
type for v
.
Source
uint224()
static uint224(v): Typed
Return a new uint224
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint224 . |
Returns
A new uint224
type for v
.
Source
uint232()
static uint232(v): Typed
Return a new uint232
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint232 . |
Returns
A new uint232
type for v
.
Source
uint24()
static uint24(v): Typed
Return a new uint24
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint24 . |
Returns
A new uint24
type for v
.
Source
uint240()
static uint240(v): Typed
Return a new uint240
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint240 . |
Returns
A new uint240
type for v
.
Source
uint248()
static uint248(v): Typed
Return a new uint248
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint248 . |
Returns
A new uint248
type for v
.
Source
uint256()
static uint256(v): Typed
Return a new uint256
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint256 . |
Returns
A new uint256
type for v
.
Source
uint32()
static uint32(v): Typed
Return a new uint32
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint32 . |
Returns
A new uint32
type for v
.
Source
uint40()
static uint40(v): Typed
Return a new uint40
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint40 . |
Returns
A new uint40
type for v
.
Source
uint48()
static uint48(v): Typed
Return a new uint48
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint48 . |
Returns
A new uint48
type for v
.
Source
uint56()
static uint56(v): Typed
Return a new uint56
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint56 . |
Returns
A new uint56
type for v
.
Source
uint64()
static uint64(v): Typed
Return a new uint64
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint64 . |
Returns
A new uint64
type for v
.
Source
uint72()
static uint72(v): Typed
Return a new uint72
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint72 . |
Returns
A new uint72
type for v
.
Source
uint8()
static uint8(v): Typed
Return a new uint8
type for v.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint8 . |
Returns
A new uint8
type for v
.
Source
uint80()
static uint80(v): Typed
Return a new uint80
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint80 . |
Returns
A new uint80
type for v
.
Source
uint88()
static uint88(v): Typed
Return a new uint88
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint88 . |
Returns
A new uint88
type for v
.
Source
uint96()
static uint96(v): Typed
Return a new uint96
type for v
.
Parameters
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint96 . |
Returns
A new uint96
type for v
.
Source
Was this page helpful?