@gitmyabi/vault 1.0.8 → 1.0.9
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.
- package/README.md +5 -5
- package/contracts/ERC1967Proxy_json.d.ts +144 -0
- package/contracts/ERC1967Proxy_json.js +180 -0
- package/contracts/ERC1967Proxy_json.ts +209 -0
- package/contracts/Vault_json.d.ts +516 -447
- package/contracts/Vault_json.js +460 -511
- package/contracts/Vault_json.ts +572 -518
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +4 -1
- package/contracts/index.ts +2 -0
- package/package.json +3 -3
package/contracts/Vault_json.js
CHANGED
|
@@ -9,121 +9,53 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.Vault_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"inputs": [
|
|
13
|
-
{
|
|
14
|
-
"internalType": "contract IERC721",
|
|
15
|
-
"name": "_nftContract",
|
|
16
|
-
"type": "address"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"internalType": "uint256",
|
|
20
|
-
"name": "_emergencyPenalty",
|
|
21
|
-
"type": "uint256"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"internalType": "address",
|
|
25
|
-
"name": "_emergencyPenaltyReceiver",
|
|
26
|
-
"type": "address"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"internalType": "uint256",
|
|
30
|
-
"name": "_successFee",
|
|
31
|
-
"type": "uint256"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"internalType": "address",
|
|
35
|
-
"name": "_successFeeReceiver",
|
|
36
|
-
"type": "address"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
12
|
+
"inputs": [],
|
|
39
13
|
"stateMutability": "nonpayable",
|
|
40
14
|
"type": "constructor"
|
|
41
15
|
},
|
|
42
16
|
{
|
|
17
|
+
"anonymous": false,
|
|
43
18
|
"inputs": [
|
|
44
19
|
{
|
|
20
|
+
"indexed": false,
|
|
45
21
|
"internalType": "address",
|
|
46
|
-
"name": "
|
|
22
|
+
"name": "previousAdmin",
|
|
47
23
|
"type": "address"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"name": "OwnableInvalidOwner",
|
|
51
|
-
"type": "error"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"inputs": [
|
|
24
|
+
},
|
|
55
25
|
{
|
|
26
|
+
"indexed": false,
|
|
56
27
|
"internalType": "address",
|
|
57
|
-
"name": "
|
|
28
|
+
"name": "newAdmin",
|
|
58
29
|
"type": "address"
|
|
59
30
|
}
|
|
60
31
|
],
|
|
61
|
-
"name": "
|
|
62
|
-
"type": "
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"inputs": [],
|
|
66
|
-
"name": "ReentrancyGuardReentrantCall",
|
|
67
|
-
"type": "error"
|
|
32
|
+
"name": "AdminChanged",
|
|
33
|
+
"type": "event"
|
|
68
34
|
},
|
|
69
35
|
{
|
|
36
|
+
"anonymous": false,
|
|
70
37
|
"inputs": [
|
|
71
38
|
{
|
|
39
|
+
"indexed": true,
|
|
72
40
|
"internalType": "address",
|
|
73
|
-
"name": "
|
|
41
|
+
"name": "beacon",
|
|
74
42
|
"type": "address"
|
|
75
43
|
}
|
|
76
44
|
],
|
|
77
|
-
"name": "
|
|
78
|
-
"type": "
|
|
45
|
+
"name": "BeaconUpgraded",
|
|
46
|
+
"type": "event"
|
|
79
47
|
},
|
|
80
48
|
{
|
|
81
49
|
"anonymous": false,
|
|
82
50
|
"inputs": [
|
|
83
51
|
{
|
|
84
52
|
"indexed": false,
|
|
85
|
-
"internalType": "
|
|
86
|
-
"name": "
|
|
87
|
-
"type": "
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"indexed": false,
|
|
91
|
-
"internalType": "uint256",
|
|
92
|
-
"name": "startTimestamp",
|
|
93
|
-
"type": "uint256"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"indexed": false,
|
|
97
|
-
"internalType": "uint256",
|
|
98
|
-
"name": "endTimestamp",
|
|
99
|
-
"type": "uint256"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"indexed": false,
|
|
103
|
-
"internalType": "address[]",
|
|
104
|
-
"name": "tokens",
|
|
105
|
-
"type": "address[]"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"indexed": false,
|
|
109
|
-
"internalType": "uint256[]",
|
|
110
|
-
"name": "amounts",
|
|
111
|
-
"type": "uint256[]"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"indexed": false,
|
|
115
|
-
"internalType": "uint256[]",
|
|
116
|
-
"name": "prices",
|
|
117
|
-
"type": "uint256[]"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"indexed": false,
|
|
121
|
-
"internalType": "address",
|
|
122
|
-
"name": "receiver",
|
|
123
|
-
"type": "address"
|
|
53
|
+
"internalType": "uint8",
|
|
54
|
+
"name": "version",
|
|
55
|
+
"type": "uint8"
|
|
124
56
|
}
|
|
125
57
|
],
|
|
126
|
-
"name": "
|
|
58
|
+
"name": "Initialized",
|
|
127
59
|
"type": "event"
|
|
128
60
|
},
|
|
129
61
|
{
|
|
@@ -149,114 +81,75 @@ exports.Vault_jsonAbi = [
|
|
|
149
81
|
"anonymous": false,
|
|
150
82
|
"inputs": [
|
|
151
83
|
{
|
|
152
|
-
"indexed":
|
|
153
|
-
"internalType": "
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"name": "SetEmergencyPenalty",
|
|
159
|
-
"type": "event"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"anonymous": false,
|
|
163
|
-
"inputs": [
|
|
164
|
-
{
|
|
165
|
-
"indexed": false,
|
|
166
|
-
"internalType": "address",
|
|
167
|
-
"name": "emergencyPenaltyReceiver",
|
|
168
|
-
"type": "address"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"name": "SetEmergencyPenaltyReceiver",
|
|
172
|
-
"type": "event"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"anonymous": false,
|
|
176
|
-
"inputs": [
|
|
84
|
+
"indexed": true,
|
|
85
|
+
"internalType": "bytes32",
|
|
86
|
+
"name": "role",
|
|
87
|
+
"type": "bytes32"
|
|
88
|
+
},
|
|
177
89
|
{
|
|
178
|
-
"indexed":
|
|
179
|
-
"internalType": "
|
|
180
|
-
"name": "
|
|
181
|
-
"type": "
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"name": "SetSuccessFee",
|
|
185
|
-
"type": "event"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"anonymous": false,
|
|
189
|
-
"inputs": [
|
|
90
|
+
"indexed": true,
|
|
91
|
+
"internalType": "bytes32",
|
|
92
|
+
"name": "previousAdminRole",
|
|
93
|
+
"type": "bytes32"
|
|
94
|
+
},
|
|
190
95
|
{
|
|
191
|
-
"indexed":
|
|
192
|
-
"internalType": "
|
|
193
|
-
"name": "
|
|
194
|
-
"type": "
|
|
96
|
+
"indexed": true,
|
|
97
|
+
"internalType": "bytes32",
|
|
98
|
+
"name": "newAdminRole",
|
|
99
|
+
"type": "bytes32"
|
|
195
100
|
}
|
|
196
101
|
],
|
|
197
|
-
"name": "
|
|
102
|
+
"name": "RoleAdminChanged",
|
|
198
103
|
"type": "event"
|
|
199
104
|
},
|
|
200
105
|
{
|
|
201
106
|
"anonymous": false,
|
|
202
107
|
"inputs": [
|
|
203
108
|
{
|
|
204
|
-
"indexed":
|
|
205
|
-
"internalType": "
|
|
206
|
-
"name": "
|
|
207
|
-
"type": "
|
|
109
|
+
"indexed": true,
|
|
110
|
+
"internalType": "bytes32",
|
|
111
|
+
"name": "role",
|
|
112
|
+
"type": "bytes32"
|
|
208
113
|
},
|
|
209
114
|
{
|
|
210
|
-
"indexed":
|
|
115
|
+
"indexed": true,
|
|
211
116
|
"internalType": "address",
|
|
212
|
-
"name": "
|
|
117
|
+
"name": "account",
|
|
213
118
|
"type": "address"
|
|
214
119
|
},
|
|
215
120
|
{
|
|
216
|
-
"indexed":
|
|
217
|
-
"internalType": "
|
|
218
|
-
"name": "
|
|
219
|
-
"type": "
|
|
121
|
+
"indexed": true,
|
|
122
|
+
"internalType": "address",
|
|
123
|
+
"name": "sender",
|
|
124
|
+
"type": "address"
|
|
220
125
|
}
|
|
221
126
|
],
|
|
222
|
-
"name": "
|
|
127
|
+
"name": "RoleGranted",
|
|
223
128
|
"type": "event"
|
|
224
129
|
},
|
|
225
130
|
{
|
|
226
131
|
"anonymous": false,
|
|
227
132
|
"inputs": [
|
|
228
133
|
{
|
|
229
|
-
"indexed":
|
|
230
|
-
"internalType": "address",
|
|
231
|
-
"name": "token",
|
|
232
|
-
"type": "address"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"indexed": false,
|
|
236
|
-
"internalType": "address",
|
|
237
|
-
"name": "stateView",
|
|
238
|
-
"type": "address"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"indexed": false,
|
|
134
|
+
"indexed": true,
|
|
242
135
|
"internalType": "bytes32",
|
|
243
|
-
"name": "
|
|
136
|
+
"name": "role",
|
|
244
137
|
"type": "bytes32"
|
|
245
138
|
},
|
|
246
139
|
{
|
|
247
|
-
"indexed":
|
|
248
|
-
"internalType": "
|
|
249
|
-
"name": "
|
|
250
|
-
"type": "
|
|
140
|
+
"indexed": true,
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "account",
|
|
143
|
+
"type": "address"
|
|
251
144
|
},
|
|
252
145
|
{
|
|
253
|
-
"indexed":
|
|
254
|
-
"internalType": "
|
|
255
|
-
"name": "
|
|
256
|
-
"type": "
|
|
146
|
+
"indexed": true,
|
|
147
|
+
"internalType": "address",
|
|
148
|
+
"name": "sender",
|
|
149
|
+
"type": "address"
|
|
257
150
|
}
|
|
258
151
|
],
|
|
259
|
-
"name": "
|
|
152
|
+
"name": "RoleRevoked",
|
|
260
153
|
"type": "event"
|
|
261
154
|
},
|
|
262
155
|
{
|
|
@@ -265,33 +158,21 @@ exports.Vault_jsonAbi = [
|
|
|
265
158
|
{
|
|
266
159
|
"indexed": true,
|
|
267
160
|
"internalType": "address",
|
|
268
|
-
"name": "
|
|
161
|
+
"name": "implementation",
|
|
269
162
|
"type": "address"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"indexed": false,
|
|
273
|
-
"internalType": "uint256",
|
|
274
|
-
"name": "uid",
|
|
275
|
-
"type": "uint256"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"indexed": false,
|
|
279
|
-
"internalType": "bool",
|
|
280
|
-
"name": "isEmergency",
|
|
281
|
-
"type": "bool"
|
|
282
163
|
}
|
|
283
164
|
],
|
|
284
|
-
"name": "
|
|
165
|
+
"name": "Upgraded",
|
|
285
166
|
"type": "event"
|
|
286
167
|
},
|
|
287
168
|
{
|
|
288
169
|
"inputs": [],
|
|
289
|
-
"name": "
|
|
170
|
+
"name": "DEFAULT_ADMIN_ROLE",
|
|
290
171
|
"outputs": [
|
|
291
172
|
{
|
|
292
|
-
"internalType": "
|
|
173
|
+
"internalType": "bytes32",
|
|
293
174
|
"name": "",
|
|
294
|
-
"type": "
|
|
175
|
+
"type": "bytes32"
|
|
295
176
|
}
|
|
296
177
|
],
|
|
297
178
|
"stateMutability": "view",
|
|
@@ -299,12 +180,12 @@ exports.Vault_jsonAbi = [
|
|
|
299
180
|
},
|
|
300
181
|
{
|
|
301
182
|
"inputs": [],
|
|
302
|
-
"name": "
|
|
183
|
+
"name": "PAYEE_ROLE",
|
|
303
184
|
"outputs": [
|
|
304
185
|
{
|
|
305
|
-
"internalType": "
|
|
186
|
+
"internalType": "bytes32",
|
|
306
187
|
"name": "",
|
|
307
|
-
"type": "
|
|
188
|
+
"type": "bytes32"
|
|
308
189
|
}
|
|
309
190
|
],
|
|
310
191
|
"stateMutability": "view",
|
|
@@ -312,12 +193,12 @@ exports.Vault_jsonAbi = [
|
|
|
312
193
|
},
|
|
313
194
|
{
|
|
314
195
|
"inputs": [],
|
|
315
|
-
"name": "
|
|
196
|
+
"name": "PAYER_ROLE",
|
|
316
197
|
"outputs": [
|
|
317
198
|
{
|
|
318
|
-
"internalType": "
|
|
199
|
+
"internalType": "bytes32",
|
|
319
200
|
"name": "",
|
|
320
|
-
"type": "
|
|
201
|
+
"type": "bytes32"
|
|
321
202
|
}
|
|
322
203
|
],
|
|
323
204
|
"stateMutability": "view",
|
|
@@ -326,51 +207,45 @@ exports.Vault_jsonAbi = [
|
|
|
326
207
|
{
|
|
327
208
|
"inputs": [
|
|
328
209
|
{
|
|
329
|
-
"internalType": "
|
|
330
|
-
"name": "",
|
|
331
|
-
"type": "address"
|
|
332
|
-
}
|
|
333
|
-
],
|
|
334
|
-
"name": "allowedTokens",
|
|
335
|
-
"outputs": [
|
|
336
|
-
{
|
|
337
|
-
"internalType": "address",
|
|
338
|
-
"name": "token",
|
|
339
|
-
"type": "address"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"internalType": "address",
|
|
343
|
-
"name": "stateView",
|
|
344
|
-
"type": "address"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"internalType": "bytes32",
|
|
348
|
-
"name": "poolId",
|
|
349
|
-
"type": "bytes32"
|
|
210
|
+
"internalType": "contract IERC20Upgradeable[]",
|
|
211
|
+
"name": "tokens",
|
|
212
|
+
"type": "address[]"
|
|
350
213
|
},
|
|
351
214
|
{
|
|
352
|
-
"internalType": "
|
|
353
|
-
"name": "
|
|
354
|
-
"type": "
|
|
215
|
+
"internalType": "address[]",
|
|
216
|
+
"name": "payees",
|
|
217
|
+
"type": "address[]"
|
|
355
218
|
},
|
|
356
219
|
{
|
|
357
|
-
"internalType": "
|
|
358
|
-
"name": "
|
|
359
|
-
"type": "
|
|
220
|
+
"internalType": "uint256[]",
|
|
221
|
+
"name": "amounts",
|
|
222
|
+
"type": "uint256[]"
|
|
360
223
|
}
|
|
361
224
|
],
|
|
362
|
-
"
|
|
225
|
+
"name": "batchTransferErc20",
|
|
226
|
+
"outputs": [],
|
|
227
|
+
"stateMutability": "nonpayable",
|
|
363
228
|
"type": "function"
|
|
364
229
|
},
|
|
365
230
|
{
|
|
366
231
|
"inputs": [
|
|
367
232
|
{
|
|
368
|
-
"internalType": "
|
|
369
|
-
"name": "
|
|
370
|
-
"type": "
|
|
233
|
+
"internalType": "contract IERC721Upgradeable[]",
|
|
234
|
+
"name": "tokens",
|
|
235
|
+
"type": "address[]"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"internalType": "address[]",
|
|
239
|
+
"name": "payees",
|
|
240
|
+
"type": "address[]"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"internalType": "uint256[]",
|
|
244
|
+
"name": "tokenIds",
|
|
245
|
+
"type": "uint256[]"
|
|
371
246
|
}
|
|
372
247
|
],
|
|
373
|
-
"name": "
|
|
248
|
+
"name": "batchTransferErc721",
|
|
374
249
|
"outputs": [],
|
|
375
250
|
"stateMutability": "nonpayable",
|
|
376
251
|
"type": "function"
|
|
@@ -378,12 +253,17 @@ exports.Vault_jsonAbi = [
|
|
|
378
253
|
{
|
|
379
254
|
"inputs": [
|
|
380
255
|
{
|
|
381
|
-
"internalType": "address",
|
|
382
|
-
"name": "
|
|
383
|
-
"type": "address"
|
|
256
|
+
"internalType": "address[]",
|
|
257
|
+
"name": "payees",
|
|
258
|
+
"type": "address[]"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"internalType": "uint256[]",
|
|
262
|
+
"name": "amounts",
|
|
263
|
+
"type": "uint256[]"
|
|
384
264
|
}
|
|
385
265
|
],
|
|
386
|
-
"name": "
|
|
266
|
+
"name": "batchTransferEther",
|
|
387
267
|
"outputs": [],
|
|
388
268
|
"stateMutability": "nonpayable",
|
|
389
269
|
"type": "function"
|
|
@@ -391,156 +271,154 @@ exports.Vault_jsonAbi = [
|
|
|
391
271
|
{
|
|
392
272
|
"inputs": [
|
|
393
273
|
{
|
|
394
|
-
"internalType": "
|
|
395
|
-
"name": "
|
|
396
|
-
"type": "
|
|
274
|
+
"internalType": "bytes32",
|
|
275
|
+
"name": "role",
|
|
276
|
+
"type": "bytes32"
|
|
397
277
|
}
|
|
398
278
|
],
|
|
399
|
-
"name": "
|
|
400
|
-
"outputs": [
|
|
401
|
-
"stateMutability": "nonpayable",
|
|
402
|
-
"type": "function"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"inputs": [
|
|
279
|
+
"name": "getRoleAdmin",
|
|
280
|
+
"outputs": [
|
|
406
281
|
{
|
|
407
|
-
"internalType": "
|
|
408
|
-
"name": "
|
|
409
|
-
"type": "
|
|
282
|
+
"internalType": "bytes32",
|
|
283
|
+
"name": "",
|
|
284
|
+
"type": "bytes32"
|
|
410
285
|
}
|
|
411
286
|
],
|
|
412
|
-
"
|
|
413
|
-
"outputs": [],
|
|
414
|
-
"stateMutability": "nonpayable",
|
|
287
|
+
"stateMutability": "view",
|
|
415
288
|
"type": "function"
|
|
416
289
|
},
|
|
417
290
|
{
|
|
418
291
|
"inputs": [
|
|
419
292
|
{
|
|
420
|
-
"internalType": "
|
|
421
|
-
"name": "
|
|
422
|
-
"type": "
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"internalType": "uint256[]",
|
|
426
|
-
"name": "_amounts",
|
|
427
|
-
"type": "uint256[]"
|
|
293
|
+
"internalType": "bytes32",
|
|
294
|
+
"name": "role",
|
|
295
|
+
"type": "bytes32"
|
|
428
296
|
},
|
|
429
297
|
{
|
|
430
298
|
"internalType": "uint256",
|
|
431
|
-
"name": "
|
|
299
|
+
"name": "index",
|
|
432
300
|
"type": "uint256"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"internalType": "address",
|
|
436
|
-
"name": "receiver",
|
|
437
|
-
"type": "address"
|
|
438
301
|
}
|
|
439
302
|
],
|
|
440
|
-
"name": "
|
|
303
|
+
"name": "getRoleMember",
|
|
441
304
|
"outputs": [
|
|
442
305
|
{
|
|
443
|
-
"internalType": "
|
|
306
|
+
"internalType": "address",
|
|
444
307
|
"name": "",
|
|
445
|
-
"type": "
|
|
308
|
+
"type": "address"
|
|
446
309
|
}
|
|
447
310
|
],
|
|
448
|
-
"stateMutability": "
|
|
311
|
+
"stateMutability": "view",
|
|
449
312
|
"type": "function"
|
|
450
313
|
},
|
|
451
314
|
{
|
|
452
315
|
"inputs": [
|
|
453
316
|
{
|
|
454
|
-
"internalType": "
|
|
455
|
-
"name": "",
|
|
456
|
-
"type": "
|
|
317
|
+
"internalType": "bytes32",
|
|
318
|
+
"name": "role",
|
|
319
|
+
"type": "bytes32"
|
|
457
320
|
}
|
|
458
321
|
],
|
|
459
|
-
"name": "
|
|
322
|
+
"name": "getRoleMemberCount",
|
|
460
323
|
"outputs": [
|
|
461
324
|
{
|
|
462
325
|
"internalType": "uint256",
|
|
463
|
-
"name": "
|
|
326
|
+
"name": "",
|
|
464
327
|
"type": "uint256"
|
|
465
|
-
}
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"stateMutability": "view",
|
|
331
|
+
"type": "function"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"inputs": [
|
|
466
335
|
{
|
|
467
|
-
"internalType": "
|
|
468
|
-
"name": "
|
|
469
|
-
"type": "
|
|
336
|
+
"internalType": "bytes32",
|
|
337
|
+
"name": "role",
|
|
338
|
+
"type": "bytes32"
|
|
470
339
|
},
|
|
471
340
|
{
|
|
472
|
-
"internalType": "
|
|
473
|
-
"name": "
|
|
474
|
-
"type": "
|
|
341
|
+
"internalType": "address",
|
|
342
|
+
"name": "account",
|
|
343
|
+
"type": "address"
|
|
475
344
|
}
|
|
476
345
|
],
|
|
477
|
-
"
|
|
346
|
+
"name": "grantRole",
|
|
347
|
+
"outputs": [],
|
|
348
|
+
"stateMutability": "nonpayable",
|
|
478
349
|
"type": "function"
|
|
479
350
|
},
|
|
480
351
|
{
|
|
481
|
-
"inputs": [
|
|
482
|
-
|
|
483
|
-
|
|
352
|
+
"inputs": [
|
|
353
|
+
{
|
|
354
|
+
"internalType": "bytes32",
|
|
355
|
+
"name": "role",
|
|
356
|
+
"type": "bytes32"
|
|
357
|
+
},
|
|
484
358
|
{
|
|
485
|
-
"internalType": "
|
|
486
|
-
"name": "",
|
|
487
|
-
"type": "
|
|
359
|
+
"internalType": "address",
|
|
360
|
+
"name": "account",
|
|
361
|
+
"type": "address"
|
|
488
362
|
}
|
|
489
363
|
],
|
|
490
|
-
"
|
|
491
|
-
"type": "function"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"inputs": [],
|
|
495
|
-
"name": "emergencyPenaltyReceiver",
|
|
364
|
+
"name": "hasRole",
|
|
496
365
|
"outputs": [
|
|
497
366
|
{
|
|
498
|
-
"internalType": "
|
|
367
|
+
"internalType": "bool",
|
|
499
368
|
"name": "",
|
|
500
|
-
"type": "
|
|
369
|
+
"type": "bool"
|
|
501
370
|
}
|
|
502
371
|
],
|
|
503
372
|
"stateMutability": "view",
|
|
504
373
|
"type": "function"
|
|
505
374
|
},
|
|
506
375
|
{
|
|
507
|
-
"inputs": [
|
|
508
|
-
|
|
509
|
-
"internalType": "uint256",
|
|
510
|
-
"name": "_uid",
|
|
511
|
-
"type": "uint256"
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
"name": "emergencyWithdraw",
|
|
376
|
+
"inputs": [],
|
|
377
|
+
"name": "initialize",
|
|
515
378
|
"outputs": [],
|
|
516
379
|
"stateMutability": "nonpayable",
|
|
517
380
|
"type": "function"
|
|
518
381
|
},
|
|
519
382
|
{
|
|
520
383
|
"inputs": [
|
|
384
|
+
{
|
|
385
|
+
"internalType": "address",
|
|
386
|
+
"name": "",
|
|
387
|
+
"type": "address"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"internalType": "address",
|
|
391
|
+
"name": "",
|
|
392
|
+
"type": "address"
|
|
393
|
+
},
|
|
521
394
|
{
|
|
522
395
|
"internalType": "uint256",
|
|
523
|
-
"name": "
|
|
396
|
+
"name": "",
|
|
524
397
|
"type": "uint256"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "bytes",
|
|
401
|
+
"name": "",
|
|
402
|
+
"type": "bytes"
|
|
525
403
|
}
|
|
526
404
|
],
|
|
527
|
-
"name": "
|
|
405
|
+
"name": "onERC721Received",
|
|
528
406
|
"outputs": [
|
|
529
407
|
{
|
|
530
|
-
"internalType": "
|
|
408
|
+
"internalType": "bytes4",
|
|
531
409
|
"name": "",
|
|
532
|
-
"type": "
|
|
410
|
+
"type": "bytes4"
|
|
533
411
|
}
|
|
534
412
|
],
|
|
535
|
-
"stateMutability": "
|
|
413
|
+
"stateMutability": "nonpayable",
|
|
536
414
|
"type": "function"
|
|
537
415
|
},
|
|
538
416
|
{
|
|
539
417
|
"inputs": [],
|
|
540
|
-
"name": "
|
|
418
|
+
"name": "owner",
|
|
541
419
|
"outputs": [
|
|
542
420
|
{
|
|
543
|
-
"internalType": "
|
|
421
|
+
"internalType": "address",
|
|
544
422
|
"name": "",
|
|
545
423
|
"type": "address"
|
|
546
424
|
}
|
|
@@ -550,12 +428,12 @@ exports.Vault_jsonAbi = [
|
|
|
550
428
|
},
|
|
551
429
|
{
|
|
552
430
|
"inputs": [],
|
|
553
|
-
"name": "
|
|
431
|
+
"name": "proxiableUUID",
|
|
554
432
|
"outputs": [
|
|
555
433
|
{
|
|
556
|
-
"internalType": "
|
|
434
|
+
"internalType": "bytes32",
|
|
557
435
|
"name": "",
|
|
558
|
-
"type": "
|
|
436
|
+
"type": "bytes32"
|
|
559
437
|
}
|
|
560
438
|
],
|
|
561
439
|
"stateMutability": "view",
|
|
@@ -571,57 +449,53 @@ exports.Vault_jsonAbi = [
|
|
|
571
449
|
{
|
|
572
450
|
"inputs": [
|
|
573
451
|
{
|
|
574
|
-
"internalType": "
|
|
575
|
-
"name": "
|
|
576
|
-
"type": "
|
|
452
|
+
"internalType": "bytes32",
|
|
453
|
+
"name": "role",
|
|
454
|
+
"type": "bytes32"
|
|
577
455
|
},
|
|
578
456
|
{
|
|
579
457
|
"internalType": "address",
|
|
580
|
-
"name": "
|
|
458
|
+
"name": "account",
|
|
581
459
|
"type": "address"
|
|
582
|
-
}
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"name": "renounceRole",
|
|
463
|
+
"outputs": [],
|
|
464
|
+
"stateMutability": "nonpayable",
|
|
465
|
+
"type": "function"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"inputs": [
|
|
583
469
|
{
|
|
584
470
|
"internalType": "bytes32",
|
|
585
|
-
"name": "
|
|
471
|
+
"name": "role",
|
|
586
472
|
"type": "bytes32"
|
|
587
473
|
},
|
|
588
474
|
{
|
|
589
|
-
"internalType": "
|
|
590
|
-
"name": "
|
|
591
|
-
"type": "
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"internalType": "bool",
|
|
595
|
-
"name": "_status",
|
|
596
|
-
"type": "bool"
|
|
475
|
+
"internalType": "address",
|
|
476
|
+
"name": "account",
|
|
477
|
+
"type": "address"
|
|
597
478
|
}
|
|
598
479
|
],
|
|
599
|
-
"name": "
|
|
480
|
+
"name": "revokeRole",
|
|
600
481
|
"outputs": [],
|
|
601
482
|
"stateMutability": "nonpayable",
|
|
602
483
|
"type": "function"
|
|
603
484
|
},
|
|
604
485
|
{
|
|
605
|
-
"inputs": [
|
|
606
|
-
"name": "successFee",
|
|
607
|
-
"outputs": [
|
|
486
|
+
"inputs": [
|
|
608
487
|
{
|
|
609
|
-
"internalType": "
|
|
610
|
-
"name": "",
|
|
611
|
-
"type": "
|
|
488
|
+
"internalType": "bytes4",
|
|
489
|
+
"name": "interfaceId",
|
|
490
|
+
"type": "bytes4"
|
|
612
491
|
}
|
|
613
492
|
],
|
|
614
|
-
"
|
|
615
|
-
"type": "function"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"inputs": [],
|
|
619
|
-
"name": "successFeeReceiver",
|
|
493
|
+
"name": "supportsInterface",
|
|
620
494
|
"outputs": [
|
|
621
495
|
{
|
|
622
|
-
"internalType": "
|
|
496
|
+
"internalType": "bool",
|
|
623
497
|
"name": "",
|
|
624
|
-
"type": "
|
|
498
|
+
"type": "bool"
|
|
625
499
|
}
|
|
626
500
|
],
|
|
627
501
|
"stateMutability": "view",
|
|
@@ -629,86 +503,115 @@ exports.Vault_jsonAbi = [
|
|
|
629
503
|
},
|
|
630
504
|
{
|
|
631
505
|
"inputs": [
|
|
506
|
+
{
|
|
507
|
+
"internalType": "contract IERC20Upgradeable",
|
|
508
|
+
"name": "token",
|
|
509
|
+
"type": "address"
|
|
510
|
+
},
|
|
632
511
|
{
|
|
633
512
|
"internalType": "address",
|
|
634
|
-
"name": "
|
|
513
|
+
"name": "payee",
|
|
635
514
|
"type": "address"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"internalType": "uint256",
|
|
518
|
+
"name": "amount",
|
|
519
|
+
"type": "uint256"
|
|
636
520
|
}
|
|
637
521
|
],
|
|
638
|
-
"name": "
|
|
522
|
+
"name": "transferErc20",
|
|
639
523
|
"outputs": [],
|
|
640
524
|
"stateMutability": "nonpayable",
|
|
641
525
|
"type": "function"
|
|
642
526
|
},
|
|
643
527
|
{
|
|
644
528
|
"inputs": [
|
|
529
|
+
{
|
|
530
|
+
"internalType": "contract IERC721Upgradeable",
|
|
531
|
+
"name": "token",
|
|
532
|
+
"type": "address"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"internalType": "address",
|
|
536
|
+
"name": "payee",
|
|
537
|
+
"type": "address"
|
|
538
|
+
},
|
|
645
539
|
{
|
|
646
540
|
"internalType": "uint256",
|
|
647
|
-
"name": "
|
|
541
|
+
"name": "tokenId",
|
|
648
542
|
"type": "uint256"
|
|
649
543
|
}
|
|
650
544
|
],
|
|
651
|
-
"name": "
|
|
652
|
-
"outputs": [
|
|
653
|
-
|
|
654
|
-
"internalType": "uint256[]",
|
|
655
|
-
"name": "",
|
|
656
|
-
"type": "uint256[]"
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
"stateMutability": "view",
|
|
545
|
+
"name": "transferErc721",
|
|
546
|
+
"outputs": [],
|
|
547
|
+
"stateMutability": "nonpayable",
|
|
660
548
|
"type": "function"
|
|
661
549
|
},
|
|
662
550
|
{
|
|
663
551
|
"inputs": [
|
|
552
|
+
{
|
|
553
|
+
"internalType": "address",
|
|
554
|
+
"name": "payee",
|
|
555
|
+
"type": "address"
|
|
556
|
+
},
|
|
664
557
|
{
|
|
665
558
|
"internalType": "uint256",
|
|
666
|
-
"name": "
|
|
559
|
+
"name": "amount",
|
|
667
560
|
"type": "uint256"
|
|
668
561
|
}
|
|
669
562
|
],
|
|
670
|
-
"name": "
|
|
671
|
-
"outputs": [
|
|
672
|
-
|
|
673
|
-
"internalType": "uint256[]",
|
|
674
|
-
"name": "",
|
|
675
|
-
"type": "uint256[]"
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"stateMutability": "view",
|
|
563
|
+
"name": "transferEther",
|
|
564
|
+
"outputs": [],
|
|
565
|
+
"stateMutability": "nonpayable",
|
|
679
566
|
"type": "function"
|
|
680
567
|
},
|
|
681
568
|
{
|
|
682
569
|
"inputs": [
|
|
683
570
|
{
|
|
684
|
-
"internalType": "
|
|
685
|
-
"name": "
|
|
686
|
-
"type": "
|
|
571
|
+
"internalType": "address",
|
|
572
|
+
"name": "newOwner",
|
|
573
|
+
"type": "address"
|
|
687
574
|
}
|
|
688
575
|
],
|
|
689
|
-
"name": "
|
|
690
|
-
"outputs": [
|
|
576
|
+
"name": "transferOwnership",
|
|
577
|
+
"outputs": [],
|
|
578
|
+
"stateMutability": "nonpayable",
|
|
579
|
+
"type": "function"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"inputs": [
|
|
691
583
|
{
|
|
692
|
-
"internalType": "address
|
|
693
|
-
"name": "",
|
|
694
|
-
"type": "address
|
|
584
|
+
"internalType": "address",
|
|
585
|
+
"name": "newImplementation",
|
|
586
|
+
"type": "address"
|
|
695
587
|
}
|
|
696
588
|
],
|
|
697
|
-
"
|
|
589
|
+
"name": "upgradeTo",
|
|
590
|
+
"outputs": [],
|
|
591
|
+
"stateMutability": "nonpayable",
|
|
698
592
|
"type": "function"
|
|
699
593
|
},
|
|
700
594
|
{
|
|
701
595
|
"inputs": [
|
|
702
596
|
{
|
|
703
|
-
"internalType": "
|
|
704
|
-
"name": "
|
|
705
|
-
"type": "
|
|
597
|
+
"internalType": "address",
|
|
598
|
+
"name": "newImplementation",
|
|
599
|
+
"type": "address"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"internalType": "bytes",
|
|
603
|
+
"name": "data",
|
|
604
|
+
"type": "bytes"
|
|
706
605
|
}
|
|
707
606
|
],
|
|
708
|
-
"name": "
|
|
607
|
+
"name": "upgradeToAndCall",
|
|
709
608
|
"outputs": [],
|
|
710
|
-
"stateMutability": "
|
|
609
|
+
"stateMutability": "payable",
|
|
711
610
|
"type": "function"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"stateMutability": "payable",
|
|
614
|
+
"type": "receive"
|
|
712
615
|
}
|
|
713
616
|
];
|
|
714
617
|
/**
|
|
@@ -769,67 +672,53 @@ class Vault_json {
|
|
|
769
672
|
return this.contract;
|
|
770
673
|
}
|
|
771
674
|
/**
|
|
772
|
-
*
|
|
773
|
-
* view
|
|
774
|
-
*/
|
|
775
|
-
async FEES_DECIMALS() {
|
|
776
|
-
return this.contract.read.FEES_DECIMALS();
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* MAX_TERM
|
|
780
|
-
* view
|
|
781
|
-
*/
|
|
782
|
-
async MAX_TERM() {
|
|
783
|
-
return this.contract.read.MAX_TERM();
|
|
784
|
-
}
|
|
785
|
-
/**
|
|
786
|
-
* MAX_TOKENS_IN_DEPOSIT
|
|
675
|
+
* DEFAULT_ADMIN_ROLE
|
|
787
676
|
* view
|
|
788
677
|
*/
|
|
789
|
-
async
|
|
790
|
-
return this.contract.read.
|
|
678
|
+
async DEFAULT_ADMIN_ROLE() {
|
|
679
|
+
return this.contract.read.DEFAULT_ADMIN_ROLE();
|
|
791
680
|
}
|
|
792
681
|
/**
|
|
793
|
-
*
|
|
682
|
+
* PAYEE_ROLE
|
|
794
683
|
* view
|
|
795
684
|
*/
|
|
796
|
-
async
|
|
797
|
-
return this.contract.read.
|
|
685
|
+
async PAYEE_ROLE() {
|
|
686
|
+
return this.contract.read.PAYEE_ROLE();
|
|
798
687
|
}
|
|
799
688
|
/**
|
|
800
|
-
*
|
|
689
|
+
* PAYER_ROLE
|
|
801
690
|
* view
|
|
802
691
|
*/
|
|
803
|
-
async
|
|
804
|
-
return this.contract.read.
|
|
692
|
+
async PAYER_ROLE() {
|
|
693
|
+
return this.contract.read.PAYER_ROLE();
|
|
805
694
|
}
|
|
806
695
|
/**
|
|
807
|
-
*
|
|
696
|
+
* getRoleAdmin
|
|
808
697
|
* view
|
|
809
698
|
*/
|
|
810
|
-
async
|
|
811
|
-
return this.contract.read.
|
|
699
|
+
async getRoleAdmin(role) {
|
|
700
|
+
return this.contract.read.getRoleAdmin([role]);
|
|
812
701
|
}
|
|
813
702
|
/**
|
|
814
|
-
*
|
|
703
|
+
* getRoleMember
|
|
815
704
|
* view
|
|
816
705
|
*/
|
|
817
|
-
async
|
|
818
|
-
return this.contract.read.
|
|
706
|
+
async getRoleMember(role, index) {
|
|
707
|
+
return this.contract.read.getRoleMember([role, index]);
|
|
819
708
|
}
|
|
820
709
|
/**
|
|
821
|
-
*
|
|
710
|
+
* getRoleMemberCount
|
|
822
711
|
* view
|
|
823
712
|
*/
|
|
824
|
-
async
|
|
825
|
-
return this.contract.read.
|
|
713
|
+
async getRoleMemberCount(role) {
|
|
714
|
+
return this.contract.read.getRoleMemberCount([role]);
|
|
826
715
|
}
|
|
827
716
|
/**
|
|
828
|
-
*
|
|
717
|
+
* hasRole
|
|
829
718
|
* view
|
|
830
719
|
*/
|
|
831
|
-
async
|
|
832
|
-
return this.contract.read.
|
|
720
|
+
async hasRole(role, account) {
|
|
721
|
+
return this.contract.read.hasRole([role, account]);
|
|
833
722
|
}
|
|
834
723
|
/**
|
|
835
724
|
* owner
|
|
@@ -839,127 +728,150 @@ class Vault_json {
|
|
|
839
728
|
return this.contract.read.owner();
|
|
840
729
|
}
|
|
841
730
|
/**
|
|
842
|
-
*
|
|
731
|
+
* proxiableUUID
|
|
843
732
|
* view
|
|
844
733
|
*/
|
|
845
|
-
async
|
|
846
|
-
return this.contract.read.
|
|
734
|
+
async proxiableUUID() {
|
|
735
|
+
return this.contract.read.proxiableUUID();
|
|
847
736
|
}
|
|
848
737
|
/**
|
|
849
|
-
*
|
|
738
|
+
* supportsInterface
|
|
850
739
|
* view
|
|
851
740
|
*/
|
|
852
|
-
async
|
|
853
|
-
return this.contract.read.
|
|
741
|
+
async supportsInterface(interfaceId) {
|
|
742
|
+
return this.contract.read.supportsInterface([interfaceId]);
|
|
854
743
|
}
|
|
855
744
|
/**
|
|
856
|
-
*
|
|
857
|
-
*
|
|
745
|
+
* batchTransferErc20
|
|
746
|
+
* nonpayable
|
|
747
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
858
748
|
*/
|
|
859
|
-
async
|
|
860
|
-
|
|
749
|
+
async batchTransferErc20(tokens, payees, amounts, options) {
|
|
750
|
+
if (!this.contract.write) {
|
|
751
|
+
throw new Error('Wallet client is required for write operations');
|
|
752
|
+
}
|
|
753
|
+
return this.contract.write.batchTransferErc20([tokens, payees, amounts], options);
|
|
861
754
|
}
|
|
862
755
|
/**
|
|
863
|
-
*
|
|
864
|
-
*
|
|
756
|
+
* batchTransferErc721
|
|
757
|
+
* nonpayable
|
|
758
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
865
759
|
*/
|
|
866
|
-
async
|
|
867
|
-
|
|
760
|
+
async batchTransferErc721(tokens, payees, tokenIds, options) {
|
|
761
|
+
if (!this.contract.write) {
|
|
762
|
+
throw new Error('Wallet client is required for write operations');
|
|
763
|
+
}
|
|
764
|
+
return this.contract.write.batchTransferErc721([tokens, payees, tokenIds], options);
|
|
868
765
|
}
|
|
869
766
|
/**
|
|
870
|
-
*
|
|
871
|
-
*
|
|
767
|
+
* batchTransferEther
|
|
768
|
+
* nonpayable
|
|
769
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
872
770
|
*/
|
|
873
|
-
async
|
|
874
|
-
|
|
771
|
+
async batchTransferEther(payees, amounts, options) {
|
|
772
|
+
if (!this.contract.write) {
|
|
773
|
+
throw new Error('Wallet client is required for write operations');
|
|
774
|
+
}
|
|
775
|
+
return this.contract.write.batchTransferEther([payees, amounts], options);
|
|
875
776
|
}
|
|
876
777
|
/**
|
|
877
|
-
*
|
|
778
|
+
* grantRole
|
|
878
779
|
* nonpayable
|
|
879
780
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
880
781
|
*/
|
|
881
|
-
async
|
|
782
|
+
async grantRole(role, account, options) {
|
|
882
783
|
if (!this.contract.write) {
|
|
883
784
|
throw new Error('Wallet client is required for write operations');
|
|
884
785
|
}
|
|
885
|
-
return this.contract.write.
|
|
786
|
+
return this.contract.write.grantRole([role, account], options);
|
|
886
787
|
}
|
|
887
788
|
/**
|
|
888
|
-
*
|
|
789
|
+
* initialize
|
|
889
790
|
* nonpayable
|
|
890
791
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
891
792
|
*/
|
|
892
|
-
async
|
|
793
|
+
async initialize(options) {
|
|
893
794
|
if (!this.contract.write) {
|
|
894
795
|
throw new Error('Wallet client is required for write operations');
|
|
895
796
|
}
|
|
896
|
-
return this.contract.write.
|
|
797
|
+
return this.contract.write.initialize(options);
|
|
897
798
|
}
|
|
898
799
|
/**
|
|
899
|
-
*
|
|
800
|
+
* onERC721Received
|
|
900
801
|
* nonpayable
|
|
901
802
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
902
803
|
*/
|
|
903
|
-
async
|
|
804
|
+
async onERC721Received(arg0, arg1, arg2, arg3, options) {
|
|
904
805
|
if (!this.contract.write) {
|
|
905
806
|
throw new Error('Wallet client is required for write operations');
|
|
906
807
|
}
|
|
907
|
-
return this.contract.write.
|
|
808
|
+
return this.contract.write.onERC721Received([arg0, arg1, arg2, arg3], options);
|
|
908
809
|
}
|
|
909
810
|
/**
|
|
910
|
-
*
|
|
811
|
+
* renounceOwnership
|
|
911
812
|
* nonpayable
|
|
912
813
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
913
814
|
*/
|
|
914
|
-
async
|
|
815
|
+
async renounceOwnership(options) {
|
|
915
816
|
if (!this.contract.write) {
|
|
916
817
|
throw new Error('Wallet client is required for write operations');
|
|
917
818
|
}
|
|
918
|
-
return this.contract.write.
|
|
819
|
+
return this.contract.write.renounceOwnership(options);
|
|
919
820
|
}
|
|
920
821
|
/**
|
|
921
|
-
*
|
|
822
|
+
* renounceRole
|
|
922
823
|
* nonpayable
|
|
923
824
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
924
825
|
*/
|
|
925
|
-
async
|
|
826
|
+
async renounceRole(role, account, options) {
|
|
926
827
|
if (!this.contract.write) {
|
|
927
828
|
throw new Error('Wallet client is required for write operations');
|
|
928
829
|
}
|
|
929
|
-
return this.contract.write.
|
|
830
|
+
return this.contract.write.renounceRole([role, account], options);
|
|
930
831
|
}
|
|
931
832
|
/**
|
|
932
|
-
*
|
|
833
|
+
* revokeRole
|
|
933
834
|
* nonpayable
|
|
934
835
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
935
836
|
*/
|
|
936
|
-
async
|
|
837
|
+
async revokeRole(role, account, options) {
|
|
937
838
|
if (!this.contract.write) {
|
|
938
839
|
throw new Error('Wallet client is required for write operations');
|
|
939
840
|
}
|
|
940
|
-
return this.contract.write.
|
|
841
|
+
return this.contract.write.revokeRole([role, account], options);
|
|
941
842
|
}
|
|
942
843
|
/**
|
|
943
|
-
*
|
|
844
|
+
* transferErc20
|
|
944
845
|
* nonpayable
|
|
945
846
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
946
847
|
*/
|
|
947
|
-
async
|
|
848
|
+
async transferErc20(token, payee, amount, options) {
|
|
948
849
|
if (!this.contract.write) {
|
|
949
850
|
throw new Error('Wallet client is required for write operations');
|
|
950
851
|
}
|
|
951
|
-
return this.contract.write.
|
|
852
|
+
return this.contract.write.transferErc20([token, payee, amount], options);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* transferErc721
|
|
856
|
+
* nonpayable
|
|
857
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
858
|
+
*/
|
|
859
|
+
async transferErc721(token, payee, tokenId, options) {
|
|
860
|
+
if (!this.contract.write) {
|
|
861
|
+
throw new Error('Wallet client is required for write operations');
|
|
862
|
+
}
|
|
863
|
+
return this.contract.write.transferErc721([token, payee, tokenId], options);
|
|
952
864
|
}
|
|
953
865
|
/**
|
|
954
|
-
*
|
|
866
|
+
* transferEther
|
|
955
867
|
* nonpayable
|
|
956
868
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
957
869
|
*/
|
|
958
|
-
async
|
|
870
|
+
async transferEther(payee, amount, options) {
|
|
959
871
|
if (!this.contract.write) {
|
|
960
872
|
throw new Error('Wallet client is required for write operations');
|
|
961
873
|
}
|
|
962
|
-
return this.contract.write.
|
|
874
|
+
return this.contract.write.transferEther([payee, amount], options);
|
|
963
875
|
}
|
|
964
876
|
/**
|
|
965
877
|
* transferOwnership
|
|
@@ -973,15 +885,26 @@ class Vault_json {
|
|
|
973
885
|
return this.contract.write.transferOwnership([newOwner], options);
|
|
974
886
|
}
|
|
975
887
|
/**
|
|
976
|
-
*
|
|
888
|
+
* upgradeTo
|
|
977
889
|
* nonpayable
|
|
978
890
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
979
891
|
*/
|
|
980
|
-
async
|
|
892
|
+
async upgradeTo(newImplementation, options) {
|
|
893
|
+
if (!this.contract.write) {
|
|
894
|
+
throw new Error('Wallet client is required for write operations');
|
|
895
|
+
}
|
|
896
|
+
return this.contract.write.upgradeTo([newImplementation], options);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* upgradeToAndCall
|
|
900
|
+
* payable
|
|
901
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
902
|
+
*/
|
|
903
|
+
async upgradeToAndCall(newImplementation, data, options) {
|
|
981
904
|
if (!this.contract.write) {
|
|
982
905
|
throw new Error('Wallet client is required for write operations');
|
|
983
906
|
}
|
|
984
|
-
return this.contract.write.
|
|
907
|
+
return this.contract.write.upgradeToAndCall([newImplementation, data], options);
|
|
985
908
|
}
|
|
986
909
|
/**
|
|
987
910
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -998,52 +921,52 @@ class Vault_json {
|
|
|
998
921
|
}
|
|
999
922
|
return {
|
|
1000
923
|
/**
|
|
1001
|
-
* Simulate
|
|
924
|
+
* Simulate batchTransferErc20
|
|
1002
925
|
* Returns gas estimate and result without sending transaction
|
|
1003
926
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1004
927
|
*/
|
|
1005
|
-
async
|
|
1006
|
-
return contract.simulate.
|
|
928
|
+
async batchTransferErc20(tokens, payees, amounts, options) {
|
|
929
|
+
return contract.simulate.batchTransferErc20([tokens, payees, amounts], options);
|
|
1007
930
|
},
|
|
1008
931
|
/**
|
|
1009
|
-
* Simulate
|
|
932
|
+
* Simulate batchTransferErc721
|
|
1010
933
|
* Returns gas estimate and result without sending transaction
|
|
1011
934
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1012
935
|
*/
|
|
1013
|
-
async
|
|
1014
|
-
return contract.simulate.
|
|
936
|
+
async batchTransferErc721(tokens, payees, tokenIds, options) {
|
|
937
|
+
return contract.simulate.batchTransferErc721([tokens, payees, tokenIds], options);
|
|
1015
938
|
},
|
|
1016
939
|
/**
|
|
1017
|
-
* Simulate
|
|
940
|
+
* Simulate batchTransferEther
|
|
1018
941
|
* Returns gas estimate and result without sending transaction
|
|
1019
942
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1020
943
|
*/
|
|
1021
|
-
async
|
|
1022
|
-
return contract.simulate.
|
|
944
|
+
async batchTransferEther(payees, amounts, options) {
|
|
945
|
+
return contract.simulate.batchTransferEther([payees, amounts], options);
|
|
1023
946
|
},
|
|
1024
947
|
/**
|
|
1025
|
-
* Simulate
|
|
948
|
+
* Simulate grantRole
|
|
1026
949
|
* Returns gas estimate and result without sending transaction
|
|
1027
950
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1028
951
|
*/
|
|
1029
|
-
async
|
|
1030
|
-
return contract.simulate.
|
|
952
|
+
async grantRole(role, account, options) {
|
|
953
|
+
return contract.simulate.grantRole([role, account], options);
|
|
1031
954
|
},
|
|
1032
955
|
/**
|
|
1033
|
-
* Simulate
|
|
956
|
+
* Simulate initialize
|
|
1034
957
|
* Returns gas estimate and result without sending transaction
|
|
1035
958
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1036
959
|
*/
|
|
1037
|
-
async
|
|
1038
|
-
return contract.simulate.
|
|
960
|
+
async initialize(options) {
|
|
961
|
+
return contract.simulate.initialize(options);
|
|
1039
962
|
},
|
|
1040
963
|
/**
|
|
1041
|
-
* Simulate
|
|
964
|
+
* Simulate onERC721Received
|
|
1042
965
|
* Returns gas estimate and result without sending transaction
|
|
1043
966
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
967
|
*/
|
|
1045
|
-
async
|
|
1046
|
-
return contract.simulate.
|
|
968
|
+
async onERC721Received(arg0, arg1, arg2, arg3, options) {
|
|
969
|
+
return contract.simulate.onERC721Received([arg0, arg1, arg2, arg3], options);
|
|
1047
970
|
},
|
|
1048
971
|
/**
|
|
1049
972
|
* Simulate renounceOwnership
|
|
@@ -1054,12 +977,44 @@ class Vault_json {
|
|
|
1054
977
|
return contract.simulate.renounceOwnership(options);
|
|
1055
978
|
},
|
|
1056
979
|
/**
|
|
1057
|
-
* Simulate
|
|
980
|
+
* Simulate renounceRole
|
|
981
|
+
* Returns gas estimate and result without sending transaction
|
|
982
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
983
|
+
*/
|
|
984
|
+
async renounceRole(role, account, options) {
|
|
985
|
+
return contract.simulate.renounceRole([role, account], options);
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* Simulate revokeRole
|
|
989
|
+
* Returns gas estimate and result without sending transaction
|
|
990
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
991
|
+
*/
|
|
992
|
+
async revokeRole(role, account, options) {
|
|
993
|
+
return contract.simulate.revokeRole([role, account], options);
|
|
994
|
+
},
|
|
995
|
+
/**
|
|
996
|
+
* Simulate transferErc20
|
|
997
|
+
* Returns gas estimate and result without sending transaction
|
|
998
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
999
|
+
*/
|
|
1000
|
+
async transferErc20(token, payee, amount, options) {
|
|
1001
|
+
return contract.simulate.transferErc20([token, payee, amount], options);
|
|
1002
|
+
},
|
|
1003
|
+
/**
|
|
1004
|
+
* Simulate transferErc721
|
|
1005
|
+
* Returns gas estimate and result without sending transaction
|
|
1006
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1007
|
+
*/
|
|
1008
|
+
async transferErc721(token, payee, tokenId, options) {
|
|
1009
|
+
return contract.simulate.transferErc721([token, payee, tokenId], options);
|
|
1010
|
+
},
|
|
1011
|
+
/**
|
|
1012
|
+
* Simulate transferEther
|
|
1058
1013
|
* Returns gas estimate and result without sending transaction
|
|
1059
1014
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1060
1015
|
*/
|
|
1061
|
-
async
|
|
1062
|
-
return contract.simulate.
|
|
1016
|
+
async transferEther(payee, amount, options) {
|
|
1017
|
+
return contract.simulate.transferEther([payee, amount], options);
|
|
1063
1018
|
},
|
|
1064
1019
|
/**
|
|
1065
1020
|
* Simulate transferOwnership
|
|
@@ -1070,12 +1025,20 @@ class Vault_json {
|
|
|
1070
1025
|
return contract.simulate.transferOwnership([newOwner], options);
|
|
1071
1026
|
},
|
|
1072
1027
|
/**
|
|
1073
|
-
* Simulate
|
|
1028
|
+
* Simulate upgradeTo
|
|
1029
|
+
* Returns gas estimate and result without sending transaction
|
|
1030
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1031
|
+
*/
|
|
1032
|
+
async upgradeTo(newImplementation, options) {
|
|
1033
|
+
return contract.simulate.upgradeTo([newImplementation], options);
|
|
1034
|
+
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Simulate upgradeToAndCall
|
|
1074
1037
|
* Returns gas estimate and result without sending transaction
|
|
1075
1038
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1076
1039
|
*/
|
|
1077
|
-
async
|
|
1078
|
-
return contract.simulate.
|
|
1040
|
+
async upgradeToAndCall(newImplementation, data, options) {
|
|
1041
|
+
return contract.simulate.upgradeToAndCall([newImplementation, data], options);
|
|
1079
1042
|
}
|
|
1080
1043
|
};
|
|
1081
1044
|
}
|
|
@@ -1094,16 +1057,16 @@ class Vault_json {
|
|
|
1094
1057
|
get watch() {
|
|
1095
1058
|
return {
|
|
1096
1059
|
/**
|
|
1097
|
-
* Watch
|
|
1060
|
+
* Watch AdminChanged events
|
|
1098
1061
|
* @param callback Function to call when event is emitted
|
|
1099
1062
|
* @param filter Optional filter for indexed parameters
|
|
1100
1063
|
* @returns Unwatch function to stop listening
|
|
1101
1064
|
*/
|
|
1102
|
-
|
|
1065
|
+
AdminChanged: (callback) => {
|
|
1103
1066
|
return this.publicClient.watchContractEvent({
|
|
1104
1067
|
address: this.contractAddress,
|
|
1105
1068
|
abi: exports.Vault_jsonAbi,
|
|
1106
|
-
eventName: '
|
|
1069
|
+
eventName: 'AdminChanged',
|
|
1107
1070
|
onLogs: (logs) => {
|
|
1108
1071
|
logs.forEach((log) => {
|
|
1109
1072
|
callback(log.args);
|
|
@@ -1112,16 +1075,16 @@ class Vault_json {
|
|
|
1112
1075
|
});
|
|
1113
1076
|
},
|
|
1114
1077
|
/**
|
|
1115
|
-
* Watch
|
|
1078
|
+
* Watch BeaconUpgraded events
|
|
1116
1079
|
* @param callback Function to call when event is emitted
|
|
1117
1080
|
* @param filter Optional filter for indexed parameters
|
|
1118
1081
|
* @returns Unwatch function to stop listening
|
|
1119
1082
|
*/
|
|
1120
|
-
|
|
1083
|
+
BeaconUpgraded: (callback, filter) => {
|
|
1121
1084
|
return this.publicClient.watchContractEvent({
|
|
1122
1085
|
address: this.contractAddress,
|
|
1123
1086
|
abi: exports.Vault_jsonAbi,
|
|
1124
|
-
eventName: '
|
|
1087
|
+
eventName: 'BeaconUpgraded',
|
|
1125
1088
|
args: filter,
|
|
1126
1089
|
onLogs: (logs) => {
|
|
1127
1090
|
logs.forEach((log) => {
|
|
@@ -1131,34 +1094,16 @@ class Vault_json {
|
|
|
1131
1094
|
});
|
|
1132
1095
|
},
|
|
1133
1096
|
/**
|
|
1134
|
-
* Watch
|
|
1135
|
-
* @param callback Function to call when event is emitted
|
|
1136
|
-
* @param filter Optional filter for indexed parameters
|
|
1137
|
-
* @returns Unwatch function to stop listening
|
|
1138
|
-
*/
|
|
1139
|
-
SetEmergencyPenalty: (callback) => {
|
|
1140
|
-
return this.publicClient.watchContractEvent({
|
|
1141
|
-
address: this.contractAddress,
|
|
1142
|
-
abi: exports.Vault_jsonAbi,
|
|
1143
|
-
eventName: 'SetEmergencyPenalty',
|
|
1144
|
-
onLogs: (logs) => {
|
|
1145
|
-
logs.forEach((log) => {
|
|
1146
|
-
callback(log.args);
|
|
1147
|
-
});
|
|
1148
|
-
},
|
|
1149
|
-
});
|
|
1150
|
-
},
|
|
1151
|
-
/**
|
|
1152
|
-
* Watch SetEmergencyPenaltyReceiver events
|
|
1097
|
+
* Watch Initialized events
|
|
1153
1098
|
* @param callback Function to call when event is emitted
|
|
1154
1099
|
* @param filter Optional filter for indexed parameters
|
|
1155
1100
|
* @returns Unwatch function to stop listening
|
|
1156
1101
|
*/
|
|
1157
|
-
|
|
1102
|
+
Initialized: (callback) => {
|
|
1158
1103
|
return this.publicClient.watchContractEvent({
|
|
1159
1104
|
address: this.contractAddress,
|
|
1160
1105
|
abi: exports.Vault_jsonAbi,
|
|
1161
|
-
eventName: '
|
|
1106
|
+
eventName: 'Initialized',
|
|
1162
1107
|
onLogs: (logs) => {
|
|
1163
1108
|
logs.forEach((log) => {
|
|
1164
1109
|
callback(log.args);
|
|
@@ -1167,16 +1112,17 @@ class Vault_json {
|
|
|
1167
1112
|
});
|
|
1168
1113
|
},
|
|
1169
1114
|
/**
|
|
1170
|
-
* Watch
|
|
1115
|
+
* Watch OwnershipTransferred events
|
|
1171
1116
|
* @param callback Function to call when event is emitted
|
|
1172
1117
|
* @param filter Optional filter for indexed parameters
|
|
1173
1118
|
* @returns Unwatch function to stop listening
|
|
1174
1119
|
*/
|
|
1175
|
-
|
|
1120
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1176
1121
|
return this.publicClient.watchContractEvent({
|
|
1177
1122
|
address: this.contractAddress,
|
|
1178
1123
|
abi: exports.Vault_jsonAbi,
|
|
1179
|
-
eventName: '
|
|
1124
|
+
eventName: 'OwnershipTransferred',
|
|
1125
|
+
args: filter,
|
|
1180
1126
|
onLogs: (logs) => {
|
|
1181
1127
|
logs.forEach((log) => {
|
|
1182
1128
|
callback(log.args);
|
|
@@ -1185,16 +1131,17 @@ class Vault_json {
|
|
|
1185
1131
|
});
|
|
1186
1132
|
},
|
|
1187
1133
|
/**
|
|
1188
|
-
* Watch
|
|
1134
|
+
* Watch RoleAdminChanged events
|
|
1189
1135
|
* @param callback Function to call when event is emitted
|
|
1190
1136
|
* @param filter Optional filter for indexed parameters
|
|
1191
1137
|
* @returns Unwatch function to stop listening
|
|
1192
1138
|
*/
|
|
1193
|
-
|
|
1139
|
+
RoleAdminChanged: (callback, filter) => {
|
|
1194
1140
|
return this.publicClient.watchContractEvent({
|
|
1195
1141
|
address: this.contractAddress,
|
|
1196
1142
|
abi: exports.Vault_jsonAbi,
|
|
1197
|
-
eventName: '
|
|
1143
|
+
eventName: 'RoleAdminChanged',
|
|
1144
|
+
args: filter,
|
|
1198
1145
|
onLogs: (logs) => {
|
|
1199
1146
|
logs.forEach((log) => {
|
|
1200
1147
|
callback(log.args);
|
|
@@ -1203,16 +1150,17 @@ class Vault_json {
|
|
|
1203
1150
|
});
|
|
1204
1151
|
},
|
|
1205
1152
|
/**
|
|
1206
|
-
* Watch
|
|
1153
|
+
* Watch RoleGranted events
|
|
1207
1154
|
* @param callback Function to call when event is emitted
|
|
1208
1155
|
* @param filter Optional filter for indexed parameters
|
|
1209
1156
|
* @returns Unwatch function to stop listening
|
|
1210
1157
|
*/
|
|
1211
|
-
|
|
1158
|
+
RoleGranted: (callback, filter) => {
|
|
1212
1159
|
return this.publicClient.watchContractEvent({
|
|
1213
1160
|
address: this.contractAddress,
|
|
1214
1161
|
abi: exports.Vault_jsonAbi,
|
|
1215
|
-
eventName: '
|
|
1162
|
+
eventName: 'RoleGranted',
|
|
1163
|
+
args: filter,
|
|
1216
1164
|
onLogs: (logs) => {
|
|
1217
1165
|
logs.forEach((log) => {
|
|
1218
1166
|
callback(log.args);
|
|
@@ -1221,16 +1169,17 @@ class Vault_json {
|
|
|
1221
1169
|
});
|
|
1222
1170
|
},
|
|
1223
1171
|
/**
|
|
1224
|
-
* Watch
|
|
1172
|
+
* Watch RoleRevoked events
|
|
1225
1173
|
* @param callback Function to call when event is emitted
|
|
1226
1174
|
* @param filter Optional filter for indexed parameters
|
|
1227
1175
|
* @returns Unwatch function to stop listening
|
|
1228
1176
|
*/
|
|
1229
|
-
|
|
1177
|
+
RoleRevoked: (callback, filter) => {
|
|
1230
1178
|
return this.publicClient.watchContractEvent({
|
|
1231
1179
|
address: this.contractAddress,
|
|
1232
1180
|
abi: exports.Vault_jsonAbi,
|
|
1233
|
-
eventName: '
|
|
1181
|
+
eventName: 'RoleRevoked',
|
|
1182
|
+
args: filter,
|
|
1234
1183
|
onLogs: (logs) => {
|
|
1235
1184
|
logs.forEach((log) => {
|
|
1236
1185
|
callback(log.args);
|
|
@@ -1239,16 +1188,16 @@ class Vault_json {
|
|
|
1239
1188
|
});
|
|
1240
1189
|
},
|
|
1241
1190
|
/**
|
|
1242
|
-
* Watch
|
|
1191
|
+
* Watch Upgraded events
|
|
1243
1192
|
* @param callback Function to call when event is emitted
|
|
1244
1193
|
* @param filter Optional filter for indexed parameters
|
|
1245
1194
|
* @returns Unwatch function to stop listening
|
|
1246
1195
|
*/
|
|
1247
|
-
|
|
1196
|
+
Upgraded: (callback, filter) => {
|
|
1248
1197
|
return this.publicClient.watchContractEvent({
|
|
1249
1198
|
address: this.contractAddress,
|
|
1250
1199
|
abi: exports.Vault_jsonAbi,
|
|
1251
|
-
eventName: '
|
|
1200
|
+
eventName: 'Upgraded',
|
|
1252
1201
|
args: filter,
|
|
1253
1202
|
onLogs: (logs) => {
|
|
1254
1203
|
logs.forEach((log) => {
|