Skip to content

Commit

Permalink
Add JOC testnet and mainnet (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcuonghx authored Nov 15, 2023
1 parent 02c4731 commit c7d6d9d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gnosis/eth/clients/blockscout_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions gnosis/eth/clients/etherscan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down Expand Up @@ -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",
}
Expand Down
3 changes: 2 additions & 1 deletion gnosis/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions gnosis/safe/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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
],
Expand Down

0 comments on commit c7d6d9d

Please sign in to comment.