Deprecate use of goerli blockchain; Lynx will now use Sepolia.

pull/3386/head
derekpierre 2023-12-21 09:29:27 -05:00 committed by Derek Pierre
parent c6ece16b33
commit 99ebdfe8dc
8 changed files with 10 additions and 13 deletions

View File

@ -11,7 +11,7 @@ on:
workflow_dispatch:
env: # TODO: Use variables when GH supports it for forks. See https://github.com/orgs/community/discussions/44322
DEMO_L1_PROVIDER_URI: "https://goerli.infura.io/v3/3747007a284045d483c342fb39889a30"
DEMO_L1_PROVIDER_URI: "https://sepolia.infura.io/v3/3747007a284045d483c342fb39889a30"
DEMO_L2_PROVIDER_URI: "https://polygon-mumbai.infura.io/v3/3747007a284045d483c342fb39889a30"
COLLECT_PROFILER_STATS: "" # any value is fine

View File

@ -75,7 +75,7 @@ conditions = {
},
{
"conditionType": ConditionType.RPC.value,
"chain": 5,
"chain": 11155111,
"method": "eth_getBalance",
"parameters": ["0x210eeAC07542F815ebB6FD6689637D8cA2689392", "latest"],
"returnValueTest": {"comparator": ">", "value": 1},

View File

@ -15,7 +15,6 @@ class ChainInfo(NamedTuple):
class EthChain(ChainInfo, Enum):
MAINNET = (1, "mainnet")
GOERLI = (5, "goerli")
SEPOLIA = (11155111, "sepolia")
@ -83,11 +82,11 @@ MAINNET = TACoDomain(
LYNX = TACoDomain(
name="lynx",
eth_chain=EthChain.GOERLI,
eth_chain=EthChain.SEPOLIA,
polygon_chain=PolygonChain.MUMBAI,
condition_chains=(
EthChain.MAINNET,
EthChain.GOERLI,
EthChain.SEPOLIA,
PolygonChain.MUMBAI,
PolygonChain.MAINNET,
),

View File

@ -47,7 +47,6 @@ from nucypher.utilities import logging
_CONDITION_CHAINS = {
1: "ethereum/mainnet",
5: "ethereum/goerli",
11155111: "ethereum/sepolia",
137: "polygon/mainnet",
80001: "polygon/mumbai",

View File

@ -263,7 +263,7 @@ def test_rpc_condition_evaluation_no_connection_to_chain(
# condition providers for other unrelated chains
providers = {
1: mock.Mock(), # mainnet
5: mock.Mock(), # Goerli
11155111: mock.Mock(), # Sepolia
}
with pytest.raises(NoConnectionToChain):

View File

@ -34,7 +34,7 @@ def test_node_deployer(ursulas):
assert deployer.application == ursula.rest_app
def test_goerli_and_mumbai_as_conditions_providers(lonely_ursula_maker):
def test_no_corresponding_condition_blockchain_provider(lonely_ursula_maker):
INVALID_CHAIN_ID = 66775827584859395569954838 # If we eventually support a chain with this ID, heaven help us.
with pytest.raises(Ursula.ActorError):

View File

@ -23,7 +23,6 @@ def mock_condition_blockchains(module_mocker):
"eth_chain_test",
(
(EthChain.MAINNET, "mainnet", 1),
(EthChain.GOERLI, "goerli", 5),
(EthChain.SEPOLIA, "sepolia", 11155111),
),
)
@ -59,11 +58,11 @@ def test_polygon_chains(poly_chain_test):
(
domains.LYNX,
"lynx",
EthChain.GOERLI,
EthChain.SEPOLIA,
PolygonChain.MUMBAI,
(
EthChain.MAINNET,
EthChain.GOERLI,
EthChain.SEPOLIA,
PolygonChain.MUMBAI,
PolygonChain.MAINNET,
),

View File

@ -40,8 +40,8 @@ class MockGanacheProvider:
class MockInfuraProvider:
endpoint_uri = 'wss://:@goerli.infura.io/ws/v3/1234567890987654321abcdef'
client_version = 'Geth/v1.8.23-omnibus-2ad89aaa/linux-amd64/go1.11.1'
endpoint_uri = "wss://:@sepolia.infura.io/ws/v3/1234567890987654321abcdef"
client_version = "Geth/v1.8.23-omnibus-2ad89aaa/linux-amd64/go1.11.1"
class MockAlchemyProvider: