Skip to content

Commit

Permalink
add sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
m66260 committed Mar 13, 2024
1 parent 9dfd6f4 commit a0eacd9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/blockchain-api/wagmi/wagmiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { publicProvider } from "wagmi/providers/public";
// import polygonTestIcon from "assets/networks/polygonTest.svg";
import zkMainIcon from "assets/networks/zkEvmMain.svg";
import zkTestIcon from "assets/networks/zkEvmTest.svg";
import { x1 } from "utils/chains";
import { arbitrumSepolia, x1 } from "utils/chains";

const defaultChains: Chain[] = [
// { ...polygon, iconUrl: polygonMainIcon, iconBackground: 'transparent' },
Expand All @@ -25,6 +25,7 @@ const defaultChains: Chain[] = [
iconBackground: "transparent",
},
x1,
arbitrumSepolia,
];

const { chains, provider } = configureChains(defaultChains, [publicProvider()]);
Expand Down
36 changes: 36 additions & 0 deletions client/src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,39 @@ export const x1 = {
default: { name: "OKLink", url: "https://www.oklink.com/x1-test" },
},
} as const satisfies Chain;

export const arbitrumSepolia = {
id: 421_614,
name: "Arbitrum Sepolia",
network: "arbitrumSepolia",
nativeCurrency: {
name: "Arbitrum Sepolia Ether",
symbol: "ETH",
decimals: 18,
},
rpcUrls: {
public: {
http: ["https://sepolia-rollup.arbitrum.io/rpc"],
},
default: {
http: ["https://sepolia-rollup.arbitrum.io/rpc"],
},
},
blockExplorers: {
etherscan: {
name: "Arbiscan",
url: "https://sepolia.arbiscan.io",
},
default: {
name: "Arbiscan",
url: "https://sepolia.arbiscan.io",
},
},
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11",
blockCreated: 81930,
},
},
testnet: true,
} as const satisfies Chain;

0 comments on commit a0eacd9

Please sign in to comment.