Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daimo contract: add names to foreign token #1350

Merged
merged 2 commits into from
Sep 30, 2024
Merged
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
25 changes: 25 additions & 0 deletions packages/daimo-contract/src/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,40 @@
import { DaimoChain } from "./chainConfig";
import {
ForeignToken,
arbitrumETH,
arbitrumSepoliaETH,
arbitrumSepoliaUSDC,
arbitrumSepoliaWETH,
arbitrumUSDC,
arbitrumWETH,
avalancheAVAX,
avalancheFujiAVAX,
avalancheFujiUSDC,
avalancheFujiWAVAX,
avalancheUSDC,
avalancheWAVAX,
baseETH,
baseSepoliaETH,
baseSepoliaUSDC,
baseSepoliaWETH,
baseUSDC,
baseWETH,
ethereumETH,
ethereumSepoliaETH,
ethereumSepoliaUSDC,
ethereumSepoliaWETH,
ethereumUSDC,
ethereumWETH,
optimismETH,
optimismSepoliaETH,
optimismSepoliaUSDC,
optimismSepoliaWETH,
optimismUSDC,
optimismWETH,
polygonAmoyMATIC,
polygonAmoyUSDC,
polygonAmoyWMATIC,
polygonMATIC,
polygonUSDC,
polygonWMATIC,
} from "./foreignToken";
Expand All @@ -41,6 +53,7 @@ export type DAv2Chain = {
shortName: string;
cctpDomain: number;
bridgeCoin: ForeignToken;
nativeToken: ForeignToken;
wrappedNativeToken: ForeignToken;
isTestnet?: boolean;
};
Expand All @@ -51,6 +64,7 @@ export const ethereum: DAv2Chain = {
shortName: "eth",
cctpDomain: 0,
bridgeCoin: ethereumUSDC,
nativeToken: ethereumETH,
wrappedNativeToken: ethereumWETH,
};

Expand All @@ -60,6 +74,7 @@ export const ethereumSepolia: DAv2Chain = {
shortName: "eth",
cctpDomain: 0,
bridgeCoin: ethereumSepoliaUSDC,
nativeToken: ethereumSepoliaETH,
wrappedNativeToken: ethereumSepoliaWETH,
isTestnet: true,
};
Expand All @@ -70,6 +85,7 @@ export const base: DAv2Chain = {
shortName: "base",
cctpDomain: 6,
bridgeCoin: baseUSDC,
nativeToken: baseETH,
wrappedNativeToken: baseWETH,
};

Expand All @@ -79,6 +95,7 @@ export const baseSepolia: DAv2Chain = {
shortName: "base",
cctpDomain: 6,
bridgeCoin: baseSepoliaUSDC,
nativeToken: baseSepoliaETH,
wrappedNativeToken: baseSepoliaWETH,
isTestnet: true,
};
Expand All @@ -89,6 +106,7 @@ export const arbitrum: DAv2Chain = {
shortName: "arb",
cctpDomain: 3,
bridgeCoin: arbitrumUSDC,
nativeToken: arbitrumETH,
wrappedNativeToken: arbitrumWETH,
};

Expand All @@ -98,6 +116,7 @@ export const arbitrumSepolia: DAv2Chain = {
shortName: "arb",
cctpDomain: 3,
bridgeCoin: arbitrumSepoliaUSDC,
nativeToken: arbitrumSepoliaETH,
wrappedNativeToken: arbitrumSepoliaWETH,
isTestnet: true,
};
Expand All @@ -108,6 +127,7 @@ export const optimism: DAv2Chain = {
shortName: "op",
cctpDomain: 2,
bridgeCoin: optimismUSDC,
nativeToken: optimismETH,
wrappedNativeToken: optimismWETH,
};

Expand All @@ -117,6 +137,7 @@ export const optimismSepolia: DAv2Chain = {
shortName: "op",
cctpDomain: 2,
bridgeCoin: optimismSepoliaUSDC,
nativeToken: optimismSepoliaETH,
wrappedNativeToken: optimismSepoliaWETH,
isTestnet: true,
};
Expand All @@ -127,6 +148,7 @@ export const polygon: DAv2Chain = {
shortName: "poly",
cctpDomain: 7,
bridgeCoin: polygonUSDC,
nativeToken: polygonMATIC,
wrappedNativeToken: polygonWMATIC,
};

Expand All @@ -136,6 +158,7 @@ export const polygonAmoy: DAv2Chain = {
shortName: "poly",
cctpDomain: 7,
bridgeCoin: polygonAmoyUSDC,
nativeToken: polygonAmoyMATIC,
wrappedNativeToken: polygonAmoyWMATIC,
isTestnet: true,
};
Expand All @@ -146,6 +169,7 @@ export const avalanche: DAv2Chain = {
shortName: "avax",
cctpDomain: 1,
bridgeCoin: avalancheUSDC,
nativeToken: avalancheAVAX,
wrappedNativeToken: avalancheWAVAX,
};

Expand All @@ -155,6 +179,7 @@ export const avalancheFuji: DAv2Chain = {
shortName: "avax",
cctpDomain: 1,
bridgeCoin: avalancheFujiUSDC,
nativeToken: avalancheFujiAVAX,
wrappedNativeToken: avalancheFujiWAVAX,
isTestnet: true,
};
Expand Down
Loading
Loading