Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PGN Mainnet+Testnet and Arthera Testnet 1.3.0 L2 contracts #682

Merged
merged 5 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gnosis/eth/clients/blockscout_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 3 additions & 0 deletions gnosis/eth/ethereum_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions gnosis/safe/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.3.0 contract was not deployed there? 0x3E5c63644E683549055b9Be8653de26E0B4CD36E

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've followed the README instructions, and from what I understood I should only fill 1.3.0 L2 version contract address and not 1.3.0 contract address.
So it seems I misunderstood, I will add the 1.3.0 contract address too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moisses89 added 1.3.0 contract

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]]] = {
Expand Down Expand Up @@ -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
],
}
Loading