Skip to content

Commit

Permalink
Add chiado network for developer
Browse files Browse the repository at this point in the history
Signed-off-by: Sn0rt <wangguohao.2009@gmail.com>
  • Loading branch information
Sn0rt committed May 19, 2024
1 parent 9b28e57 commit 778bd67
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
16 changes: 16 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export default {
url: "https://rpc.gnosischain.com",
chainId: 100,
},
chiado: {
...sharedNetworkConfig,
url: "https://rpc.chiadochain.net",
chainId: 10200,
},
},
gasReporter: {
enabled: REPORT_GAS ? true : false,
Expand All @@ -129,10 +134,21 @@ export default {
etherscan: {
apiKey: {
gnosis: ETHERSCAN_API_KEY,
chiado: ETHERSCAN_API_KEY,
mainnet: ETHERSCAN_API_KEY,
rinkeby: ETHERSCAN_API_KEY,
goerli: ETHERSCAN_API_KEY,
sepolia: ETHERSCAN_API_KEY,
},
customChains: [
{
network: "chiado",
chainId: 10200,
urls: {
apiURL: "https://gnosis-chiado.blockscout.com/api",
browserURL: "https://gnosis-chiado.blockscout.com",
},
},
],
},
};
2 changes: 1 addition & 1 deletion src/tasks/deployment-of-bridged-token-deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function generateDeployment(
const [deployer] = await ethers.getSigners();

const chainId = (await hre.ethers.provider.getNetwork()).chainId.toString();
if (chainId !== "100") {
if (chainId !== "100" && chainId !== "10200") {
throw new Error(
`This script must be run on gnosis chain. Found chainId ${chainId}`,
);
Expand Down
3 changes: 3 additions & 0 deletions src/ts/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const defaultTokens = {
"4": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b",
"5": "0xD87Ba7A50B2E7E660f678A895E4B72E7CB4CCd9C",
"100": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"10200": "0x7aDD3eEe9B233d15A31C45809C3B92178D017d2D",
"11155111": "0xbe72E441BF55620febc26715db68d3494213D8Cb",
},
weth: {
Expand All @@ -14,13 +15,15 @@ export const defaultTokens = {
"4": "0xc778417E063141139Fce010982780140Aa0cD5Ab", // WETH
"5": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6", // WETH
"100": "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", // wXDAI
"10200": "0x18c8a7ec7897177E4529065a7E7B0878358B3BfF", // wXDAI
"11155111": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", // WETH
},
gno: {
"1": "0x6810e776880C02933D47DB1b9fc05908e5386b96",
"4": "0xd0Dab4E640D95E9E8A47545598c33e31bDb53C7c",
"5": "0x02ABBDbAaa7b1BB64B5c878f7ac17f8DDa169532",
"100": "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
"10200": "0x19C653Da7c37c66208fbfbE8908A5051B57b4C70",
"11155111": "0xd3f3d46FeBCD4CdAa2B83799b7A5CdcB69d135De",
},
} as const;
Expand Down

0 comments on commit 778bd67

Please sign in to comment.