diff --git a/.env.example b/.env.example index eef6ffae4..5f8e07890 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ FORK_URL= NODE_ENV= -STAKING_TEST_KEYS_PATH= \ No newline at end of file +STAKING_TEST_KEYS_PATH= +DEV_RPC= \ No newline at end of file diff --git a/frontend/client/types.ts b/frontend/client/types.ts index 18c603d1b..8da82cbd4 100644 --- a/frontend/client/types.ts +++ b/frontend/client/types.ts @@ -1,5 +1,6 @@ import { Address } from '@/types'; -import { Ledger, Chain, DeploymentStatus } from './enums'; + +import { Chain, DeploymentStatus, Ledger } from './enums'; export type ServiceHash = string; diff --git a/operate/ledger/__init__.py b/operate/ledger/__init__.py index fe17e50a7..cc6b392db 100644 --- a/operate/ledger/__init__.py +++ b/operate/ledger/__init__.py @@ -19,6 +19,7 @@ """Ledger helpers.""" +import os import typing as t from operate.ledger.base import LedgerHelper @@ -27,10 +28,10 @@ from operate.types import ChainType, LedgerType -ETHEREUM_RPC = "https://ethereum.publicnode.com" -GNOSIS_RPC = "https://rpc.gnosischain.com" -GOERLI_RPC = "https://ethereum-goerli.publicnode.com" -SOLANA_RPC = "https://api.mainnet-beta.solana.com" +ETHEREUM_RPC = os.environ.get("DEV_RPC", "https://ethereum.publicnode.com") +GNOSIS_RPC = os.environ.get("DEV_RPC", "https://rpc.gnosischain.com") +GOERLI_RPC = os.environ.get("DEV_RPC", "https://ethereum-goerli.publicnode.com") +SOLANA_RPC = os.environ.get("DEV_RPC", "https://api.mainnet-beta.solana.com") DEFAULT_RPCS = {