diff --git a/packages/frontend/src/preview/data/home.ts b/packages/frontend/src/preview/data/home.ts index 3273e72dc..89115cbcc 100644 --- a/packages/frontend/src/preview/data/home.ts +++ b/packages/frontend/src/preview/data/home.ts @@ -24,12 +24,16 @@ const transactionTypeBucket = new Bucket([ 'FORCED_SELL', 'FORCED_WITHDRAW', 'INITIATE_ESCAPE', + 'FREEZE_REQUEST', + 'FINALIZE_ESCAPE', ] as const) export function randomHomeForcedTransactionEntry(): TransactionEntry { const type = transactionTypeBucket.pick() const status = - type === 'INITIATE_ESCAPE' + type === 'INITIATE_ESCAPE' || + type === 'FREEZE_REQUEST' || + type === 'FINALIZE_ESCAPE' ? transactionStatusBucket.pickExcept('INCLUDED') : transactionStatusBucket.pick() diff --git a/packages/frontend/src/preview/routes.ts b/packages/frontend/src/preview/routes.ts index 7cf7292ca..2d3165758 100644 --- a/packages/frontend/src/preview/routes.ts +++ b/packages/frontend/src/preview/routes.ts @@ -1297,6 +1297,30 @@ const routes: Route[] = [ }) }, }, + { + path: '/transactions/initialize-escape/reverted', + description: + 'Transaction view of a reverted initialize escape transaction.', + isTransactionPage: true, + render: (ctx) => { + const context = getPerpetualPageContext(ctx) + ctx.body = renderInitializeEscapePage({ + context, + transactionHash: Hash256.fake(), + recipient: randomRecipient(), + dataFromL1: { + asset: { hashOrId: AssetId('USDC-6') }, + amount: amountBucket.pick(), + }, + positionOrVaultId: randomId(), + history: [ + { timestamp: randomTimestamp(), status: 'REVERTED' }, + { timestamp: randomTimestamp(), status: 'SENT' }, + ], + stateUpdateId: 1234, + }) + }, + }, { path: '/transactions/finalize-escape/sent', description: 'Transaction view of a sent finalize escape transaction.',