Property | Modifier | Type | Description |
---|---|---|---|
arrayChildren | readonly | null | ParamType | The type of each child in the array. For non-array types this is null . |
arrayLength | readonly | null | number | The array length, or -1 for dynamic-lengthed arrays.For non-array types this is null . |
baseType | readonly | string | The base type (e.g. "address" , "tuple" , "array" ) |
components | readonly | null | readonly ParamType [] | The components for the tuple. For non-tuple types this is null . |
indexed | readonly | null | boolean | True if the parameters is indexed. For non-indexable types this is null . |
name | readonly | string | The local name of the parameter (or "" if unbound) |
type | readonly | string | The fully qualified type (e.g. "address" , "tuple(address)" , "uint256[3][]" ) |
sighash" => "(uint256,address)"
"minimal" => "tuple(uint256,address) indexed"
"full" => "tuple(uint256 foo, address bar) indexed baz"
Parameter | Type |
---|---|
format ? | FormatType |
string
The formatted type.
this is ParamType & Object
True if this is an Array type.
this is ParamType & Object
True if this is an Indexable type.
this is ParamType & Object
True if this is a Tuple type.
value
, calling process
on each type, destructing the value
recursively.
Parameter | Type |
---|---|
value | any |
process | ParamTypeWalkFunc |
any
value
, asynchronously calling process
on each type, destructing the value
recursively.
This can be used to resolve ENS naes by walking and resolving each "address"
type.
Parameter | Type |
---|---|
value | any |
process | ParamTypeWalkAsyncFunc |
Promise
<any
>
obj
.
If allowIndexed
then the indexed
keyword is permitted, otherwise the indexed
keyword will throw an error.
Parameter | Type |
---|---|
obj | any |
allowIndexed ? | boolean |
ParamType
value
is a ParamType.
Parameter | Type |
---|---|
value | any |
value is ParamType