@cyberchain/smart-contract-wrapper
@cyberchain/smart-contract-wrapper / ParamType
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:97
Each input and output of a [[Fragment]] is an Array of ParamType.
readonlyarrayChildren:ParamType
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:135
The type of each child in the array.
For non-array types this is null.
readonlyarrayLength:number
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:129
The array length, or -1 for dynamic-lengthed arrays.
For non-array types this is null.
readonlybaseType:string
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:111
The base type (e.g. "address", "tuple", "array")
readonlycomponents: readonlyParamType[]
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:123
The components for the tuple.
For non-tuple types this is null.
readonlyindexed:boolean
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:117
True if the parameters is indexed.
For non-indexable types this is null.
readonlyname:string
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:102
The local name of the parameter (or "" if unbound)
readonlytype:string
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:107
The fully qualified type (e.g. "address", "tuple(address)",
"uint256[3][]")
format(
format?):string
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:151
Return a string representation of this type.
For example,
sighash" => "(uint256,address)"
"minimal" => "tuple(uint256,address) indexed"
"full" => "tuple(uint256 foo, address bar) indexed baz"
string
isArray():
boolean
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:158
Returns true if %%this%% is an Array type.
This provides a type gaurd ensuring that [[arrayChildren]] and [[arrayLength]] are non-null.
boolean
isIndexable():
boolean
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:172
Returns true if %%this%% is an Indexable type.
This provides a type gaurd ensuring that [[indexed]] is non-null.
boolean
isTuple():
boolean
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:165
Returns true if %%this%% is a Tuple type.
This provides a type gaurd ensuring that [[components]] is non-null.
boolean
walk(
value,process):any
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:177
Walks the ParamType with %%value%%, calling %%process%% on each type, destructing the %%value%% recursively.
any
any
walkAsync(
value,process):Promise<any>
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:185
Walks the ParamType with %%value%%, asynchronously calling %%process%% on each type, destructing the %%value%% recursively.
This can be used to resolve ENS names by walking and resolving each
"address" type.
any
Promise<any>
staticfrom(obj,allowIndexed?):ParamType
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:192
Creates a new ParamType for %%obj%%.
If %%allowIndexed%% then the indexed keyword is permitted,
otherwise the indexed keyword will throw an error.
any
boolean
ParamType
staticisParamType(value):value is ParamType
Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:196
Returns true if %%value%% is a ParamType.
any
value is ParamType