Skip to content

Commit

Permalink
Merge pull request #415 from tellor-io/base
Browse files Browse the repository at this point in the history
configs for Base
  • Loading branch information
0xSpuddy authored Sep 24, 2024
2 parents 06328a7 + bd208bd commit ba82db3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 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 @@ -82,6 +82,7 @@
842: "taraxa testnet",
808813: "taraxa testnet",
534352: "scroll",
8453: "base",
}

LOGLEVEL_MAP = {
Expand Down
12 changes: 8 additions & 4 deletions src/telliot_core/data/contract_directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
"2340": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"842": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"808813": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"534352": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"534352": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"8453": "0x34Fae97547E990ef0E05e05286c51E4645bf1A85"
},
"abi_file": "tellor360-oracle-abi.json"
},
Expand Down Expand Up @@ -212,7 +213,8 @@
"2340": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"842": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"808813": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"534352": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc"
"534352": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc",
"8453": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE"
},
"abi_file": "tellor360-autopay-abi.json"
},
Expand Down Expand Up @@ -272,7 +274,8 @@
"2340": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"842": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"808813": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"534352": "0xfda87943Be918360413979ce7296E1249fcb987e"
"534352": "0xfda87943Be918360413979ce7296E1249fcb987e",
"8453": "0xF8e9E61FFB2b491f7DF29823a76009743671CD96"
},
"abi_file": "trb-token-abi.json"
},
Expand Down Expand Up @@ -427,7 +430,8 @@
"2340": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"842": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"808813": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"534352": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
"534352": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"8453": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
},
"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 @@ -137,6 +137,8 @@ def get_abi(self, chain_id: int = 0, api_key: str = "") -> list[Any]:
url = "https://bob-sepolia.explorer.gobob.xyz/"
elif chain_id == 534352:
url = "https://rpc.scroll.io"
elif chain_id == 8453:
url = "https://base.llamarpc.com"
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 @@ -374,6 +374,13 @@ class Chain(Base):
network="mainnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
Chain(
chain_id=8453,
name="Base",
chain="base",
network="mainnet",
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 @@ -444,6 +444,13 @@ def connect(self) -> bool:
url="https://rpc.scroll.io",
explorer="https://rpc.scroll.io",
),
RPCEndpoint(
chain_id=8453,
provider="Base",
network="mainnet",
url="https://base.llamarpc.com",
explorer="https://basescan.org",
),
]


Expand Down

0 comments on commit ba82db3

Please sign in to comment.