Skip to content

Commit

Permalink
Add Fantom
Browse files Browse the repository at this point in the history
  • Loading branch information
jenikd committed Oct 6, 2023
1 parent ee38427 commit 52c108e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnosis/eth/clients/etherscan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class EtherscanClient:
EthereumNetwork.NEON_EVM_MAINNET: "https://neonscan.org",
EthereumNetwork.SEPOLIA: "https://sepolia.etherscan.io",
EthereumNetwork.ZKSYNC_V2: "https://explorer.zksync.io/",
EthereumNetwork.FANTOM_OPERA: "https://ftmscan.com",
EthereumNetwork.FANTOM_TESTNET: "https://testnet.ftmscan.com/",
}

NETWORK_WITH_API_URL = {
Expand Down Expand Up @@ -76,6 +78,8 @@ class EtherscanClient:
EthereumNetwork.NEON_EVM_MAINNET: "https://api.neonscan.org",
EthereumNetwork.SEPOLIA: "https://api-sepolia.etherscan.io",
EthereumNetwork.ZKSYNC_V2: "https://block-explorer-api.mainnet.zksync.io/",
EthereumNetwork.FANTOM_OPERA: "https://api.ftmscan.com",
EthereumNetwork.FANTOM_TESTNET: "https://api-testnet.ftmscan.com",
}
HTTP_HEADERS = {
"User-Agent": "curl/7.77.0",
Expand Down
17 changes: 17 additions & 0 deletions gnosis/safe/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,15 @@
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 6261, "1.3.0+L2"),
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 6262, "1.3.0"),
],
EthereumNetwork.FANTOM_OPERA: [
("0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 38810826, "1.3.0+L2"),
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 21817262, "1.3.0"),
("0x3E5c63644E683549055b9Be8653de26E0B4CD36E", 4580000, "1.3.0+L2"),
],
EthereumNetwork.FANTOM_TESTNET: [
("0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552", 4627348, "1.3.0"),
("0x5696Ae62C36aF747966522C401FbD57492451f19", 4627348, "1.3.0"),
],
}

PROXY_FACTORIES: Dict[EthereumNetwork, List[Tuple[str, int]]] = {
Expand Down Expand Up @@ -950,4 +959,12 @@
EthereumNetwork.SCROLL_SEPOLIA_TESTNET: [
("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 6254), # v1.3.0
],
EthereumNetwork.FANTOM_OPERA: [
("0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC", 38810826), # v1.3.0
("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 21817221), # v1.3.0
],
EthereumNetwork.FANTOM_TESTNET: [
("0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2", 4627348), # v1.3.0
("0x63B5caf390e8AF7133DBE6bA92A69167a854Ac91", 4627348), # v1.3.0
],
}

0 comments on commit 52c108e

Please sign in to comment.