ApeWorX / ape-etherscan

Etherscan explorer plugin using EVM-based networks for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
26 stars 25 forks source link

feat: adds support for custom networks #112

Closed mikeshultz closed 10 months ago

mikeshultz commented 10 months ago

What I did

Adds support for custom networks.

Depends on https://github.com/ApeWorX/ape/pull/1852

How I did it

When available, it will read the necessary information from the relevant ecosystem or from configuration. Example configuration:

networks:
  custom:
    - name: customnetwork
      chain_id: 31337
      default_provider: geth

geth:
  ethereum:
    customnetwork:
      uri: http://localhost:8545

etherscan:
  ethereum:
    rate_limit: 15
    customnetwork:
      uri: https://custom.scan
      api_uri: https://api.custom.scan/api

How to verify it

Checklist

mikeshultz commented 10 months ago

Tests failing because they depend on a pending Ape change in the above linked PR.

mikeshultz commented 10 months ago

Tests are now fully working

mikeshultz commented 10 months ago

@antazoey I can't merge this due to the failing commit message, can you?