From 981485f30d60f029f152680158f6d530aacd760c Mon Sep 17 00:00:00 2001 From: Bertrand Juglas Date: Tue, 12 Dec 2023 09:41:39 +0100 Subject: [PATCH] Add PGN Mainnet, PGN Testnet, Arthera Testnet 1.3.0 and 1.4.1 contracts (#682) --------- Co-authored-by: Sophia <59624772+sodew@users.noreply.github.com> --- gnosis/eth/clients/blockscout_client.py | 3 +++ gnosis/eth/ethereum_network.py | 3 +++ gnosis/safe/addresses.py | 24 ++++++++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/gnosis/eth/clients/blockscout_client.py b/gnosis/eth/clients/blockscout_client.py index a1dd23113..b3abfafc8 100644 --- a/gnosis/eth/clients/blockscout_client.py +++ b/gnosis/eth/clients/blockscout_client.py @@ -75,6 +75,9 @@ class BlockscoutClient: EthereumNetwork.CRONOS_TESTNET: "https://cronos.org/explorer/testnet3/graphiql", EthereumNetwork.THUNDERCORE_MAINNET: "https://explorer-mainnet.thundercore.com/graphiql", EthereumNetwork.THUNDERCORE_TESTNET: "https://explorer-testnet.thundercore.com/graphiql", + EthereumNetwork.PGN_MAINNET: "https://explorer.publicgoods.network/graphiql", + EthereumNetwork.PGN_TESTNET: "https://explorer.sepolia.publicgoods.network/graphiql", + EthereumNetwork.ARTHERA_TESTNET: "https://explorer-test.arthera.net/graphiql", } def __init__(self, network: EthereumNetwork): diff --git a/gnosis/eth/ethereum_network.py b/gnosis/eth/ethereum_network.py index 5f48f14fd..18449c3ef 100644 --- a/gnosis/eth/ethereum_network.py +++ b/gnosis/eth/ethereum_network.py @@ -186,6 +186,7 @@ class EthereumNetwork(Enum): HYPERONCHAIN_TESTNET = 400 SX_NETWORK_MAINNET = 416 OPTIMISM_GOERLI_TESTNET = 420 + PGN_MAINNET = 424 ZEETH_CHAIN = 427 RUPAYA = 499 CAMINO_C_CHAIN = 500 @@ -476,6 +477,7 @@ class EthereumNetwork(Enum): SJATSH = 10086 BLOCKCHAIN_GENESIS_MAINNET = 10101 CHIADO_TESTNET = 10200 + ARTHERA_TESTNET = 10243 _0XTADE = 10248 NUMBERS_MAINNET = 10507 NUMBERS_TESTNET = 10508 @@ -561,6 +563,7 @@ class EthereumNetwork(Enum): REI_CHAIN_MAINNET = 55555 REI_CHAIN_TESTNET = 55556 BOBA_BNB_MAINNET = 56288 + PGN_TESTNET = 58008 LINEA_TESTNET = 59140 LINEA = 59144 THINKIUM_TESTNET_CHAIN_0 = 60000 diff --git a/gnosis/safe/addresses.py b/gnosis/safe/addresses.py index e73969513..b209dbc19 100644 --- a/gnosis/safe/addresses.py +++ b/gnosis/safe/addresses.py @@ -637,6 +637,20 @@ ("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 194005796, "1.3.0+L2"), ("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 194005824, "1.3.0"), ], + EthereumNetwork.PGN_MAINNET: [ + ("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 344345, "1.3.0+L2"), + ("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 344348, "1.3.0"), + ], + EthereumNetwork.PGN_TESTNET: [ + ("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 1774114, "1.3.0+L2"), + ("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 1774116, "1.3.0"), + ], + EthereumNetwork.ARTHERA_TESTNET: [ + ("0x29fcB43b46531BcA003ddC8FCB67FFE91900C762", 4186405, "1.4.1+L2"), + ("0x41675C099F32341bf84BFc5382aF534df5C7461a", 4186415, "1.4.1"), + ("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 119967, "1.3.0+L2"), + ("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 119968, "1.3.0"), + ], } PROXY_FACTORIES: Dict[EthereumNetwork, List[Tuple[str, int]]] = { @@ -1060,4 +1074,14 @@ EthereumNetwork.TELOS_EVM_TESTNET: [ ("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 194005709), # v1.3.0 ], + EthereumNetwork.PGN_MAINNET: [ + ("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 344314), # v1.3.0 + ], + EthereumNetwork.PGN_TESTNET: [ + ("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 1774097), # v1.3.0 + ], + EthereumNetwork.ARTHERA_TESTNET: [ + ("0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67", 4186337), # v1.4.1 + ("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 119959), # v1.3.0 + ], }