Skip to content

Commit 9e0b5c0

Browse files
authored
feat: add snowscan explorer (#30)
1 parent e45ab22 commit 9e0b5c0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Supports blockchain explorers:
4242
* [FtmScan](https://docs.ftmscan.com/getting-started/endpoint-urls)
4343
* [Basescan](https://docs.basescan.org/getting-started/endpoint-urls)
4444
* [Taikoscan](https://docs.taikoscan.io/getting-started/endpoint-urls)
45+
* [SnowScan](https://docs.snowscan.xyz/getting-started/endpoint-urls)
4546

4647
## Installation
4748

aioetherscan/url_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class UrlBuilder:
1313
'arbitrum': ('arbiscan.io', 'ETH'),
1414
'fantom': ('ftmscan.com', 'FTM'),
1515
'taiko': ('taikoscan.io', 'ETH'),
16+
'snowscan': ('snowscan.xyz', 'ETH'),
1617
}
1718

1819
BASE_URL: str = None

tests/test_url_builder.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def test_filter_params(ub):
5555
('fantom', 'testnet', 'https://api-testnet.ftmscan.com/api'),
5656
('taiko', 'main', 'https://api.taikoscan.io/api'),
5757
('taiko', 'hekla', 'https://api-hekla.taikoscan.io/api'),
58+
('snowscan', 'main', 'https://api.snowscan.xyz/api'),
59+
('snowscan', 'testnet', 'https://api-testnet.snowscan.xyz/api'),
5860
],
5961
)
6062
def test_api_url(api_kind, network_name, expected):
@@ -89,6 +91,8 @@ def test_api_url(api_kind, network_name, expected):
8991
('fantom', 'testnet', 'https://testnet.ftmscan.com'),
9092
('taiko', 'main', 'https://taikoscan.io'),
9193
('taiko', 'hekla', 'https://hekla.taikoscan.io'),
94+
('snowscan', 'main', 'https://snowscan.xyz'),
95+
('snowscan', 'testnet', 'https://testnet.snowscan.xyz'),
9296
],
9397
)
9498
def test_base_url(api_kind, network_name, expected):

0 commit comments

Comments
 (0)