Skip to content

Commit

Permalink
update bundler addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo committed Nov 3, 2024
1 parent 435176f commit 1ebfd09
Showing 1 changed file with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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}`)
}
Expand Down

0 comments on commit 1ebfd09

Please sign in to comment.