import * as Tidx from '../../../internal/Tidx.js' import * as Viem from '../../../internal/Viem.js' import * as TestApp from '../../../../test/App.js' import * as QueryBench from '../../../../test/QueryBench.js' const senderTag = `0x${'00'.repeat(32)}` const zoneChainIds = { 4217: 421_700_002, 42431: 424_310_002, } as const QueryBench.bench({ chainId: false, name: 'listZoneWithdrawals', path: { 4217: `/v1/zones/withdrawals/${senderTag}?chainId=${zoneChainIds[4217]}`, 42431: `/v1/zones/withdrawals/${senderTag}?chainId=${zoneChainIds[42431]}`, }, zones: ({ chainId }) => { const rpcUrl = Viem.resolveUrl(process.env.RPC_URL, chainId) ?? Viem.url[chainId] const tidxUrl = Viem.resolveUrl(process.env.TIDX_URL, chainId) ?? Tidx.url[chainId] if (!rpcUrl || !tidxUrl) throw new Error(`Missing Zone upstream for chain ${chainId}.`) return [ TestApp.zone({ chainId: zoneChainIds[chainId], rpcUrl, sourceChainId: chainId, tidxUrl, }), ] }, })