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

feat: simplify calling Etherscan APIs #306

Merged
merged 13 commits into from
Sep 11, 2024
Merged

feat: simplify calling Etherscan APIs #306

merged 13 commits into from
Sep 11, 2024

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented Sep 11, 2024

What I did

  • Redesign the Etherscan API calls so they are more flexible
  • By default, read the user environment variables
  • Make sure the user doesn't need to pass arguments for every call
  • Allow multiple explorers to be used at once

How to verify it

  • Tests are included

Description for the changelog

Simplified Etherscan API

Cute Animal Picture

image

@DanielSchiavini DanielSchiavini marked this pull request as ready for review September 11, 2024 11:52
@charles-cooper charles-cooper changed the title refactor: create ExplorerSettings to simplify calling Etherscan APIs refactor: simplify calling Etherscan APIs Sep 11, 2024
@charles-cooper charles-cooper changed the title refactor: simplify calling Etherscan APIs feat: simplify calling Etherscan APIs Sep 11, 2024
@charles-cooper charles-cooper merged commit 4768207 into master Sep 11, 2024
13 of 14 checks passed
@charles-cooper charles-cooper deleted the etherscan branch September 11, 2024 14:11
Leminkay pushed a commit to Leminkay/titanoboa that referenced this pull request Oct 28, 2024
create Etherscan object which encapsulates settings and fetching from etherscan
add global Etherscan instance for the user to store settings
modify boa.from_etherscan to default to global etherscan settings

---------

Co-authored-by: Charles Cooper <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants