FCT Class (BatchMultiSigCall)
BatchMultiSigCall FCT
BatchMultiSigCall
is a class designed to simplify the process of building the FCT.
Create a new FCT from scratch
Import already existing FCT
Constructor
All constructor parameters are optional
Name | Type | Description |
---|---|---|
|
|
|
|
| Initial options for |
|
| Allows you to set default values for calls. For example, you can set the |
Functions
create
Promise
function - Create/add call
Method Arguments
Name | Type | Description |
---|---|---|
|
Returns
createMultiple
Promise
function - Create/add multiple calls
Method Arguments
Name | Type | Description |
---|---|---|
| FCTCall[] |
Returns
IMSCallInput[]
exportFCT
Generate FCT from provided calls
and options
Returns
importFCT
Import an already-made FCT to automatically set the calls
and options
.
Method Arguments
Name | Type | Description |
---|---|---|
| IBatchMultiSigCallFCT | Generated/exported FCT |
Returns
IMSCallInput[]
setOptions
Set options of the FCT
Method Arguments
Name | Type | Description |
---|---|---|
| DeepPartial<IFCTOptions> | FCT Options |
Returns
IFCTOptions
setCallDefaults
Set default values for calls.
For example, you can set the from
address to ensure that every call has the same from
address and you don't need to specify from
value in create / createMultiple functions
Name | Type | Description |
---|---|---|
| DeepPartial<ICallDefaults> |
Returns
addComputed
Add computed variable to the FCT
Name | Type | Description |
---|---|---|
|
Returns
createPlugin
Create a plugin from @kirobo/fct-plugins
library with FCT's chainId
Name | Type | Description |
---|---|---|
|
| |
|
|
Returns
@kirobo/fct-plugins
plugin instance
changeChainId
Change the chain ID of the FCT.
By calling this function, it will automatically update FCT's domain
Name | Type | Description |
---|---|---|
|
|
Returns
void
addComputed
Add a computed variable to FCT. This variable then can be used inside any calls as one of the parameters.
Name | Type | Description |
---|---|---|
|
Returns
Utils
Utility functions of FCT. Learn more about FCT utility functions here
Returns
Getters
calls
Returns created calls
Returns
decodedCalls
Returns the created calls with all Variables
used in the calls replaced by their corresponding values.
Returns
options
Retrieve options for the FCT. If no options have been set, the default options will be returned.
Returns
computed
Retrieve all computed variables added in FCT.
Returns
computedWithValues
Retrieve all computed variables added in FCT and all values are strings.
Returns
Static functions
from
Creates a BatchMultiSigCall
instance from an exported FCT.
from
function is useful for those FCTs that have been exported previously.
Name | Type | Description |
---|---|---|
| FCT object from |
Returns
BatchMultiSigCall
class
Last updated