mezoAgent 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mezoAgent-0.1.1.dist-info → mezoAgent-0.1.2.dist-info}/METADATA +1 -1
- mezoAgent-0.1.2.dist-info/RECORD +6 -0
- mezoTransactionTool/transaction_tools.py +11 -1
- mezoAgent-0.1.1.dist-info/RECORD +0 -6
- {mezoAgent-0.1.1.dist-info → mezoAgent-0.1.2.dist-info}/WHEEL +0 -0
- {mezoAgent-0.1.1.dist-info → mezoAgent-0.1.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
mezoTransactionTool/__init__.py,sha256=4izlG8P3PTGXZb_RvEQ3HlPMxQ1jzSINnF9nSlxnEXE,161
|
2
|
+
mezoTransactionTool/transaction_tools.py,sha256=XlyTaqiDGxN0tyqdyJA6tIX6xq6d6hfaQe-V2XKGcAU,6814
|
3
|
+
mezoAgent-0.1.2.dist-info/METADATA,sha256=9-Hi0dTMOqtYOOO8u1kjg-OGgFQTkAFxiy2CH5DP4-A,536
|
4
|
+
mezoAgent-0.1.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
5
|
+
mezoAgent-0.1.2.dist-info/top_level.txt,sha256=Czoa5A8CU_I_oPKDa5OXa5H7RM4Jk94PF9mIpz2V9t4,20
|
6
|
+
mezoAgent-0.1.2.dist-info/RECORD,,
|
@@ -17,12 +17,22 @@ if os.path.exists(USER_ENV_PATH):
|
|
17
17
|
else:
|
18
18
|
print("⚠️ Warning: No `.env` file found in your project directory! Transactions requiring signing may fail.")
|
19
19
|
|
20
|
-
# ✅ Load Private
|
20
|
+
# ✅ Load Private Keys from User's `.env`
|
21
21
|
PRIVATE_KEY = os.getenv("PRIVATE_KEY")
|
22
|
+
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
22
23
|
if not PRIVATE_KEY:
|
23
24
|
print("⚠️ Warning: PRIVATE_KEY not set. Please create a `.env` file in your project with your keys.")
|
24
25
|
PRIVATE_KEY = None # Allow package to be installed but prevent transactions
|
25
26
|
|
27
|
+
RPC_URL = "https://rpc.test.mezo.org"
|
28
|
+
|
29
|
+
# ✅ Initialize Web3 instance
|
30
|
+
web3_instance = Web3(Web3.HTTPProvider(RPC_URL))
|
31
|
+
|
32
|
+
# ✅ Check if connection is successful
|
33
|
+
if not web3_instance.is_connected():
|
34
|
+
raise ConnectionError("❌ Failed to connect to Mezo Matsnet RPC.")
|
35
|
+
|
26
36
|
# ✅ Create Account Object
|
27
37
|
account = Web3.eth.account.from_key(PRIVATE_KEY)
|
28
38
|
sender_address = account.address
|
mezoAgent-0.1.1.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
mezoTransactionTool/__init__.py,sha256=4izlG8P3PTGXZb_RvEQ3HlPMxQ1jzSINnF9nSlxnEXE,161
|
2
|
-
mezoTransactionTool/transaction_tools.py,sha256=jvVtD0T72-XR5BlBxZEMV_LMD_u4m2Y00X3Qybo6SXQ,6488
|
3
|
-
mezoAgent-0.1.1.dist-info/METADATA,sha256=xbeDFoJsEQDQBYJK60GjATHq55qXOrjN3o0INUJwjM0,536
|
4
|
-
mezoAgent-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
5
|
-
mezoAgent-0.1.1.dist-info/top_level.txt,sha256=Czoa5A8CU_I_oPKDa5OXa5H7RM4Jk94PF9mIpz2V9t4,20
|
6
|
-
mezoAgent-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|