From c7d6d9dab2aa5835a62c2da7e524083cab33bb18 Mon Sep 17 00:00:00 2001 From: 0xcuonghx <100658449+0xcuonghx@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:20:36 +0700 Subject: [PATCH] Add JOC testnet and mainnet (#673) --- gnosis/eth/clients/blockscout_client.py | 2 ++ gnosis/eth/clients/etherscan_client.py | 4 ++++ gnosis/eth/ethereum_network.py | 3 ++- gnosis/safe/addresses.py | 14 ++++++++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/gnosis/eth/clients/blockscout_client.py b/gnosis/eth/clients/blockscout_client.py index c534a5ed5..a1dd23113 100644 --- a/gnosis/eth/clients/blockscout_client.py +++ b/gnosis/eth/clients/blockscout_client.py @@ -55,6 +55,8 @@ class BlockscoutClient: EthereumNetwork.SCROLL_SEPOLIA_TESTNET: "https://sepolia-blockscout.scroll.io/graphiql", EthereumNetwork.MANTLE: "https://explorer.mantle.xyz/graphiql", EthereumNetwork.MANTLE_TESTNET: "https://explorer.testnet.mantle.xyz/graphiql", + EthereumNetwork.JAPAN_OPEN_CHAIN_MAINNET: "https://mainnet.japanopenchain.org/graphiql", + EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: "https://explorer.testnet.japanopenchain.org/graphiql", EthereumNetwork.ZETACHAIN_ATHENS_TESTNET: "https://zetachain-athens-3.blockscout.com/graphiql", EthereumNetwork.SCROLL: "https://blockscout.scroll.io/graphiql", EthereumNetwork.RSK_MAINNET: "https://rootstock.blockscout.com/graphiql", diff --git a/gnosis/eth/clients/etherscan_client.py b/gnosis/eth/clients/etherscan_client.py index 84af56dae..3072a33c4 100644 --- a/gnosis/eth/clients/etherscan_client.py +++ b/gnosis/eth/clients/etherscan_client.py @@ -54,6 +54,8 @@ class EtherscanClient: EthereumNetwork.LINEA_TESTNET: "https://goerli.lineascan.build", EthereumNetwork.MANTLE: "https://explorer.mantle.xyz", EthereumNetwork.MANTLE_TESTNET: "https://explorer.testnet.mantle.xyz", + EthereumNetwork.JAPAN_OPEN_CHAIN_MAINNET: "https://mainnet.japanopenchain.org", + EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: "https://explorer.testnet.japanopenchain.org", EthereumNetwork.SCROLL_SEPOLIA_TESTNET: "https://sepolia.scrollscan.dev", EthereumNetwork.SCROLL: "https://scrollscan.com", } @@ -91,6 +93,8 @@ class EtherscanClient: EthereumNetwork.LINEA_TESTNET: "https://api-testnet.lineascan.build", EthereumNetwork.MANTLE: "https://explorer.mantle.xyz", EthereumNetwork.MANTLE_TESTNET: "https://explorer.testnet.mantle.xyz", + EthereumNetwork.JAPAN_OPEN_CHAIN_MAINNET: "https://mainnet.japanopenchain.org/api", + EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: "https://explorer.testnet.japanopenchain.org/api", EthereumNetwork.SCROLL_SEPOLIA_TESTNET: "https://api-sepolia.scrollscan.dev", EthereumNetwork.SCROLL: "https://api.scrollscan.com", } diff --git a/gnosis/eth/ethereum_network.py b/gnosis/eth/ethereum_network.py index cc70195df..5f48f14fd 100644 --- a/gnosis/eth/ethereum_network.py +++ b/gnosis/eth/ethereum_network.py @@ -92,7 +92,7 @@ class EthereumNetwork(Enum): PRIMUSCHAIN_MAINNET = 78 ZENITH_MAINNET = 79 GENECHAIN = 80 - ZENITH_TESTNET_VILNIUS = 81 + JAPAN_OPEN_CHAIN_MAINNET = 81 METER_MAINNET = 82 METER_TESTNET = 83 GATECHAIN_TESTNET = 85 @@ -472,6 +472,7 @@ class EthereumNetwork(Enum): SMART_BITCOIN_CASH = 10000 SMART_BITCOIN_CASH_TESTNET = 10001 GON_CHAIN = 10024 + JAPAN_OPEN_CHAIN_TESTNET = 10081 SJATSH = 10086 BLOCKCHAIN_GENESIS_MAINNET = 10101 CHIADO_TESTNET = 10200 diff --git a/gnosis/safe/addresses.py b/gnosis/safe/addresses.py index 9ba2deef2..222bce1f2 100644 --- a/gnosis/safe/addresses.py +++ b/gnosis/safe/addresses.py @@ -599,6 +599,14 @@ ("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 2362236, "1.3.0+L2"), ("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 2362238, "1.3.0"), ], + EthereumNetwork.JAPAN_OPEN_CHAIN_MAINNET: [ + ("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 7709133, "1.3.0+L2"), + ("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 7709135, "1.3.0"), + ], + EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: [ + ("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 1315570, "1.3.0+L2"), + ("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 1315572, "1.3.0"), + ], EthereumNetwork.ZETACHAIN_ATHENS_TESTNET: [ ("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 1962980, "1.3.0+L2"), ("0x69f4D1788e39c87893C980c06EdF4b7f686e2938", 1962981, "1.3.0"), @@ -1013,6 +1021,12 @@ EthereumNetwork.RSK_TESTNET: [ ("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 2362232), # v1.3.0 ], + EthereumNetwork.JAPAN_OPEN_CHAIN_MAINNET: [ + ("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 7709119), # v1.3.0 + ], + EthereumNetwork.JAPAN_OPEN_CHAIN_TESTNET: [ + ("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 1315556), # v1.3.0 + ], EthereumNetwork.ZETACHAIN_ATHENS_TESTNET: [ ("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 1962972), # v1.3.0 ],