Skip to content

Commit

Permalink
Add Oasis Sapphire Mainnet chain (#884)
Browse files Browse the repository at this point in the history
* sourcify-chains: Add Oasis Sapphire Mainnet
* chain-tests: Add Oasis Sapphire Mainnet
  • Loading branch information
matevz authored Feb 16, 2023
1 parent d437465 commit 417fa41
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/core/src/sourcify-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,13 @@ const sourcifyChains: SourcifyChainsObject = {
contractFetchAddress: "https://testnet.explorer.emerald.oasis.dev/" + BLOCKSCOUT_SUFFIX,
txRegex: getBlockscoutRegex(),
},
"23294": {
// Oasis Sapphire Mainnet
supported: true,
monitored: false,
contractFetchAddress: "https://explorer.sapphire.oasis.io/" + BLOCKSCOUT_SUFFIX,
txRegex: getBlockscoutRegex(),
},
"23295": {
// Oasis Sapphire Testnet
supported: true,
Expand Down
18 changes: 18 additions & 0 deletions test/chains/chain-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,24 @@ describe("Test Supported Chains", function () {
"shared/withImmutables.metadata.json"
);

// Oasis Sapphire Mainnet
verifyContract(
"0xFBcb580DD6D64fbF7caF57FB0439502412324179",
"23294",
"Oasis Sapphire",
["shared/1_Storage.sol"],
"shared/1_Storage.metadata.json"
);
verifyContractWithImmutables(
"0xA0FB05d6Ce497beb162C4EbA4F203544B18A3f31",
"23294",
"Oasis Sapphire",
["uint256"],
[1234],
["shared/WithImmutables.sol"],
"shared/withImmutables.metadata.json"
);

// Oasis Sapphire Testnet
verifyContract(
"0xFBcb580DD6D64fbF7caF57FB0439502412324179",
Expand Down

0 comments on commit 417fa41

Please sign in to comment.