Application Binary Interface
ConstructorFragment
A Fragment which represents a constructor.
Extends
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
gas | readonly | null | bigint | The recommended gas limit for deployment or null . | - |
inputs | readonly | readonly ParamType [] | The inputs for the fragment. | Fragment .inputs |
payable | readonly | boolean | Whether the constructor can receive an endowment. | - |
type | readonly | FragmentType | The type of the fragment. | Fragment .type |
Methods
format()
Returns a string representation of this constructor as format
.
Parameters
Parameter | Type |
---|---|
format ? | FormatType |
Returns
string
Overrides
Source
from()
Returns a new ConstructorFragment for obj
.
Parameters
Parameter | Type |
---|---|
obj | any |
Returns
Overrides
Source
isConstructor()
Returns true if value
is a ConstructorFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is ConstructorFragment
Inherited from
Source
isError()
Returns true if value
is an ErrorFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is ErrorFragment
Inherited from
Source
isEvent()
Returns true if value
is an EventFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is EventFragment
Inherited from
Source
isFragment()
Returns true
and provides a type guard if value
is a ConstructorFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is ConstructorFragment
Source
isFunction()
Returns true if value
is a FunctionFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is FunctionFragment
Inherited from
Source
isStruct()
Returns true if value
is a StructFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is StructFragment
Inherited from
Source
Was this page helpful?