Skip to content

Commit

Permalink
♻️ support more nodes on ether and binance chain 3 files changed, 29 …
Browse files Browse the repository at this point in the history
…insertions(+), 3 deletions(-)
  • Loading branch information
jjhesk committed Apr 15, 2024
1 parent cec3777 commit 65f335a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
5 changes: 4 additions & 1 deletion moody/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class Config:
link_token: str = None
link_vrf_coordinator: str = None
link_keyhash: str = None
usdt_token: str = None
usdc_token: str = None
dai_token: str = None
reconnect_tries: int = 5


Expand Down Expand Up @@ -160,4 +163,4 @@ class DefaultKeys:
'Bolors',
'DefaultKeys',
'root_base_path'
]
]
26 changes: 24 additions & 2 deletions moody/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ def Ethereum() -> Config:
def EthereumFL() -> Config:
return Config(
network_name="EthereumMainnet",
rpc_url="https://rpc.flashbots.net",
rpc_url=[
"https://rpc.flashbots.net",
"https://eth.llamarpc.com",
"https://rpc.ankr.com/eth",
"https://singapore.rpc.blxrbdn.com",
"https://eth.drpc.org",
"https://rpc.mevblocker.io",
"https://1rpc.io/eth",
"https://rpc.eth.gateway.fm",
"https://cloudflare-eth.com",
"https://mainnet.gateway.tenderly.co",
],
chain_id=1,
symbol="ETH",
block_explorer="https://flashbots-explorer.marto.lol/",
Expand Down Expand Up @@ -66,7 +77,18 @@ def GoerliTestnet() -> Config:
def BSCMain() -> Config:
return Config(
network_name="BinanceMainnet",
rpc_url="https://bsc-dataseed1.binance.org",
rpc_url=[
"https://bsc-dataseed.binance.org",
"https://bsc-dataseed1.binance.org",
"https://bsc-dataseed2.binance.org",
"https://bsc-dataseed3.binance.org",
"https://bsc-dataseed4.binance.org",
"https://bsc-dataseed2.defibit.io",
"https://bsc-dataseed3.defibit.io",
"https://bsc-dataseed2.ninicoin.io",
"https://bsc-dataseed3.ninicoin.io",
"https://bsc-dataseed4.ninicoin.io",
],
chain_id=56,
symbol="BNB",
block_explorer="https://bscscan.com",
Expand Down
1 change: 1 addition & 0 deletions moody/contracttool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# coding: utf-8
from datetime import datetime
from typing import Tuple

from eth_account import Account
Expand Down

0 comments on commit 65f335a

Please sign in to comment.