Skip to content

Commit

Permalink
Merge pull request #408 from tellor-io/mode-sepolia
Browse files Browse the repository at this point in the history
Mode sepolia
  • Loading branch information
0xSpuddy authored Jun 14, 2024
2 parents 8b8de2b + 6fa59bd commit fb40fc0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/telliot_core/apps/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
84532: "Base Sepolia",
111: "puff-bob-jznbxtoq7h",
60808: "BOB",
919: "mode-sepolia-vtnhnpim72",
}

LOGLEVEL_MAP = {
Expand Down
15 changes: 10 additions & 5 deletions src/telliot_core/data/contract_directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
"5003": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"84532": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"111": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"60808": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"60808": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"919": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
},
"abi_file": "tellor360-oracle-abi.json"
},
Expand Down Expand Up @@ -191,7 +192,8 @@
"5003": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"84532": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"111": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"60808": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc"
"60808": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc",
"919": "0x89e44099f5E80484dcF48995080481214b9c2D7c"
},
"abi_file": "tellor360-autopay-abi.json"
},
Expand Down Expand Up @@ -244,7 +246,8 @@
"5003": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"84532": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"60808": "0x665060707c3Ea3c31b3eaBaD7F409072446E1D50"
"60808": "0x665060707c3Ea3c31b3eaBaD7F409072446E1D50",
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
},
"abi_file": "trb-token-abi.json"
},
Expand Down Expand Up @@ -295,7 +298,8 @@
"421614": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"5003": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"84532": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
}
},
{
Expand Down Expand Up @@ -386,7 +390,8 @@
"5003": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"84532": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"111": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"60808": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
"60808": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"919": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE"
},
"abi_file": "tellor-governance-abi.json"
}
Expand Down
2 changes: 2 additions & 0 deletions src/telliot_core/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def get_abi(self, chain_id: int = 0, api_key: str = "") -> list[Any]:
url = "https://testnet-explorer.gobob.xyz:443"
elif chain_id == 60808:
url = "https://explorer.gobob.xyz:443"
elif chain_id == 919:
url = "https://sepolia.explorer.mode.network:443"
else:
raise ValueError(f"Could not retrieve ABI using chain_id {chain_id}")

Expand Down
7 changes: 7 additions & 0 deletions src/telliot_core/model/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ class Chain(Base):
network="mainnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
Chain(
chain_id=919,
name="mode-sepolia-vtnhnpim72",
chain="mode",
network="testnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
]


Expand Down
7 changes: 7 additions & 0 deletions src/telliot_core/model/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ def connect(self) -> bool:
url="https://rpc.gobob.xyz",
explorer="hhttps://explorer.gobob.xyz:443",
),
RPCEndpoint(
chain_id=919,
provider="mode",
network="mode-sepolia-vtnhnpim72",
url="https://rpc-mode-sepolia-vtnhnpim72.t.conduit.xyz",
explorer="https://sepolia.explorer.mode.network:443",
),
]


Expand Down

0 comments on commit fb40fc0

Please sign in to comment.