mech-client 0.4.0__py3-none-any.whl → 0.7.0__py3-none-any.whl

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.
Files changed (34) hide show
  1. mech_client/__init__.py +1 -1
  2. mech_client/abis/AgentMech.json +718 -0
  3. mech_client/abis/AgentRegistry.json +1037 -0
  4. mech_client/abis/AgreementStoreManager.base.json +766 -0
  5. mech_client/abis/AgreementStoreManager.gnosis.json +766 -0
  6. mech_client/abis/DIDRegistry.base.json +2476 -0
  7. mech_client/abis/DIDRegistry.gnosis.json +2476 -0
  8. mech_client/abis/EscrowPaymentCondition.base.json +717 -0
  9. mech_client/abis/EscrowPaymentCondition.gnosis.json +717 -0
  10. mech_client/abis/LockPaymentCondition.base.json +874 -0
  11. mech_client/abis/LockPaymentCondition.gnosis.json +874 -0
  12. mech_client/abis/NFTSalesTemplate.base.json +698 -0
  13. mech_client/abis/NFTSalesTemplate.gnosis.json +698 -0
  14. mech_client/abis/NeverminedConfig.base.json +587 -0
  15. mech_client/abis/NeverminedConfig.gnosis.json +587 -0
  16. mech_client/abis/SubscriptionNFT.base.json +300 -0
  17. mech_client/abis/SubscriptionNFT.gnosis.json +300 -0
  18. mech_client/abis/SubscriptionProvider.base.json +294 -0
  19. mech_client/abis/SubscriptionProvider.gnosis.json +294 -0
  20. mech_client/abis/SubscriptionToken.base.json +1393 -0
  21. mech_client/abis/TransferNFTCondition.base.json +1062 -0
  22. mech_client/abis/TransferNFTCondition.gnosis.json +1062 -0
  23. mech_client/cli.py +99 -10
  24. mech_client/configs/mechs.json +1 -7
  25. mech_client/interact.py +14 -39
  26. mech_client/marketplace_interact.py +130 -90
  27. mech_client/mech_tool_management.py +11 -5
  28. mech_client/subgraph.py +21 -35
  29. mech_client/wss.py +7 -6
  30. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/METADATA +53 -19
  31. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/RECORD +34 -13
  32. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/LICENSE +0 -0
  33. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/WHEEL +0 -0
  34. {mech_client-0.4.0.dist-info → mech_client-0.7.0.dist-info}/entry_points.txt +0 -0
@@ -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
+ }