mezoAgent 0.3.4__tar.gz → 0.3.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- mezoagent-0.3.6/MANIFEST.in +1 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/PKG-INFO +1 -1
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezoAgent.egg-info/PKG-INFO +1 -1
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/config.py +5 -2
- {mezoagent-0.3.4 → mezoagent-0.3.6}/setup.py +2 -2
- mezoagent-0.3.4/MANIFEST.in +0 -1
- {mezoagent-0.3.4 → mezoagent-0.3.6}/README.md +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezoAgent.egg-info/SOURCES.txt +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezoAgent.egg-info/dependency_links.txt +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezoAgent.egg-info/requires.txt +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezoAgent.egg-info/top_level.txt +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/__init__.py +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/data/new_router.json +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/parsing.py +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/swap_musd_btc.py +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/mezo_agent/transaction.py +0 -0
- {mezoagent-0.3.4 → mezoagent-0.3.6}/setup.cfg +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
recursive-include mezo_agent/data *.json
|
@@ -2,7 +2,7 @@ import os
|
|
2
2
|
import json
|
3
3
|
from dotenv import load_dotenv
|
4
4
|
from web3 import Web3
|
5
|
-
|
5
|
+
import importlib.resources as pkg_resources
|
6
6
|
# Load environment variables
|
7
7
|
load_dotenv()
|
8
8
|
|
@@ -39,6 +39,9 @@ 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
|
+
|
42
45
|
# Wrapped BTC and Swap Router setup
|
43
46
|
WRAPPED_BTC_ADDRESS = "0xA460F83cdd9584E4bD6a9838abb0baC58EAde999"
|
44
47
|
ROUTER_ADDRESS = "0xC2E61936a542D78b9c3AA024fA141c4C632DF6c1"
|
@@ -47,5 +50,5 @@ ROUTER_ADDRESS = "0xC2E61936a542D78b9c3AA024fA141c4C632DF6c1"
|
|
47
50
|
router_abi_path = os.path.join(os.path.dirname(__file__), "data", "new_router_abi.json")
|
48
51
|
with open(router_abi_path, "r") as f:
|
49
52
|
router_abi = json.load(f)
|
50
|
-
|
53
|
+
|
51
54
|
router_contract = web3_instance.eth.contract(address=ROUTER_ADDRESS, abi=router_abi)
|
@@ -2,11 +2,11 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="mezoAgent",
|
5
|
-
version="0.3.
|
5
|
+
version="0.3.6",
|
6
6
|
packages=find_packages(),
|
7
7
|
include_package_data=True,
|
8
8
|
package_data={
|
9
|
-
"
|
9
|
+
"mezo_agent": ["data/*.json"],
|
10
10
|
},
|
11
11
|
install_requires=[
|
12
12
|
"python-dotenv",
|
mezoagent-0.3.4/MANIFEST.in
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
include mezo_agent/data/*.json
|
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
|