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