mezoAgent 0.1.1__tar.gz → 0.1.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A LangChain tool for sending BTC and mUSD transactions on Mezo Matsnet.
5
5
  Home-page: https://github.com/yourusername/mezoTransactionTool
6
6
  Author: Dreadwulf
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A LangChain tool for sending BTC and mUSD transactions on Mezo Matsnet.
5
5
  Home-page: https://github.com/yourusername/mezoTransactionTool
6
6
  Author: Dreadwulf
@@ -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 Key from User's `.env`
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mezoAgent",
5
- version="0.1.1",
5
+ version="0.1.2",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "web3",
File without changes
File without changes