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,300 @@
1
+ {
2
+ "name": "Subscription NFT",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [
7
+ {
8
+ "indexed": true,
9
+ "internalType": "address",
10
+ "name": "account",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "indexed": true,
15
+ "internalType": "address",
16
+ "name": "operator",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "indexed": false,
21
+ "internalType": "bool",
22
+ "name": "approved",
23
+ "type": "bool"
24
+ }
25
+ ],
26
+ "name": "ApprovalForAll",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "operator",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "indexed": true,
40
+ "internalType": "address",
41
+ "name": "from",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "to",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": false,
52
+ "internalType": "uint256[]",
53
+ "name": "ids",
54
+ "type": "uint256[]"
55
+ },
56
+ {
57
+ "indexed": false,
58
+ "internalType": "uint256[]",
59
+ "name": "values",
60
+ "type": "uint256[]"
61
+ }
62
+ ],
63
+ "name": "TransferBatch",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": true,
71
+ "internalType": "address",
72
+ "name": "operator",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "from",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": true,
83
+ "internalType": "address",
84
+ "name": "to",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "id",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint256",
96
+ "name": "value",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "TransferSingle",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": false,
108
+ "internalType": "string",
109
+ "name": "value",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "uint256",
115
+ "name": "id",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "URI",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "account",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "id",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "balanceOf",
136
+ "outputs": [
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address[]",
150
+ "name": "accounts",
151
+ "type": "address[]"
152
+ },
153
+ {
154
+ "internalType": "uint256[]",
155
+ "name": "ids",
156
+ "type": "uint256[]"
157
+ }
158
+ ],
159
+ "name": "balanceOfBatch",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256[]",
163
+ "name": "",
164
+ "type": "uint256[]"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "account",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "address",
179
+ "name": "operator",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "isApprovedForAll",
184
+ "outputs": [
185
+ {
186
+ "internalType": "bool",
187
+ "name": "",
188
+ "type": "bool"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "from",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "internalType": "address",
203
+ "name": "to",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "internalType": "uint256[]",
208
+ "name": "ids",
209
+ "type": "uint256[]"
210
+ },
211
+ {
212
+ "internalType": "uint256[]",
213
+ "name": "values",
214
+ "type": "uint256[]"
215
+ },
216
+ {
217
+ "internalType": "bytes",
218
+ "name": "data",
219
+ "type": "bytes"
220
+ }
221
+ ],
222
+ "name": "safeBatchTransferFrom",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "address",
231
+ "name": "from",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "internalType": "address",
236
+ "name": "to",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "id",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "value",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "internalType": "bytes",
251
+ "name": "data",
252
+ "type": "bytes"
253
+ }
254
+ ],
255
+ "name": "safeTransferFrom",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "operator",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "bool",
269
+ "name": "approved",
270
+ "type": "bool"
271
+ }
272
+ ],
273
+ "name": "setApprovalForAll",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "bytes4",
282
+ "name": "interfaceId",
283
+ "type": "bytes4"
284
+ }
285
+ ],
286
+ "name": "supportsInterface",
287
+ "outputs": [
288
+ {
289
+ "internalType": "bool",
290
+ "name": "",
291
+ "type": "bool"
292
+ }
293
+ ],
294
+ "stateMutability": "view",
295
+ "type": "function"
296
+ }
297
+ ],
298
+ "address": "0xd5318d1A17819F65771B6c9277534C08Dd765498",
299
+ "implementation": "0xd5318d1A17819F65771B6c9277534C08Dd765498"
300
+ }
@@ -0,0 +1,300 @@
1
+ {
2
+ "name": "Subscription NFT",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [
7
+ {
8
+ "indexed": true,
9
+ "internalType": "address",
10
+ "name": "account",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "indexed": true,
15
+ "internalType": "address",
16
+ "name": "operator",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "indexed": false,
21
+ "internalType": "bool",
22
+ "name": "approved",
23
+ "type": "bool"
24
+ }
25
+ ],
26
+ "name": "ApprovalForAll",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "operator",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "indexed": true,
40
+ "internalType": "address",
41
+ "name": "from",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "to",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": false,
52
+ "internalType": "uint256[]",
53
+ "name": "ids",
54
+ "type": "uint256[]"
55
+ },
56
+ {
57
+ "indexed": false,
58
+ "internalType": "uint256[]",
59
+ "name": "values",
60
+ "type": "uint256[]"
61
+ }
62
+ ],
63
+ "name": "TransferBatch",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": true,
71
+ "internalType": "address",
72
+ "name": "operator",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "from",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": true,
83
+ "internalType": "address",
84
+ "name": "to",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "id",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "uint256",
96
+ "name": "value",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "TransferSingle",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": false,
108
+ "internalType": "string",
109
+ "name": "value",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "uint256",
115
+ "name": "id",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "URI",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "account",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "id",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "balanceOf",
136
+ "outputs": [
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "stateMutability": "view",
144
+ "type": "function"
145
+ },
146
+ {
147
+ "inputs": [
148
+ {
149
+ "internalType": "address[]",
150
+ "name": "accounts",
151
+ "type": "address[]"
152
+ },
153
+ {
154
+ "internalType": "uint256[]",
155
+ "name": "ids",
156
+ "type": "uint256[]"
157
+ }
158
+ ],
159
+ "name": "balanceOfBatch",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256[]",
163
+ "name": "",
164
+ "type": "uint256[]"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "account",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "address",
179
+ "name": "operator",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "isApprovedForAll",
184
+ "outputs": [
185
+ {
186
+ "internalType": "bool",
187
+ "name": "",
188
+ "type": "bool"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "from",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "internalType": "address",
203
+ "name": "to",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "internalType": "uint256[]",
208
+ "name": "ids",
209
+ "type": "uint256[]"
210
+ },
211
+ {
212
+ "internalType": "uint256[]",
213
+ "name": "values",
214
+ "type": "uint256[]"
215
+ },
216
+ {
217
+ "internalType": "bytes",
218
+ "name": "data",
219
+ "type": "bytes"
220
+ }
221
+ ],
222
+ "name": "safeBatchTransferFrom",
223
+ "outputs": [],
224
+ "stateMutability": "nonpayable",
225
+ "type": "function"
226
+ },
227
+ {
228
+ "inputs": [
229
+ {
230
+ "internalType": "address",
231
+ "name": "from",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "internalType": "address",
236
+ "name": "to",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "id",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "value",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "internalType": "bytes",
251
+ "name": "data",
252
+ "type": "bytes"
253
+ }
254
+ ],
255
+ "name": "safeTransferFrom",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "operator",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "bool",
269
+ "name": "approved",
270
+ "type": "bool"
271
+ }
272
+ ],
273
+ "name": "setApprovalForAll",
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "internalType": "bytes4",
282
+ "name": "interfaceId",
283
+ "type": "bytes4"
284
+ }
285
+ ],
286
+ "name": "supportsInterface",
287
+ "outputs": [
288
+ {
289
+ "internalType": "bool",
290
+ "name": "",
291
+ "type": "bool"
292
+ }
293
+ ],
294
+ "stateMutability": "view",
295
+ "type": "function"
296
+ }
297
+ ],
298
+ "address": "0x1b5DeaD7309b56ca7663b3301A503e077Be18cba",
299
+ "implementation": "0x1b5DeaD7309b56ca7663b3301A503e077Be18cba"
300
+ }