From 429b9322982cd564dcdb37e52a568af7d5cbee3c Mon Sep 17 00:00:00 2001 From: SonYoungsung Date: Fri, 5 Apr 2024 14:08:02 +0900 Subject: [PATCH] feat : update chain type for Thanos-sepolia --- tokens/src/chains.ts | 3 +++ tokens/src/types.ts | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tokens/src/chains.ts b/tokens/src/chains.ts index 28faf63..03e7328 100644 --- a/tokens/src/chains.ts +++ b/tokens/src/chains.ts @@ -72,6 +72,9 @@ export const L2_STANDARD_BRIDGE_INFORMATION: Record< 'titan-sepolia': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, + 'thanos-sepolia': { + l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', + }, 'titan-goerli': { l2StandardBridgeAddress: '0x4200000000000000000000000000000000000010', }, diff --git a/tokens/src/types.ts b/tokens/src/types.ts index a16e3c1..46c40af 100644 --- a/tokens/src/types.ts +++ b/tokens/src/types.ts @@ -25,7 +25,13 @@ export type Chain = | 'titan' | 'titan-goerli' | 'titan-sepolia' -export const l2Chains = ['titan', 'titan-goerli', 'titan-sepolia'] as const + | 'thanos-sepolia' +export const l2Chains = [ + 'titan', + 'titan-goerli', + 'titan-sepolia', + 'thanos-sepolia', +] as const export type L2Chain = (typeof l2Chains)[number] export const isL2Chain = (chain: string): chain is L2Chain => { return l2Chains.includes(chain as L2Chain)