Skip to content

Commit 20df04f

Browse files
authored
Merge pull request #558 from crytic/dev
sync master <> dev
2 parents b5c538a + 88f80b0 commit 20df04f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Diff for: .github/workflows/doc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Checkout
3131
uses: actions/checkout@v4
3232
- name: Setup Pages
33-
uses: actions/configure-pages@v4
33+
uses: actions/configure-pages@v5
3434
- uses: actions/setup-python@v5
3535
with:
3636
python-version: '3.8'

Diff for: crytic_compile/cryticparser/cryticparser.py

+8
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,14 @@ def _init_etherscan(parser: ArgumentParser) -> None:
409409
default=DEFAULTS_FLAG_IN_CONFIG["etherscan_api_key"],
410410
)
411411

412+
group_etherscan.add_argument(
413+
"--blast-apikey",
414+
help="Blastscan API key.",
415+
action="store",
416+
dest="blast_api_key",
417+
default=DEFAULTS_FLAG_IN_CONFIG["etherscan_api_key"],
418+
)
419+
412420
group_etherscan.add_argument(
413421
"--etherscan-export-directory",
414422
help="Directory in which to save the analyzed contracts.",

Diff for: crytic_compile/platform/etherscan.py

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"base:": (".basescan.org", "basescan.org"),
5252
"gno:": (".gnosisscan.io", "gnosisscan.io"),
5353
"polyzk:": ("-zkevm.polygonscan.com", "zkevm.polygonscan.com"),
54+
"blast:": (".blastscan.io", "blastscan.io"),
5455
}
5556

5657

@@ -241,6 +242,7 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None:
241242
base_api_key = kwargs.get("base_api_key", None)
242243
gno_api_key = kwargs.get("gno_api_key", None)
243244
polyzk_api_key = kwargs.get("polyzk_api_key", None)
245+
blast_api_key = kwargs.get("blast_api_key", None)
244246

245247
export_dir = kwargs.get("export_dir", "crytic-export")
246248
export_dir = os.path.join(
@@ -280,6 +282,9 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None:
280282
if polyzk_api_key and "zkevm" in etherscan_url:
281283
etherscan_url += f"&apikey={polyzk_api_key}"
282284
etherscan_bytecode_url += f"&apikey={polyzk_api_key}"
285+
if blast_api_key and "blast" in etherscan_url:
286+
etherscan_url += f"&apikey={blast_api_key}"
287+
etherscan_bytecode_url += f"&apikey={blast_api_key}"
283288

284289
source_code: str = ""
285290
result: Dict[str, Union[bool, str, int]] = {}

0 commit comments

Comments
 (0)