diff --git a/src/telliot_core/apps/core.py b/src/telliot_core/apps/core.py index 9ebadefb..046b228b 100644 --- a/src/telliot_core/apps/core.py +++ b/src/telliot_core/apps/core.py @@ -81,6 +81,7 @@ 2340: "atleta olympia testnet", 842: "taraxa testnet", 808813: "taraxa testnet", + 534352: "scroll", } LOGLEVEL_MAP = { diff --git a/src/telliot_core/data/contract_directory.json b/src/telliot_core/data/contract_directory.json index cec231c7..4a3065c1 100644 --- a/src/telliot_core/data/contract_directory.json +++ b/src/telliot_core/data/contract_directory.json @@ -156,7 +156,8 @@ "41": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81", "2340": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81", "842": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81", - "808813": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81" + "808813": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81", + "534352": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc" }, "abi_file": "tellor360-oracle-abi.json" }, @@ -210,7 +211,8 @@ "41": "0x89e44099f5E80484dcF48995080481214b9c2D7c", "2340": "0x89e44099f5E80484dcF48995080481214b9c2D7c", "842": "0x89e44099f5E80484dcF48995080481214b9c2D7c", - "808813": "0x89e44099f5E80484dcF48995080481214b9c2D7c" + "808813": "0x89e44099f5E80484dcF48995080481214b9c2D7c", + "534352": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc" }, "abi_file": "tellor360-autopay-abi.json" }, @@ -269,7 +271,8 @@ "41": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc", "2340": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc", "842": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc", - "808813": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc" + "808813": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc", + "534352": "0xfda87943Be918360413979ce7296E1249fcb987e" }, "abi_file": "trb-token-abi.json" }, @@ -423,7 +426,8 @@ "41": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE", "2340": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE", "842": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE", - "808813": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE" + "808813": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE", + "534352": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81" }, "abi_file": "tellor-governance-abi.json" } diff --git a/src/telliot_core/directory.py b/src/telliot_core/directory.py index f401d1f1..7baf497b 100644 --- a/src/telliot_core/directory.py +++ b/src/telliot_core/directory.py @@ -135,6 +135,8 @@ def get_abi(self, chain_id: int = 0, api_key: str = "") -> list[Any]: url = "https://rpc.testnet.taraxa.io" elif chain_id == 808813: url = "https://bob-sepolia.explorer.gobob.xyz/" + elif chain_id == 534352: + url = "https://rpc.scroll.io" else: raise ValueError(f"Could not retrieve ABI using chain_id {chain_id}") diff --git a/src/telliot_core/model/chain.py b/src/telliot_core/model/chain.py index 8d75008f..b3213f07 100644 --- a/src/telliot_core/model/chain.py +++ b/src/telliot_core/model/chain.py @@ -367,6 +367,13 @@ class Chain(Base): network="testnet", currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18), ), + Chain( + chain_id=534352, + name="Scroll", + chain="scroll", + network="mainnet", + currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18), + ), ] diff --git a/src/telliot_core/model/endpoints.py b/src/telliot_core/model/endpoints.py index 4647f130..1be31547 100644 --- a/src/telliot_core/model/endpoints.py +++ b/src/telliot_core/model/endpoints.py @@ -437,6 +437,13 @@ def connect(self) -> bool: url="https://bob-sepolia.rpc.gobob.xyz", explorer="https://bob-sepolia.explorer.gobob.xyz", ), + RPCEndpoint( + chain_id=534352, + provider="Scroll", + network="mainnet", + url="https://rpc.scroll.io", + explorer="https://rpc.scroll.io", + ), ]