Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/assets/chains/BASE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/chains/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import ARB from 'assets/chains/ARB.svg'
import AVAX from 'assets/chains/AVAX.svg'
import BASE from 'assets/chains/BASE.svg'
import ETH from 'assets/chains/ETH.svg'

export const CHAIN_ICONS = {
ETH,
AVAX,
ARB,
BASE,
}
7 changes: 6 additions & 1 deletion src/components/Send/SendForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ const CHAIN_SELECT_ITEMS: SelectItem[] = [
label: CHAIN_TO_CHAIN_NAME[Chain.ARB],
icon: CHAIN_ICONS[Chain.ARB],
},
{
value: Chain.BASE,
label: CHAIN_TO_CHAIN_NAME[Chain.BASE],
icon: CHAIN_ICONS[Chain.BASE],
},
]

export const DEFAULT_FORM_INPUTS: TransactionInputs = {
source: Chain.ETH,
target: Chain.AVAX,
target: Chain.BASE,
address: '',
amount: '',
}
Expand Down
9 changes: 3 additions & 6 deletions src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,27 @@ import { SupportedChainId } from 'constants/chains'
*/
export const CHAIN_IDS_TO_USDC_ADDRESSES = {
[SupportedChainId.ETH_SEPOLIA]: '0x1c7d4b196cb0c7b01d743fbc6116a902379c7238',

[SupportedChainId.AVAX_FUJI]: '0x5425890298aed601595a70AB815c96711a31Bc65',

[SupportedChainId.ARB_SEPOLIA]: '0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d',
[SupportedChainId.BASE_SEPOLIA]: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
}

/**
* Map of supported chains to Token Messenger contract addresses
*/
export const CHAIN_IDS_TO_TOKEN_MESSENGER_ADDRESSES = {
[SupportedChainId.ETH_SEPOLIA]: '0x9f3b8679c73c2fef8b59b4f3444d4e156fb70aa5',

[SupportedChainId.AVAX_FUJI]: '0xeb08f243e5d3fcff26a9e38ae5520a669f4019d0',

[SupportedChainId.ARB_SEPOLIA]: '0x9f3b8679c73c2fef8b59b4f3444d4e156fb70aa5',
[SupportedChainId.BASE_SEPOLIA]: '0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5',
}

/**
* Map of supported chains to Message Transmitter contract addresses
*/
export const CHAIN_IDS_TO_MESSAGE_TRANSMITTER_ADDRESSES = {
[SupportedChainId.ETH_SEPOLIA]: '0x7865fafc2db2093669d92c0f33aeef291086befd',

[SupportedChainId.AVAX_FUJI]: '0xa9fb1b3009dcb79e2fe346c16a604b8fa8ae0a79',

[SupportedChainId.ARB_SEPOLIA]: '0xacf1ceef35caac005e15888ddb8a3515c41b4872',
[SupportedChainId.BASE_SEPOLIA]: '0x7865fAfC2db2093669d92c0F33AeEF291086BEFD',
}
19 changes: 19 additions & 0 deletions src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum Chain {
ETH = 'ETH',
AVAX = 'AVAX',
ARB = 'ARB',
BASE = 'BASE',
}

/**
Expand All @@ -14,6 +15,7 @@ export enum SupportedChainId {
ETH_SEPOLIA = 11155111,
AVAX_FUJI = 43113,
ARB_SEPOLIA = 421614,
BASE_SEPOLIA = 84532,
}

/**
Expand All @@ -24,6 +26,7 @@ export const SupportedChainIdHex = {
ETH_SEPOLIA: '0xaa36a7',
AVAX_FUJI: '0xa869',
ARB_SEPOLIA: '0x66eee',
BASE_SEPOLIA: '0x14a34',
}

interface ChainToChainIdMap {
Expand All @@ -38,6 +41,7 @@ export const CHAIN_TO_CHAIN_ID: ChainToChainIdMap = {
[Chain.ETH]: SupportedChainId.ETH_SEPOLIA,
[Chain.AVAX]: SupportedChainId.AVAX_FUJI,
[Chain.ARB]: SupportedChainId.ARB_SEPOLIA,
[Chain.BASE]: SupportedChainId.BASE_SEPOLIA,
}

interface ChainToChainNameMap {
Expand All @@ -51,6 +55,7 @@ export const CHAIN_TO_CHAIN_NAME: ChainToChainNameMap = {
ETH: 'Ethereum',
AVAX: 'Avalanche',
ARB: 'Arbitrum',
BASE: 'Base',
}

/**
Expand All @@ -67,6 +72,7 @@ export enum DestinationDomain {
ETH = 0,
AVAX = 1,
ARB = 3,
BASE = 6,
}

// https://eips.ethereum.org/EIPS/eip-3085
Expand Down Expand Up @@ -119,6 +125,18 @@ const ARB_SEPOLIA: AddEthereumChainParameter = {
rpcUrls: ['https://arb-sepolia.g.alchemy.com/v2/demo'],
}

const BASE_SEPOLIA: AddEthereumChainParameter = {
chainId: SupportedChainIdHex.BASE_SEPOLIA,
blockExplorerUrls: ['https://sepolia.basescan.org/'],
chainName: 'Base Sepolia Testnet',
nativeCurrency: {
name: 'Ethereum',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: ['https://sepolia.base.org'],
}

interface ChainIdToChainParameters {
[key: string]: AddEthereumChainParameter
}
Expand All @@ -127,4 +145,5 @@ export const CHAIN_ID_HEXES_TO_PARAMETERS: ChainIdToChainParameters = {
[SupportedChainIdHex.ETH_SEPOLIA]: ETH_SEPOLIA,
[SupportedChainIdHex.AVAX_FUJI]: AVAX_FUJI,
[SupportedChainIdHex.ARB_SEPOLIA]: ARB_SEPOLIA,
[SupportedChainIdHex.BASE_SEPOLIA]: BASE_SEPOLIA,
}