Skip to content

Commit

Permalink
Merge pull request #407 from tellor-io/bob-mainnet
Browse files Browse the repository at this point in the history
New network: Bob Mainnet
  • Loading branch information
0xSpuddy authored May 11, 2024
2 parents d6864d0 + 3513ad5 commit 8b8de2b
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 @@ -74,6 +74,7 @@
5003: "mantle-sepolia",
84532: "Base Sepolia",
111: "puff-bob-jznbxtoq7h",
60808: "BOB",
}

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 @@ -142,7 +142,8 @@
"421614": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"5003": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"84532": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"111": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
"111": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"60808": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
},
"abi_file": "tellor360-oracle-abi.json"
},
Expand Down Expand Up @@ -189,7 +190,8 @@
"421614": "0xe331Afe3a8D7836bEdF1F09bC91549f4bc8c60C9",
"5003": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"84532": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"111": "0x89e44099f5E80484dcF48995080481214b9c2D7c"
"111": "0x89e44099f5E80484dcF48995080481214b9c2D7c",
"60808": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc"
},
"abi_file": "tellor360-autopay-abi.json"
},
Expand Down Expand Up @@ -241,7 +243,8 @@
"421614": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81",
"5003": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"84532": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc"
"111": "0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc",
"60808": "0x665060707c3Ea3c31b3eaBaD7F409072446E1D50"
},
"abi_file": "trb-token-abi.json"
},
Expand Down Expand Up @@ -382,7 +385,8 @@
"421614": "0x9EA18BFDB50E9bb4A18F9d3Df7804E398F8fE0dc",
"5003": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"84532": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"111": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE"
"111": "0x6684E5DdbEe1b97E10847468cB5f4e38f3aB83FE",
"60808": "0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81"
},
"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 @@ -121,6 +121,8 @@ def get_abi(self, chain_id: int = 0, api_key: str = "") -> list[Any]:
url = "https://api-sepolia.basescan.org/"
elif chain_id == 111:
url = "https://testnet-explorer.gobob.xyz:443"
elif chain_id == 60808:
url = "https://explorer.gobob.xyz: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 @@ -325,6 +325,13 @@ class Chain(Base):
network="testnet",
currency=EVMCurrency(name="Ether", symbol="ETH", decimals=18),
),
Chain(
chain_id=60808,
name="BOB",
chain="BOB",
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 @@ -395,6 +395,13 @@ def connect(self) -> bool:
url="https://l2-puff-bob-jznbxtoq7h.t.conduit.xyz",
explorer="https://testnet-explorer.gobob.xyz:443",
),
RPCEndpoint(
chain_id=60808,
provider="BOB",
network="BOB",
url="https://rpc.gobob.xyz",
explorer="hhttps://explorer.gobob.xyz:443",
),
]


Expand Down

0 comments on commit 8b8de2b

Please sign in to comment.