From a7e31488e6328192ab1f9d59342c5affa374eba5 Mon Sep 17 00:00:00 2001 From: Doug <4741454+douglance@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:03:44 -0400 Subject: [PATCH] chore: removes `retryableLifetimeSeconds` from orbit template --- packages/scripts/src/addOrbitChain/schemas.ts | 1 - .../src/addOrbitChain/tests/__mocks__/chainDataMocks.ts | 1 - .../addOrbitChain/tests/__snapshots__/transforms.test.ts.snap | 4 ---- packages/scripts/src/addOrbitChain/transforms.ts | 1 - 4 files changed, 7 deletions(-) diff --git a/packages/scripts/src/addOrbitChain/schemas.ts b/packages/scripts/src/addOrbitChain/schemas.ts index 34a3768518..310f6fa0f6 100644 --- a/packages/scripts/src/addOrbitChain/schemas.ts +++ b/packages/scripts/src/addOrbitChain/schemas.ts @@ -86,7 +86,6 @@ export const chainSchema = z name: z.string().min(1), slug: z.string().min(1), parentChainId: z.number().int().positive(), - retryableLifetimeSeconds: z.number().int().positive().default(604800), tokenBridge: tokenBridgeSchema, bridgeUiConfig: bridgeUiConfigSchema, }) diff --git a/packages/scripts/src/addOrbitChain/tests/__mocks__/chainDataMocks.ts b/packages/scripts/src/addOrbitChain/tests/__mocks__/chainDataMocks.ts index 564357146f..bafca28706 100644 --- a/packages/scripts/src/addOrbitChain/tests/__mocks__/chainDataMocks.ts +++ b/packages/scripts/src/addOrbitChain/tests/__mocks__/chainDataMocks.ts @@ -228,7 +228,6 @@ export const mockOrbitChain: OrbitChain = { name: "Xai", slug: "xai", parentChainId: 42161, - retryableLifetimeSeconds: 604800, tokenBridge: { parentGatewayRouter: "0x22CCA5Dc96a4Ac1EC32c9c7C5ad4D66254a24C35", childGatewayRouter: "0xd096e8dE90D34de758B0E0bA4a796eA2e1e272cF", diff --git a/packages/scripts/src/addOrbitChain/tests/__snapshots__/transforms.test.ts.snap b/packages/scripts/src/addOrbitChain/tests/__snapshots__/transforms.test.ts.snap index 70e1a3d876..d5c2120cc7 100644 --- a/packages/scripts/src/addOrbitChain/tests/__snapshots__/transforms.test.ts.snap +++ b/packages/scripts/src/addOrbitChain/tests/__snapshots__/transforms.test.ts.snap @@ -69,7 +69,6 @@ exports[`Transforms > transformIncomingDataToOrbitChain > should transform incom "name": "Test Chain", "nativeToken": "0x0000000000000000000000000000000000000006", "parentChainId": 421614, - "retryableLifetimeSeconds": 604800, "rpcUrl": "https://testrpc.com", "slug": "test-chain", "tokenBridge": { @@ -131,7 +130,6 @@ exports[`Transforms > updateOrbitChainsFile > should add a new testnet chain whi \\"name\\": \\"Xai\\", \\"slug\\": \\"xai\\", \\"parentChainId\\": 42161, - \\"retryableLifetimeSeconds\\": 604800, \\"tokenBridge\\": { \\"parentGatewayRouter\\": \\"0x22CCA5Dc96a4Ac1EC32c9c7C5ad4D66254a24C35\\", \\"childGatewayRouter\\": \\"0xd096e8dE90D34de758B0E0bA4a796eA2e1e272cF\\", @@ -189,7 +187,6 @@ exports[`Transforms > updateOrbitChainsFile > should handle updating an existing \\"name\\": \\"Updated Chain\\", \\"slug\\": \\"xai\\", \\"parentChainId\\": 42161, - \\"retryableLifetimeSeconds\\": 604800, \\"tokenBridge\\": { \\"parentGatewayRouter\\": \\"0x22CCA5Dc96a4Ac1EC32c9c7C5ad4D66254a24C35\\", \\"childGatewayRouter\\": \\"0xd096e8dE90D34de758B0E0bA4a796eA2e1e272cF\\", @@ -273,7 +270,6 @@ exports[`Transforms > updateOrbitChainsFile > should update the orbit chains fil \\"name\\": \\"Xai\\", \\"slug\\": \\"xai\\", \\"parentChainId\\": 42161, - \\"retryableLifetimeSeconds\\": 604800, \\"tokenBridge\\": { \\"parentGatewayRouter\\": \\"0x22CCA5Dc96a4Ac1EC32c9c7C5ad4D66254a24C35\\", \\"childGatewayRouter\\": \\"0xd096e8dE90D34de758B0E0bA4a796eA2e1e272cF\\", diff --git a/packages/scripts/src/addOrbitChain/transforms.ts b/packages/scripts/src/addOrbitChain/transforms.ts index e34dbf45a2..d246d675d1 100644 --- a/packages/scripts/src/addOrbitChain/transforms.ts +++ b/packages/scripts/src/addOrbitChain/transforms.ts @@ -361,7 +361,6 @@ export const transformIncomingDataToOrbitChain = ( name: chainData.name, slug: nameToSlug(chainData.name), parentChainId, - retryableLifetimeSeconds: 604800, tokenBridge: { parentCustomGateway: chainData.parentCustomGateway, parentErc20Gateway: chainData.parentErc20Gateway,