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

Add chain 7672 #988

Merged
merged 11 commits into from
Apr 27, 2023
7 changes: 7 additions & 0 deletions src/sourcify-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ const sourcifyChainsExtensions: SourcifyChainsExtensionsObject = {
contractFetchAddress: "https://explorer.rootnet.live/" + ETHERSCAN_SUFFIX,
txRegex: ETHERSCAN_REGEX,
},
"7672": {
// The Root Network Porcini (Testnet)
supported: true,
monitored: false,
contractFetchAddress: "https://explorer.rootnet.cloud/" + ETHERSCAN_SUFFIX,
txRegex: ETHERSCAN_REGEX,
},
"421611": {
// Arbitrum Rinkeby Testnet
supported: false,
Expand Down
19 changes: 18 additions & 1 deletion test/chains/chain-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,6 @@ describe("Test Supported Chains", function () {
["shared/1_Storage.sol"],
"shared/1_Storage.metadata.json"
);

verifyContractWithImmutables(
"0x0E23Ac3B13094CDe8667C7B2aAC3900781d7b2c1",
"999",
Expand Down Expand Up @@ -1408,6 +1407,24 @@ describe("Test Supported Chains", function () {
["shared/WithImmutables.sol"],
"shared/withImmutables.metadata.json"
);

// The Root Network Porcini (Testnet)
verifyContract(
"0x225F2cD344c61152F8E7200E62e03dEfD683f2c4",
"7672",
"The Root Network Porcini",
["shared/1_Storage.sol"],
"shared/1_Storage.metadata.json"
);
verifyContractWithImmutables(
"0x02d491918df0dC0BDB9974b61e2CDBDaB81d1e48",
"7672",
"The Root Network Porcini",
["uint256"],
[7672],
["shared/WithImmutables.sol"],
"shared/withImmutables.metadata.json"
);

//////////////////////
// Helper functions //
Expand Down