Skip to content

Commit

Permalink
chore(fast-usdc): revise TxStatus states (WIP)
Browse files Browse the repository at this point in the history
TODO: include updated state diagram docs in this commit
  • Loading branch information
dckc committed Nov 22, 2024
1 parent 25c59e1 commit 9c8d83f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/fast-usdc/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ export const TxStatus = /** @type {const} */ ({
/** tx was observed but not advanced */
Observed: 'OBSERVED',
/** IBC transfer is initiated */
Advancing: 'ADVANCING',
/** IBC transfer is complete */
Advanced: 'ADVANCED',
/** settlement for matching advance received and funds dispersed */
Settled: 'SETTLED',
/** IBC transfer failed (timed out) */
AdvanceFailed: 'ADVANCE_FAILED',
/** settlement for matching advance received and funds disbursed */
Disbursed: 'DISBURSED',
/** fallback: do not collect fees */
Forwarded: 'FORWARDED',
/** failed to forward to EUD */
ForwardFailed: 'FORWARD_FAILED',
});
harden(TxStatus);

Expand All @@ -22,6 +30,10 @@ export const PendingTxStatus = /** @type {const} */ ({
/** tx was observed but not advanced */
Observed: 'OBSERVED',
/** IBC transfer is initiated */
Advancing: 'ADVANCING',
/** IBC transfer failed (timed out) */
AdvanceFailed: 'ADVANCE_FAILED',
/** IBC transfer is complete */
Advanced: 'ADVANCED',
});
harden(PendingTxStatus);

0 comments on commit 9c8d83f

Please sign in to comment.