Queue used to track SFXs and gateways height
Relayer instances for the specific targets
Maps SFX id to their corresponding XTX id. Used for lookups
Tx cost estimator instances for the specific targets
Maps XTX id to their corresponding Execution instance
Gather and add the required risk/reward parameters for a new SFX.
The sfx object
Trigger the confirmation of SFX that have been executed. When the gateway height is updated, this will check the isConfirming queue for the gateway. The confirmation of any waiting SFXs is now triggered. Requirement for the confirmation is that the circuit has received the corresponding headers, the SFXs where included in.
Initialize SFX event listeners.
Object of the sfx
Initialize all gateways and their corresponding relayers, event listeners and estimators
Private
isUpdate the queue and SFX state after a confirmation batch was submitted.
Array of sfx objects
Array of block heights of the sfxs where confirmed for. Needed for cleaning up the queue
Id of the gateway
Private
removeSetup all instances and listeners for the execution manager
Update the vendor height in the queue. This is triggered by an incoming circuit event. Next, this will trigger the confirmation of SFX that have been executed.
Id of the gateway
The latest block height
Generated using TypeDoc
The ExecutionManager lies at the heart of the t3rn executor. It is responsible for managing and coordinating the execution of incoming XTXs and the corresponding SFXs. It processes incoming events, triggering the creation/execution/confirmation of SFXs.