Skip to content

Commit 1900040

Browse files
authored
Merge pull request #35 from jcam1/feature/remove-unsupported-networks
Feature/remove unsupported networks
2 parents 052f7c0 + 3f472b9 commit 1900040

10 files changed

Lines changed: 8 additions & 48 deletions

File tree

docs/core/jpyc_core_sdk/utils.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ <h6 id="raises">Raises:</h6>
527527
<div class="attr variable">
528528
<span class="name">SUPPORTED_CHAINS</span> =
529529
<input id="SUPPORTED_CHAINS-view-value" class="view-value-toggle-state" type="checkbox" aria-hidden="true" tabindex="-1">
530-
<label class="view-value-button pdoc-button" for="SUPPORTED_CHAINS-view-value"></label><span class="default_value">{&#39;ethereum&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 1, &#39;name&#39;: &#39;Ethereum Mainnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://ethereum-rpc.publicnode.com&#39;]}, &#39;sepolia&#39;: {&#39;id&#39;: 11155111, &#39;name&#39;: &#39;Ethereum Sepolia Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://ethereum-sepolia-rpc.publicnode.com&#39;]}}, &#39;polygon&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 137, &#39;name&#39;: &#39;Polygon Mainnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://polygon-rpc.com&#39;]}, &#39;amoy&#39;: {&#39;id&#39;: 80002, &#39;name&#39;: &#39;Polygon Amoy Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://rpc-amoy.polygon.technology&#39;]}}, &#39;gnosis&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 100, &#39;name&#39;: &#39;Gnosis Chain&#39;, &#39;rpc_endpoints&#39;: [&#39;https://rpc.gnosischain.com&#39;]}, &#39;chiado&#39;: {&#39;id&#39;: 10200, &#39;name&#39;: &#39;Gnosis Chiado Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://rpc.chiadochain.net&#39;]}}, &#39;avalanche&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 43114, &#39;name&#39;: &#39;Avalanche C-Chain&#39;, &#39;rpc_endpoints&#39;: [&#39;https://api.avax.network/ext/bc/C/rpc&#39;]}, &#39;fuji&#39;: {&#39;id&#39;: 43113, &#39;name&#39;: &#39;Avalanche Fuji Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://api.avax-test.network/ext/bc/C/rpc&#39;]}}, &#39;astar&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 592, &#39;name&#39;: &#39;Astar Network&#39;, &#39;rpc_endpoints&#39;: [&#39;https://astar.public.blastapi.io&#39;]}}, &#39;shiden&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 336, &#39;name&#39;: &#39;Shiden Network&#39;, &#39;rpc_endpoints&#39;: [&#39;https://shiden.public.blastapi.io&#39;]}}, &#39;localhost&#39;: {&#39;devnet&#39;: {&#39;id&#39;: 31337, &#39;name&#39;: &#39;Localhost Network&#39;, &#39;rpc_endpoints&#39;: [&#39;http://127.0.0.1:8545/&#39;]}}}</span>
530+
<label class="view-value-button pdoc-button" for="SUPPORTED_CHAINS-view-value"></label><span class="default_value">{&#39;ethereum&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 1, &#39;name&#39;: &#39;Ethereum Mainnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://ethereum-rpc.publicnode.com&#39;]}, &#39;sepolia&#39;: {&#39;id&#39;: 11155111, &#39;name&#39;: &#39;Ethereum Sepolia Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://ethereum-sepolia-rpc.publicnode.com&#39;]}}, &#39;polygon&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 137, &#39;name&#39;: &#39;Polygon Mainnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://polygon-rpc.com&#39;]}, &#39;amoy&#39;: {&#39;id&#39;: 80002, &#39;name&#39;: &#39;Polygon Amoy Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://rpc-amoy.polygon.technology&#39;]}}, &#39;avalanche&#39;: {&#39;mainnet&#39;: {&#39;id&#39;: 43114, &#39;name&#39;: &#39;Avalanche C-Chain&#39;, &#39;rpc_endpoints&#39;: [&#39;https://api.avax.network/ext/bc/C/rpc&#39;]}, &#39;fuji&#39;: {&#39;id&#39;: 43113, &#39;name&#39;: &#39;Avalanche Fuji Testnet&#39;, &#39;rpc_endpoints&#39;: [&#39;https://api.avax-test.network/ext/bc/C/rpc&#39;]}}, &#39;localhost&#39;: {&#39;devnet&#39;: {&#39;id&#39;: 31337, &#39;name&#39;: &#39;Localhost Network&#39;, &#39;rpc_endpoints&#39;: [&#39;http://127.0.0.1:8545/&#39;]}}}</span>
531531

532532

533533
</div>
@@ -1224,7 +1224,7 @@ <h6 id="attributes">Attributes:</h6>
12241224
<section id="ChainName">
12251225
<div class="attr variable">
12261226
<span class="def">type</span> <span class="name">ChainName</span> =
1227-
<span class="default_value">Literal[&#39;ethereum&#39;, &#39;polygon&#39;, &#39;gnosis&#39;, &#39;avalanche&#39;, &#39;astar&#39;, &#39;shiden&#39;, &#39;localhost&#39;]</span>
1227+
<span class="default_value">Literal[&#39;ethereum&#39;, &#39;polygon&#39;, &#39;avalanche&#39;, &#39;localhost&#39;]</span>
12281228

12291229

12301230
</div>

packages/core/README-jp.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ JPYC Python SDK は、各ネットワーク上にデプロイされた JPYC コ
2121
| Ethereum Sepolia テストネット ||| `ethereum` | `sepolia` |
2222
| Polygon PoS メインネット ||| `polygon` | `mainnet` |
2323
| Polygon Amoy テストネット ||| `polygon` | `amoy` |
24-
| Gnosis メインネット ||| `gnosis` | `mainnet` |
25-
| Gnosis Chiado テストネット ||| `gnosis` | `chiado` |
2624
| Avalanche メインネット ||| `avalanche` | `mainnet` |
2725
| Avalanche Fuji テストネット ||| `avalanche` | `fuji` |
28-
| Astar メインネット ||| `astar` | `mainnet` |
29-
| Shiden メインネット ||| `shiden` | `mainnet` |
3026

3127
## 🪄 使い方
3228

packages/core/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ The SDK supports the following contract types and networks as of October 2025. P
2121
| Ethereum Sepolia Testnet ||| `ethereum` | `sepolia` |
2222
| Polygon PoS Mainnet ||| `polygon` | `mainnet` |
2323
| Polygon Amoy Testnet ||| `polygon` | `amoy` |
24-
| Gnosis Mainnet ||| `gnosis` | `mainnet` |
25-
| Gnosis Chiado Testnet ||| `gnosis` | `chiado` |
2624
| Avalanche Mainnet ||| `avalanche` | `mainnet` |
2725
| Avalanche Fuji Testnet ||| `avalanche` | `fuji` |
28-
| Astar Mainnet ||| `astar` | `mainnet` |
29-
| Shiden Mainnet ||| `shiden` | `mainnet` |
3026

3127
## 🪄 Usage
3228

packages/core/jpyc_core_sdk/utils/chains.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@
3333
"rpc_endpoints": ["https://rpc-amoy.polygon.technology"],
3434
},
3535
},
36-
"gnosis": {
37-
"mainnet": {
38-
"id": 100,
39-
"name": "Gnosis Chain",
40-
"rpc_endpoints": ["https://rpc.gnosischain.com"],
41-
},
42-
"chiado": {
43-
"id": 10200,
44-
"name": "Gnosis Chiado Testnet",
45-
"rpc_endpoints": ["https://rpc.chiadochain.net"],
46-
},
47-
},
4836
"avalanche": {
4937
"mainnet": {
5038
"id": 43114,
@@ -57,20 +45,6 @@
5745
"rpc_endpoints": ["https://api.avax-test.network/ext/bc/C/rpc"],
5846
},
5947
},
60-
"astar": {
61-
"mainnet": {
62-
"id": 592,
63-
"name": "Astar Network",
64-
"rpc_endpoints": ["https://astar.public.blastapi.io"],
65-
},
66-
},
67-
"shiden": {
68-
"mainnet": {
69-
"id": 336,
70-
"name": "Shiden Network",
71-
"rpc_endpoints": ["https://shiden.public.blastapi.io"],
72-
},
73-
},
7448
"localhost": {
7549
"devnet": {
7650
"id": 31337,

packages/core/jpyc_core_sdk/utils/types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
type ChainName = Literal[
1010
"ethereum",
1111
"polygon",
12-
"gnosis",
1312
"avalanche",
14-
"astar",
15-
"shiden",
1613
"localhost",
1714
]
1815

packages/core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jpyc-core-sdk"
3-
version = "1.1.0"
3+
version = "2.0.0"
44
requires-python = ">=3.12"
55
license = "MIT"
66
description = "Python SDK for interacting with JPYC contracts"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jpyc-python-sdks"
3-
version = "1.1.0"
3+
version = "2.0.0"
44
requires-python = ">=3.12"
55
description = "Python SDKs for JPYC protocols"
66
readme = "README.md"

tests/core/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_set_default_provider_failures(
193193

194194

195195
def test_set_custom_provider(sdk_client):
196-
rpc_endpoint = "https://astar.public.blastapi.io"
196+
rpc_endpoint = "https://polygon-rpc.com"
197197

198198
sdk_client.set_custom_provider(
199199
rpc_endpoint=rpc_endpoint,

tests/core/utils/test_chains.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ def test_enumerate_supported_networks():
1515
assert (
1616
supported_networks == "'ethereum' => ['mainnet', 'sepolia'], "
1717
"'polygon' => ['mainnet', 'amoy'], "
18-
"'gnosis' => ['mainnet', 'chiado'], "
1918
"'avalanche' => ['mainnet', 'fuji'], "
20-
"'astar' => ['mainnet'], "
21-
"'shiden' => ['mainnet'], "
2219
"'localhost' => ['devnet']"
2320
)
2421

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)