Executor Modules
Overview
Executor modules handle the actual execution of transactions. These modules ensure that transactions are carried out properly, often involving more complex logic than simple transfers.
- Module Type ID:
MODULE_TYPE_EXECUTOR
- Interface: Implements
IExecutor
.
Interface
interface IExecutor is IModule {}
Sample Executor Modules
- Batch Executor: Allows multiple transactions to be bundled together and executed in a single batch.
- Atomic Swap Executor: Facilitates cross-chain atomic swaps by executing transactions only when certain conditions are met on both chains.
Installation and Uninstallation
All modules follow a similar installation and uninstallation process. When a module is installed or uninstalled, the corresponding onInstall
or onUninstall
functions are called with any necessary initialization or cleanup data.
Module Type Verification
Modules implement the isModuleType
function to verify their type (Validator, Executor, Hook, Fallback), as specified by their moduleTypeId
.