Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 891c4e6

Browse files
authored
Merge pull request #5759 from trufflesuite/specific-rinkeby
Remove Arbitrum Rinkeby and Optimistic Kovan from Etherscan fetcher
2 parents ee656b7 + 9b6cca5 commit 891c4e6

File tree

3 files changed

+0
-95
lines changed

3 files changed

+0
-95
lines changed

packages/fetch-and-compile/test/fetch.test.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ describe("Etherscan single-source Solidity case", function () {
140140
);
141141
});
142142

143-
it("verifies contract from arbitrum rinkeby", async function () {
144-
await runTestBody(
145-
421611,
146-
"0x1167d145919642dac82e03a6cfe2848db7a94995",
147-
"etherscan",
148-
"ProxyRegistry"
149-
);
150-
});
151-
152143
it("verifies contract from polygon", async function () {
153144
await runTestBody(
154145
137,
@@ -176,15 +167,6 @@ describe("Etherscan single-source Solidity case", function () {
176167
);
177168
});
178169

179-
it("verifies contract from optimism kovan", async function () {
180-
await runTestBody(
181-
69,
182-
"0x5bb6699ef885ca997d1467380ff9e51c606a07e1",
183-
"etherscan",
184-
"Wormhole"
185-
);
186-
});
187-
188170
it("verifies contract from moonbeam", async function () {
189171
await runTestBody(
190172
1284,

packages/fetch-and-compile/test/fixture.js

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -237,43 +237,6 @@ const etherscanFixture = {
237237
}
238238
},
239239

240-
"https://api-kovan-optimistic.etherscan.io/api": {
241-
"0x5bb6699ef885ca997d1467380ff9e51c606a07e1": {
242-
status: "1",
243-
message: "OK",
244-
result: [
245-
{
246-
SourceCode: fs.readFileSync(
247-
path.resolve(
248-
__dirname,
249-
"./sources/etherscan/kovan-optimistic/0x5bb6699ef885ca997d1467380ff9e51c606a07e1/Wormhole.sol"
250-
),
251-
"utf8"
252-
),
253-
ABI: fs.readFileSync(
254-
path.resolve(
255-
__dirname,
256-
"./sources/etherscan/kovan-optimistic/0x5bb6699ef885ca997d1467380ff9e51c606a07e1/Wormhole.abi.json"
257-
),
258-
"utf8"
259-
),
260-
ContractName: "Wormhole",
261-
CompilerVersion: "v0.8.6+commit.11564f7e",
262-
OptimizationUsed: "0",
263-
Runs: "200",
264-
ConstructorArguments: "",
265-
EVMVersion: "Default",
266-
Library: "",
267-
LicenseType: "None",
268-
Proxy: "0",
269-
Implementation: "",
270-
SwarmSource:
271-
"ipfs://10357a4f7b671c8a5b0c870cd2bda25dd017773e274f0cfa416461963ac82b5b"
272-
}
273-
]
274-
}
275-
},
276-
277240
"https://api.arbiscan.io/api": {
278241
"0x2B52D1B2b359eA39536069D8c6f2a3CFE3a09c31": {
279242
status: "1",
@@ -311,44 +274,6 @@ const etherscanFixture = {
311274
}
312275
},
313276

314-
"https://api-testnet.arbiscan.io/api": {
315-
"0x1167d145919642dac82e03a6cfe2848db7a94995": {
316-
status: "1",
317-
message: "OK",
318-
result: [
319-
{
320-
SourceCode: fs.readFileSync(
321-
path.resolve(
322-
__dirname,
323-
"./sources/etherscan/rinkeby-arbitrum/0x1167d145919642dac82e03a6cfe2848db7a94995/ProxyRegistry.sol"
324-
),
325-
"utf8"
326-
),
327-
ABI: fs.readFileSync(
328-
path.resolve(
329-
__dirname,
330-
"./sources/etherscan/rinkeby-arbitrum/0x1167d145919642dac82e03a6cfe2848db7a94995/ProxyRegistry.abi.json"
331-
),
332-
"utf8"
333-
),
334-
ContractName: "ProxyRegistry",
335-
CompilerVersion: "v0.4.26+commit.4563c3fc",
336-
OptimizationUsed: "1",
337-
Runs: "200",
338-
ConstructorArguments:
339-
"0000000000000000000000006401e31976887d39a35a558891b4f6d476388181",
340-
EVMVersion: "Default",
341-
Library: "",
342-
LicenseType: "GNU GPLv3",
343-
Proxy: "0",
344-
Implementation: "",
345-
SwarmSource:
346-
"bzzr://e7e9638fe071622556b31cfd1452cbcc9526ed4db6a7845a2984c071bc55326f"
347-
}
348-
]
349-
}
350-
},
351-
352277
"https://api.polygonscan.com/api": {
353278
"0xCF79C5417934ECde6BA055C0119A03380CE28DEC": {
354279
status: "1",

packages/source-fetcher/lib/etherscan.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ const EtherscanFetcher: FetcherConstructor = class EtherscanFetcher
6262
"goerli": "api-goerli.etherscan.io",
6363
"sepolia": "api-sepolia.etherscan.io",
6464
"optimistic": "api-optimistic.etherscan.io",
65-
"kovan-optimistic": "api-kovan-optimistic.etherscan.io",
6665
"goerli-optimistic": "api-goerli-optimism.etherscan.io", //yes this one is different!
6766
"arbitrum": "api.arbiscan.io",
6867
"nova-arbitrum": "api-nova.arbiscan.io",
69-
"rinkeby-arbitrum": "api-testnet.arbiscan.io", //hidden now, but it still works!
7068
"goerli-arbitrum": "api-goerli.arbiscan.io",
7169
"polygon": "api.polygonscan.com",
7270
"mumbai-polygon": "api-mumbai.polygonscan.com",

0 commit comments

Comments
 (0)