79 lines
3.0 KiB
TypeScript
79 lines
3.0 KiB
TypeScript
/**
|
|
* Copyright 2025 Circle Internet Group, Inc. All rights reserved.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type { Hex } from "viem";
|
|
|
|
export enum SupportedChainId {
|
|
ETH_SEPOLIA = 11155111,
|
|
AVAX_FUJI = 43113,
|
|
BASE_SEPOLIA = 84532,
|
|
ARC_TESTNET = 5042002
|
|
}
|
|
|
|
export const DEFAULT_MAX_FEE = 1000n;
|
|
export const DEFAULT_FINALITY_THRESHOLD = 2000;
|
|
|
|
export const CHAIN_TO_CHAIN_NAME: Record<number, string> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: "Ethereum Sepolia",
|
|
[SupportedChainId.AVAX_FUJI]: "Avalanche Fuji",
|
|
[SupportedChainId.BASE_SEPOLIA]: "Base Sepolia",
|
|
[SupportedChainId.ARC_TESTNET]: "Arc Testnet"
|
|
};
|
|
|
|
export const CHAIN_IDS_TO_USDC_ADDRESSES: Record<number, Hex> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
|
|
[SupportedChainId.AVAX_FUJI]: "0x5425890298aed601595a70AB815c96711a31Bc65",
|
|
[SupportedChainId.BASE_SEPOLIA]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
|
[SupportedChainId.ARC_TESTNET]: "0x3600000000000000000000000000000000000000"
|
|
};
|
|
|
|
export const CHAIN_IDS_TO_TOKEN_MESSENGER: Record<number, Hex> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: "0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa",
|
|
[SupportedChainId.AVAX_FUJI]: "0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa",
|
|
[SupportedChainId.BASE_SEPOLIA]: "0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa",
|
|
[SupportedChainId.ARC_TESTNET]: "0x8fe6b999dc680ccfdd5bf7eb0974218be2542daa"
|
|
};
|
|
|
|
export const CHAIN_IDS_TO_USDC_TOKEN_ID: Record<number, string> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: "b1698135-ebb1-5e40-9c3b-6a1213f4b754",
|
|
[SupportedChainId.AVAX_FUJI]: "da27d231-a690-5521-a2f3-1873b4134155",
|
|
[SupportedChainId.BASE_SEPOLIA]: "5a64c456-03f7-5238-a77a-a780b0b90263",
|
|
[SupportedChainId.ARC_TESTNET]: "15dc2b5d-0994-58b0-bf8c-3a0501148ee8"
|
|
};
|
|
|
|
export const CHAIN_IDS_TO_MESSAGE_TRANSMITTER: Record<number, Hex> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: "0xe737e5cebeeba77efe34d4aa090756590b1ce275",
|
|
[SupportedChainId.AVAX_FUJI]: "0xe737e5cebeeba77efe34d4aa090756590b1ce275",
|
|
[SupportedChainId.BASE_SEPOLIA]: "0xe737e5cebeeba77efe34d4aa090756590b1ce275",
|
|
[SupportedChainId.ARC_TESTNET]: "0xe737e5cebeeba77efe34d4aa090756590b1ce275"
|
|
};
|
|
|
|
export const DESTINATION_DOMAINS: Record<number, number> = {
|
|
[SupportedChainId.ETH_SEPOLIA]: 0,
|
|
[SupportedChainId.AVAX_FUJI]: 1,
|
|
[SupportedChainId.BASE_SEPOLIA]: 6,
|
|
[SupportedChainId.ARC_TESTNET]: 26
|
|
};
|
|
|
|
export const SUPPORTED_CHAINS = [
|
|
SupportedChainId.ETH_SEPOLIA,
|
|
SupportedChainId.AVAX_FUJI,
|
|
SupportedChainId.BASE_SEPOLIA,
|
|
SupportedChainId.ARC_TESTNET
|
|
];
|