Docs
chromia.com

Type Alias

OrchestratorCore

OrchestratorCore: OrchestratorEventHandler & {
    eventEmitter: EventEmitter<OrchestratorEvents>;
    initialData: OrchestratorData;
    performAllApplyTransfers: () => Promise<void>;
    performCompleteTransfer: (tx: GTX, opIndex: number) => Promise<void>;
    state: OrchestratorState;
}

Basic functions that is used by all different Orchestrator types

Type Declaration

  • eventEmitter: EventEmitter<OrchestratorEvents>

  • initialData: OrchestratorData

  • performAllApplyTransfers: () => Promise<void>

    Applies a crosschain transaction to each intermediary chain between initial (exclusive) and target chain (inclusive)

  • performCompleteTransfer: (tx: GTX, opIndex: number) => Promise<void>

    Completes a crosschain transfer by applying the transaction on the target chain

  • state: OrchestratorState