diff --git a/packages/fast-usdc/src/exos/status-manager.js b/packages/fast-usdc/src/exos/status-manager.js index 2b77335e9e2..4c8ec243ce1 100644 --- a/packages/fast-usdc/src/exos/status-manager.js +++ b/packages/fast-usdc/src/exos/status-manager.js @@ -13,8 +13,7 @@ import { PendingTxStatus, TerminalTxStatus, TxStatus } from '../constants.js'; /** * @import {MapStore, SetStore} from '@agoric/store'; * @import {Zone} from '@agoric/zone'; - * @import {CctpTxEvidence, NobleAddress, PendingTx, EvmHash, LogFn} from '../types.js'; - * @import {CopyRecord} from '@endo/pass-style'; + * @import {CctpTxEvidence, NobleAddress, PendingTx, EvmHash, LogFn, TransactionRecord} from '../types.js'; */ /** @@ -102,7 +101,7 @@ export const prepareStatusManager = ( /** * @param {EvmHash} txId - * @param {CopyRecord} record + * @param {TransactionRecord} record */ const publishTxnRecord = (txId, record) => { const txNode = E(transactionsNode).makeChildNode(txId, { diff --git a/packages/fast-usdc/src/types.ts b/packages/fast-usdc/src/types.ts index 35bbf84da1f..ef8b34dc047 100644 --- a/packages/fast-usdc/src/types.ts +++ b/packages/fast-usdc/src/types.ts @@ -7,7 +7,7 @@ import type { import type { IBCChannelID } from '@agoric/vats'; import type { Amount } from '@agoric/ertp'; import type { CopyRecord, Passable } from '@endo/pass-style'; -import type { PendingTxStatus } from './constants.js'; +import type { PendingTxStatus, TxStatus } from './constants.js'; import type { FastUsdcTerms } from './fast-usdc.contract.js'; export type EvmHash = `0x${string}`; @@ -34,6 +34,11 @@ export interface CctpTxEvidence { txHash: EvmHash; } +export interface TransactionRecord extends CopyRecord { + evidence?: CctpTxEvidence; + status: TxStatus; +} + export type LogFn = (...args: unknown[]) => void; export interface PendingTx extends CctpTxEvidence {