@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
|
@@ -9,7 +9,6 @@ import { getContract } from 'viem';
|
|
|
9
9
|
export const GnosisSafe_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [],
|
|
12
|
-
"payable": false,
|
|
13
12
|
"stateMutability": "nonpayable",
|
|
14
13
|
"type": "constructor"
|
|
15
14
|
},
|
|
@@ -51,11 +50,24 @@ export const GnosisSafe_jsonAbi = [
|
|
|
51
50
|
{
|
|
52
51
|
"indexed": false,
|
|
53
52
|
"internalType": "address",
|
|
54
|
-
"name": "
|
|
53
|
+
"name": "handler",
|
|
54
|
+
"type": "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "ChangedFallbackHandler",
|
|
58
|
+
"type": "event"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"anonymous": false,
|
|
62
|
+
"inputs": [
|
|
63
|
+
{
|
|
64
|
+
"indexed": false,
|
|
65
|
+
"internalType": "address",
|
|
66
|
+
"name": "guard",
|
|
55
67
|
"type": "address"
|
|
56
68
|
}
|
|
57
69
|
],
|
|
58
|
-
"name": "
|
|
70
|
+
"name": "ChangedGuard",
|
|
59
71
|
"type": "event"
|
|
60
72
|
},
|
|
61
73
|
{
|
|
@@ -76,7 +88,7 @@ export const GnosisSafe_jsonAbi = [
|
|
|
76
88
|
"inputs": [
|
|
77
89
|
{
|
|
78
90
|
"indexed": false,
|
|
79
|
-
"internalType": "
|
|
91
|
+
"internalType": "address",
|
|
80
92
|
"name": "module",
|
|
81
93
|
"type": "address"
|
|
82
94
|
}
|
|
@@ -89,7 +101,7 @@ export const GnosisSafe_jsonAbi = [
|
|
|
89
101
|
"inputs": [
|
|
90
102
|
{
|
|
91
103
|
"indexed": false,
|
|
92
|
-
"internalType": "
|
|
104
|
+
"internalType": "address",
|
|
93
105
|
"name": "module",
|
|
94
106
|
"type": "address"
|
|
95
107
|
}
|
|
@@ -179,36 +191,75 @@ export const GnosisSafe_jsonAbi = [
|
|
|
179
191
|
"inputs": [
|
|
180
192
|
{
|
|
181
193
|
"indexed": true,
|
|
182
|
-
"internalType": "
|
|
183
|
-
"name": "
|
|
184
|
-
"type": "
|
|
194
|
+
"internalType": "address",
|
|
195
|
+
"name": "sender",
|
|
196
|
+
"type": "address"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"indexed": false,
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "value",
|
|
202
|
+
"type": "uint256"
|
|
185
203
|
}
|
|
186
204
|
],
|
|
187
|
-
"name": "
|
|
205
|
+
"name": "SafeReceived",
|
|
188
206
|
"type": "event"
|
|
189
207
|
},
|
|
190
208
|
{
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
|
|
209
|
+
"anonymous": false,
|
|
210
|
+
"inputs": [
|
|
211
|
+
{
|
|
212
|
+
"indexed": true,
|
|
213
|
+
"internalType": "address",
|
|
214
|
+
"name": "initiator",
|
|
215
|
+
"type": "address"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"indexed": false,
|
|
219
|
+
"internalType": "address[]",
|
|
220
|
+
"name": "owners",
|
|
221
|
+
"type": "address[]"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"indexed": false,
|
|
225
|
+
"internalType": "uint256",
|
|
226
|
+
"name": "threshold",
|
|
227
|
+
"type": "uint256"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"indexed": false,
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "initializer",
|
|
233
|
+
"type": "address"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"indexed": false,
|
|
237
|
+
"internalType": "address",
|
|
238
|
+
"name": "fallbackHandler",
|
|
239
|
+
"type": "address"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"name": "SafeSetup",
|
|
243
|
+
"type": "event"
|
|
194
244
|
},
|
|
195
245
|
{
|
|
196
|
-
"
|
|
197
|
-
"inputs": [
|
|
198
|
-
"name": "NAME",
|
|
199
|
-
"outputs": [
|
|
246
|
+
"anonymous": false,
|
|
247
|
+
"inputs": [
|
|
200
248
|
{
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
249
|
+
"indexed": true,
|
|
250
|
+
"internalType": "bytes32",
|
|
251
|
+
"name": "msgHash",
|
|
252
|
+
"type": "bytes32"
|
|
204
253
|
}
|
|
205
254
|
],
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
|
|
255
|
+
"name": "SignMsg",
|
|
256
|
+
"type": "event"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"stateMutability": "nonpayable",
|
|
260
|
+
"type": "fallback"
|
|
209
261
|
},
|
|
210
262
|
{
|
|
211
|
-
"constant": true,
|
|
212
263
|
"inputs": [],
|
|
213
264
|
"name": "VERSION",
|
|
214
265
|
"outputs": [
|
|
@@ -218,12 +269,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
218
269
|
"type": "string"
|
|
219
270
|
}
|
|
220
271
|
],
|
|
221
|
-
"payable": false,
|
|
222
272
|
"stateMutability": "view",
|
|
223
273
|
"type": "function"
|
|
224
274
|
},
|
|
225
275
|
{
|
|
226
|
-
"constant": false,
|
|
227
276
|
"inputs": [
|
|
228
277
|
{
|
|
229
278
|
"internalType": "address",
|
|
@@ -238,12 +287,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
238
287
|
],
|
|
239
288
|
"name": "addOwnerWithThreshold",
|
|
240
289
|
"outputs": [],
|
|
241
|
-
"payable": false,
|
|
242
290
|
"stateMutability": "nonpayable",
|
|
243
291
|
"type": "function"
|
|
244
292
|
},
|
|
245
293
|
{
|
|
246
|
-
"constant": false,
|
|
247
294
|
"inputs": [
|
|
248
295
|
{
|
|
249
296
|
"internalType": "bytes32",
|
|
@@ -253,12 +300,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
253
300
|
],
|
|
254
301
|
"name": "approveHash",
|
|
255
302
|
"outputs": [],
|
|
256
|
-
"payable": false,
|
|
257
303
|
"stateMutability": "nonpayable",
|
|
258
304
|
"type": "function"
|
|
259
305
|
},
|
|
260
306
|
{
|
|
261
|
-
"constant": true,
|
|
262
307
|
"inputs": [
|
|
263
308
|
{
|
|
264
309
|
"internalType": "address",
|
|
@@ -279,62 +324,92 @@ export const GnosisSafe_jsonAbi = [
|
|
|
279
324
|
"type": "uint256"
|
|
280
325
|
}
|
|
281
326
|
],
|
|
282
|
-
"payable": false,
|
|
283
327
|
"stateMutability": "view",
|
|
284
328
|
"type": "function"
|
|
285
329
|
},
|
|
286
330
|
{
|
|
287
|
-
"constant": false,
|
|
288
331
|
"inputs": [
|
|
289
332
|
{
|
|
290
|
-
"internalType": "
|
|
291
|
-
"name": "
|
|
292
|
-
"type": "
|
|
333
|
+
"internalType": "uint256",
|
|
334
|
+
"name": "_threshold",
|
|
335
|
+
"type": "uint256"
|
|
293
336
|
}
|
|
294
337
|
],
|
|
295
|
-
"name": "
|
|
338
|
+
"name": "changeThreshold",
|
|
296
339
|
"outputs": [],
|
|
297
|
-
"payable": false,
|
|
298
340
|
"stateMutability": "nonpayable",
|
|
299
341
|
"type": "function"
|
|
300
342
|
},
|
|
301
343
|
{
|
|
302
|
-
"constant": false,
|
|
303
344
|
"inputs": [
|
|
345
|
+
{
|
|
346
|
+
"internalType": "bytes32",
|
|
347
|
+
"name": "dataHash",
|
|
348
|
+
"type": "bytes32"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"internalType": "bytes",
|
|
352
|
+
"name": "data",
|
|
353
|
+
"type": "bytes"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"internalType": "bytes",
|
|
357
|
+
"name": "signatures",
|
|
358
|
+
"type": "bytes"
|
|
359
|
+
},
|
|
304
360
|
{
|
|
305
361
|
"internalType": "uint256",
|
|
306
|
-
"name": "
|
|
362
|
+
"name": "requiredSignatures",
|
|
307
363
|
"type": "uint256"
|
|
308
364
|
}
|
|
309
365
|
],
|
|
310
|
-
"name": "
|
|
366
|
+
"name": "checkNSignatures",
|
|
311
367
|
"outputs": [],
|
|
312
|
-
"
|
|
313
|
-
"stateMutability": "nonpayable",
|
|
368
|
+
"stateMutability": "view",
|
|
314
369
|
"type": "function"
|
|
315
370
|
},
|
|
316
371
|
{
|
|
317
|
-
"constant": false,
|
|
318
372
|
"inputs": [
|
|
319
373
|
{
|
|
320
|
-
"internalType": "
|
|
374
|
+
"internalType": "bytes32",
|
|
375
|
+
"name": "dataHash",
|
|
376
|
+
"type": "bytes32"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"internalType": "bytes",
|
|
380
|
+
"name": "data",
|
|
381
|
+
"type": "bytes"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"internalType": "bytes",
|
|
385
|
+
"name": "signatures",
|
|
386
|
+
"type": "bytes"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"name": "checkSignatures",
|
|
390
|
+
"outputs": [],
|
|
391
|
+
"stateMutability": "view",
|
|
392
|
+
"type": "function"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"inputs": [
|
|
396
|
+
{
|
|
397
|
+
"internalType": "address",
|
|
321
398
|
"name": "prevModule",
|
|
322
399
|
"type": "address"
|
|
323
400
|
},
|
|
324
401
|
{
|
|
325
|
-
"internalType": "
|
|
402
|
+
"internalType": "address",
|
|
326
403
|
"name": "module",
|
|
327
404
|
"type": "address"
|
|
328
405
|
}
|
|
329
406
|
],
|
|
330
407
|
"name": "disableModule",
|
|
331
408
|
"outputs": [],
|
|
332
|
-
"payable": false,
|
|
333
409
|
"stateMutability": "nonpayable",
|
|
334
410
|
"type": "function"
|
|
335
411
|
},
|
|
336
412
|
{
|
|
337
|
-
"constant": true,
|
|
338
413
|
"inputs": [],
|
|
339
414
|
"name": "domainSeparator",
|
|
340
415
|
"outputs": [
|
|
@@ -344,27 +419,23 @@ export const GnosisSafe_jsonAbi = [
|
|
|
344
419
|
"type": "bytes32"
|
|
345
420
|
}
|
|
346
421
|
],
|
|
347
|
-
"payable": false,
|
|
348
422
|
"stateMutability": "view",
|
|
349
423
|
"type": "function"
|
|
350
424
|
},
|
|
351
425
|
{
|
|
352
|
-
"constant": false,
|
|
353
426
|
"inputs": [
|
|
354
427
|
{
|
|
355
|
-
"internalType": "
|
|
428
|
+
"internalType": "address",
|
|
356
429
|
"name": "module",
|
|
357
430
|
"type": "address"
|
|
358
431
|
}
|
|
359
432
|
],
|
|
360
433
|
"name": "enableModule",
|
|
361
434
|
"outputs": [],
|
|
362
|
-
"payable": false,
|
|
363
435
|
"stateMutability": "nonpayable",
|
|
364
436
|
"type": "function"
|
|
365
437
|
},
|
|
366
438
|
{
|
|
367
|
-
"constant": true,
|
|
368
439
|
"inputs": [
|
|
369
440
|
{
|
|
370
441
|
"internalType": "address",
|
|
@@ -425,12 +496,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
425
496
|
"type": "bytes"
|
|
426
497
|
}
|
|
427
498
|
],
|
|
428
|
-
"payable": false,
|
|
429
499
|
"stateMutability": "view",
|
|
430
500
|
"type": "function"
|
|
431
501
|
},
|
|
432
502
|
{
|
|
433
|
-
"constant": false,
|
|
434
503
|
"inputs": [
|
|
435
504
|
{
|
|
436
505
|
"internalType": "address",
|
|
@@ -491,12 +560,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
491
560
|
"type": "bool"
|
|
492
561
|
}
|
|
493
562
|
],
|
|
494
|
-
"payable": true,
|
|
495
563
|
"stateMutability": "payable",
|
|
496
564
|
"type": "function"
|
|
497
565
|
},
|
|
498
566
|
{
|
|
499
|
-
"constant": false,
|
|
500
567
|
"inputs": [
|
|
501
568
|
{
|
|
502
569
|
"internalType": "address",
|
|
@@ -527,12 +594,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
527
594
|
"type": "bool"
|
|
528
595
|
}
|
|
529
596
|
],
|
|
530
|
-
"payable": false,
|
|
531
597
|
"stateMutability": "nonpayable",
|
|
532
598
|
"type": "function"
|
|
533
599
|
},
|
|
534
600
|
{
|
|
535
|
-
"constant": false,
|
|
536
601
|
"inputs": [
|
|
537
602
|
{
|
|
538
603
|
"internalType": "address",
|
|
@@ -568,48 +633,23 @@ export const GnosisSafe_jsonAbi = [
|
|
|
568
633
|
"type": "bytes"
|
|
569
634
|
}
|
|
570
635
|
],
|
|
571
|
-
"payable": false,
|
|
572
636
|
"stateMutability": "nonpayable",
|
|
573
637
|
"type": "function"
|
|
574
638
|
},
|
|
575
639
|
{
|
|
576
|
-
"constant": true,
|
|
577
|
-
"inputs": [
|
|
578
|
-
{
|
|
579
|
-
"internalType": "bytes",
|
|
580
|
-
"name": "message",
|
|
581
|
-
"type": "bytes"
|
|
582
|
-
}
|
|
583
|
-
],
|
|
584
|
-
"name": "getMessageHash",
|
|
585
|
-
"outputs": [
|
|
586
|
-
{
|
|
587
|
-
"internalType": "bytes32",
|
|
588
|
-
"name": "",
|
|
589
|
-
"type": "bytes32"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"payable": false,
|
|
593
|
-
"stateMutability": "view",
|
|
594
|
-
"type": "function"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"constant": true,
|
|
598
640
|
"inputs": [],
|
|
599
|
-
"name": "
|
|
641
|
+
"name": "getChainId",
|
|
600
642
|
"outputs": [
|
|
601
643
|
{
|
|
602
|
-
"internalType": "
|
|
644
|
+
"internalType": "uint256",
|
|
603
645
|
"name": "",
|
|
604
|
-
"type": "
|
|
646
|
+
"type": "uint256"
|
|
605
647
|
}
|
|
606
648
|
],
|
|
607
|
-
"payable": false,
|
|
608
649
|
"stateMutability": "view",
|
|
609
650
|
"type": "function"
|
|
610
651
|
},
|
|
611
652
|
{
|
|
612
|
-
"constant": true,
|
|
613
653
|
"inputs": [
|
|
614
654
|
{
|
|
615
655
|
"internalType": "address",
|
|
@@ -635,12 +675,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
635
675
|
"type": "address"
|
|
636
676
|
}
|
|
637
677
|
],
|
|
638
|
-
"payable": false,
|
|
639
678
|
"stateMutability": "view",
|
|
640
679
|
"type": "function"
|
|
641
680
|
},
|
|
642
681
|
{
|
|
643
|
-
"constant": true,
|
|
644
682
|
"inputs": [],
|
|
645
683
|
"name": "getOwners",
|
|
646
684
|
"outputs": [
|
|
@@ -650,12 +688,34 @@ export const GnosisSafe_jsonAbi = [
|
|
|
650
688
|
"type": "address[]"
|
|
651
689
|
}
|
|
652
690
|
],
|
|
653
|
-
"payable": false,
|
|
654
691
|
"stateMutability": "view",
|
|
655
692
|
"type": "function"
|
|
656
693
|
},
|
|
657
694
|
{
|
|
658
|
-
"
|
|
695
|
+
"inputs": [
|
|
696
|
+
{
|
|
697
|
+
"internalType": "uint256",
|
|
698
|
+
"name": "offset",
|
|
699
|
+
"type": "uint256"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"internalType": "uint256",
|
|
703
|
+
"name": "length",
|
|
704
|
+
"type": "uint256"
|
|
705
|
+
}
|
|
706
|
+
],
|
|
707
|
+
"name": "getStorageAt",
|
|
708
|
+
"outputs": [
|
|
709
|
+
{
|
|
710
|
+
"internalType": "bytes",
|
|
711
|
+
"name": "",
|
|
712
|
+
"type": "bytes"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"stateMutability": "view",
|
|
716
|
+
"type": "function"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
659
719
|
"inputs": [],
|
|
660
720
|
"name": "getThreshold",
|
|
661
721
|
"outputs": [
|
|
@@ -665,12 +725,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
665
725
|
"type": "uint256"
|
|
666
726
|
}
|
|
667
727
|
],
|
|
668
|
-
"payable": false,
|
|
669
728
|
"stateMutability": "view",
|
|
670
729
|
"type": "function"
|
|
671
730
|
},
|
|
672
731
|
{
|
|
673
|
-
"constant": true,
|
|
674
732
|
"inputs": [
|
|
675
733
|
{
|
|
676
734
|
"internalType": "address",
|
|
@@ -731,15 +789,13 @@ export const GnosisSafe_jsonAbi = [
|
|
|
731
789
|
"type": "bytes32"
|
|
732
790
|
}
|
|
733
791
|
],
|
|
734
|
-
"payable": false,
|
|
735
792
|
"stateMutability": "view",
|
|
736
793
|
"type": "function"
|
|
737
794
|
},
|
|
738
795
|
{
|
|
739
|
-
"constant": true,
|
|
740
796
|
"inputs": [
|
|
741
797
|
{
|
|
742
|
-
"internalType": "
|
|
798
|
+
"internalType": "address",
|
|
743
799
|
"name": "module",
|
|
744
800
|
"type": "address"
|
|
745
801
|
}
|
|
@@ -752,12 +808,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
752
808
|
"type": "bool"
|
|
753
809
|
}
|
|
754
810
|
],
|
|
755
|
-
"payable": false,
|
|
756
811
|
"stateMutability": "view",
|
|
757
812
|
"type": "function"
|
|
758
813
|
},
|
|
759
814
|
{
|
|
760
|
-
"constant": true,
|
|
761
815
|
"inputs": [
|
|
762
816
|
{
|
|
763
817
|
"internalType": "address",
|
|
@@ -773,38 +827,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
773
827
|
"type": "bool"
|
|
774
828
|
}
|
|
775
829
|
],
|
|
776
|
-
"payable": false,
|
|
777
830
|
"stateMutability": "view",
|
|
778
831
|
"type": "function"
|
|
779
832
|
},
|
|
780
833
|
{
|
|
781
|
-
"constant": false,
|
|
782
|
-
"inputs": [
|
|
783
|
-
{
|
|
784
|
-
"internalType": "bytes",
|
|
785
|
-
"name": "_data",
|
|
786
|
-
"type": "bytes"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"internalType": "bytes",
|
|
790
|
-
"name": "_signature",
|
|
791
|
-
"type": "bytes"
|
|
792
|
-
}
|
|
793
|
-
],
|
|
794
|
-
"name": "isValidSignature",
|
|
795
|
-
"outputs": [
|
|
796
|
-
{
|
|
797
|
-
"internalType": "bytes4",
|
|
798
|
-
"name": "",
|
|
799
|
-
"type": "bytes4"
|
|
800
|
-
}
|
|
801
|
-
],
|
|
802
|
-
"payable": false,
|
|
803
|
-
"stateMutability": "nonpayable",
|
|
804
|
-
"type": "function"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"constant": true,
|
|
808
834
|
"inputs": [],
|
|
809
835
|
"name": "nonce",
|
|
810
836
|
"outputs": [
|
|
@@ -814,12 +840,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
814
840
|
"type": "uint256"
|
|
815
841
|
}
|
|
816
842
|
],
|
|
817
|
-
"payable": false,
|
|
818
843
|
"stateMutability": "view",
|
|
819
844
|
"type": "function"
|
|
820
845
|
},
|
|
821
846
|
{
|
|
822
|
-
"constant": false,
|
|
823
847
|
"inputs": [
|
|
824
848
|
{
|
|
825
849
|
"internalType": "address",
|
|
@@ -839,12 +863,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
839
863
|
],
|
|
840
864
|
"name": "removeOwner",
|
|
841
865
|
"outputs": [],
|
|
842
|
-
"payable": false,
|
|
843
866
|
"stateMutability": "nonpayable",
|
|
844
867
|
"type": "function"
|
|
845
868
|
},
|
|
846
869
|
{
|
|
847
|
-
"constant": false,
|
|
848
870
|
"inputs": [
|
|
849
871
|
{
|
|
850
872
|
"internalType": "address",
|
|
@@ -875,12 +897,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
875
897
|
"type": "uint256"
|
|
876
898
|
}
|
|
877
899
|
],
|
|
878
|
-
"payable": false,
|
|
879
900
|
"stateMutability": "nonpayable",
|
|
880
901
|
"type": "function"
|
|
881
902
|
},
|
|
882
903
|
{
|
|
883
|
-
"constant": false,
|
|
884
904
|
"inputs": [
|
|
885
905
|
{
|
|
886
906
|
"internalType": "address",
|
|
@@ -890,12 +910,23 @@ export const GnosisSafe_jsonAbi = [
|
|
|
890
910
|
],
|
|
891
911
|
"name": "setFallbackHandler",
|
|
892
912
|
"outputs": [],
|
|
893
|
-
"payable": false,
|
|
894
913
|
"stateMutability": "nonpayable",
|
|
895
914
|
"type": "function"
|
|
896
915
|
},
|
|
897
916
|
{
|
|
898
|
-
"
|
|
917
|
+
"inputs": [
|
|
918
|
+
{
|
|
919
|
+
"internalType": "address",
|
|
920
|
+
"name": "guard",
|
|
921
|
+
"type": "address"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"name": "setGuard",
|
|
925
|
+
"outputs": [],
|
|
926
|
+
"stateMutability": "nonpayable",
|
|
927
|
+
"type": "function"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
899
930
|
"inputs": [
|
|
900
931
|
{
|
|
901
932
|
"internalType": "address[]",
|
|
@@ -940,27 +971,10 @@ export const GnosisSafe_jsonAbi = [
|
|
|
940
971
|
],
|
|
941
972
|
"name": "setup",
|
|
942
973
|
"outputs": [],
|
|
943
|
-
"payable": false,
|
|
944
|
-
"stateMutability": "nonpayable",
|
|
945
|
-
"type": "function"
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"constant": false,
|
|
949
|
-
"inputs": [
|
|
950
|
-
{
|
|
951
|
-
"internalType": "bytes",
|
|
952
|
-
"name": "_data",
|
|
953
|
-
"type": "bytes"
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
"name": "signMessage",
|
|
957
|
-
"outputs": [],
|
|
958
|
-
"payable": false,
|
|
959
974
|
"stateMutability": "nonpayable",
|
|
960
975
|
"type": "function"
|
|
961
976
|
},
|
|
962
977
|
{
|
|
963
|
-
"constant": true,
|
|
964
978
|
"inputs": [
|
|
965
979
|
{
|
|
966
980
|
"internalType": "bytes32",
|
|
@@ -976,12 +990,28 @@ export const GnosisSafe_jsonAbi = [
|
|
|
976
990
|
"type": "uint256"
|
|
977
991
|
}
|
|
978
992
|
],
|
|
979
|
-
"payable": false,
|
|
980
993
|
"stateMutability": "view",
|
|
981
994
|
"type": "function"
|
|
982
995
|
},
|
|
983
996
|
{
|
|
984
|
-
"
|
|
997
|
+
"inputs": [
|
|
998
|
+
{
|
|
999
|
+
"internalType": "address",
|
|
1000
|
+
"name": "targetContract",
|
|
1001
|
+
"type": "address"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"internalType": "bytes",
|
|
1005
|
+
"name": "calldataPayload",
|
|
1006
|
+
"type": "bytes"
|
|
1007
|
+
}
|
|
1008
|
+
],
|
|
1009
|
+
"name": "simulateAndRevert",
|
|
1010
|
+
"outputs": [],
|
|
1011
|
+
"stateMutability": "nonpayable",
|
|
1012
|
+
"type": "function"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
985
1015
|
"inputs": [
|
|
986
1016
|
{
|
|
987
1017
|
"internalType": "address",
|
|
@@ -1001,9 +1031,12 @@ export const GnosisSafe_jsonAbi = [
|
|
|
1001
1031
|
],
|
|
1002
1032
|
"name": "swapOwner",
|
|
1003
1033
|
"outputs": [],
|
|
1004
|
-
"payable": false,
|
|
1005
1034
|
"stateMutability": "nonpayable",
|
|
1006
1035
|
"type": "function"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"stateMutability": "payable",
|
|
1039
|
+
"type": "receive"
|
|
1007
1040
|
}
|
|
1008
1041
|
] as const satisfies Abi;
|
|
1009
1042
|
|
|
@@ -1089,14 +1122,6 @@ export class GnosisSafe_json {
|
|
|
1089
1122
|
return this.contract;
|
|
1090
1123
|
}
|
|
1091
1124
|
|
|
1092
|
-
/**
|
|
1093
|
-
* NAME
|
|
1094
|
-
* view
|
|
1095
|
-
*/
|
|
1096
|
-
async NAME(): Promise<string> {
|
|
1097
|
-
return this.contract.read.NAME() as Promise<string>;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
1125
|
/**
|
|
1101
1126
|
* VERSION
|
|
1102
1127
|
* view
|
|
@@ -1113,6 +1138,22 @@ export class GnosisSafe_json {
|
|
|
1113
1138
|
return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
|
|
1114
1139
|
}
|
|
1115
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* checkNSignatures
|
|
1143
|
+
* view
|
|
1144
|
+
*/
|
|
1145
|
+
async checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void> {
|
|
1146
|
+
return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures] as const) as Promise<void>;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* checkSignatures
|
|
1151
|
+
* view
|
|
1152
|
+
*/
|
|
1153
|
+
async checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void> {
|
|
1154
|
+
return this.contract.read.checkSignatures([dataHash, data, signatures] as const) as Promise<void>;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1116
1157
|
/**
|
|
1117
1158
|
* domainSeparator
|
|
1118
1159
|
* view
|
|
@@ -1130,19 +1171,11 @@ export class GnosisSafe_json {
|
|
|
1130
1171
|
}
|
|
1131
1172
|
|
|
1132
1173
|
/**
|
|
1133
|
-
*
|
|
1174
|
+
* getChainId
|
|
1134
1175
|
* view
|
|
1135
1176
|
*/
|
|
1136
|
-
async
|
|
1137
|
-
return this.contract.read.
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
/**
|
|
1141
|
-
* getModules
|
|
1142
|
-
* view
|
|
1143
|
-
*/
|
|
1144
|
-
async getModules(): Promise<`0x${string}`[]> {
|
|
1145
|
-
return this.contract.read.getModules() as Promise<`0x${string}`[]>;
|
|
1177
|
+
async getChainId(): Promise<bigint> {
|
|
1178
|
+
return this.contract.read.getChainId() as Promise<bigint>;
|
|
1146
1179
|
}
|
|
1147
1180
|
|
|
1148
1181
|
/**
|
|
@@ -1161,6 +1194,14 @@ export class GnosisSafe_json {
|
|
|
1161
1194
|
return this.contract.read.getOwners() as Promise<`0x${string}`[]>;
|
|
1162
1195
|
}
|
|
1163
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* getStorageAt
|
|
1199
|
+
* view
|
|
1200
|
+
*/
|
|
1201
|
+
async getStorageAt(offset: bigint, length: bigint): Promise<`0x${string}`> {
|
|
1202
|
+
return this.contract.read.getStorageAt([offset, length] as const) as Promise<`0x${string}`>;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1164
1205
|
/**
|
|
1165
1206
|
* getThreshold
|
|
1166
1207
|
* view
|
|
@@ -1255,29 +1296,6 @@ export class GnosisSafe_json {
|
|
|
1255
1296
|
return this.contract.write.approveHash([hashToApprove] as const, options) as Promise<`0x${string}`>;
|
|
1256
1297
|
}
|
|
1257
1298
|
|
|
1258
|
-
/**
|
|
1259
|
-
* changeMasterCopy
|
|
1260
|
-
* nonpayable
|
|
1261
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1262
|
-
*/
|
|
1263
|
-
async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
|
|
1264
|
-
accessList?: import('viem').AccessList;
|
|
1265
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1266
|
-
chain?: import('viem').Chain | null;
|
|
1267
|
-
dataSuffix?: `0x${string}`;
|
|
1268
|
-
gas?: bigint;
|
|
1269
|
-
gasPrice?: bigint;
|
|
1270
|
-
maxFeePerGas?: bigint;
|
|
1271
|
-
maxPriorityFeePerGas?: bigint;
|
|
1272
|
-
nonce?: number;
|
|
1273
|
-
value?: bigint;
|
|
1274
|
-
}): Promise<`0x${string}`> {
|
|
1275
|
-
if (!this.contract.write) {
|
|
1276
|
-
throw new Error('Wallet client is required for write operations');
|
|
1277
|
-
}
|
|
1278
|
-
return this.contract.write.changeMasterCopy([_masterCopy] as const, options) as Promise<`0x${string}`>;
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
1299
|
/**
|
|
1282
1300
|
* changeThreshold
|
|
1283
1301
|
* nonpayable
|
|
@@ -1417,11 +1435,11 @@ export class GnosisSafe_json {
|
|
|
1417
1435
|
}
|
|
1418
1436
|
|
|
1419
1437
|
/**
|
|
1420
|
-
*
|
|
1438
|
+
* removeOwner
|
|
1421
1439
|
* nonpayable
|
|
1422
1440
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1423
1441
|
*/
|
|
1424
|
-
async
|
|
1442
|
+
async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
|
|
1425
1443
|
accessList?: import('viem').AccessList;
|
|
1426
1444
|
authorizationList?: import('viem').AuthorizationList;
|
|
1427
1445
|
chain?: import('viem').Chain | null;
|
|
@@ -1436,15 +1454,15 @@ export class GnosisSafe_json {
|
|
|
1436
1454
|
if (!this.contract.write) {
|
|
1437
1455
|
throw new Error('Wallet client is required for write operations');
|
|
1438
1456
|
}
|
|
1439
|
-
return this.contract.write.
|
|
1457
|
+
return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
|
|
1440
1458
|
}
|
|
1441
1459
|
|
|
1442
1460
|
/**
|
|
1443
|
-
*
|
|
1461
|
+
* requiredTxGas
|
|
1444
1462
|
* nonpayable
|
|
1445
1463
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1446
1464
|
*/
|
|
1447
|
-
async
|
|
1465
|
+
async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
|
|
1448
1466
|
accessList?: import('viem').AccessList;
|
|
1449
1467
|
authorizationList?: import('viem').AuthorizationList;
|
|
1450
1468
|
chain?: import('viem').Chain | null;
|
|
@@ -1459,15 +1477,15 @@ export class GnosisSafe_json {
|
|
|
1459
1477
|
if (!this.contract.write) {
|
|
1460
1478
|
throw new Error('Wallet client is required for write operations');
|
|
1461
1479
|
}
|
|
1462
|
-
return this.contract.write.
|
|
1480
|
+
return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
|
|
1463
1481
|
}
|
|
1464
1482
|
|
|
1465
1483
|
/**
|
|
1466
|
-
*
|
|
1484
|
+
* setFallbackHandler
|
|
1467
1485
|
* nonpayable
|
|
1468
1486
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1469
1487
|
*/
|
|
1470
|
-
async
|
|
1488
|
+
async setFallbackHandler(handler: `0x${string}`, options?: {
|
|
1471
1489
|
accessList?: import('viem').AccessList;
|
|
1472
1490
|
authorizationList?: import('viem').AuthorizationList;
|
|
1473
1491
|
chain?: import('viem').Chain | null;
|
|
@@ -1482,15 +1500,15 @@ export class GnosisSafe_json {
|
|
|
1482
1500
|
if (!this.contract.write) {
|
|
1483
1501
|
throw new Error('Wallet client is required for write operations');
|
|
1484
1502
|
}
|
|
1485
|
-
return this.contract.write.
|
|
1503
|
+
return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
|
|
1486
1504
|
}
|
|
1487
1505
|
|
|
1488
1506
|
/**
|
|
1489
|
-
*
|
|
1507
|
+
* setGuard
|
|
1490
1508
|
* nonpayable
|
|
1491
1509
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1492
1510
|
*/
|
|
1493
|
-
async
|
|
1511
|
+
async setGuard(guard: `0x${string}`, options?: {
|
|
1494
1512
|
accessList?: import('viem').AccessList;
|
|
1495
1513
|
authorizationList?: import('viem').AuthorizationList;
|
|
1496
1514
|
chain?: import('viem').Chain | null;
|
|
@@ -1505,7 +1523,7 @@ export class GnosisSafe_json {
|
|
|
1505
1523
|
if (!this.contract.write) {
|
|
1506
1524
|
throw new Error('Wallet client is required for write operations');
|
|
1507
1525
|
}
|
|
1508
|
-
return this.contract.write.
|
|
1526
|
+
return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
|
|
1509
1527
|
}
|
|
1510
1528
|
|
|
1511
1529
|
/**
|
|
@@ -1532,11 +1550,11 @@ export class GnosisSafe_json {
|
|
|
1532
1550
|
}
|
|
1533
1551
|
|
|
1534
1552
|
/**
|
|
1535
|
-
*
|
|
1553
|
+
* simulateAndRevert
|
|
1536
1554
|
* nonpayable
|
|
1537
1555
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1538
1556
|
*/
|
|
1539
|
-
async
|
|
1557
|
+
async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
|
|
1540
1558
|
accessList?: import('viem').AccessList;
|
|
1541
1559
|
authorizationList?: import('viem').AuthorizationList;
|
|
1542
1560
|
chain?: import('viem').Chain | null;
|
|
@@ -1551,7 +1569,7 @@ export class GnosisSafe_json {
|
|
|
1551
1569
|
if (!this.contract.write) {
|
|
1552
1570
|
throw new Error('Wallet client is required for write operations');
|
|
1553
1571
|
}
|
|
1554
|
-
return this.contract.write.
|
|
1572
|
+
return this.contract.write.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<`0x${string}`>;
|
|
1555
1573
|
}
|
|
1556
1574
|
|
|
1557
1575
|
/**
|
|
@@ -1631,25 +1649,6 @@ export class GnosisSafe_json {
|
|
|
1631
1649
|
}): Promise<void> {
|
|
1632
1650
|
return contract.simulate.approveHash([hashToApprove] as const, options) as Promise<void>;
|
|
1633
1651
|
},
|
|
1634
|
-
/**
|
|
1635
|
-
* Simulate changeMasterCopy
|
|
1636
|
-
* Returns gas estimate and result without sending transaction
|
|
1637
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1638
|
-
*/
|
|
1639
|
-
async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
|
|
1640
|
-
accessList?: import('viem').AccessList;
|
|
1641
|
-
authorizationList?: import('viem').AuthorizationList;
|
|
1642
|
-
chain?: import('viem').Chain | null;
|
|
1643
|
-
dataSuffix?: `0x${string}`;
|
|
1644
|
-
gas?: bigint;
|
|
1645
|
-
gasPrice?: bigint;
|
|
1646
|
-
maxFeePerGas?: bigint;
|
|
1647
|
-
maxPriorityFeePerGas?: bigint;
|
|
1648
|
-
nonce?: number;
|
|
1649
|
-
value?: bigint;
|
|
1650
|
-
}): Promise<void> {
|
|
1651
|
-
return contract.simulate.changeMasterCopy([_masterCopy] as const, options) as Promise<void>;
|
|
1652
|
-
},
|
|
1653
1652
|
/**
|
|
1654
1653
|
* Simulate changeThreshold
|
|
1655
1654
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1765,11 +1764,11 @@ export class GnosisSafe_json {
|
|
|
1765
1764
|
return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation] as const, options) as Promise<[boolean, `0x${string}`]>;
|
|
1766
1765
|
},
|
|
1767
1766
|
/**
|
|
1768
|
-
* Simulate
|
|
1767
|
+
* Simulate removeOwner
|
|
1769
1768
|
* Returns gas estimate and result without sending transaction
|
|
1770
1769
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1771
1770
|
*/
|
|
1772
|
-
async
|
|
1771
|
+
async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
|
|
1773
1772
|
accessList?: import('viem').AccessList;
|
|
1774
1773
|
authorizationList?: import('viem').AuthorizationList;
|
|
1775
1774
|
chain?: import('viem').Chain | null;
|
|
@@ -1780,15 +1779,15 @@ export class GnosisSafe_json {
|
|
|
1780
1779
|
maxPriorityFeePerGas?: bigint;
|
|
1781
1780
|
nonce?: number;
|
|
1782
1781
|
value?: bigint;
|
|
1783
|
-
}): Promise
|
|
1784
|
-
return contract.simulate.
|
|
1782
|
+
}): Promise<void> {
|
|
1783
|
+
return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
|
|
1785
1784
|
},
|
|
1786
1785
|
/**
|
|
1787
|
-
* Simulate
|
|
1786
|
+
* Simulate requiredTxGas
|
|
1788
1787
|
* Returns gas estimate and result without sending transaction
|
|
1789
1788
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1790
1789
|
*/
|
|
1791
|
-
async
|
|
1790
|
+
async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
|
|
1792
1791
|
accessList?: import('viem').AccessList;
|
|
1793
1792
|
authorizationList?: import('viem').AuthorizationList;
|
|
1794
1793
|
chain?: import('viem').Chain | null;
|
|
@@ -1799,15 +1798,15 @@ export class GnosisSafe_json {
|
|
|
1799
1798
|
maxPriorityFeePerGas?: bigint;
|
|
1800
1799
|
nonce?: number;
|
|
1801
1800
|
value?: bigint;
|
|
1802
|
-
}): Promise<
|
|
1803
|
-
return contract.simulate.
|
|
1801
|
+
}): Promise<bigint> {
|
|
1802
|
+
return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
|
|
1804
1803
|
},
|
|
1805
1804
|
/**
|
|
1806
|
-
* Simulate
|
|
1805
|
+
* Simulate setFallbackHandler
|
|
1807
1806
|
* Returns gas estimate and result without sending transaction
|
|
1808
1807
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1809
1808
|
*/
|
|
1810
|
-
async
|
|
1809
|
+
async setFallbackHandler(handler: `0x${string}`, options?: {
|
|
1811
1810
|
accessList?: import('viem').AccessList;
|
|
1812
1811
|
authorizationList?: import('viem').AuthorizationList;
|
|
1813
1812
|
chain?: import('viem').Chain | null;
|
|
@@ -1818,15 +1817,15 @@ export class GnosisSafe_json {
|
|
|
1818
1817
|
maxPriorityFeePerGas?: bigint;
|
|
1819
1818
|
nonce?: number;
|
|
1820
1819
|
value?: bigint;
|
|
1821
|
-
}): Promise<
|
|
1822
|
-
return contract.simulate.
|
|
1820
|
+
}): Promise<void> {
|
|
1821
|
+
return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
|
|
1823
1822
|
},
|
|
1824
1823
|
/**
|
|
1825
|
-
* Simulate
|
|
1824
|
+
* Simulate setGuard
|
|
1826
1825
|
* Returns gas estimate and result without sending transaction
|
|
1827
1826
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1828
1827
|
*/
|
|
1829
|
-
async
|
|
1828
|
+
async setGuard(guard: `0x${string}`, options?: {
|
|
1830
1829
|
accessList?: import('viem').AccessList;
|
|
1831
1830
|
authorizationList?: import('viem').AuthorizationList;
|
|
1832
1831
|
chain?: import('viem').Chain | null;
|
|
@@ -1838,7 +1837,7 @@ export class GnosisSafe_json {
|
|
|
1838
1837
|
nonce?: number;
|
|
1839
1838
|
value?: bigint;
|
|
1840
1839
|
}): Promise<void> {
|
|
1841
|
-
return contract.simulate.
|
|
1840
|
+
return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
|
|
1842
1841
|
},
|
|
1843
1842
|
/**
|
|
1844
1843
|
* Simulate setup
|
|
@@ -1860,11 +1859,11 @@ export class GnosisSafe_json {
|
|
|
1860
1859
|
return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver] as const, options) as Promise<void>;
|
|
1861
1860
|
},
|
|
1862
1861
|
/**
|
|
1863
|
-
* Simulate
|
|
1862
|
+
* Simulate simulateAndRevert
|
|
1864
1863
|
* Returns gas estimate and result without sending transaction
|
|
1865
1864
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1866
1865
|
*/
|
|
1867
|
-
async
|
|
1866
|
+
async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
|
|
1868
1867
|
accessList?: import('viem').AccessList;
|
|
1869
1868
|
authorizationList?: import('viem').AuthorizationList;
|
|
1870
1869
|
chain?: import('viem').Chain | null;
|
|
@@ -1876,7 +1875,7 @@ export class GnosisSafe_json {
|
|
|
1876
1875
|
nonce?: number;
|
|
1877
1876
|
value?: bigint;
|
|
1878
1877
|
}): Promise<void> {
|
|
1879
|
-
return contract.simulate.
|
|
1878
|
+
return contract.simulate.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<void>;
|
|
1880
1879
|
},
|
|
1881
1880
|
/**
|
|
1882
1881
|
* Simulate swapOwner
|
|
@@ -1953,16 +1952,35 @@ export class GnosisSafe_json {
|
|
|
1953
1952
|
}) as () => void;
|
|
1954
1953
|
},
|
|
1955
1954
|
/**
|
|
1956
|
-
* Watch
|
|
1955
|
+
* Watch ChangedFallbackHandler events
|
|
1956
|
+
* @param callback Function to call when event is emitted
|
|
1957
|
+
* @param filter Optional filter for indexed parameters
|
|
1958
|
+
* @returns Unwatch function to stop listening
|
|
1959
|
+
*/
|
|
1960
|
+
ChangedFallbackHandler: (callback: (event: { handler: `0x${string}` }) => void) => {
|
|
1961
|
+
return this.publicClient.watchContractEvent({
|
|
1962
|
+
address: this.contractAddress,
|
|
1963
|
+
abi: GnosisSafe_jsonAbi,
|
|
1964
|
+
eventName: 'ChangedFallbackHandler',
|
|
1965
|
+
|
|
1966
|
+
onLogs: (logs: any[]) => {
|
|
1967
|
+
logs.forEach((log: any) => {
|
|
1968
|
+
callback(log.args as any);
|
|
1969
|
+
});
|
|
1970
|
+
},
|
|
1971
|
+
}) as () => void;
|
|
1972
|
+
},
|
|
1973
|
+
/**
|
|
1974
|
+
* Watch ChangedGuard events
|
|
1957
1975
|
* @param callback Function to call when event is emitted
|
|
1958
1976
|
* @param filter Optional filter for indexed parameters
|
|
1959
1977
|
* @returns Unwatch function to stop listening
|
|
1960
1978
|
*/
|
|
1961
|
-
|
|
1979
|
+
ChangedGuard: (callback: (event: { guard: `0x${string}` }) => void) => {
|
|
1962
1980
|
return this.publicClient.watchContractEvent({
|
|
1963
1981
|
address: this.contractAddress,
|
|
1964
1982
|
abi: GnosisSafe_jsonAbi,
|
|
1965
|
-
eventName: '
|
|
1983
|
+
eventName: 'ChangedGuard',
|
|
1966
1984
|
|
|
1967
1985
|
onLogs: (logs: any[]) => {
|
|
1968
1986
|
logs.forEach((log: any) => {
|
|
@@ -2123,6 +2141,44 @@ export class GnosisSafe_json {
|
|
|
2123
2141
|
},
|
|
2124
2142
|
}) as () => void;
|
|
2125
2143
|
},
|
|
2144
|
+
/**
|
|
2145
|
+
* Watch SafeReceived events
|
|
2146
|
+
* @param callback Function to call when event is emitted
|
|
2147
|
+
* @param filter Optional filter for indexed parameters
|
|
2148
|
+
* @returns Unwatch function to stop listening
|
|
2149
|
+
*/
|
|
2150
|
+
SafeReceived: (callback: (event: { sender: `0x${string}`; value: bigint }) => void, filter?: { sender: `0x${string}` }) => {
|
|
2151
|
+
return this.publicClient.watchContractEvent({
|
|
2152
|
+
address: this.contractAddress,
|
|
2153
|
+
abi: GnosisSafe_jsonAbi,
|
|
2154
|
+
eventName: 'SafeReceived',
|
|
2155
|
+
args: filter,
|
|
2156
|
+
onLogs: (logs: any[]) => {
|
|
2157
|
+
logs.forEach((log: any) => {
|
|
2158
|
+
callback(log.args as any);
|
|
2159
|
+
});
|
|
2160
|
+
},
|
|
2161
|
+
}) as () => void;
|
|
2162
|
+
},
|
|
2163
|
+
/**
|
|
2164
|
+
* Watch SafeSetup events
|
|
2165
|
+
* @param callback Function to call when event is emitted
|
|
2166
|
+
* @param filter Optional filter for indexed parameters
|
|
2167
|
+
* @returns Unwatch function to stop listening
|
|
2168
|
+
*/
|
|
2169
|
+
SafeSetup: (callback: (event: { initiator: `0x${string}`; owners: `0x${string}`[]; threshold: bigint; initializer: `0x${string}`; fallbackHandler: `0x${string}` }) => void, filter?: { initiator: `0x${string}` }) => {
|
|
2170
|
+
return this.publicClient.watchContractEvent({
|
|
2171
|
+
address: this.contractAddress,
|
|
2172
|
+
abi: GnosisSafe_jsonAbi,
|
|
2173
|
+
eventName: 'SafeSetup',
|
|
2174
|
+
args: filter,
|
|
2175
|
+
onLogs: (logs: any[]) => {
|
|
2176
|
+
logs.forEach((log: any) => {
|
|
2177
|
+
callback(log.args as any);
|
|
2178
|
+
});
|
|
2179
|
+
},
|
|
2180
|
+
}) as () => void;
|
|
2181
|
+
},
|
|
2126
2182
|
/**
|
|
2127
2183
|
* Watch SignMsg events
|
|
2128
2184
|
* @param callback Function to call when event is emitted
|