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 96 (Bitkub Chain) #1047

Merged
merged 1 commit into from
Jun 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/sourcify-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,13 @@ const sourcifyChainsExtensions: SourcifyChainsExtensionsObject = {
contractFetchAddress: "https://testnet.bkcscan.com/" + BLOCKSCOUT_SUFFIX,
txRegex: getBlockscoutRegex(),
},
"96": {
// Bitkub Chain
supported: true,
monitored: false,
contractFetchAddress: "https://bkcscan.com/" + BLOCKSCOUT_SUFFIX,
txRegex: getBlockscoutRegex(),
},
};

const sourcifyChainsMap: SourcifyChainMap = {};
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 @@ -828,6 +828,15 @@ describe("Test Supported Chains", function () {
"shared/1_Storage.metadata.json"
);

// Bitkub Chain
verifyContract(
"0xC75f4D89A0DdA70Ad613908D9976E90dAb42035c",
"96",
"Bitkub Chain",
["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