Skip to content

Commit

Permalink
Add Zilliqa EVM chain (32769)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHinshelwood committed Jul 6, 2023
1 parent 6c58f9e commit 5af3e31
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sourcify-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,11 @@ const sourcifyChainsExtensions: SourcifyChainsExtensionsObject = {
contractFetchAddress: "https://explorer.kava.io/" + BLOCKSCOUT_SUFFIX,
txRegex: getBlockscoutRegex(),
},
"32769": {
// Zilliqa EVM
supported: true,
monitored: false,
},
};

const sourcifyChainsMap: SourcifyChainMap = {};
Expand Down Expand Up @@ -969,8 +974,8 @@ export function getSortedChainsArray(
getPrimarySortKey(a) > getPrimarySortKey(b)
? 1
: getPrimarySortKey(b) > getPrimarySortKey(a)
? -1
: 0
? -1
: 0
);

const sortedChains = ethereumChains.concat(otherChains);
Expand Down
9 changes: 9 additions & 0 deletions test/chains/chain-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,15 @@ describe("Test Supported Chains", function () {
"shared/1_Storage.metadata.json"
);

// Zilliqa EVM
verifyContract(
"0x6F85669808e20b121980DE8E7a794a0cc90fDc77",
"32769",
"Zilliqa EVM",
["shared/1_Storage.sol"],
"shared/1_Storage.metadata.json"
)

// Finally check if all the "supported: true" chains have been tested
it("should have tested all supported chains", function (done) {
if (newAddedChainId) {
Expand Down

0 comments on commit 5af3e31

Please sign in to comment.