mech-client 0.6.0__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mech_client-0.6.0 → mech_client-0.7.0}/PKG-INFO +10 -8
- {mech_client-0.6.0 → mech_client-0.7.0}/README.md +9 -7
- mech_client-0.7.0/mech_client/__init__.py +3 -0
- mech_client-0.7.0/mech_client/abis/SubscriptionProvider.base.json +294 -0
- mech_client-0.7.0/mech_client/abis/SubscriptionProvider.gnosis.json +294 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/cli.py +1 -1
- {mech_client-0.6.0 → mech_client-0.7.0}/pyproject.toml +1 -1
- mech_client-0.6.0/mech_client/__init__.py +0 -3
- {mech_client-0.6.0 → mech_client-0.7.0}/LICENSE +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/AgentMech.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/AgentRegistry.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/AgreementStoreManager.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/AgreementStoreManager.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerFixedPriceNative.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerFixedPriceToken.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerNvmSubscriptionNative.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerNvmSubscriptionToken.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/DIDRegistry.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/DIDRegistry.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/EscrowPaymentCondition.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/EscrowPaymentCondition.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/IERC1155.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/IMech.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/IToken.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/LockPaymentCondition.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/LockPaymentCondition.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/MechMarketplace.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/NFTSalesTemplate.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/NFTSalesTemplate.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/NeverminedConfig.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/NeverminedConfig.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/SubscriptionNFT.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/SubscriptionNFT.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/SubscriptionToken.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/TransferNFTCondition.base.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/TransferNFTCondition.gnosis.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/acn.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/configs/mechs.json +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/fetch_ipfs_hash.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/__init__.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/README.md +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/__init__.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/acn.proto +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/acn_pb2.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/custom_types.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/dialogues.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/message.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/protocol.yaml +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/serialization.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/tests/__init__.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/tests/test_acn.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/tests/test_acn_dialogues.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn/tests/test_acn_messages.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/README.md +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/__init__.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/acn_data_share.proto +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/acn_data_share_pb2.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/dialogues.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/message.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/protocol.yaml +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/serialization.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/tests/test_acn_data_share_dialogues.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/tests/test_acn_data_share_messages.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/p2p_libp2p_client/README.md +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/p2p_libp2p_client/__init__.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/p2p_libp2p_client/connection.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/p2p_libp2p_client/connection.yaml +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/interact.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/marketplace_interact.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/mech_tool_management.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/prompt_to_ipfs.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/push_to_ipfs.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/subgraph.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/to_png.py +0 -0
- {mech_client-0.6.0 → mech_client-0.7.0}/mech_client/wss.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mech-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Basic client to interact with a mech
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: David Minarsch
|
|
@@ -116,12 +116,6 @@ The EOA you use must have enough funds to pay for the Mech requests, or alternat
|
|
|
116
116
|
> echo ethereum_private_key.txt >> .gitignore
|
|
117
117
|
> ```
|
|
118
118
|
|
|
119
|
-
### Select the mech you are going to send requests to
|
|
120
|
-
|
|
121
|
-
Mechs can receive requests via the [Mech Marketplace](https://github.com/valory-xyz/ai-registry-mech/) or directly. We call the last ones _Legacy Mechs_.
|
|
122
|
-
Mechs are deployed on several networks. Find the list of supported networks and corresponding mech addresses [here](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs). Additionally, on Gnosis you can find more available Mechs [here](https://mech.olas.network/) (click on the tab "Legacy Mech" in order to see Legacy Mech and "Mech Marketplace" for the ones which receive requests via the Mech Marketplace).
|
|
123
|
-
|
|
124
|
-
|
|
125
119
|
### API Keys
|
|
126
120
|
|
|
127
121
|
In order to fetch on-chain data for Gnosis and Base, mech client requires an API key from a blockchain data provider. You can find them here for [GnosisScan](https://gnosisscan.io/) and [BaseScan](https://basescan.org/). Follow these steps to generate your API key if you are planning to use mech client for gnosis and base:
|
|
@@ -139,6 +133,11 @@ export MECHX_API_KEY=<your api key>
|
|
|
139
133
|
|
|
140
134
|
### Generate Mech requests
|
|
141
135
|
|
|
136
|
+
#### Select the mech you are going to send requests to
|
|
137
|
+
|
|
138
|
+
Mechs can receive requests via the [Mech Marketplace](https://github.com/valory-xyz/ai-registry-mech/) or directly. We call the last ones _Legacy Mechs_.
|
|
139
|
+
Mechs are deployed on several networks. Find the list of supported networks and corresponding mech addresses [here](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs). Additionally, you can find more available Mechs [here](https://mech.olas.network/) (click on the tab "Legacy Mech" in order to see Legacy Mech (available only on Gnosis) and "Mech Marketplace" for the ones which receive requests via the Mech Marketplace).
|
|
140
|
+
|
|
142
141
|
#### Legacy Mechs
|
|
143
142
|
|
|
144
143
|
The basic usage of the Mech Client is as follows:
|
|
@@ -221,7 +220,10 @@ For a Mech using Nevermined subscriptions, to make requests, it is necessary to
|
|
|
221
220
|
mechx purchase-nvm-subscription --chain-config <chain_config>
|
|
222
221
|
```
|
|
223
222
|
|
|
224
|
-
|
|
223
|
+
⚠️ To ensure optimal performance and reliability when using `purchase-nvm-subscription`, it is advisable to use a custom RPC provider as public RPC endpoints may be rate-limited or unreliable under high usage. You can configure your custom RPC URL in your environment variables using
|
|
224
|
+
```bash
|
|
225
|
+
export MECHX_CHAIN_RPC=
|
|
226
|
+
```
|
|
225
227
|
|
|
226
228
|
You can use the option `--key <private_key_file_path>` in order to customize the path to the private key file.
|
|
227
229
|
|
|
@@ -93,12 +93,6 @@ The EOA you use must have enough funds to pay for the Mech requests, or alternat
|
|
|
93
93
|
> echo ethereum_private_key.txt >> .gitignore
|
|
94
94
|
> ```
|
|
95
95
|
|
|
96
|
-
### Select the mech you are going to send requests to
|
|
97
|
-
|
|
98
|
-
Mechs can receive requests via the [Mech Marketplace](https://github.com/valory-xyz/ai-registry-mech/) or directly. We call the last ones _Legacy Mechs_.
|
|
99
|
-
Mechs are deployed on several networks. Find the list of supported networks and corresponding mech addresses [here](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs). Additionally, on Gnosis you can find more available Mechs [here](https://mech.olas.network/) (click on the tab "Legacy Mech" in order to see Legacy Mech and "Mech Marketplace" for the ones which receive requests via the Mech Marketplace).
|
|
100
|
-
|
|
101
|
-
|
|
102
96
|
### API Keys
|
|
103
97
|
|
|
104
98
|
In order to fetch on-chain data for Gnosis and Base, mech client requires an API key from a blockchain data provider. You can find them here for [GnosisScan](https://gnosisscan.io/) and [BaseScan](https://basescan.org/). Follow these steps to generate your API key if you are planning to use mech client for gnosis and base:
|
|
@@ -116,6 +110,11 @@ export MECHX_API_KEY=<your api key>
|
|
|
116
110
|
|
|
117
111
|
### Generate Mech requests
|
|
118
112
|
|
|
113
|
+
#### Select the mech you are going to send requests to
|
|
114
|
+
|
|
115
|
+
Mechs can receive requests via the [Mech Marketplace](https://github.com/valory-xyz/ai-registry-mech/) or directly. We call the last ones _Legacy Mechs_.
|
|
116
|
+
Mechs are deployed on several networks. Find the list of supported networks and corresponding mech addresses [here](https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs). Additionally, you can find more available Mechs [here](https://mech.olas.network/) (click on the tab "Legacy Mech" in order to see Legacy Mech (available only on Gnosis) and "Mech Marketplace" for the ones which receive requests via the Mech Marketplace).
|
|
117
|
+
|
|
119
118
|
#### Legacy Mechs
|
|
120
119
|
|
|
121
120
|
The basic usage of the Mech Client is as follows:
|
|
@@ -198,7 +197,10 @@ For a Mech using Nevermined subscriptions, to make requests, it is necessary to
|
|
|
198
197
|
mechx purchase-nvm-subscription --chain-config <chain_config>
|
|
199
198
|
```
|
|
200
199
|
|
|
201
|
-
|
|
200
|
+
⚠️ To ensure optimal performance and reliability when using `purchase-nvm-subscription`, it is advisable to use a custom RPC provider as public RPC endpoints may be rate-limited or unreliable under high usage. You can configure your custom RPC URL in your environment variables using
|
|
201
|
+
```bash
|
|
202
|
+
export MECHX_CHAIN_RPC=
|
|
203
|
+
```
|
|
202
204
|
|
|
203
205
|
You can use the option `--key <private_key_file_path>` in order to customize the path to the private key file.
|
|
204
206
|
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SubscriptionProvider",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "_didRegistry",
|
|
9
|
+
"type": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "_transferNFTCondition",
|
|
14
|
+
"type": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "_escrowPaymentCondition",
|
|
19
|
+
"type": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"stateMutability": "nonpayable",
|
|
23
|
+
"type": "constructor"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "address",
|
|
29
|
+
"name": "sender",
|
|
30
|
+
"type": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "address",
|
|
34
|
+
"name": "owner",
|
|
35
|
+
"type": "address"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "OwnerOnly",
|
|
39
|
+
"type": "error"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inputs": [],
|
|
43
|
+
"name": "ZeroAddress",
|
|
44
|
+
"type": "error"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"anonymous": false,
|
|
48
|
+
"inputs": [
|
|
49
|
+
{
|
|
50
|
+
"indexed": true,
|
|
51
|
+
"internalType": "address",
|
|
52
|
+
"name": "owner",
|
|
53
|
+
"type": "address"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "OwnerUpdated",
|
|
57
|
+
"type": "event"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bytes32",
|
|
63
|
+
"name": "did",
|
|
64
|
+
"type": "bytes32"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "provider",
|
|
69
|
+
"type": "address"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"name": "addDIDProvider",
|
|
73
|
+
"outputs": [],
|
|
74
|
+
"stateMutability": "nonpayable",
|
|
75
|
+
"type": "function"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"internalType": "address",
|
|
81
|
+
"name": "newOwner",
|
|
82
|
+
"type": "address"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "changeOwner",
|
|
86
|
+
"outputs": [],
|
|
87
|
+
"stateMutability": "nonpayable",
|
|
88
|
+
"type": "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "didRegistry",
|
|
93
|
+
"outputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "address",
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "view",
|
|
101
|
+
"type": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "escrowPaymentCondition",
|
|
106
|
+
"outputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "address",
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "address"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"type": "function"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "bytes32",
|
|
120
|
+
"name": "agreementId",
|
|
121
|
+
"type": "bytes32"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "bytes32",
|
|
125
|
+
"name": "did",
|
|
126
|
+
"type": "bytes32"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"components": [
|
|
130
|
+
{
|
|
131
|
+
"internalType": "address",
|
|
132
|
+
"name": "nftHolder",
|
|
133
|
+
"type": "address"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "nftReceiver",
|
|
138
|
+
"type": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "uint256",
|
|
142
|
+
"name": "nftAmount",
|
|
143
|
+
"type": "uint256"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"internalType": "bytes32",
|
|
147
|
+
"name": "lockPaymentCondition",
|
|
148
|
+
"type": "bytes32"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "nftContractAddress",
|
|
153
|
+
"type": "address"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "bool",
|
|
157
|
+
"name": "transfer",
|
|
158
|
+
"type": "bool"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"internalType": "uint256",
|
|
162
|
+
"name": "expirationBlock",
|
|
163
|
+
"type": "uint256"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"internalType": "struct FulfillForDelegateParams",
|
|
167
|
+
"name": "fulfillForDelegateParams",
|
|
168
|
+
"type": "tuple"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"components": [
|
|
172
|
+
{
|
|
173
|
+
"internalType": "uint256[]",
|
|
174
|
+
"name": "amounts",
|
|
175
|
+
"type": "uint256[]"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "address[]",
|
|
179
|
+
"name": "receivers",
|
|
180
|
+
"type": "address[]"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "returnAddress",
|
|
185
|
+
"type": "address"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"internalType": "address",
|
|
189
|
+
"name": "lockPaymentAddress",
|
|
190
|
+
"type": "address"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"internalType": "address",
|
|
194
|
+
"name": "tokenAddress",
|
|
195
|
+
"type": "address"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"internalType": "bytes32",
|
|
199
|
+
"name": "lockCondition",
|
|
200
|
+
"type": "bytes32"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"internalType": "bytes32",
|
|
204
|
+
"name": "releaseCondition",
|
|
205
|
+
"type": "bytes32"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"internalType": "struct FulfillParams",
|
|
209
|
+
"name": "fulfillParams",
|
|
210
|
+
"type": "tuple"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"name": "fulfill",
|
|
214
|
+
"outputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "enum NVM.ConditionState",
|
|
217
|
+
"name": "fulfillForDelegateConditionState",
|
|
218
|
+
"type": "uint8"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"internalType": "enum NVM.ConditionState",
|
|
222
|
+
"name": "fulfillConditionState",
|
|
223
|
+
"type": "uint8"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"stateMutability": "nonpayable",
|
|
227
|
+
"type": "function"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [],
|
|
231
|
+
"name": "owner",
|
|
232
|
+
"outputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "",
|
|
236
|
+
"type": "address"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"stateMutability": "view",
|
|
240
|
+
"type": "function"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"inputs": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "bytes32",
|
|
246
|
+
"name": "did",
|
|
247
|
+
"type": "bytes32"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "address",
|
|
251
|
+
"name": "provider",
|
|
252
|
+
"type": "address"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"name": "removeDIDProvider",
|
|
256
|
+
"outputs": [],
|
|
257
|
+
"stateMutability": "nonpayable",
|
|
258
|
+
"type": "function"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"inputs": [
|
|
262
|
+
{
|
|
263
|
+
"internalType": "bytes32",
|
|
264
|
+
"name": "did",
|
|
265
|
+
"type": "bytes32"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"internalType": "address",
|
|
269
|
+
"name": "newOwner",
|
|
270
|
+
"type": "address"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"name": "transferDIDOwnership",
|
|
274
|
+
"outputs": [],
|
|
275
|
+
"stateMutability": "nonpayable",
|
|
276
|
+
"type": "function"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"inputs": [],
|
|
280
|
+
"name": "transferNFTCondition",
|
|
281
|
+
"outputs": [
|
|
282
|
+
{
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "",
|
|
285
|
+
"type": "address"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"stateMutability": "view",
|
|
289
|
+
"type": "function"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"address": "0x5050c577583D25Ff9C9492A39e8D1B94028ffA55",
|
|
293
|
+
"implementation": "0x5050c577583D25Ff9C9492A39e8D1B94028ffA55"
|
|
294
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SubscriptionProvider",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "_didRegistry",
|
|
9
|
+
"type": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "_transferNFTCondition",
|
|
14
|
+
"type": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "_escrowPaymentCondition",
|
|
19
|
+
"type": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"stateMutability": "nonpayable",
|
|
23
|
+
"type": "constructor"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "address",
|
|
29
|
+
"name": "sender",
|
|
30
|
+
"type": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "address",
|
|
34
|
+
"name": "owner",
|
|
35
|
+
"type": "address"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "OwnerOnly",
|
|
39
|
+
"type": "error"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inputs": [],
|
|
43
|
+
"name": "ZeroAddress",
|
|
44
|
+
"type": "error"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"anonymous": false,
|
|
48
|
+
"inputs": [
|
|
49
|
+
{
|
|
50
|
+
"indexed": true,
|
|
51
|
+
"internalType": "address",
|
|
52
|
+
"name": "owner",
|
|
53
|
+
"type": "address"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "OwnerUpdated",
|
|
57
|
+
"type": "event"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bytes32",
|
|
63
|
+
"name": "did",
|
|
64
|
+
"type": "bytes32"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "provider",
|
|
69
|
+
"type": "address"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"name": "addDIDProvider",
|
|
73
|
+
"outputs": [],
|
|
74
|
+
"stateMutability": "nonpayable",
|
|
75
|
+
"type": "function"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"internalType": "address",
|
|
81
|
+
"name": "newOwner",
|
|
82
|
+
"type": "address"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "changeOwner",
|
|
86
|
+
"outputs": [],
|
|
87
|
+
"stateMutability": "nonpayable",
|
|
88
|
+
"type": "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "didRegistry",
|
|
93
|
+
"outputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "address",
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "view",
|
|
101
|
+
"type": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "escrowPaymentCondition",
|
|
106
|
+
"outputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "address",
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "address"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"type": "function"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "bytes32",
|
|
120
|
+
"name": "agreementId",
|
|
121
|
+
"type": "bytes32"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "bytes32",
|
|
125
|
+
"name": "did",
|
|
126
|
+
"type": "bytes32"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"components": [
|
|
130
|
+
{
|
|
131
|
+
"internalType": "address",
|
|
132
|
+
"name": "nftHolder",
|
|
133
|
+
"type": "address"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "nftReceiver",
|
|
138
|
+
"type": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "uint256",
|
|
142
|
+
"name": "nftAmount",
|
|
143
|
+
"type": "uint256"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"internalType": "bytes32",
|
|
147
|
+
"name": "lockPaymentCondition",
|
|
148
|
+
"type": "bytes32"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"internalType": "address",
|
|
152
|
+
"name": "nftContractAddress",
|
|
153
|
+
"type": "address"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "bool",
|
|
157
|
+
"name": "transfer",
|
|
158
|
+
"type": "bool"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"internalType": "uint256",
|
|
162
|
+
"name": "expirationBlock",
|
|
163
|
+
"type": "uint256"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"internalType": "struct FulfillForDelegateParams",
|
|
167
|
+
"name": "fulfillForDelegateParams",
|
|
168
|
+
"type": "tuple"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"components": [
|
|
172
|
+
{
|
|
173
|
+
"internalType": "uint256[]",
|
|
174
|
+
"name": "amounts",
|
|
175
|
+
"type": "uint256[]"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "address[]",
|
|
179
|
+
"name": "receivers",
|
|
180
|
+
"type": "address[]"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "returnAddress",
|
|
185
|
+
"type": "address"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"internalType": "address",
|
|
189
|
+
"name": "lockPaymentAddress",
|
|
190
|
+
"type": "address"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"internalType": "address",
|
|
194
|
+
"name": "tokenAddress",
|
|
195
|
+
"type": "address"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"internalType": "bytes32",
|
|
199
|
+
"name": "lockCondition",
|
|
200
|
+
"type": "bytes32"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"internalType": "bytes32",
|
|
204
|
+
"name": "releaseCondition",
|
|
205
|
+
"type": "bytes32"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"internalType": "struct FulfillParams",
|
|
209
|
+
"name": "fulfillParams",
|
|
210
|
+
"type": "tuple"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"name": "fulfill",
|
|
214
|
+
"outputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "enum NVM.ConditionState",
|
|
217
|
+
"name": "fulfillForDelegateConditionState",
|
|
218
|
+
"type": "uint8"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"internalType": "enum NVM.ConditionState",
|
|
222
|
+
"name": "fulfillConditionState",
|
|
223
|
+
"type": "uint8"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"stateMutability": "nonpayable",
|
|
227
|
+
"type": "function"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [],
|
|
231
|
+
"name": "owner",
|
|
232
|
+
"outputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "",
|
|
236
|
+
"type": "address"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"stateMutability": "view",
|
|
240
|
+
"type": "function"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"inputs": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "bytes32",
|
|
246
|
+
"name": "did",
|
|
247
|
+
"type": "bytes32"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "address",
|
|
251
|
+
"name": "provider",
|
|
252
|
+
"type": "address"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"name": "removeDIDProvider",
|
|
256
|
+
"outputs": [],
|
|
257
|
+
"stateMutability": "nonpayable",
|
|
258
|
+
"type": "function"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"inputs": [
|
|
262
|
+
{
|
|
263
|
+
"internalType": "bytes32",
|
|
264
|
+
"name": "did",
|
|
265
|
+
"type": "bytes32"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"internalType": "address",
|
|
269
|
+
"name": "newOwner",
|
|
270
|
+
"type": "address"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"name": "transferDIDOwnership",
|
|
274
|
+
"outputs": [],
|
|
275
|
+
"stateMutability": "nonpayable",
|
|
276
|
+
"type": "function"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"inputs": [],
|
|
280
|
+
"name": "transferNFTCondition",
|
|
281
|
+
"outputs": [
|
|
282
|
+
{
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "",
|
|
285
|
+
"type": "address"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"stateMutability": "view",
|
|
289
|
+
"type": "function"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"address": "0x4a2f40E14309c20c0C3803c3CcCd5E9B5F2D4eCA",
|
|
293
|
+
"implementation": "0x4a2f40E14309c20c0C3803c3CcCd5E9B5F2D4eCA"
|
|
294
|
+
}
|
|
@@ -414,7 +414,7 @@ def nvm_subscribe(
|
|
|
414
414
|
key: str,
|
|
415
415
|
chain_config: str,
|
|
416
416
|
) -> None:
|
|
417
|
-
"""
|
|
417
|
+
"""Allows to purchase nvm subscription for nvm mech requests."""
|
|
418
418
|
nvm_subscribe_main(private_key_path=key, chain_config=chain_config)
|
|
419
419
|
|
|
420
420
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerFixedPriceNative.json
RENAMED
|
File without changes
|
|
File without changes
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerNvmSubscriptionNative.json
RENAMED
|
File without changes
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/abis/BalanceTrackerNvmSubscriptionToken.json
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/acn_data_share.proto
RENAMED
|
File without changes
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/acn_data_share/acn_data_share_pb2.py
RENAMED
|
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
|
{mech_client-0.6.0 → mech_client-0.7.0}/mech_client/helpers/p2p_libp2p_client/connection.yaml
RENAMED
|
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
|