Skip to content

Commit

Permalink
feat: switch to Etherscan v2 API
Browse files Browse the repository at this point in the history
- only `ETHERSCAN_API_KEY` is required now
- switch client from `requests` to `httpx` (HTTP 2, typed, more easily extensible)
- add disk cache to HTTP client
- add etherscan rate limiting on HTTP client
- improve client interface to not require `RootModel` anymore
  • Loading branch information
jnicoulaud-ledger committed Oct 21, 2024
1 parent c0329f7 commit 26dc226
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 129 deletions.
171 changes: 167 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ classifiers = [
dependencies = [
"pydantic>=2.8.2",
"eip712-clearsign>=3.0.1",
"requests>=2.32.3",
"typer>=0.12.5",
"eth-utils>=5.0.0",
"jsonschema",
Expand All @@ -30,6 +29,11 @@ dependencies = [
"typer",
"lark>=1.2.2",
"pydantic-string-url>=1.0.2",
"httpx>=0.27.2",
"httpx-file>=0.2.0",
"hishel>=0.0.33",
"xdg-base-dirs>=6.0.2",
"limiter>=0.5.0",
]

[project.urls]
Expand Down
Loading

0 comments on commit 26dc226

Please sign in to comment.