mezoAgent 0.3.6__tar.gz → 0.3.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mezoagent-0.3.6 → mezoagent-0.3.8}/PKG-INFO +1 -1
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezoAgent.egg-info/PKG-INFO +1 -1
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/config.py +1 -5
- {mezoagent-0.3.6 → mezoagent-0.3.8}/setup.py +1 -1
- {mezoagent-0.3.6 → mezoagent-0.3.8}/MANIFEST.in +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/README.md +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezoAgent.egg-info/SOURCES.txt +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezoAgent.egg-info/dependency_links.txt +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezoAgent.egg-info/requires.txt +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezoAgent.egg-info/top_level.txt +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/__init__.py +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/data/new_router.json +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/parsing.py +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/swap_musd_btc.py +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/mezo_agent/transaction.py +0 -0
- {mezoagent-0.3.6 → mezoagent-0.3.8}/setup.cfg +0 -0
@@ -39,16 +39,12 @@ ERC20_ABI = json.loads(
|
|
39
39
|
)
|
40
40
|
musd_contract = web3_instance.eth.contract(address=MUSD_ADDRESS, abi=ERC20_ABI)
|
41
41
|
|
42
|
-
with pkg_resources.open_text("mezo_agent.data", "new_router_abi.json") as f:
|
43
|
-
router_abi = json.load(f)
|
44
|
-
|
45
42
|
# Wrapped BTC and Swap Router setup
|
46
43
|
WRAPPED_BTC_ADDRESS = "0xA460F83cdd9584E4bD6a9838abb0baC58EAde999"
|
47
44
|
ROUTER_ADDRESS = "0xC2E61936a542D78b9c3AA024fA141c4C632DF6c1"
|
48
45
|
|
49
46
|
# Load router ABI from a JSON file packaged with mezoAgent
|
50
|
-
|
51
|
-
with open(router_abi_path, "r") as f:
|
47
|
+
with pkg_resources.open_text("mezo_agent.data", "new_router.json") as f:
|
52
48
|
router_abi = json.load(f)
|
53
49
|
|
54
50
|
router_contract = web3_instance.eth.contract(address=ROUTER_ADDRESS, abi=router_abi)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|