mezoAgent 0.5.2__tar.gz → 0.5.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mezoagent-0.5.2 → mezoagent-0.5.3}/PKG-INFO +1 -1
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezoAgent.egg-info/PKG-INFO +1 -1
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/config.py +5 -1
- {mezoagent-0.5.2 → mezoagent-0.5.3}/setup.py +1 -1
- {mezoagent-0.5.2 → mezoagent-0.5.3}/MANIFEST.in +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/README.md +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezoAgent.egg-info/SOURCES.txt +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezoAgent.egg-info/dependency_links.txt +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezoAgent.egg-info/requires.txt +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezoAgent.egg-info/top_level.txt +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/__init__.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/characters.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/chat.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/data/new_router.json +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/parsing.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/swap_musd_btc.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/token_balance_tool.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/transaction.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/mezo_agent/utils.py +0 -0
- {mezoagent-0.5.2 → mezoagent-0.5.3}/setup.cfg +0 -0
@@ -37,13 +37,17 @@ sender_address = account.address
|
|
37
37
|
# mUSD Contract Setup using approve/allowance ABI
|
38
38
|
MUSD_ADDRESS = "0x637e22A1EBbca50EA2d34027c238317fD10003eB"
|
39
39
|
ERC20_ABI = json.loads(
|
40
|
-
'[{"constant":
|
40
|
+
'[{"constant": true, "inputs": [{"name": "owner", "type": "address"}], '
|
41
|
+
'"name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], '
|
42
|
+
'"stateMutability": "view", "type": "function"},'
|
43
|
+
'{"constant": false, "inputs": [{"name": "recipient", "type": "address"}, {"name": "amount", "type": "uint256"}],'
|
41
44
|
'"name": "transfer", "outputs": [{"name": "", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"},'
|
42
45
|
'{"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}],'
|
43
46
|
'"name": "approve", "outputs": [{"name": "", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"},'
|
44
47
|
'{"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}],'
|
45
48
|
'"name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "stateMutability": "view", "type": "function"}]'
|
46
49
|
)
|
50
|
+
|
47
51
|
musd_contract = web3_instance.eth.contract(address=MUSD_ADDRESS, abi=ERC20_ABI)
|
48
52
|
|
49
53
|
#Query graph for token info
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|