Skip to content

Commit

Permalink
feat: update default RPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Jun 26, 2024
1 parent 318d3da commit 4c5b958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions pragma/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@

RPC_URLS = {
MAINNET: [
"https://starknet-mainnet.public.blastapi.io/rpc/v0_6",
"https://starknet-mainnet.public.blastapi.io/rpc/v0_7",
],
SEPOLIA: [
"https://starknet-sepolia.public.blastapi.io/rpc/v0_6",
"https://starknet-sepolia.public.blastapi.io/rpc/v0_7",
],
}

Expand All @@ -176,10 +176,8 @@ def get_rpc_url(network=DEVNET, port=5050):
if network == MAINNET:
random_index = random.randint(0, len(RPC_URLS[MAINNET]) - 1)
return RPC_URLS[MAINNET][random_index]
if network == SHARINGAN:
return "https://sharingan.madara.zone"
if network == PRAGMA_TESTNET:
return "https://testnet.pragmaoracle.com/rpc"
return "https://sepolia.pragma.build/rpc"
if network == DEVNET:
return f"http://127.0.0.1:{port}/rpc"
if network == FORK_DEVNET:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pragma-sdk"
version = "1.4.5"
version = "1.4.6"
authors = ["0xevolve <[email protected]>"]
description = "Core package for rollup-native Pragma Oracle"
readme = "README.md"
Expand Down

0 comments on commit 4c5b958

Please sign in to comment.