Application Binary Interface
Fragment
An abstract class to represent An individual fragment from a parse ABI.
Extended by
Properties
Property | Modifier | Type | Description |
---|---|---|---|
inputs | readonly | readonly ParamType [] | The inputs for the fragment. |
type | readonly | FragmentType | The type of the fragment. |
Methods
format()
Returns a string representation of this fragment as format
.
Parameters
Parameter | Type |
---|---|
format ? | FormatType |
Returns
string
Source
from()
Creates a new Fragment for obj
, wich can be any supported ABI frgament type.
Parameters
Parameter | Type |
---|---|
obj | any |
Returns
Source
isConstructor()
Returns true if value
is a ConstructorFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is ConstructorFragment
Source
isError()
Returns true if value
is an ErrorFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is ErrorFragment
Source
isEvent()
Returns true if value
is an EventFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is EventFragment
Source
isFunction()
Returns true if value
is a FunctionFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is FunctionFragment
Source
isStruct()
Returns true if value
is a StructFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is StructFragment
Source
Was this page helpful?