From 1ebfd09c7ab11e5fee091414da8490fdc9b8d159 Mon Sep 17 00:00:00 2001 From: Sayo <82053242+wtfsayo@users.noreply.github.com> Date: Sun, 3 Nov 2024 19:14:34 +0530 Subject: [PATCH] update bundler addresses --- .../TransactionForm/Escrow/EscrowUtils.ts | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/apps/web/src/modules/create-proposal/components/TransactionForm/Escrow/EscrowUtils.ts b/apps/web/src/modules/create-proposal/components/TransactionForm/Escrow/EscrowUtils.ts index 1cfe2da7..a25b3a73 100644 --- a/apps/web/src/modules/create-proposal/components/TransactionForm/Escrow/EscrowUtils.ts +++ b/apps/web/src/modules/create-proposal/components/TransactionForm/Escrow/EscrowUtils.ts @@ -3,6 +3,8 @@ import { Address, Hex, encodeAbiParameters } from 'viem' import { create } from 'zustand' import { createJSONStorage, persist } from 'zustand/middleware' +import { CHAIN_ID } from 'src/typings' + import { EscrowFormState, EscrowFormValues } from './EscrowForm.schema' const KLEROS_ARBITRATION_PROVIDER = @@ -23,14 +25,22 @@ export function convertByte32ToIpfsCidV0(str: Hex) { function getWrappedTokenAddress(chainId: number | string): Address { chainId = Number(chainId) switch (chainId) { - case 1: // mainnet - return '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' as Address - case 10: // optimism - return '0x4200000000000000000000000000000000000006' as Address - case 11155111: // sepolia - return '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14' as Address - case 8453: // base - return '0x4200000000000000000000000000000000000006' as Address + case CHAIN_ID.ETHEREUM: + return '0xb4cdef4aa610c046864467592fae456a58d3443a' as Address + case CHAIN_ID.OPTIMISM: + return '0xdafeb89f713e25a02e4ec21a18e3757d7a76d19e' as Address + case CHAIN_ID.BASE: + return '0xf4640751e7363a0572d4ba93a9b049b956b33c17' as Address + case CHAIN_ID.ZORA: + return '0x0325e1b676c4cf59e0b690a05e0181be862193d4' as Address + case CHAIN_ID.SEPOLIA: + return '0x9c1E057B37605B7f6ed6f4c8E2826C3d84ddC08D' as Address + case CHAIN_ID.OPTIMISM_SEPOLIA: + return '0xe0986c3bdab537fbeb7c94d0c5ef961d6d8bf63a' as Address + case CHAIN_ID.BASE_SEPOLIA: + return '0x3add1d027116a5406ced10411945cf2d4d9ed68e' as Address + case CHAIN_ID.ZORA_SEPOLIA: + return '0x851e59a39571e599954702f0e4996bf838d9c863' as Address default: throw new Error(`Unsupported chain ID: ${chainId}`) }