Skip to content

Commit

Permalink
feat: add snowscan explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
ape364 committed Jun 20, 2024
1 parent e45ab22 commit ddc80b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Supports blockchain explorers:
* [FtmScan](https://docs.ftmscan.com/getting-started/endpoint-urls)
* [Basescan](https://docs.basescan.org/getting-started/endpoint-urls)
* [Taikoscan](https://docs.taikoscan.io/getting-started/endpoint-urls)
* [SnowScan](https://docs.snowscan.xyz/getting-started/endpoint-urls)

## Installation

Expand Down
1 change: 1 addition & 0 deletions aioetherscan/url_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class UrlBuilder:
'arbitrum': ('arbiscan.io', 'ETH'),
'fantom': ('ftmscan.com', 'FTM'),
'taiko': ('taikoscan.io', 'ETH'),
'snowscan': ('snowscan.xyz', 'ETH'),
}

BASE_URL: str = None
Expand Down
4 changes: 4 additions & 0 deletions tests/test_url_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def test_filter_params(ub):
('fantom', 'testnet', 'https://api-testnet.ftmscan.com/api'),
('taiko', 'main', 'https://api.taikoscan.io/api'),
('taiko', 'hekla', 'https://api-hekla.taikoscan.io/api'),
('snowscan', 'main', 'https://api.snowscan.xyz/api'),
('snowscan', 'testnet', 'https://api-testnet.snowscan.xyz/api'),
],
)
def test_api_url(api_kind, network_name, expected):
Expand Down Expand Up @@ -89,6 +91,8 @@ def test_api_url(api_kind, network_name, expected):
('fantom', 'testnet', 'https://testnet.ftmscan.com'),
('taiko', 'main', 'https://taikoscan.io'),
('taiko', 'hekla', 'https://hekla.taikoscan.io'),
('snowscan', 'main', 'https://snowscan.xyz'),
('snowscan', 'testnet', 'https://testnet.snowscan.xyz'),
],
)
def test_base_url(api_kind, network_name, expected):
Expand Down

0 comments on commit ddc80b4

Please sign in to comment.