注意: 此页面尚未翻译成中文。以下内容为英文原版。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. |
null
| number
The length of the array type or -1
if it is dynamic.
null
| string
The tuple name if this is a tuple.
string
| number
| bigint
| Result
The default value for this type.
string
The human-readable type for the provided type.
this is TypedBigInt
true
if this is a big integer.
this is TypedData
true
if this is a number.
this is TypedString
true
if this is a string.
string
| number
| bigint
The maximum value for the provided numeric type.
string
| number
| bigint
The minimum value for the provided numeric type.
address
type for v
.
Parameter | Type | Description |
---|---|---|
v | string | Addressable | The value to convert to an address . |
Typed
A new address
type for v
.
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. |
Typed
A new array
type for v
.
bool
type for v
.
Parameter | Type | Description |
---|---|---|
v | any | The value to convert to a bool . |
Typed
A new bool
type for v
.
bytes
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes . |
Typed
A new bytes
type for v
.
bytes1
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes1 . |
Typed
A new bytes1
type for v
.
bytes10
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes10 . |
Typed
A new bytes10
type for v
.
bytes11
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes11 . |
Typed
A new bytes11
type for v
.
bytes12
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes12 . |
Typed
A new bytes12
type for v
.
bytes13
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes13 . |
Typed
A new bytes13
type for v
.
bytes14
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes14 . |
Typed
A new bytes14
type for v
.
bytes15
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes15 . |
Typed
A new bytes15
type for v
.
bytes16
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes16 . |
Typed
A new bytes16
type for v
.
bytes17
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes17 . |
Typed
A new bytes17
type for v
.
bytes18
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes18 . |
Typed
A new bytes18
type for v
.
bytes19
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes19 . |
Typed
A new bytes19
type for v
.
bytes2
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes2 . |
Typed
A new bytes2
type for v
.
bytes20
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes20 . |
Typed
A new bytes20
type for v
.
bytes21
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes21 . |
Typed
A new bytes21
type for v
.
bytes22
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes22 . |
Typed
A new bytes22
type for v
.
bytes23
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes23 . |
Typed
A new bytes23
type for v
.
bytes24
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes24 . |
Typed
A new bytes24
type for v
.
bytes25
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes25 . |
Typed
A new bytes25
type for v
.
bytes26
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes26 . |
Typed
A new bytes26
type for v
.
bytes27
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes27 . |
Typed
A new bytes27
type for v
.
bytes28
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes28 . |
Typed
A new bytes28
type for v
.
bytes29
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes29 . |
Typed
A new bytes29
type for v
.
bytes3
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes3 . |
Typed
A new bytes3
type for v
.
bytes30
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes30 . |
Typed
A new bytes30
type for v
.
bytes31
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes31 . |
Typed
A new bytes31
type for v
.
bytes32
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes32 . |
Typed
A new bytes32
type for v
.
bytes4
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes4 . |
Typed
A new bytes4
type for v
.
bytes5
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes5 . |
Typed
A new bytes5
type for v
.
bytes6
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes6 . |
Typed
A new bytes6
type for v
.
bytes7
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes7 . |
Typed
A new bytes7
type for v
.
bytes8
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes8 . |
Typed
A new bytes8
type for v
.
bytes9
type for v
.
Parameter | Type | Description |
---|---|---|
v | BytesLike | The value to convert to a bytes9 . |
Typed
A new bytes9
type for v
.
Type parameter |
---|
T |
Parameter | Type | Description |
---|---|---|
value | Typed | T | The value to dereference. |
type | string | The dereferenced value. |
T
type
with the value
.
Parameter | Type | Description |
---|---|---|
type | string | The type to use. |
value | any | The value to use. |
Typed
int256
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int256 . |
Typed
A new int256
type for v
.
int104
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int104 . |
Typed
A new int104
type for v
.
int112
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int112 . |
Typed
A new int112
type for v
.
int120
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int120 . |
Typed
A new int120
type for v
.
int128
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int128 . |
Typed
A new int128
type for v
.
int136
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int136 . |
Typed
A new int136
type for v
.
int144
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int144 . |
Typed
A new int144
type for v
.
int152
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int152 . |
Typed
A new int152
type for v
.
int16
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int16 . |
Typed
A new int16
type for v
.
int160
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int160 . |
Typed
A new int160
type for v
.
int168
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int168 . |
Typed
A new int168
type for v
.
int176
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int176 . |
Typed
A new int176
type for v
.
int184
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int184 . |
Typed
A new int184
type for v
.
int192
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int192 . |
Typed
A new int192
type for v
.
int200
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int200 . |
Typed
A new int200
type for v
.
int208
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int208 . |
Typed
A new int208
type for v
.
int216
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int216 . |
Typed
A new int216
type for v
.
int224
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int224 . |
Typed
A new int224
type for v
.
int232
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int232 . |
Typed
A new int232
type for v
.
int24
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int24 . |
Typed
A new int24
type for v
.
int240
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int240 . |
Typed
A new int240
type for v
.
int248
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int248 . |
Typed
A new int248
type for v
.
int256
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int256 . |
Typed
A new int256
type for v
.
int32
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int32 . |
Typed
A new int32
type for v
.
int40
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int40 . |
Typed
A new int40
type for v
.
int48
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int48 . |
Typed
A new int48
type for v
.
int56
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int56 . |
Typed
A new int56
type for v
.
int64
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int64 . |
Typed
A new int64
type for v
.
int72
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int72 . |
Typed
A new int72
type for v
.
int8
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int8 . |
Typed
A new int8
type for v
.
int80
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int80 . |
Typed
A new int80
type for v
.
int88
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int88 . |
Typed
A new int88
type for v
.
int96
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to an int96 . |
Typed
A new int96
type for v
.
value
is a Typed instance.
Parameter | Type | Description |
---|---|---|
value | any | The value to check. |
value is Typed
True if value
is a Typed instance.
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. |
Typed
A new overrides
type with the given properties.
string
type for v
.
Parameter | Type | Description |
---|---|---|
v | string | The value to convert to a string . |
Typed
A new string
type for v
.
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. |
Typed
A new tuple
type for v
.
uint256
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint256 . |
Typed
A new uint256
type for v
.
uint104
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint104 . |
Typed
A new uint104
type for v
.
uint112
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint112 . |
Typed
A new uint112
type for v
.
uint120
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint120 . |
Typed
A new uint120
type for v
.
uint128
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint128 . |
Typed
A new uint128
type for v
.
uint136
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint136 . |
Typed
A new uint136
type for v
.
uint144
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint144 . |
Typed
A new uint144
type for v
.
uint152
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint152 . |
Typed
A new uint152
type for v
.
uint16
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint16 . |
Typed
A new uint16
type for v
.
uint160
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint160 . |
Typed
A new uint160
type for v
.
uint168
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint168 . |
Typed
A new uint168
type for v
.
uint176
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint176 . |
Typed
A new uint176
type for v
.
uint184
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint184 . |
Typed
A new uint184
type for v
.
uint192
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint192 . |
Typed
A new uint192
type for v
.
uint200
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint200 . |
Typed
A new uint200
type for v
.
uint208
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint208 . |
Typed
A new uint208
type for v
.
uint216
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint216 . |
Typed
A new uint216
type for v
.
uint224
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint224 . |
Typed
A new uint224
type for v
.
uint232
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint232 . |
Typed
A new uint232
type for v
.
uint24
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint24 . |
Typed
A new uint24
type for v
.
uint240
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint240 . |
Typed
A new uint240
type for v
.
uint248
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint248 . |
Typed
A new uint248
type for v
.
uint256
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint256 . |
Typed
A new uint256
type for v
.
uint32
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint32 . |
Typed
A new uint32
type for v
.
uint40
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint40 . |
Typed
A new uint40
type for v
.
uint48
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint48 . |
Typed
A new uint48
type for v
.
uint56
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint56 . |
Typed
A new uint56
type for v
.
uint64
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint64 . |
Typed
A new uint64
type for v
.
uint72
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint72 . |
Typed
A new uint72
type for v
.
uint8
type for v.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint8 . |
Typed
A new uint8
type for v
.
uint80
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint80 . |
Typed
A new uint80
type for v
.
uint88
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint88 . |
Typed
A new uint88
type for v
.
uint96
type for v
.
Parameter | Type | Description |
---|---|---|
v | BigNumberish | The value to convert to a uint96 . |
Typed
A new uint96
type for v
.