Skip to content

Commit

Permalink
Merge pull request #409 from tellor-io/rari-telos-atleta-testnets
Browse files Browse the repository at this point in the history
Add Reporting on RARI / Telos EVM / Atleta / Taraxa Testnets
  • Loading branch information
0xSpuddy authored Jun 20, 2024
2 parents fb40fc0 + 78983af commit 730e767
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/telliot_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" Telliot """
__version__ = "0.3.5"
__version__ = "0.3.6dev0"
4 changes: 4 additions & 0 deletions src/telliot_core/apps/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
111: "puff-bob-jznbxtoq7h",
60808: "BOB",
919: "mode-sepolia-vtnhnpim72",
1918988905: "rari testnet",
41: "telos testnet",
2340: "atleta olympia testnet",
842: "taraxa testnet",
}

LOGLEVEL_MAP = {
Expand Down
30 changes: 25 additions & 5 deletions src/telliot_core/data/contract_directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@
"84532": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"111": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"60808": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"919": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
"919": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"1918988905": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"41": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"2340": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"842": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
},
"abi_file": "tellor360-oracle-abi.json"
},
Expand Down Expand Up @@ -193,7 +197,11 @@
"84532": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"111": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"60808": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc",
"919": "0x89e44099f5E80484dcF48995080481214b9c2D7c"
"919": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"1918988905": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"41": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"2340": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"842": "0x89e44099f5E80484dcF48995080481214b9c2D7c"
},
"abi_file": "tellor360-autopay-abi.json"
},
Expand Down Expand Up @@ -247,7 +255,11 @@
"84532": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"60808": "0x665060707c3Ea3c31b3eaBaD7F409072446E1D50",
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"1918988905": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"41": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"2340": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"842": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
},
"abi_file": "trb-token-abi.json"
},
Expand Down Expand Up @@ -299,7 +311,11 @@
"5003": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"84532": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"919": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"1918988905": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"41": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"2340": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"842": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
}
},
{
Expand Down Expand Up @@ -391,7 +407,11 @@
"84532": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"111": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"60808": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"919": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE"
"919": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"1918988905": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"41": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"2340": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"842": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE"
},
"abi_file": "tellor-governance-abi.json"
}
Expand Down
8 changes: 8 additions & 0 deletions src/telliot_core/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ def get_abi(self, chain_id: int = 0, api_key: str = "") -> list[Any]:
url = "https://explorer.gobob.xyz:443"
elif chain_id == 919:
url = "https://sepolia.explorer.mode.network:443"
elif chain_id == 1918988905:
url = "https://testnet.rpc.rarichain.org/http"
elif chain_id == 41:
url = "https://testnet.telos.net/evm"
elif chain_id == 2340:
url = "https://testnet-rpc.atleta.network:9944"
elif chain_id == 842:
url = "https://rpc.testnet.taraxa.io"
else:
raise ValueError(f"Could not retrieve ABI using chain_id {chain_id}")

Expand Down
28 changes: 28 additions & 0 deletions src/telliot_core/model/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,34 @@ class Chain(Base):
network="testnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
Chain(
chain_id=1918988905,
name="Rari Testnet",
chain="rari",
network="testnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
Chain(
chain_id=41,
name="Telos EVM Testnet",
chain="telos",
network="testnet",
currency=EVMCurrency(name="Telos", symbol="TLOS", decimals=18),
),
Chain(
chain_id=2340,
name="Atleta Testnet",
chain="atleta",
network="testnet",
currency=EVMCurrency(name="Atleta", symbol="ATLA", decimals=18),
),
Chain(
chain_id=842,
name="Taraxa Testnet",
chain="taraxa",
network="testnet",
currency=EVMCurrency(name="Taraxa", symbol="TARA", decimals=18),
),
]


Expand Down
28 changes: 28 additions & 0 deletions src/telliot_core/model/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,34 @@ def connect(self) -> bool:
url="https://rpc-mode-sepolia-vtnhnpim72.t.conduit.xyz",
explorer="https://sepolia.explorer.mode.network:443",
),
RPCEndpoint(
chain_id=1918988905,
provider="Rari",
network="Rari Testnet",
url="https://testnet.rpc.rarichain.org/http",
explorer="https://sepolia.explorer.mode.network:443",
),
RPCEndpoint(
chain_id=41,
provider="Telos",
network="Telos EVM Testnet",
url="https://testnet.telos.net/evm",
explorer="https://testnet.teloscan.io",
),
RPCEndpoint(
chain_id=2340,
provider="Atleta",
network="Atleta Olympia",
url="https://testnet-rpc.atleta.network:9944",
explorer="https://blockscout.atleta.network",
),
RPCEndpoint(
chain_id=842,
provider="Taraxa",
network="Taraxa Testnet",
url="https://rpc.testnet.taraxa.io",
explorer="https://explorer.testnet.taraxa.io",
),
]


Expand Down

0 comments on commit 730e767

Please sign in to comment.