@gitmyabi/gnosissafe 1.0.82 → 1.0.84
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 +3 -3
- package/contracts/{Proxy_json.d.ts → GnosisSafeProxy_json.d.ts} +12 -14
- package/contracts/{Proxy_json.js → GnosisSafeProxy_json.js} +10 -12
- package/contracts/{Proxy_json.ts → GnosisSafeProxy_json.ts} +14 -16
- package/contracts/GnosisSafe_json.d.ts +228 -207
- package/contracts/GnosisSafe_json.js +293 -216
- package/contracts/GnosisSafe_json.ts +305 -249
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -10,7 +10,6 @@ const viem_1 = require("viem");
|
|
|
10
10
|
exports.GnosisSafe_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
|
-
"payable": false,
|
|
14
13
|
"stateMutability": "nonpayable",
|
|
15
14
|
"type": "constructor"
|
|
16
15
|
},
|
|
@@ -52,11 +51,24 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
52
51
|
{
|
|
53
52
|
"indexed": false,
|
|
54
53
|
"internalType": "address",
|
|
55
|
-
"name": "
|
|
54
|
+
"name": "handler",
|
|
56
55
|
"type": "address"
|
|
57
56
|
}
|
|
58
57
|
],
|
|
59
|
-
"name": "
|
|
58
|
+
"name": "ChangedFallbackHandler",
|
|
59
|
+
"type": "event"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"anonymous": false,
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "address",
|
|
67
|
+
"name": "guard",
|
|
68
|
+
"type": "address"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "ChangedGuard",
|
|
60
72
|
"type": "event"
|
|
61
73
|
},
|
|
62
74
|
{
|
|
@@ -77,7 +89,7 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
77
89
|
"inputs": [
|
|
78
90
|
{
|
|
79
91
|
"indexed": false,
|
|
80
|
-
"internalType": "
|
|
92
|
+
"internalType": "address",
|
|
81
93
|
"name": "module",
|
|
82
94
|
"type": "address"
|
|
83
95
|
}
|
|
@@ -90,7 +102,7 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
90
102
|
"inputs": [
|
|
91
103
|
{
|
|
92
104
|
"indexed": false,
|
|
93
|
-
"internalType": "
|
|
105
|
+
"internalType": "address",
|
|
94
106
|
"name": "module",
|
|
95
107
|
"type": "address"
|
|
96
108
|
}
|
|
@@ -180,36 +192,75 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
180
192
|
"inputs": [
|
|
181
193
|
{
|
|
182
194
|
"indexed": true,
|
|
183
|
-
"internalType": "
|
|
184
|
-
"name": "
|
|
185
|
-
"type": "
|
|
195
|
+
"internalType": "address",
|
|
196
|
+
"name": "sender",
|
|
197
|
+
"type": "address"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"indexed": false,
|
|
201
|
+
"internalType": "uint256",
|
|
202
|
+
"name": "value",
|
|
203
|
+
"type": "uint256"
|
|
186
204
|
}
|
|
187
205
|
],
|
|
188
|
-
"name": "
|
|
206
|
+
"name": "SafeReceived",
|
|
189
207
|
"type": "event"
|
|
190
208
|
},
|
|
191
209
|
{
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
|
|
210
|
+
"anonymous": false,
|
|
211
|
+
"inputs": [
|
|
212
|
+
{
|
|
213
|
+
"indexed": true,
|
|
214
|
+
"internalType": "address",
|
|
215
|
+
"name": "initiator",
|
|
216
|
+
"type": "address"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"indexed": false,
|
|
220
|
+
"internalType": "address[]",
|
|
221
|
+
"name": "owners",
|
|
222
|
+
"type": "address[]"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"indexed": false,
|
|
226
|
+
"internalType": "uint256",
|
|
227
|
+
"name": "threshold",
|
|
228
|
+
"type": "uint256"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"indexed": false,
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "initializer",
|
|
234
|
+
"type": "address"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"indexed": false,
|
|
238
|
+
"internalType": "address",
|
|
239
|
+
"name": "fallbackHandler",
|
|
240
|
+
"type": "address"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"name": "SafeSetup",
|
|
244
|
+
"type": "event"
|
|
195
245
|
},
|
|
196
246
|
{
|
|
197
|
-
"
|
|
198
|
-
"inputs": [
|
|
199
|
-
"name": "NAME",
|
|
200
|
-
"outputs": [
|
|
247
|
+
"anonymous": false,
|
|
248
|
+
"inputs": [
|
|
201
249
|
{
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
250
|
+
"indexed": true,
|
|
251
|
+
"internalType": "bytes32",
|
|
252
|
+
"name": "msgHash",
|
|
253
|
+
"type": "bytes32"
|
|
205
254
|
}
|
|
206
255
|
],
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
|
|
256
|
+
"name": "SignMsg",
|
|
257
|
+
"type": "event"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"stateMutability": "nonpayable",
|
|
261
|
+
"type": "fallback"
|
|
210
262
|
},
|
|
211
263
|
{
|
|
212
|
-
"constant": true,
|
|
213
264
|
"inputs": [],
|
|
214
265
|
"name": "VERSION",
|
|
215
266
|
"outputs": [
|
|
@@ -219,12 +270,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
219
270
|
"type": "string"
|
|
220
271
|
}
|
|
221
272
|
],
|
|
222
|
-
"payable": false,
|
|
223
273
|
"stateMutability": "view",
|
|
224
274
|
"type": "function"
|
|
225
275
|
},
|
|
226
276
|
{
|
|
227
|
-
"constant": false,
|
|
228
277
|
"inputs": [
|
|
229
278
|
{
|
|
230
279
|
"internalType": "address",
|
|
@@ -239,12 +288,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
239
288
|
],
|
|
240
289
|
"name": "addOwnerWithThreshold",
|
|
241
290
|
"outputs": [],
|
|
242
|
-
"payable": false,
|
|
243
291
|
"stateMutability": "nonpayable",
|
|
244
292
|
"type": "function"
|
|
245
293
|
},
|
|
246
294
|
{
|
|
247
|
-
"constant": false,
|
|
248
295
|
"inputs": [
|
|
249
296
|
{
|
|
250
297
|
"internalType": "bytes32",
|
|
@@ -254,12 +301,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
254
301
|
],
|
|
255
302
|
"name": "approveHash",
|
|
256
303
|
"outputs": [],
|
|
257
|
-
"payable": false,
|
|
258
304
|
"stateMutability": "nonpayable",
|
|
259
305
|
"type": "function"
|
|
260
306
|
},
|
|
261
307
|
{
|
|
262
|
-
"constant": true,
|
|
263
308
|
"inputs": [
|
|
264
309
|
{
|
|
265
310
|
"internalType": "address",
|
|
@@ -280,62 +325,92 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
280
325
|
"type": "uint256"
|
|
281
326
|
}
|
|
282
327
|
],
|
|
283
|
-
"payable": false,
|
|
284
328
|
"stateMutability": "view",
|
|
285
329
|
"type": "function"
|
|
286
330
|
},
|
|
287
331
|
{
|
|
288
|
-
"constant": false,
|
|
289
332
|
"inputs": [
|
|
290
333
|
{
|
|
291
|
-
"internalType": "
|
|
292
|
-
"name": "
|
|
293
|
-
"type": "
|
|
334
|
+
"internalType": "uint256",
|
|
335
|
+
"name": "_threshold",
|
|
336
|
+
"type": "uint256"
|
|
294
337
|
}
|
|
295
338
|
],
|
|
296
|
-
"name": "
|
|
339
|
+
"name": "changeThreshold",
|
|
297
340
|
"outputs": [],
|
|
298
|
-
"payable": false,
|
|
299
341
|
"stateMutability": "nonpayable",
|
|
300
342
|
"type": "function"
|
|
301
343
|
},
|
|
302
344
|
{
|
|
303
|
-
"constant": false,
|
|
304
345
|
"inputs": [
|
|
346
|
+
{
|
|
347
|
+
"internalType": "bytes32",
|
|
348
|
+
"name": "dataHash",
|
|
349
|
+
"type": "bytes32"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bytes",
|
|
353
|
+
"name": "data",
|
|
354
|
+
"type": "bytes"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"internalType": "bytes",
|
|
358
|
+
"name": "signatures",
|
|
359
|
+
"type": "bytes"
|
|
360
|
+
},
|
|
305
361
|
{
|
|
306
362
|
"internalType": "uint256",
|
|
307
|
-
"name": "
|
|
363
|
+
"name": "requiredSignatures",
|
|
308
364
|
"type": "uint256"
|
|
309
365
|
}
|
|
310
366
|
],
|
|
311
|
-
"name": "
|
|
367
|
+
"name": "checkNSignatures",
|
|
312
368
|
"outputs": [],
|
|
313
|
-
"
|
|
314
|
-
"
|
|
369
|
+
"stateMutability": "view",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [
|
|
374
|
+
{
|
|
375
|
+
"internalType": "bytes32",
|
|
376
|
+
"name": "dataHash",
|
|
377
|
+
"type": "bytes32"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"internalType": "bytes",
|
|
381
|
+
"name": "data",
|
|
382
|
+
"type": "bytes"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"internalType": "bytes",
|
|
386
|
+
"name": "signatures",
|
|
387
|
+
"type": "bytes"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"name": "checkSignatures",
|
|
391
|
+
"outputs": [],
|
|
392
|
+
"stateMutability": "view",
|
|
315
393
|
"type": "function"
|
|
316
394
|
},
|
|
317
395
|
{
|
|
318
|
-
"constant": false,
|
|
319
396
|
"inputs": [
|
|
320
397
|
{
|
|
321
|
-
"internalType": "
|
|
398
|
+
"internalType": "address",
|
|
322
399
|
"name": "prevModule",
|
|
323
400
|
"type": "address"
|
|
324
401
|
},
|
|
325
402
|
{
|
|
326
|
-
"internalType": "
|
|
403
|
+
"internalType": "address",
|
|
327
404
|
"name": "module",
|
|
328
405
|
"type": "address"
|
|
329
406
|
}
|
|
330
407
|
],
|
|
331
408
|
"name": "disableModule",
|
|
332
409
|
"outputs": [],
|
|
333
|
-
"payable": false,
|
|
334
410
|
"stateMutability": "nonpayable",
|
|
335
411
|
"type": "function"
|
|
336
412
|
},
|
|
337
413
|
{
|
|
338
|
-
"constant": true,
|
|
339
414
|
"inputs": [],
|
|
340
415
|
"name": "domainSeparator",
|
|
341
416
|
"outputs": [
|
|
@@ -345,27 +420,23 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
345
420
|
"type": "bytes32"
|
|
346
421
|
}
|
|
347
422
|
],
|
|
348
|
-
"payable": false,
|
|
349
423
|
"stateMutability": "view",
|
|
350
424
|
"type": "function"
|
|
351
425
|
},
|
|
352
426
|
{
|
|
353
|
-
"constant": false,
|
|
354
427
|
"inputs": [
|
|
355
428
|
{
|
|
356
|
-
"internalType": "
|
|
429
|
+
"internalType": "address",
|
|
357
430
|
"name": "module",
|
|
358
431
|
"type": "address"
|
|
359
432
|
}
|
|
360
433
|
],
|
|
361
434
|
"name": "enableModule",
|
|
362
435
|
"outputs": [],
|
|
363
|
-
"payable": false,
|
|
364
436
|
"stateMutability": "nonpayable",
|
|
365
437
|
"type": "function"
|
|
366
438
|
},
|
|
367
439
|
{
|
|
368
|
-
"constant": true,
|
|
369
440
|
"inputs": [
|
|
370
441
|
{
|
|
371
442
|
"internalType": "address",
|
|
@@ -426,12 +497,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
426
497
|
"type": "bytes"
|
|
427
498
|
}
|
|
428
499
|
],
|
|
429
|
-
"payable": false,
|
|
430
500
|
"stateMutability": "view",
|
|
431
501
|
"type": "function"
|
|
432
502
|
},
|
|
433
503
|
{
|
|
434
|
-
"constant": false,
|
|
435
504
|
"inputs": [
|
|
436
505
|
{
|
|
437
506
|
"internalType": "address",
|
|
@@ -492,12 +561,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
492
561
|
"type": "bool"
|
|
493
562
|
}
|
|
494
563
|
],
|
|
495
|
-
"payable": true,
|
|
496
564
|
"stateMutability": "payable",
|
|
497
565
|
"type": "function"
|
|
498
566
|
},
|
|
499
567
|
{
|
|
500
|
-
"constant": false,
|
|
501
568
|
"inputs": [
|
|
502
569
|
{
|
|
503
570
|
"internalType": "address",
|
|
@@ -528,12 +595,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
528
595
|
"type": "bool"
|
|
529
596
|
}
|
|
530
597
|
],
|
|
531
|
-
"payable": false,
|
|
532
598
|
"stateMutability": "nonpayable",
|
|
533
599
|
"type": "function"
|
|
534
600
|
},
|
|
535
601
|
{
|
|
536
|
-
"constant": false,
|
|
537
602
|
"inputs": [
|
|
538
603
|
{
|
|
539
604
|
"internalType": "address",
|
|
@@ -569,48 +634,23 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
569
634
|
"type": "bytes"
|
|
570
635
|
}
|
|
571
636
|
],
|
|
572
|
-
"payable": false,
|
|
573
637
|
"stateMutability": "nonpayable",
|
|
574
638
|
"type": "function"
|
|
575
639
|
},
|
|
576
640
|
{
|
|
577
|
-
"constant": true,
|
|
578
|
-
"inputs": [
|
|
579
|
-
{
|
|
580
|
-
"internalType": "bytes",
|
|
581
|
-
"name": "message",
|
|
582
|
-
"type": "bytes"
|
|
583
|
-
}
|
|
584
|
-
],
|
|
585
|
-
"name": "getMessageHash",
|
|
586
|
-
"outputs": [
|
|
587
|
-
{
|
|
588
|
-
"internalType": "bytes32",
|
|
589
|
-
"name": "",
|
|
590
|
-
"type": "bytes32"
|
|
591
|
-
}
|
|
592
|
-
],
|
|
593
|
-
"payable": false,
|
|
594
|
-
"stateMutability": "view",
|
|
595
|
-
"type": "function"
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
"constant": true,
|
|
599
641
|
"inputs": [],
|
|
600
|
-
"name": "
|
|
642
|
+
"name": "getChainId",
|
|
601
643
|
"outputs": [
|
|
602
644
|
{
|
|
603
|
-
"internalType": "
|
|
645
|
+
"internalType": "uint256",
|
|
604
646
|
"name": "",
|
|
605
|
-
"type": "
|
|
647
|
+
"type": "uint256"
|
|
606
648
|
}
|
|
607
649
|
],
|
|
608
|
-
"payable": false,
|
|
609
650
|
"stateMutability": "view",
|
|
610
651
|
"type": "function"
|
|
611
652
|
},
|
|
612
653
|
{
|
|
613
|
-
"constant": true,
|
|
614
654
|
"inputs": [
|
|
615
655
|
{
|
|
616
656
|
"internalType": "address",
|
|
@@ -636,12 +676,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
636
676
|
"type": "address"
|
|
637
677
|
}
|
|
638
678
|
],
|
|
639
|
-
"payable": false,
|
|
640
679
|
"stateMutability": "view",
|
|
641
680
|
"type": "function"
|
|
642
681
|
},
|
|
643
682
|
{
|
|
644
|
-
"constant": true,
|
|
645
683
|
"inputs": [],
|
|
646
684
|
"name": "getOwners",
|
|
647
685
|
"outputs": [
|
|
@@ -651,12 +689,34 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
651
689
|
"type": "address[]"
|
|
652
690
|
}
|
|
653
691
|
],
|
|
654
|
-
"payable": false,
|
|
655
692
|
"stateMutability": "view",
|
|
656
693
|
"type": "function"
|
|
657
694
|
},
|
|
658
695
|
{
|
|
659
|
-
"
|
|
696
|
+
"inputs": [
|
|
697
|
+
{
|
|
698
|
+
"internalType": "uint256",
|
|
699
|
+
"name": "offset",
|
|
700
|
+
"type": "uint256"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"internalType": "uint256",
|
|
704
|
+
"name": "length",
|
|
705
|
+
"type": "uint256"
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"name": "getStorageAt",
|
|
709
|
+
"outputs": [
|
|
710
|
+
{
|
|
711
|
+
"internalType": "bytes",
|
|
712
|
+
"name": "",
|
|
713
|
+
"type": "bytes"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"stateMutability": "view",
|
|
717
|
+
"type": "function"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
660
720
|
"inputs": [],
|
|
661
721
|
"name": "getThreshold",
|
|
662
722
|
"outputs": [
|
|
@@ -666,12 +726,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
666
726
|
"type": "uint256"
|
|
667
727
|
}
|
|
668
728
|
],
|
|
669
|
-
"payable": false,
|
|
670
729
|
"stateMutability": "view",
|
|
671
730
|
"type": "function"
|
|
672
731
|
},
|
|
673
732
|
{
|
|
674
|
-
"constant": true,
|
|
675
733
|
"inputs": [
|
|
676
734
|
{
|
|
677
735
|
"internalType": "address",
|
|
@@ -732,15 +790,13 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
732
790
|
"type": "bytes32"
|
|
733
791
|
}
|
|
734
792
|
],
|
|
735
|
-
"payable": false,
|
|
736
793
|
"stateMutability": "view",
|
|
737
794
|
"type": "function"
|
|
738
795
|
},
|
|
739
796
|
{
|
|
740
|
-
"constant": true,
|
|
741
797
|
"inputs": [
|
|
742
798
|
{
|
|
743
|
-
"internalType": "
|
|
799
|
+
"internalType": "address",
|
|
744
800
|
"name": "module",
|
|
745
801
|
"type": "address"
|
|
746
802
|
}
|
|
@@ -753,12 +809,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
753
809
|
"type": "bool"
|
|
754
810
|
}
|
|
755
811
|
],
|
|
756
|
-
"payable": false,
|
|
757
812
|
"stateMutability": "view",
|
|
758
813
|
"type": "function"
|
|
759
814
|
},
|
|
760
815
|
{
|
|
761
|
-
"constant": true,
|
|
762
816
|
"inputs": [
|
|
763
817
|
{
|
|
764
818
|
"internalType": "address",
|
|
@@ -774,38 +828,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
774
828
|
"type": "bool"
|
|
775
829
|
}
|
|
776
830
|
],
|
|
777
|
-
"payable": false,
|
|
778
831
|
"stateMutability": "view",
|
|
779
832
|
"type": "function"
|
|
780
833
|
},
|
|
781
834
|
{
|
|
782
|
-
"constant": false,
|
|
783
|
-
"inputs": [
|
|
784
|
-
{
|
|
785
|
-
"internalType": "bytes",
|
|
786
|
-
"name": "_data",
|
|
787
|
-
"type": "bytes"
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"internalType": "bytes",
|
|
791
|
-
"name": "_signature",
|
|
792
|
-
"type": "bytes"
|
|
793
|
-
}
|
|
794
|
-
],
|
|
795
|
-
"name": "isValidSignature",
|
|
796
|
-
"outputs": [
|
|
797
|
-
{
|
|
798
|
-
"internalType": "bytes4",
|
|
799
|
-
"name": "",
|
|
800
|
-
"type": "bytes4"
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
"payable": false,
|
|
804
|
-
"stateMutability": "nonpayable",
|
|
805
|
-
"type": "function"
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"constant": true,
|
|
809
835
|
"inputs": [],
|
|
810
836
|
"name": "nonce",
|
|
811
837
|
"outputs": [
|
|
@@ -815,12 +841,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
815
841
|
"type": "uint256"
|
|
816
842
|
}
|
|
817
843
|
],
|
|
818
|
-
"payable": false,
|
|
819
844
|
"stateMutability": "view",
|
|
820
845
|
"type": "function"
|
|
821
846
|
},
|
|
822
847
|
{
|
|
823
|
-
"constant": false,
|
|
824
848
|
"inputs": [
|
|
825
849
|
{
|
|
826
850
|
"internalType": "address",
|
|
@@ -840,12 +864,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
840
864
|
],
|
|
841
865
|
"name": "removeOwner",
|
|
842
866
|
"outputs": [],
|
|
843
|
-
"payable": false,
|
|
844
867
|
"stateMutability": "nonpayable",
|
|
845
868
|
"type": "function"
|
|
846
869
|
},
|
|
847
870
|
{
|
|
848
|
-
"constant": false,
|
|
849
871
|
"inputs": [
|
|
850
872
|
{
|
|
851
873
|
"internalType": "address",
|
|
@@ -876,12 +898,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
876
898
|
"type": "uint256"
|
|
877
899
|
}
|
|
878
900
|
],
|
|
879
|
-
"payable": false,
|
|
880
901
|
"stateMutability": "nonpayable",
|
|
881
902
|
"type": "function"
|
|
882
903
|
},
|
|
883
904
|
{
|
|
884
|
-
"constant": false,
|
|
885
905
|
"inputs": [
|
|
886
906
|
{
|
|
887
907
|
"internalType": "address",
|
|
@@ -891,12 +911,23 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
891
911
|
],
|
|
892
912
|
"name": "setFallbackHandler",
|
|
893
913
|
"outputs": [],
|
|
894
|
-
"payable": false,
|
|
895
914
|
"stateMutability": "nonpayable",
|
|
896
915
|
"type": "function"
|
|
897
916
|
},
|
|
898
917
|
{
|
|
899
|
-
"
|
|
918
|
+
"inputs": [
|
|
919
|
+
{
|
|
920
|
+
"internalType": "address",
|
|
921
|
+
"name": "guard",
|
|
922
|
+
"type": "address"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"name": "setGuard",
|
|
926
|
+
"outputs": [],
|
|
927
|
+
"stateMutability": "nonpayable",
|
|
928
|
+
"type": "function"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
900
931
|
"inputs": [
|
|
901
932
|
{
|
|
902
933
|
"internalType": "address[]",
|
|
@@ -941,27 +972,10 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
941
972
|
],
|
|
942
973
|
"name": "setup",
|
|
943
974
|
"outputs": [],
|
|
944
|
-
"payable": false,
|
|
945
|
-
"stateMutability": "nonpayable",
|
|
946
|
-
"type": "function"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"constant": false,
|
|
950
|
-
"inputs": [
|
|
951
|
-
{
|
|
952
|
-
"internalType": "bytes",
|
|
953
|
-
"name": "_data",
|
|
954
|
-
"type": "bytes"
|
|
955
|
-
}
|
|
956
|
-
],
|
|
957
|
-
"name": "signMessage",
|
|
958
|
-
"outputs": [],
|
|
959
|
-
"payable": false,
|
|
960
975
|
"stateMutability": "nonpayable",
|
|
961
976
|
"type": "function"
|
|
962
977
|
},
|
|
963
978
|
{
|
|
964
|
-
"constant": true,
|
|
965
979
|
"inputs": [
|
|
966
980
|
{
|
|
967
981
|
"internalType": "bytes32",
|
|
@@ -977,12 +991,28 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
977
991
|
"type": "uint256"
|
|
978
992
|
}
|
|
979
993
|
],
|
|
980
|
-
"payable": false,
|
|
981
994
|
"stateMutability": "view",
|
|
982
995
|
"type": "function"
|
|
983
996
|
},
|
|
984
997
|
{
|
|
985
|
-
"
|
|
998
|
+
"inputs": [
|
|
999
|
+
{
|
|
1000
|
+
"internalType": "address",
|
|
1001
|
+
"name": "targetContract",
|
|
1002
|
+
"type": "address"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"internalType": "bytes",
|
|
1006
|
+
"name": "calldataPayload",
|
|
1007
|
+
"type": "bytes"
|
|
1008
|
+
}
|
|
1009
|
+
],
|
|
1010
|
+
"name": "simulateAndRevert",
|
|
1011
|
+
"outputs": [],
|
|
1012
|
+
"stateMutability": "nonpayable",
|
|
1013
|
+
"type": "function"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
986
1016
|
"inputs": [
|
|
987
1017
|
{
|
|
988
1018
|
"internalType": "address",
|
|
@@ -1002,9 +1032,12 @@ exports.GnosisSafe_jsonAbi = [
|
|
|
1002
1032
|
],
|
|
1003
1033
|
"name": "swapOwner",
|
|
1004
1034
|
"outputs": [],
|
|
1005
|
-
"payable": false,
|
|
1006
1035
|
"stateMutability": "nonpayable",
|
|
1007
1036
|
"type": "function"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"stateMutability": "payable",
|
|
1040
|
+
"type": "receive"
|
|
1008
1041
|
}
|
|
1009
1042
|
];
|
|
1010
1043
|
/**
|
|
@@ -1064,13 +1097,6 @@ class GnosisSafe_json {
|
|
|
1064
1097
|
getContract() {
|
|
1065
1098
|
return this.contract;
|
|
1066
1099
|
}
|
|
1067
|
-
/**
|
|
1068
|
-
* NAME
|
|
1069
|
-
* view
|
|
1070
|
-
*/
|
|
1071
|
-
async NAME() {
|
|
1072
|
-
return this.contract.read.NAME();
|
|
1073
|
-
}
|
|
1074
1100
|
/**
|
|
1075
1101
|
* VERSION
|
|
1076
1102
|
* view
|
|
@@ -1085,6 +1111,20 @@ class GnosisSafe_json {
|
|
|
1085
1111
|
async approvedHashes(arg0, arg1) {
|
|
1086
1112
|
return this.contract.read.approvedHashes([arg0, arg1]);
|
|
1087
1113
|
}
|
|
1114
|
+
/**
|
|
1115
|
+
* checkNSignatures
|
|
1116
|
+
* view
|
|
1117
|
+
*/
|
|
1118
|
+
async checkNSignatures(dataHash, data, signatures, requiredSignatures) {
|
|
1119
|
+
return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures]);
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* checkSignatures
|
|
1123
|
+
* view
|
|
1124
|
+
*/
|
|
1125
|
+
async checkSignatures(dataHash, data, signatures) {
|
|
1126
|
+
return this.contract.read.checkSignatures([dataHash, data, signatures]);
|
|
1127
|
+
}
|
|
1088
1128
|
/**
|
|
1089
1129
|
* domainSeparator
|
|
1090
1130
|
* view
|
|
@@ -1100,18 +1140,11 @@ class GnosisSafe_json {
|
|
|
1100
1140
|
return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
|
|
1101
1141
|
}
|
|
1102
1142
|
/**
|
|
1103
|
-
*
|
|
1143
|
+
* getChainId
|
|
1104
1144
|
* view
|
|
1105
1145
|
*/
|
|
1106
|
-
async
|
|
1107
|
-
return this.contract.read.
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* getModules
|
|
1111
|
-
* view
|
|
1112
|
-
*/
|
|
1113
|
-
async getModules() {
|
|
1114
|
-
return this.contract.read.getModules();
|
|
1146
|
+
async getChainId() {
|
|
1147
|
+
return this.contract.read.getChainId();
|
|
1115
1148
|
}
|
|
1116
1149
|
/**
|
|
1117
1150
|
* getModulesPaginated
|
|
@@ -1127,6 +1160,13 @@ class GnosisSafe_json {
|
|
|
1127
1160
|
async getOwners() {
|
|
1128
1161
|
return this.contract.read.getOwners();
|
|
1129
1162
|
}
|
|
1163
|
+
/**
|
|
1164
|
+
* getStorageAt
|
|
1165
|
+
* view
|
|
1166
|
+
*/
|
|
1167
|
+
async getStorageAt(offset, length) {
|
|
1168
|
+
return this.contract.read.getStorageAt([offset, length]);
|
|
1169
|
+
}
|
|
1130
1170
|
/**
|
|
1131
1171
|
* getThreshold
|
|
1132
1172
|
* view
|
|
@@ -1191,17 +1231,6 @@ class GnosisSafe_json {
|
|
|
1191
1231
|
}
|
|
1192
1232
|
return this.contract.write.approveHash([hashToApprove], options);
|
|
1193
1233
|
}
|
|
1194
|
-
/**
|
|
1195
|
-
* changeMasterCopy
|
|
1196
|
-
* nonpayable
|
|
1197
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1198
|
-
*/
|
|
1199
|
-
async changeMasterCopy(_masterCopy, options) {
|
|
1200
|
-
if (!this.contract.write) {
|
|
1201
|
-
throw new Error('Wallet client is required for write operations');
|
|
1202
|
-
}
|
|
1203
|
-
return this.contract.write.changeMasterCopy([_masterCopy], options);
|
|
1204
|
-
}
|
|
1205
1234
|
/**
|
|
1206
1235
|
* changeThreshold
|
|
1207
1236
|
* nonpayable
|
|
@@ -1268,17 +1297,6 @@ class GnosisSafe_json {
|
|
|
1268
1297
|
}
|
|
1269
1298
|
return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation], options);
|
|
1270
1299
|
}
|
|
1271
|
-
/**
|
|
1272
|
-
* isValidSignature
|
|
1273
|
-
* nonpayable
|
|
1274
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1275
|
-
*/
|
|
1276
|
-
async isValidSignature(_data, _signature, options) {
|
|
1277
|
-
if (!this.contract.write) {
|
|
1278
|
-
throw new Error('Wallet client is required for write operations');
|
|
1279
|
-
}
|
|
1280
|
-
return this.contract.write.isValidSignature([_data, _signature], options);
|
|
1281
|
-
}
|
|
1282
1300
|
/**
|
|
1283
1301
|
* removeOwner
|
|
1284
1302
|
* nonpayable
|
|
@@ -1312,6 +1330,17 @@ class GnosisSafe_json {
|
|
|
1312
1330
|
}
|
|
1313
1331
|
return this.contract.write.setFallbackHandler([handler], options);
|
|
1314
1332
|
}
|
|
1333
|
+
/**
|
|
1334
|
+
* setGuard
|
|
1335
|
+
* nonpayable
|
|
1336
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1337
|
+
*/
|
|
1338
|
+
async setGuard(guard, options) {
|
|
1339
|
+
if (!this.contract.write) {
|
|
1340
|
+
throw new Error('Wallet client is required for write operations');
|
|
1341
|
+
}
|
|
1342
|
+
return this.contract.write.setGuard([guard], options);
|
|
1343
|
+
}
|
|
1315
1344
|
/**
|
|
1316
1345
|
* setup
|
|
1317
1346
|
* nonpayable
|
|
@@ -1324,15 +1353,15 @@ class GnosisSafe_json {
|
|
|
1324
1353
|
return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
|
|
1325
1354
|
}
|
|
1326
1355
|
/**
|
|
1327
|
-
*
|
|
1356
|
+
* simulateAndRevert
|
|
1328
1357
|
* nonpayable
|
|
1329
1358
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1330
1359
|
*/
|
|
1331
|
-
async
|
|
1360
|
+
async simulateAndRevert(targetContract, calldataPayload, options) {
|
|
1332
1361
|
if (!this.contract.write) {
|
|
1333
1362
|
throw new Error('Wallet client is required for write operations');
|
|
1334
1363
|
}
|
|
1335
|
-
return this.contract.write.
|
|
1364
|
+
return this.contract.write.simulateAndRevert([targetContract, calldataPayload], options);
|
|
1336
1365
|
}
|
|
1337
1366
|
/**
|
|
1338
1367
|
* swapOwner
|
|
@@ -1375,14 +1404,6 @@ class GnosisSafe_json {
|
|
|
1375
1404
|
async approveHash(hashToApprove, options) {
|
|
1376
1405
|
return contract.simulate.approveHash([hashToApprove], options);
|
|
1377
1406
|
},
|
|
1378
|
-
/**
|
|
1379
|
-
* Simulate changeMasterCopy
|
|
1380
|
-
* Returns gas estimate and result without sending transaction
|
|
1381
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1382
|
-
*/
|
|
1383
|
-
async changeMasterCopy(_masterCopy, options) {
|
|
1384
|
-
return contract.simulate.changeMasterCopy([_masterCopy], options);
|
|
1385
|
-
},
|
|
1386
1407
|
/**
|
|
1387
1408
|
* Simulate changeThreshold
|
|
1388
1409
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1431,14 +1452,6 @@ class GnosisSafe_json {
|
|
|
1431
1452
|
async execTransactionFromModuleReturnData(to, value, data, operation, options) {
|
|
1432
1453
|
return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation], options);
|
|
1433
1454
|
},
|
|
1434
|
-
/**
|
|
1435
|
-
* Simulate isValidSignature
|
|
1436
|
-
* Returns gas estimate and result without sending transaction
|
|
1437
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1438
|
-
*/
|
|
1439
|
-
async isValidSignature(_data, _signature, options) {
|
|
1440
|
-
return contract.simulate.isValidSignature([_data, _signature], options);
|
|
1441
|
-
},
|
|
1442
1455
|
/**
|
|
1443
1456
|
* Simulate removeOwner
|
|
1444
1457
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1463,6 +1476,14 @@ class GnosisSafe_json {
|
|
|
1463
1476
|
async setFallbackHandler(handler, options) {
|
|
1464
1477
|
return contract.simulate.setFallbackHandler([handler], options);
|
|
1465
1478
|
},
|
|
1479
|
+
/**
|
|
1480
|
+
* Simulate setGuard
|
|
1481
|
+
* Returns gas estimate and result without sending transaction
|
|
1482
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1483
|
+
*/
|
|
1484
|
+
async setGuard(guard, options) {
|
|
1485
|
+
return contract.simulate.setGuard([guard], options);
|
|
1486
|
+
},
|
|
1466
1487
|
/**
|
|
1467
1488
|
* Simulate setup
|
|
1468
1489
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1472,12 +1493,12 @@ class GnosisSafe_json {
|
|
|
1472
1493
|
return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver], options);
|
|
1473
1494
|
},
|
|
1474
1495
|
/**
|
|
1475
|
-
* Simulate
|
|
1496
|
+
* Simulate simulateAndRevert
|
|
1476
1497
|
* Returns gas estimate and result without sending transaction
|
|
1477
1498
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1478
1499
|
*/
|
|
1479
|
-
async
|
|
1480
|
-
return contract.simulate.
|
|
1500
|
+
async simulateAndRevert(targetContract, calldataPayload, options) {
|
|
1501
|
+
return contract.simulate.simulateAndRevert([targetContract, calldataPayload], options);
|
|
1481
1502
|
},
|
|
1482
1503
|
/**
|
|
1483
1504
|
* Simulate swapOwner
|
|
@@ -1541,16 +1562,34 @@ class GnosisSafe_json {
|
|
|
1541
1562
|
});
|
|
1542
1563
|
},
|
|
1543
1564
|
/**
|
|
1544
|
-
* Watch
|
|
1565
|
+
* Watch ChangedFallbackHandler events
|
|
1545
1566
|
* @param callback Function to call when event is emitted
|
|
1546
1567
|
* @param filter Optional filter for indexed parameters
|
|
1547
1568
|
* @returns Unwatch function to stop listening
|
|
1548
1569
|
*/
|
|
1549
|
-
|
|
1570
|
+
ChangedFallbackHandler: (callback) => {
|
|
1550
1571
|
return this.publicClient.watchContractEvent({
|
|
1551
1572
|
address: this.contractAddress,
|
|
1552
1573
|
abi: exports.GnosisSafe_jsonAbi,
|
|
1553
|
-
eventName: '
|
|
1574
|
+
eventName: 'ChangedFallbackHandler',
|
|
1575
|
+
onLogs: (logs) => {
|
|
1576
|
+
logs.forEach((log) => {
|
|
1577
|
+
callback(log.args);
|
|
1578
|
+
});
|
|
1579
|
+
},
|
|
1580
|
+
});
|
|
1581
|
+
},
|
|
1582
|
+
/**
|
|
1583
|
+
* Watch ChangedGuard events
|
|
1584
|
+
* @param callback Function to call when event is emitted
|
|
1585
|
+
* @param filter Optional filter for indexed parameters
|
|
1586
|
+
* @returns Unwatch function to stop listening
|
|
1587
|
+
*/
|
|
1588
|
+
ChangedGuard: (callback) => {
|
|
1589
|
+
return this.publicClient.watchContractEvent({
|
|
1590
|
+
address: this.contractAddress,
|
|
1591
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1592
|
+
eventName: 'ChangedGuard',
|
|
1554
1593
|
onLogs: (logs) => {
|
|
1555
1594
|
logs.forEach((log) => {
|
|
1556
1595
|
callback(log.args);
|
|
@@ -1704,6 +1743,44 @@ class GnosisSafe_json {
|
|
|
1704
1743
|
},
|
|
1705
1744
|
});
|
|
1706
1745
|
},
|
|
1746
|
+
/**
|
|
1747
|
+
* Watch SafeReceived events
|
|
1748
|
+
* @param callback Function to call when event is emitted
|
|
1749
|
+
* @param filter Optional filter for indexed parameters
|
|
1750
|
+
* @returns Unwatch function to stop listening
|
|
1751
|
+
*/
|
|
1752
|
+
SafeReceived: (callback, filter) => {
|
|
1753
|
+
return this.publicClient.watchContractEvent({
|
|
1754
|
+
address: this.contractAddress,
|
|
1755
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1756
|
+
eventName: 'SafeReceived',
|
|
1757
|
+
args: filter,
|
|
1758
|
+
onLogs: (logs) => {
|
|
1759
|
+
logs.forEach((log) => {
|
|
1760
|
+
callback(log.args);
|
|
1761
|
+
});
|
|
1762
|
+
},
|
|
1763
|
+
});
|
|
1764
|
+
},
|
|
1765
|
+
/**
|
|
1766
|
+
* Watch SafeSetup events
|
|
1767
|
+
* @param callback Function to call when event is emitted
|
|
1768
|
+
* @param filter Optional filter for indexed parameters
|
|
1769
|
+
* @returns Unwatch function to stop listening
|
|
1770
|
+
*/
|
|
1771
|
+
SafeSetup: (callback, filter) => {
|
|
1772
|
+
return this.publicClient.watchContractEvent({
|
|
1773
|
+
address: this.contractAddress,
|
|
1774
|
+
abi: exports.GnosisSafe_jsonAbi,
|
|
1775
|
+
eventName: 'SafeSetup',
|
|
1776
|
+
args: filter,
|
|
1777
|
+
onLogs: (logs) => {
|
|
1778
|
+
logs.forEach((log) => {
|
|
1779
|
+
callback(log.args);
|
|
1780
|
+
});
|
|
1781
|
+
},
|
|
1782
|
+
});
|
|
1783
|
+
},
|
|
1707
1784
|
/**
|
|
1708
1785
|
* Watch SignMsg events
|
|
1709
1786
|
* @param callback Function to call when event is emitted
|