Skip to Content

@cfxdevkit/executor


@cfxdevkit/executor / ExecutorOptions

Interface: ExecutorOptions

Defined in: packages/executor/src/executor.ts:62

@cfxdevkit/executor

On-chain strategy execution engine for Conflux DevKit.

Provides the runtime primitives needed to build keepers, bots, or AI agents that execute on-chain strategies (limit orders, DCA, TWAP, spot swaps).

Key exports:

  • Job types (LimitOrderJob, DCAJob, TWAPJob, SwapJob) + params
  • Strategy types (LimitOrderStrategy, DCAStrategy, TWAPStrategy, SwapStrategy)
  • SafetyGuard — circuit-breaker / swap-cap / retry-cap
  • RetryQueue — exponential backoff with jitter
  • PriceChecker — pluggable price source + condition evaluation
  • KeeperClient interface + KeeperClientImpl (viem / AutomationManager)
  • Executor — orchestrator that ties all of the above together
  • AutomationLogger — injectable logger interface (no runtime dep)

Properties

dryRun?

optional dryRun: boolean

Defined in: packages/executor/src/executor.ts:63