Skip to content

Commit

Permalink
Add chains Redstone (690) and Garnet (17069) (#1393)
Browse files Browse the repository at this point in the history
* add redstone and garnet chains

* add tests
  • Loading branch information
holic authored May 15, 2024
1 parent 9c0dd54 commit a733697
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
18 changes: 18 additions & 0 deletions services/server/src/sourcify-chains-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1602,5 +1602,23 @@
"200810": {
"sourcifyName": "Bitlayer Testnet",
"supported": true
},
"690": {
"sourcifyName": "Redstone",
"supported": true,
"fetchContractCreationTxUsing": {
"blockscoutApi": {
"url": "https://explorer.redstone.xyz/api"
}
}
},
"17069": {
"sourcifyName": "Garnet Holesky",
"supported": true,
"fetchContractCreationTxUsing": {
"blockscoutApi": {
"url": "https://explorer.garnetchain.com/api"
}
}
}
}
18 changes: 17 additions & 1 deletion services/server/test/chains/chain-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ describe("Test Supported Chains", function () {
"Auroria Testnet",
"shared/"
);

// Merlin Mainnet
verifyContract(
"0x5C45f386FD1346FE80a1A0dA6c889384372E4580",
Expand Down Expand Up @@ -1466,6 +1466,22 @@ describe("Test Supported Chains", function () {
"shared/"
);

// Redstone
verifyContract(
"0x81EbbEDEd806Dbaa6ccD5a9D6D88D0d90B70dfc9",
"690",
"Redstone",
"shared/"
);

// Garnet Holesky
verifyContract(
"0x81EbbEDEd806Dbaa6ccD5a9D6D88D0d90B70dfc9",
"17069",
"Garnet Holesky",
"shared/"
);

it("should have included Etherscan contracts for all testedChains having etherscanAPI", function (done) {
const missingEtherscanTests: ChainApiResponse[] = [];
supportedChains
Expand Down

0 comments on commit a733697

Please sign in to comment.