A cctx on chain goes through the following states
PendingOutbound
OutboundMined
PendingRevert
Reverted
Aborted
There are some intermediatery states which do not need to be tracked on-chain.
Examples:
Waiting for inboundTX to reach enough confirmations
Waiting for inbound ballot to be successfull
Waiting for outboundTX to reach enough confirmations
Waiting for outbound ballot to be finalized
These states can be tracked using external api calls + zetachain state (tracker) to provide a more holistic view of the CCTX flow.
The feature should be implemented as part of zetatools package, which accepts an inbound hash and chainID , and tracks the entire CCTX