Skip to content

Commit 5aa1f68

Browse files
committed
Add Sepolia testnet
1 parent cef2145 commit 5aa1f68

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

ethpm/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
3: "ropsten",
1616
4: "rinkeby",
1717
5: "goerli",
18+
11155111: "sepolia",
1819
}

tests/ethpm/_utils/test_chain_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_parse_BIP122_uri(value, expected_resource_type):
4949
(3, True),
5050
(4, True),
5151
(5, True),
52+
(11155111, True),
5253
(2, False),
5354
("1", False),
5455
({}, False),

web3/auto/infura/endpoints.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
INFURA_ROPSTEN_DOMAIN = "ropsten.infura.io"
2121
INFURA_GOERLI_DOMAIN = "goerli.infura.io"
2222
INFURA_RINKEBY_DOMAIN = "rinkeby.infura.io"
23+
INFURA_SEPOLIA_DOMAIN = "sepolia.infura.io"
2324

2425
WEBSOCKET_SCHEME = "wss"
2526
HTTP_SCHEME = "https"

web3/auto/infura/sepolia.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from web3 import Web3
2+
from web3.providers.auto import (
3+
load_provider_from_uri,
4+
)
5+
6+
from .endpoints import (
7+
INFURA_SEPOLIA_DOMAIN,
8+
build_http_headers,
9+
build_infura_url,
10+
)
11+
12+
_headers = build_http_headers()
13+
_infura_url = build_infura_url(INFURA_SEPOLIA_DOMAIN)
14+
15+
w3 = Web3(load_provider_from_uri(_infura_url, _headers))

0 commit comments

Comments
 (0)