An abstract class to represent An individual fragment from a parse ABI.
Property | Modifier | Type | Description |
---|---|---|---|
inputs | readonly | readonly ParamType [] | The inputs for the fragment. |
type | readonly | FragmentType | The type of the fragment. |
Returns a string representation of this fragment as format
.
Parameter | Type |
---|---|
format ? | FormatType |
string
Creates a new Fragment for obj
, wich can be any supported ABI frgament type.
Parameter | Type |
---|---|
obj | any |
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment
An abstract class to represent An individual fragment from a parse ABI.
Property | Modifier | Type | Description |
---|---|---|---|
inputs | readonly | readonly ParamType [] | The inputs for the fragment. |
type | readonly | FragmentType | The type of the fragment. |
Returns a string representation of this fragment as format
.
Parameter | Type |
---|---|
format ? | FormatType |
string
Creates a new Fragment for obj
, wich can be any supported ABI frgament type.
Parameter | Type |
---|---|
obj | any |
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment