@gitmyabi/gnosissafe 1.0.122 → 1.0.123

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.
@@ -8,216 +8,546 @@ import { getContract } from 'viem';
8
8
  */
9
9
  export const GnosisSafe_jsonAbi = [
10
10
  {
11
- "constant": true,
11
+ "inputs": [],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "anonymous": false,
12
17
  "inputs": [
13
18
  {
14
- "name": "message",
15
- "type": "bytes"
19
+ "indexed": false,
20
+ "internalType": "address",
21
+ "name": "owner",
22
+ "type": "address"
16
23
  }
17
24
  ],
18
- "name": "getMessageHash",
19
- "outputs": [
25
+ "name": "AddedOwner",
26
+ "type": "event"
27
+ },
28
+ {
29
+ "anonymous": false,
30
+ "inputs": [
20
31
  {
21
- "name": "",
32
+ "indexed": true,
33
+ "internalType": "bytes32",
34
+ "name": "approvedHash",
22
35
  "type": "bytes32"
36
+ },
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "owner",
41
+ "type": "address"
23
42
  }
24
43
  ],
25
- "payable": false,
26
- "stateMutability": "view",
27
- "type": "function"
44
+ "name": "ApproveHash",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": false,
52
+ "internalType": "address",
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",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "name": "ChangedGuard",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": false,
78
+ "internalType": "uint256",
79
+ "name": "threshold",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "name": "ChangedThreshold",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": false,
91
+ "internalType": "address",
92
+ "name": "module",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "DisabledModule",
97
+ "type": "event"
98
+ },
99
+ {
100
+ "anonymous": false,
101
+ "inputs": [
102
+ {
103
+ "indexed": false,
104
+ "internalType": "address",
105
+ "name": "module",
106
+ "type": "address"
107
+ }
108
+ ],
109
+ "name": "EnabledModule",
110
+ "type": "event"
111
+ },
112
+ {
113
+ "anonymous": false,
114
+ "inputs": [
115
+ {
116
+ "indexed": false,
117
+ "internalType": "bytes32",
118
+ "name": "txHash",
119
+ "type": "bytes32"
120
+ },
121
+ {
122
+ "indexed": false,
123
+ "internalType": "uint256",
124
+ "name": "payment",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "name": "ExecutionFailure",
129
+ "type": "event"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
134
+ {
135
+ "indexed": true,
136
+ "internalType": "address",
137
+ "name": "module",
138
+ "type": "address"
139
+ }
140
+ ],
141
+ "name": "ExecutionFromModuleFailure",
142
+ "type": "event"
28
143
  },
29
144
  {
30
- "constant": false,
145
+ "anonymous": false,
31
146
  "inputs": [
32
147
  {
148
+ "indexed": true,
149
+ "internalType": "address",
150
+ "name": "module",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "ExecutionFromModuleSuccess",
155
+ "type": "event"
156
+ },
157
+ {
158
+ "anonymous": false,
159
+ "inputs": [
160
+ {
161
+ "indexed": false,
162
+ "internalType": "bytes32",
163
+ "name": "txHash",
164
+ "type": "bytes32"
165
+ },
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "payment",
170
+ "type": "uint256"
171
+ }
172
+ ],
173
+ "name": "ExecutionSuccess",
174
+ "type": "event"
175
+ },
176
+ {
177
+ "anonymous": false,
178
+ "inputs": [
179
+ {
180
+ "indexed": false,
181
+ "internalType": "address",
33
182
  "name": "owner",
34
183
  "type": "address"
184
+ }
185
+ ],
186
+ "name": "RemovedOwner",
187
+ "type": "event"
188
+ },
189
+ {
190
+ "anonymous": false,
191
+ "inputs": [
192
+ {
193
+ "indexed": true,
194
+ "internalType": "address",
195
+ "name": "sender",
196
+ "type": "address"
35
197
  },
36
198
  {
37
- "name": "_threshold",
199
+ "indexed": false,
200
+ "internalType": "uint256",
201
+ "name": "value",
38
202
  "type": "uint256"
39
203
  }
40
204
  ],
41
- "name": "addOwnerWithThreshold",
42
- "outputs": [],
43
- "payable": false,
205
+ "name": "SafeReceived",
206
+ "type": "event"
207
+ },
208
+ {
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"
244
+ },
245
+ {
246
+ "anonymous": false,
247
+ "inputs": [
248
+ {
249
+ "indexed": true,
250
+ "internalType": "bytes32",
251
+ "name": "msgHash",
252
+ "type": "bytes32"
253
+ }
254
+ ],
255
+ "name": "SignMsg",
256
+ "type": "event"
257
+ },
258
+ {
44
259
  "stateMutability": "nonpayable",
45
- "type": "function"
260
+ "type": "fallback"
46
261
  },
47
262
  {
48
- "constant": true,
49
263
  "inputs": [],
50
- "name": "DOMAIN_SEPARATOR_TYPEHASH",
264
+ "name": "VERSION",
51
265
  "outputs": [
52
266
  {
267
+ "internalType": "string",
53
268
  "name": "",
54
- "type": "bytes32"
269
+ "type": "string"
55
270
  }
56
271
  ],
57
- "payable": false,
58
272
  "stateMutability": "view",
59
273
  "type": "function"
60
274
  },
61
275
  {
62
- "constant": false,
63
276
  "inputs": [
64
277
  {
65
- "name": "_data",
66
- "type": "bytes"
278
+ "internalType": "address",
279
+ "name": "owner",
280
+ "type": "address"
67
281
  },
68
282
  {
69
- "name": "_signature",
70
- "type": "bytes"
283
+ "internalType": "uint256",
284
+ "name": "_threshold",
285
+ "type": "uint256"
71
286
  }
72
287
  ],
73
- "name": "isValidSignature",
74
- "outputs": [
288
+ "name": "addOwnerWithThreshold",
289
+ "outputs": [],
290
+ "stateMutability": "nonpayable",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [
75
295
  {
76
- "name": "",
77
- "type": "bytes4"
296
+ "internalType": "bytes32",
297
+ "name": "hashToApprove",
298
+ "type": "bytes32"
78
299
  }
79
300
  ],
80
- "payable": false,
301
+ "name": "approveHash",
302
+ "outputs": [],
81
303
  "stateMutability": "nonpayable",
82
304
  "type": "function"
83
305
  },
84
306
  {
85
- "constant": true,
86
307
  "inputs": [
87
308
  {
88
- "name": "owner",
309
+ "internalType": "address",
310
+ "name": "",
89
311
  "type": "address"
312
+ },
313
+ {
314
+ "internalType": "bytes32",
315
+ "name": "",
316
+ "type": "bytes32"
90
317
  }
91
318
  ],
92
- "name": "isOwner",
319
+ "name": "approvedHashes",
93
320
  "outputs": [
94
321
  {
322
+ "internalType": "uint256",
95
323
  "name": "",
96
- "type": "bool"
324
+ "type": "uint256"
97
325
  }
98
326
  ],
99
- "payable": false,
100
327
  "stateMutability": "view",
101
328
  "type": "function"
102
329
  },
103
330
  {
104
- "constant": false,
105
331
  "inputs": [
106
332
  {
107
- "name": "to",
108
- "type": "address"
109
- },
110
- {
111
- "name": "value",
333
+ "internalType": "uint256",
334
+ "name": "_threshold",
112
335
  "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "changeThreshold",
339
+ "outputs": [],
340
+ "stateMutability": "nonpayable",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [
345
+ {
346
+ "internalType": "bytes32",
347
+ "name": "dataHash",
348
+ "type": "bytes32"
113
349
  },
114
350
  {
351
+ "internalType": "bytes",
115
352
  "name": "data",
116
353
  "type": "bytes"
117
354
  },
118
355
  {
119
- "name": "operation",
120
- "type": "uint8"
356
+ "internalType": "bytes",
357
+ "name": "signatures",
358
+ "type": "bytes"
359
+ },
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "requiredSignatures",
363
+ "type": "uint256"
121
364
  }
122
365
  ],
123
- "name": "execTransactionFromModule",
124
- "outputs": [
366
+ "name": "checkNSignatures",
367
+ "outputs": [],
368
+ "stateMutability": "view",
369
+ "type": "function"
370
+ },
371
+ {
372
+ "inputs": [
125
373
  {
126
- "name": "success",
127
- "type": "bool"
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"
128
387
  }
129
388
  ],
130
- "payable": false,
131
- "stateMutability": "nonpayable",
389
+ "name": "checkSignatures",
390
+ "outputs": [],
391
+ "stateMutability": "view",
132
392
  "type": "function"
133
393
  },
134
394
  {
135
- "constant": true,
136
395
  "inputs": [
137
396
  {
138
- "name": "",
139
- "type": "bytes32"
397
+ "internalType": "address",
398
+ "name": "prevModule",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "address",
403
+ "name": "module",
404
+ "type": "address"
140
405
  }
141
406
  ],
142
- "name": "signedMessages",
407
+ "name": "disableModule",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
410
+ "type": "function"
411
+ },
412
+ {
413
+ "inputs": [],
414
+ "name": "domainSeparator",
143
415
  "outputs": [
144
416
  {
417
+ "internalType": "bytes32",
145
418
  "name": "",
146
- "type": "uint256"
419
+ "type": "bytes32"
147
420
  }
148
421
  ],
149
- "payable": false,
150
422
  "stateMutability": "view",
151
423
  "type": "function"
152
424
  },
153
425
  {
154
- "constant": false,
155
426
  "inputs": [
156
427
  {
428
+ "internalType": "address",
157
429
  "name": "module",
158
430
  "type": "address"
159
431
  }
160
432
  ],
161
- "name": "enableModule",
162
- "outputs": [],
163
- "payable": false,
164
- "stateMutability": "nonpayable",
165
- "type": "function"
166
- },
167
- {
168
- "constant": false,
169
- "inputs": [
433
+ "name": "enableModule",
434
+ "outputs": [],
435
+ "stateMutability": "nonpayable",
436
+ "type": "function"
437
+ },
438
+ {
439
+ "inputs": [
440
+ {
441
+ "internalType": "address",
442
+ "name": "to",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "value",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "bytes",
452
+ "name": "data",
453
+ "type": "bytes"
454
+ },
455
+ {
456
+ "internalType": "enum Enum.Operation",
457
+ "name": "operation",
458
+ "type": "uint8"
459
+ },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "safeTxGas",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "baseGas",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "gasPrice",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "address",
477
+ "name": "gasToken",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "address",
482
+ "name": "refundReceiver",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "_nonce",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "name": "encodeTransactionData",
492
+ "outputs": [
170
493
  {
171
- "name": "_threshold",
172
- "type": "uint256"
494
+ "internalType": "bytes",
495
+ "name": "",
496
+ "type": "bytes"
173
497
  }
174
498
  ],
175
- "name": "changeThreshold",
176
- "outputs": [],
177
- "payable": false,
178
- "stateMutability": "nonpayable",
499
+ "stateMutability": "view",
179
500
  "type": "function"
180
501
  },
181
502
  {
182
- "constant": false,
183
503
  "inputs": [
184
504
  {
505
+ "internalType": "address",
185
506
  "name": "to",
186
507
  "type": "address"
187
508
  },
188
509
  {
510
+ "internalType": "uint256",
189
511
  "name": "value",
190
512
  "type": "uint256"
191
513
  },
192
514
  {
515
+ "internalType": "bytes",
193
516
  "name": "data",
194
517
  "type": "bytes"
195
518
  },
196
519
  {
520
+ "internalType": "enum Enum.Operation",
197
521
  "name": "operation",
198
522
  "type": "uint8"
199
523
  },
200
524
  {
525
+ "internalType": "uint256",
201
526
  "name": "safeTxGas",
202
527
  "type": "uint256"
203
528
  },
204
529
  {
530
+ "internalType": "uint256",
205
531
  "name": "baseGas",
206
532
  "type": "uint256"
207
533
  },
208
534
  {
535
+ "internalType": "uint256",
209
536
  "name": "gasPrice",
210
537
  "type": "uint256"
211
538
  },
212
539
  {
540
+ "internalType": "address",
213
541
  "name": "gasToken",
214
542
  "type": "address"
215
543
  },
216
544
  {
545
+ "internalType": "address payable",
217
546
  "name": "refundReceiver",
218
547
  "type": "address"
219
548
  },
220
549
  {
550
+ "internalType": "bytes",
221
551
  "name": "signatures",
222
552
  "type": "bytes"
223
553
  }
@@ -225,300 +555,228 @@ export const GnosisSafe_jsonAbi = [
225
555
  "name": "execTransaction",
226
556
  "outputs": [
227
557
  {
558
+ "internalType": "bool",
228
559
  "name": "success",
229
560
  "type": "bool"
230
561
  }
231
562
  ],
232
- "payable": false,
233
- "stateMutability": "nonpayable",
563
+ "stateMutability": "payable",
234
564
  "type": "function"
235
565
  },
236
566
  {
237
- "constant": true,
238
567
  "inputs": [
239
568
  {
240
- "name": "",
569
+ "internalType": "address",
570
+ "name": "to",
241
571
  "type": "address"
242
572
  },
243
573
  {
244
- "name": "",
245
- "type": "bytes32"
246
- }
247
- ],
248
- "name": "approvedHashes",
249
- "outputs": [
250
- {
251
- "name": "",
574
+ "internalType": "uint256",
575
+ "name": "value",
252
576
  "type": "uint256"
253
- }
254
- ],
255
- "payable": false,
256
- "stateMutability": "view",
257
- "type": "function"
258
- },
259
- {
260
- "constant": false,
261
- "inputs": [
262
- {
263
- "name": "_masterCopy",
264
- "type": "address"
265
- }
266
- ],
267
- "name": "changeMasterCopy",
268
- "outputs": [],
269
- "payable": false,
270
- "stateMutability": "nonpayable",
271
- "type": "function"
272
- },
273
- {
274
- "constant": false,
275
- "inputs": [
577
+ },
276
578
  {
277
- "name": "_data",
579
+ "internalType": "bytes",
580
+ "name": "data",
278
581
  "type": "bytes"
279
- }
280
- ],
281
- "name": "signMessage",
282
- "outputs": [],
283
- "payable": false,
284
- "stateMutability": "nonpayable",
285
- "type": "function"
286
- },
287
- {
288
- "constant": true,
289
- "inputs": [],
290
- "name": "SENTINEL_MODULES",
291
- "outputs": [
292
- {
293
- "name": "",
294
- "type": "address"
295
- }
296
- ],
297
- "payable": false,
298
- "stateMutability": "view",
299
- "type": "function"
300
- },
301
- {
302
- "constant": true,
303
- "inputs": [],
304
- "name": "SENTINEL_OWNERS",
305
- "outputs": [
306
- {
307
- "name": "",
308
- "type": "address"
309
- }
310
- ],
311
- "payable": false,
312
- "stateMutability": "view",
313
- "type": "function"
314
- },
315
- {
316
- "constant": true,
317
- "inputs": [],
318
- "name": "getOwners",
319
- "outputs": [
582
+ },
320
583
  {
321
- "name": "",
322
- "type": "address[]"
584
+ "internalType": "enum Enum.Operation",
585
+ "name": "operation",
586
+ "type": "uint8"
323
587
  }
324
588
  ],
325
- "payable": false,
326
- "stateMutability": "view",
327
- "type": "function"
328
- },
329
- {
330
- "constant": true,
331
- "inputs": [],
332
- "name": "NAME",
589
+ "name": "execTransactionFromModule",
333
590
  "outputs": [
334
591
  {
335
- "name": "",
336
- "type": "string"
592
+ "internalType": "bool",
593
+ "name": "success",
594
+ "type": "bool"
337
595
  }
338
596
  ],
339
- "payable": false,
340
- "stateMutability": "view",
597
+ "stateMutability": "nonpayable",
341
598
  "type": "function"
342
599
  },
343
600
  {
344
- "constant": false,
345
601
  "inputs": [
346
602
  {
347
- "name": "_owners",
348
- "type": "address[]"
603
+ "internalType": "address",
604
+ "name": "to",
605
+ "type": "address"
349
606
  },
350
607
  {
351
- "name": "_threshold",
608
+ "internalType": "uint256",
609
+ "name": "value",
352
610
  "type": "uint256"
353
611
  },
354
612
  {
355
- "name": "to",
356
- "type": "address"
357
- },
358
- {
613
+ "internalType": "bytes",
359
614
  "name": "data",
360
615
  "type": "bytes"
361
616
  },
362
617
  {
363
- "name": "paymentToken",
364
- "type": "address"
365
- },
618
+ "internalType": "enum Enum.Operation",
619
+ "name": "operation",
620
+ "type": "uint8"
621
+ }
622
+ ],
623
+ "name": "execTransactionFromModuleReturnData",
624
+ "outputs": [
366
625
  {
367
- "name": "payment",
368
- "type": "uint256"
626
+ "internalType": "bool",
627
+ "name": "success",
628
+ "type": "bool"
369
629
  },
370
630
  {
371
- "name": "paymentReceiver",
372
- "type": "address"
631
+ "internalType": "bytes",
632
+ "name": "returnData",
633
+ "type": "bytes"
373
634
  }
374
635
  ],
375
- "name": "setup",
376
- "outputs": [],
377
- "payable": false,
378
636
  "stateMutability": "nonpayable",
379
637
  "type": "function"
380
638
  },
381
639
  {
382
- "constant": true,
383
640
  "inputs": [],
384
- "name": "nonce",
641
+ "name": "getChainId",
385
642
  "outputs": [
386
643
  {
644
+ "internalType": "uint256",
387
645
  "name": "",
388
646
  "type": "uint256"
389
647
  }
390
648
  ],
391
- "payable": false,
392
649
  "stateMutability": "view",
393
650
  "type": "function"
394
651
  },
395
652
  {
396
- "constant": true,
397
- "inputs": [],
398
- "name": "getModules",
653
+ "inputs": [
654
+ {
655
+ "internalType": "address",
656
+ "name": "start",
657
+ "type": "address"
658
+ },
659
+ {
660
+ "internalType": "uint256",
661
+ "name": "pageSize",
662
+ "type": "uint256"
663
+ }
664
+ ],
665
+ "name": "getModulesPaginated",
399
666
  "outputs": [
400
667
  {
401
- "name": "",
668
+ "internalType": "address[]",
669
+ "name": "array",
402
670
  "type": "address[]"
671
+ },
672
+ {
673
+ "internalType": "address",
674
+ "name": "next",
675
+ "type": "address"
403
676
  }
404
677
  ],
405
- "payable": false,
406
678
  "stateMutability": "view",
407
679
  "type": "function"
408
680
  },
409
681
  {
410
- "constant": true,
411
682
  "inputs": [],
412
- "name": "SAFE_MSG_TYPEHASH",
683
+ "name": "getOwners",
413
684
  "outputs": [
414
685
  {
686
+ "internalType": "address[]",
415
687
  "name": "",
416
- "type": "bytes32"
688
+ "type": "address[]"
417
689
  }
418
690
  ],
419
- "payable": false,
420
691
  "stateMutability": "view",
421
692
  "type": "function"
422
693
  },
423
694
  {
424
- "constant": false,
425
695
  "inputs": [
426
696
  {
427
- "name": "to",
428
- "type": "address"
429
- },
430
- {
431
- "name": "value",
697
+ "internalType": "uint256",
698
+ "name": "offset",
432
699
  "type": "uint256"
433
700
  },
434
701
  {
435
- "name": "data",
436
- "type": "bytes"
437
- },
438
- {
439
- "name": "operation",
440
- "type": "uint8"
702
+ "internalType": "uint256",
703
+ "name": "length",
704
+ "type": "uint256"
441
705
  }
442
706
  ],
443
- "name": "requiredTxGas",
707
+ "name": "getStorageAt",
444
708
  "outputs": [
445
709
  {
710
+ "internalType": "bytes",
446
711
  "name": "",
447
- "type": "uint256"
712
+ "type": "bytes"
448
713
  }
449
714
  ],
450
- "payable": false,
451
- "stateMutability": "nonpayable",
715
+ "stateMutability": "view",
452
716
  "type": "function"
453
717
  },
454
718
  {
455
- "constant": true,
456
719
  "inputs": [],
457
- "name": "SAFE_TX_TYPEHASH",
720
+ "name": "getThreshold",
458
721
  "outputs": [
459
722
  {
723
+ "internalType": "uint256",
460
724
  "name": "",
461
- "type": "bytes32"
725
+ "type": "uint256"
462
726
  }
463
727
  ],
464
- "payable": false,
465
728
  "stateMutability": "view",
466
729
  "type": "function"
467
730
  },
468
731
  {
469
- "constant": false,
470
- "inputs": [
471
- {
472
- "name": "hashToApprove",
473
- "type": "bytes32"
474
- }
475
- ],
476
- "name": "approveHash",
477
- "outputs": [],
478
- "payable": false,
479
- "stateMutability": "nonpayable",
480
- "type": "function"
481
- },
482
- {
483
- "constant": true,
484
732
  "inputs": [
485
733
  {
734
+ "internalType": "address",
486
735
  "name": "to",
487
736
  "type": "address"
488
737
  },
489
738
  {
739
+ "internalType": "uint256",
490
740
  "name": "value",
491
741
  "type": "uint256"
492
742
  },
493
743
  {
744
+ "internalType": "bytes",
494
745
  "name": "data",
495
746
  "type": "bytes"
496
747
  },
497
748
  {
749
+ "internalType": "enum Enum.Operation",
498
750
  "name": "operation",
499
751
  "type": "uint8"
500
752
  },
501
753
  {
754
+ "internalType": "uint256",
502
755
  "name": "safeTxGas",
503
756
  "type": "uint256"
504
757
  },
505
758
  {
759
+ "internalType": "uint256",
506
760
  "name": "baseGas",
507
761
  "type": "uint256"
508
762
  },
509
763
  {
764
+ "internalType": "uint256",
510
765
  "name": "gasPrice",
511
766
  "type": "uint256"
512
767
  },
513
768
  {
769
+ "internalType": "address",
514
770
  "name": "gasToken",
515
771
  "type": "address"
516
772
  },
517
773
  {
774
+ "internalType": "address",
518
775
  "name": "refundReceiver",
519
776
  "type": "address"
520
777
  },
521
778
  {
779
+ "internalType": "uint256",
522
780
  "name": "_nonce",
523
781
  "type": "uint256"
524
782
  }
@@ -526,261 +784,259 @@ export const GnosisSafe_jsonAbi = [
526
784
  "name": "getTransactionHash",
527
785
  "outputs": [
528
786
  {
787
+ "internalType": "bytes32",
529
788
  "name": "",
530
789
  "type": "bytes32"
531
790
  }
532
791
  ],
533
- "payable": false,
534
- "stateMutability": "view",
535
- "type": "function"
536
- },
537
- {
538
- "constant": false,
539
- "inputs": [
540
- {
541
- "name": "prevModule",
542
- "type": "address"
543
- },
544
- {
545
- "name": "module",
546
- "type": "address"
547
- }
548
- ],
549
- "name": "disableModule",
550
- "outputs": [],
551
- "payable": false,
552
- "stateMutability": "nonpayable",
553
- "type": "function"
554
- },
555
- {
556
- "constant": false,
557
- "inputs": [
558
- {
559
- "name": "prevOwner",
560
- "type": "address"
561
- },
562
- {
563
- "name": "oldOwner",
564
- "type": "address"
565
- },
566
- {
567
- "name": "newOwner",
568
- "type": "address"
569
- }
570
- ],
571
- "name": "swapOwner",
572
- "outputs": [],
573
- "payable": false,
574
- "stateMutability": "nonpayable",
575
- "type": "function"
576
- },
577
- {
578
- "constant": true,
579
- "inputs": [],
580
- "name": "getThreshold",
581
- "outputs": [
582
- {
583
- "name": "",
584
- "type": "uint256"
585
- }
586
- ],
587
- "payable": false,
588
792
  "stateMutability": "view",
589
793
  "type": "function"
590
- },
591
- {
592
- "constant": true,
593
- "inputs": [
594
- {
595
- "name": "to",
596
- "type": "address"
597
- },
598
- {
599
- "name": "value",
600
- "type": "uint256"
601
- },
602
- {
603
- "name": "data",
604
- "type": "bytes"
605
- },
606
- {
607
- "name": "operation",
608
- "type": "uint8"
609
- },
610
- {
611
- "name": "safeTxGas",
612
- "type": "uint256"
613
- },
614
- {
615
- "name": "baseGas",
616
- "type": "uint256"
617
- },
618
- {
619
- "name": "gasPrice",
620
- "type": "uint256"
621
- },
794
+ },
795
+ {
796
+ "inputs": [
622
797
  {
623
- "name": "gasToken",
798
+ "internalType": "address",
799
+ "name": "module",
624
800
  "type": "address"
625
- },
801
+ }
802
+ ],
803
+ "name": "isModuleEnabled",
804
+ "outputs": [
626
805
  {
627
- "name": "refundReceiver",
628
- "type": "address"
629
- },
806
+ "internalType": "bool",
807
+ "name": "",
808
+ "type": "bool"
809
+ }
810
+ ],
811
+ "stateMutability": "view",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [
630
816
  {
631
- "name": "_nonce",
632
- "type": "uint256"
817
+ "internalType": "address",
818
+ "name": "owner",
819
+ "type": "address"
633
820
  }
634
821
  ],
635
- "name": "encodeTransactionData",
822
+ "name": "isOwner",
636
823
  "outputs": [
637
824
  {
825
+ "internalType": "bool",
638
826
  "name": "",
639
- "type": "bytes"
827
+ "type": "bool"
640
828
  }
641
829
  ],
642
- "payable": false,
643
830
  "stateMutability": "view",
644
831
  "type": "function"
645
832
  },
646
833
  {
647
- "constant": true,
648
834
  "inputs": [],
649
- "name": "domainSeparator",
835
+ "name": "nonce",
650
836
  "outputs": [
651
837
  {
838
+ "internalType": "uint256",
652
839
  "name": "",
653
- "type": "bytes32"
840
+ "type": "uint256"
654
841
  }
655
842
  ],
656
- "payable": false,
657
843
  "stateMutability": "view",
658
844
  "type": "function"
659
845
  },
660
846
  {
661
- "constant": false,
662
847
  "inputs": [
663
848
  {
849
+ "internalType": "address",
664
850
  "name": "prevOwner",
665
851
  "type": "address"
666
852
  },
667
853
  {
854
+ "internalType": "address",
668
855
  "name": "owner",
669
856
  "type": "address"
670
857
  },
671
858
  {
859
+ "internalType": "uint256",
672
860
  "name": "_threshold",
673
861
  "type": "uint256"
674
862
  }
675
863
  ],
676
864
  "name": "removeOwner",
677
865
  "outputs": [],
678
- "payable": false,
679
866
  "stateMutability": "nonpayable",
680
867
  "type": "function"
681
868
  },
682
869
  {
683
- "constant": true,
684
- "inputs": [],
685
- "name": "VERSION",
870
+ "inputs": [
871
+ {
872
+ "internalType": "address",
873
+ "name": "to",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "uint256",
878
+ "name": "value",
879
+ "type": "uint256"
880
+ },
881
+ {
882
+ "internalType": "bytes",
883
+ "name": "data",
884
+ "type": "bytes"
885
+ },
886
+ {
887
+ "internalType": "enum Enum.Operation",
888
+ "name": "operation",
889
+ "type": "uint8"
890
+ }
891
+ ],
892
+ "name": "requiredTxGas",
686
893
  "outputs": [
687
894
  {
895
+ "internalType": "uint256",
688
896
  "name": "",
689
- "type": "string"
897
+ "type": "uint256"
690
898
  }
691
899
  ],
692
- "payable": false,
693
- "stateMutability": "view",
900
+ "stateMutability": "nonpayable",
694
901
  "type": "function"
695
902
  },
696
903
  {
697
- "payable": true,
698
- "stateMutability": "payable",
699
- "type": "fallback"
700
- },
701
- {
702
- "anonymous": false,
703
904
  "inputs": [
704
905
  {
705
- "indexed": false,
706
- "name": "txHash",
707
- "type": "bytes32"
906
+ "internalType": "address",
907
+ "name": "handler",
908
+ "type": "address"
708
909
  }
709
910
  ],
710
- "name": "ExecutionFailed",
711
- "type": "event"
911
+ "name": "setFallbackHandler",
912
+ "outputs": [],
913
+ "stateMutability": "nonpayable",
914
+ "type": "function"
712
915
  },
713
916
  {
714
- "anonymous": false,
715
917
  "inputs": [
716
918
  {
717
- "indexed": false,
718
- "name": "owner",
919
+ "internalType": "address",
920
+ "name": "guard",
719
921
  "type": "address"
720
922
  }
721
923
  ],
722
- "name": "AddedOwner",
723
- "type": "event"
924
+ "name": "setGuard",
925
+ "outputs": [],
926
+ "stateMutability": "nonpayable",
927
+ "type": "function"
724
928
  },
725
929
  {
726
- "anonymous": false,
727
930
  "inputs": [
728
931
  {
729
- "indexed": false,
730
- "name": "owner",
932
+ "internalType": "address[]",
933
+ "name": "_owners",
934
+ "type": "address[]"
935
+ },
936
+ {
937
+ "internalType": "uint256",
938
+ "name": "_threshold",
939
+ "type": "uint256"
940
+ },
941
+ {
942
+ "internalType": "address",
943
+ "name": "to",
944
+ "type": "address"
945
+ },
946
+ {
947
+ "internalType": "bytes",
948
+ "name": "data",
949
+ "type": "bytes"
950
+ },
951
+ {
952
+ "internalType": "address",
953
+ "name": "fallbackHandler",
954
+ "type": "address"
955
+ },
956
+ {
957
+ "internalType": "address",
958
+ "name": "paymentToken",
959
+ "type": "address"
960
+ },
961
+ {
962
+ "internalType": "uint256",
963
+ "name": "payment",
964
+ "type": "uint256"
965
+ },
966
+ {
967
+ "internalType": "address payable",
968
+ "name": "paymentReceiver",
731
969
  "type": "address"
732
970
  }
733
971
  ],
734
- "name": "RemovedOwner",
735
- "type": "event"
972
+ "name": "setup",
973
+ "outputs": [],
974
+ "stateMutability": "nonpayable",
975
+ "type": "function"
736
976
  },
737
977
  {
738
- "anonymous": false,
739
978
  "inputs": [
740
979
  {
741
- "indexed": false,
742
- "name": "threshold",
743
- "type": "uint256"
980
+ "internalType": "bytes32",
981
+ "name": "",
982
+ "type": "bytes32"
744
983
  }
745
984
  ],
746
- "name": "ChangedThreshold",
747
- "type": "event"
748
- },
749
- {
750
- "anonymous": false,
751
- "inputs": [
985
+ "name": "signedMessages",
986
+ "outputs": [
752
987
  {
753
- "indexed": false,
754
- "name": "module",
755
- "type": "address"
988
+ "internalType": "uint256",
989
+ "name": "",
990
+ "type": "uint256"
756
991
  }
757
992
  ],
758
- "name": "EnabledModule",
759
- "type": "event"
993
+ "stateMutability": "view",
994
+ "type": "function"
760
995
  },
761
996
  {
762
- "anonymous": false,
763
997
  "inputs": [
764
998
  {
765
- "indexed": false,
766
- "name": "module",
999
+ "internalType": "address",
1000
+ "name": "targetContract",
767
1001
  "type": "address"
1002
+ },
1003
+ {
1004
+ "internalType": "bytes",
1005
+ "name": "calldataPayload",
1006
+ "type": "bytes"
768
1007
  }
769
1008
  ],
770
- "name": "DisabledModule",
771
- "type": "event"
1009
+ "name": "simulateAndRevert",
1010
+ "outputs": [],
1011
+ "stateMutability": "nonpayable",
1012
+ "type": "function"
772
1013
  },
773
1014
  {
774
- "anonymous": false,
775
1015
  "inputs": [
776
1016
  {
777
- "indexed": false,
778
- "name": "newContract",
1017
+ "internalType": "address",
1018
+ "name": "prevOwner",
1019
+ "type": "address"
1020
+ },
1021
+ {
1022
+ "internalType": "address",
1023
+ "name": "oldOwner",
1024
+ "type": "address"
1025
+ },
1026
+ {
1027
+ "internalType": "address",
1028
+ "name": "newOwner",
779
1029
  "type": "address"
780
1030
  }
781
1031
  ],
782
- "name": "ContractCreation",
783
- "type": "event"
1032
+ "name": "swapOwner",
1033
+ "outputs": [],
1034
+ "stateMutability": "nonpayable",
1035
+ "type": "function"
1036
+ },
1037
+ {
1038
+ "stateMutability": "payable",
1039
+ "type": "receive"
784
1040
  }
785
1041
  ] as const satisfies Abi;
786
1042
 
@@ -867,107 +1123,91 @@ export class GnosisSafe_json {
867
1123
  }
868
1124
 
869
1125
  /**
870
- * getMessageHash
871
- * view
872
- */
873
- async getMessageHash(message: `0x${string}`): Promise<`0x${string}`> {
874
- return this.contract.read.getMessageHash([message] as const) as Promise<`0x${string}`>;
875
- }
876
-
877
- /**
878
- * DOMAIN_SEPARATOR_TYPEHASH
879
- * view
880
- */
881
- async DOMAIN_SEPARATOR_TYPEHASH(): Promise<`0x${string}`> {
882
- return this.contract.read.DOMAIN_SEPARATOR_TYPEHASH() as Promise<`0x${string}`>;
883
- }
884
-
885
- /**
886
- * isOwner
1126
+ * VERSION
887
1127
  * view
888
1128
  */
889
- async isOwner(owner: `0x${string}`): Promise<boolean> {
890
- return this.contract.read.isOwner([owner] as const) as Promise<boolean>;
1129
+ async VERSION(): Promise<string> {
1130
+ return this.contract.read.VERSION() as Promise<string>;
891
1131
  }
892
1132
 
893
1133
  /**
894
- * signedMessages
1134
+ * approvedHashes
895
1135
  * view
896
1136
  */
897
- async signedMessages(arg0: `0x${string}`): Promise<bigint> {
898
- return this.contract.read.signedMessages([arg0] as const) as Promise<bigint>;
1137
+ async approvedHashes(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
1138
+ return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
899
1139
  }
900
1140
 
901
1141
  /**
902
- * approvedHashes
1142
+ * checkNSignatures
903
1143
  * view
904
1144
  */
905
- async approvedHashes(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint> {
906
- return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
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>;
907
1147
  }
908
1148
 
909
1149
  /**
910
- * SENTINEL_MODULES
1150
+ * checkSignatures
911
1151
  * view
912
1152
  */
913
- async SENTINEL_MODULES(): Promise<`0x${string}`> {
914
- return this.contract.read.SENTINEL_MODULES() as Promise<`0x${string}`>;
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>;
915
1155
  }
916
1156
 
917
1157
  /**
918
- * SENTINEL_OWNERS
1158
+ * domainSeparator
919
1159
  * view
920
1160
  */
921
- async SENTINEL_OWNERS(): Promise<`0x${string}`> {
922
- return this.contract.read.SENTINEL_OWNERS() as Promise<`0x${string}`>;
1161
+ async domainSeparator(): Promise<`0x${string}`> {
1162
+ return this.contract.read.domainSeparator() as Promise<`0x${string}`>;
923
1163
  }
924
1164
 
925
1165
  /**
926
- * getOwners
1166
+ * encodeTransactionData
927
1167
  * view
928
1168
  */
929
- async getOwners(): Promise<`0x${string}`[]> {
930
- return this.contract.read.getOwners() as Promise<`0x${string}`[]>;
1169
+ async encodeTransactionData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, _nonce: bigint): Promise<`0x${string}`> {
1170
+ return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce] as const) as Promise<`0x${string}`>;
931
1171
  }
932
1172
 
933
1173
  /**
934
- * NAME
1174
+ * getChainId
935
1175
  * view
936
1176
  */
937
- async NAME(): Promise<string> {
938
- return this.contract.read.NAME() as Promise<string>;
1177
+ async getChainId(): Promise<bigint> {
1178
+ return this.contract.read.getChainId() as Promise<bigint>;
939
1179
  }
940
1180
 
941
1181
  /**
942
- * nonce
1182
+ * getModulesPaginated
943
1183
  * view
944
1184
  */
945
- async nonce(): Promise<bigint> {
946
- return this.contract.read.nonce() as Promise<bigint>;
1185
+ async getModulesPaginated(start: `0x${string}`, pageSize: bigint): Promise<[`0x${string}`[], `0x${string}`]> {
1186
+ return this.contract.read.getModulesPaginated([start, pageSize] as const) as Promise<[`0x${string}`[], `0x${string}`]>;
947
1187
  }
948
1188
 
949
1189
  /**
950
- * getModules
1190
+ * getOwners
951
1191
  * view
952
1192
  */
953
- async getModules(): Promise<`0x${string}`[]> {
954
- return this.contract.read.getModules() as Promise<`0x${string}`[]>;
1193
+ async getOwners(): Promise<`0x${string}`[]> {
1194
+ return this.contract.read.getOwners() as Promise<`0x${string}`[]>;
955
1195
  }
956
1196
 
957
1197
  /**
958
- * SAFE_MSG_TYPEHASH
1198
+ * getStorageAt
959
1199
  * view
960
1200
  */
961
- async SAFE_MSG_TYPEHASH(): Promise<`0x${string}`> {
962
- return this.contract.read.SAFE_MSG_TYPEHASH() as Promise<`0x${string}`>;
1201
+ async getStorageAt(offset: bigint, length: bigint): Promise<`0x${string}`> {
1202
+ return this.contract.read.getStorageAt([offset, length] as const) as Promise<`0x${string}`>;
963
1203
  }
964
1204
 
965
1205
  /**
966
- * SAFE_TX_TYPEHASH
1206
+ * getThreshold
967
1207
  * view
968
1208
  */
969
- async SAFE_TX_TYPEHASH(): Promise<`0x${string}`> {
970
- return this.contract.read.SAFE_TX_TYPEHASH() as Promise<`0x${string}`>;
1209
+ async getThreshold(): Promise<bigint> {
1210
+ return this.contract.read.getThreshold() as Promise<bigint>;
971
1211
  }
972
1212
 
973
1213
  /**
@@ -979,35 +1219,35 @@ export class GnosisSafe_json {
979
1219
  }
980
1220
 
981
1221
  /**
982
- * getThreshold
1222
+ * isModuleEnabled
983
1223
  * view
984
1224
  */
985
- async getThreshold(): Promise<bigint> {
986
- return this.contract.read.getThreshold() as Promise<bigint>;
1225
+ async isModuleEnabled(module: `0x${string}`): Promise<boolean> {
1226
+ return this.contract.read.isModuleEnabled([module] as const) as Promise<boolean>;
987
1227
  }
988
1228
 
989
1229
  /**
990
- * encodeTransactionData
1230
+ * isOwner
991
1231
  * view
992
1232
  */
993
- async encodeTransactionData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, _nonce: bigint): Promise<`0x${string}`> {
994
- return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce] as const) as Promise<`0x${string}`>;
1233
+ async isOwner(owner: `0x${string}`): Promise<boolean> {
1234
+ return this.contract.read.isOwner([owner] as const) as Promise<boolean>;
995
1235
  }
996
1236
 
997
1237
  /**
998
- * domainSeparator
1238
+ * nonce
999
1239
  * view
1000
1240
  */
1001
- async domainSeparator(): Promise<`0x${string}`> {
1002
- return this.contract.read.domainSeparator() as Promise<`0x${string}`>;
1241
+ async nonce(): Promise<bigint> {
1242
+ return this.contract.read.nonce() as Promise<bigint>;
1003
1243
  }
1004
1244
 
1005
1245
  /**
1006
- * VERSION
1246
+ * signedMessages
1007
1247
  * view
1008
1248
  */
1009
- async VERSION(): Promise<string> {
1010
- return this.contract.read.VERSION() as Promise<string>;
1249
+ async signedMessages(arg0: `0x${string}`): Promise<bigint> {
1250
+ return this.contract.read.signedMessages([arg0] as const) as Promise<bigint>;
1011
1251
  }
1012
1252
 
1013
1253
  /**
@@ -1030,15 +1270,38 @@ export class GnosisSafe_json {
1030
1270
  if (!this.contract.write) {
1031
1271
  throw new Error('Wallet client is required for write operations');
1032
1272
  }
1033
- return this.contract.write.addOwnerWithThreshold([owner, _threshold] as const, options) as Promise<`0x${string}`>;
1273
+ return this.contract.write.addOwnerWithThreshold([owner, _threshold] as const, options) as Promise<`0x${string}`>;
1274
+ }
1275
+
1276
+ /**
1277
+ * approveHash
1278
+ * nonpayable
1279
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1280
+ */
1281
+ async approveHash(hashToApprove: `0x${string}`, options?: {
1282
+ accessList?: import('viem').AccessList;
1283
+ authorizationList?: import('viem').AuthorizationList;
1284
+ chain?: import('viem').Chain | null;
1285
+ dataSuffix?: `0x${string}`;
1286
+ gas?: bigint;
1287
+ gasPrice?: bigint;
1288
+ maxFeePerGas?: bigint;
1289
+ maxPriorityFeePerGas?: bigint;
1290
+ nonce?: number;
1291
+ value?: bigint;
1292
+ }): Promise<`0x${string}`> {
1293
+ if (!this.contract.write) {
1294
+ throw new Error('Wallet client is required for write operations');
1295
+ }
1296
+ return this.contract.write.approveHash([hashToApprove] as const, options) as Promise<`0x${string}`>;
1034
1297
  }
1035
1298
 
1036
1299
  /**
1037
- * isValidSignature
1300
+ * changeThreshold
1038
1301
  * nonpayable
1039
1302
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1040
1303
  */
1041
- async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1304
+ async changeThreshold(_threshold: bigint, options?: {
1042
1305
  accessList?: import('viem').AccessList;
1043
1306
  authorizationList?: import('viem').AuthorizationList;
1044
1307
  chain?: import('viem').Chain | null;
@@ -1053,15 +1316,15 @@ export class GnosisSafe_json {
1053
1316
  if (!this.contract.write) {
1054
1317
  throw new Error('Wallet client is required for write operations');
1055
1318
  }
1056
- return this.contract.write.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1319
+ return this.contract.write.changeThreshold([_threshold] as const, options) as Promise<`0x${string}`>;
1057
1320
  }
1058
1321
 
1059
1322
  /**
1060
- * execTransactionFromModule
1323
+ * disableModule
1061
1324
  * nonpayable
1062
1325
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1063
1326
  */
1064
- async execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1327
+ async disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
1065
1328
  accessList?: import('viem').AccessList;
1066
1329
  authorizationList?: import('viem').AuthorizationList;
1067
1330
  chain?: import('viem').Chain | null;
@@ -1076,7 +1339,7 @@ export class GnosisSafe_json {
1076
1339
  if (!this.contract.write) {
1077
1340
  throw new Error('Wallet client is required for write operations');
1078
1341
  }
1079
- return this.contract.write.execTransactionFromModule([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1342
+ return this.contract.write.disableModule([prevModule, module] as const, options) as Promise<`0x${string}`>;
1080
1343
  }
1081
1344
 
1082
1345
  /**
@@ -1103,11 +1366,11 @@ export class GnosisSafe_json {
1103
1366
  }
1104
1367
 
1105
1368
  /**
1106
- * changeThreshold
1107
- * nonpayable
1369
+ * execTransaction
1370
+ * payable
1108
1371
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1109
1372
  */
1110
- async changeThreshold(_threshold: bigint, options?: {
1373
+ async execTransaction(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, signatures: `0x${string}`, options?: {
1111
1374
  accessList?: import('viem').AccessList;
1112
1375
  authorizationList?: import('viem').AuthorizationList;
1113
1376
  chain?: import('viem').Chain | null;
@@ -1122,15 +1385,15 @@ export class GnosisSafe_json {
1122
1385
  if (!this.contract.write) {
1123
1386
  throw new Error('Wallet client is required for write operations');
1124
1387
  }
1125
- return this.contract.write.changeThreshold([_threshold] as const, options) as Promise<`0x${string}`>;
1388
+ return this.contract.write.execTransaction([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures] as const, options) as Promise<`0x${string}`>;
1126
1389
  }
1127
1390
 
1128
1391
  /**
1129
- * execTransaction
1392
+ * execTransactionFromModule
1130
1393
  * nonpayable
1131
1394
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1132
1395
  */
1133
- async execTransaction(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, safeTxGas: bigint, baseGas: bigint, gasPrice: bigint, gasToken: `0x${string}`, refundReceiver: `0x${string}`, signatures: `0x${string}`, options?: {
1396
+ async execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1134
1397
  accessList?: import('viem').AccessList;
1135
1398
  authorizationList?: import('viem').AuthorizationList;
1136
1399
  chain?: import('viem').Chain | null;
@@ -1145,15 +1408,15 @@ export class GnosisSafe_json {
1145
1408
  if (!this.contract.write) {
1146
1409
  throw new Error('Wallet client is required for write operations');
1147
1410
  }
1148
- return this.contract.write.execTransaction([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures] as const, options) as Promise<`0x${string}`>;
1411
+ return this.contract.write.execTransactionFromModule([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1149
1412
  }
1150
1413
 
1151
1414
  /**
1152
- * changeMasterCopy
1415
+ * execTransactionFromModuleReturnData
1153
1416
  * nonpayable
1154
1417
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1155
1418
  */
1156
- async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1419
+ async execTransactionFromModuleReturnData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1157
1420
  accessList?: import('viem').AccessList;
1158
1421
  authorizationList?: import('viem').AuthorizationList;
1159
1422
  chain?: import('viem').Chain | null;
@@ -1168,15 +1431,15 @@ export class GnosisSafe_json {
1168
1431
  if (!this.contract.write) {
1169
1432
  throw new Error('Wallet client is required for write operations');
1170
1433
  }
1171
- return this.contract.write.changeMasterCopy([_masterCopy] as const, options) as Promise<`0x${string}`>;
1434
+ return this.contract.write.execTransactionFromModuleReturnData([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1172
1435
  }
1173
1436
 
1174
1437
  /**
1175
- * signMessage
1438
+ * removeOwner
1176
1439
  * nonpayable
1177
1440
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1178
1441
  */
1179
- async signMessage(_data: `0x${string}`, options?: {
1442
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1180
1443
  accessList?: import('viem').AccessList;
1181
1444
  authorizationList?: import('viem').AuthorizationList;
1182
1445
  chain?: import('viem').Chain | null;
@@ -1191,15 +1454,15 @@ export class GnosisSafe_json {
1191
1454
  if (!this.contract.write) {
1192
1455
  throw new Error('Wallet client is required for write operations');
1193
1456
  }
1194
- return this.contract.write.signMessage([_data] as const, options) as Promise<`0x${string}`>;
1457
+ return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1195
1458
  }
1196
1459
 
1197
1460
  /**
1198
- * setup
1461
+ * requiredTxGas
1199
1462
  * nonpayable
1200
1463
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1201
1464
  */
1202
- async setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1465
+ async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1203
1466
  accessList?: import('viem').AccessList;
1204
1467
  authorizationList?: import('viem').AuthorizationList;
1205
1468
  chain?: import('viem').Chain | null;
@@ -1214,15 +1477,15 @@ export class GnosisSafe_json {
1214
1477
  if (!this.contract.write) {
1215
1478
  throw new Error('Wallet client is required for write operations');
1216
1479
  }
1217
- return this.contract.write.setup([_owners, _threshold, to, data, paymentToken, payment, paymentReceiver] as const, options) as Promise<`0x${string}`>;
1480
+ return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1218
1481
  }
1219
1482
 
1220
1483
  /**
1221
- * requiredTxGas
1484
+ * setFallbackHandler
1222
1485
  * nonpayable
1223
1486
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1224
1487
  */
1225
- async requiredTxGas(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1488
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1226
1489
  accessList?: import('viem').AccessList;
1227
1490
  authorizationList?: import('viem').AuthorizationList;
1228
1491
  chain?: import('viem').Chain | null;
@@ -1237,15 +1500,15 @@ export class GnosisSafe_json {
1237
1500
  if (!this.contract.write) {
1238
1501
  throw new Error('Wallet client is required for write operations');
1239
1502
  }
1240
- return this.contract.write.requiredTxGas([to, value, data, operation] as const, options) as Promise<`0x${string}`>;
1503
+ return this.contract.write.setFallbackHandler([handler] as const, options) as Promise<`0x${string}`>;
1241
1504
  }
1242
1505
 
1243
1506
  /**
1244
- * approveHash
1507
+ * setGuard
1245
1508
  * nonpayable
1246
1509
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1247
1510
  */
1248
- async approveHash(hashToApprove: `0x${string}`, options?: {
1511
+ async setGuard(guard: `0x${string}`, options?: {
1249
1512
  accessList?: import('viem').AccessList;
1250
1513
  authorizationList?: import('viem').AuthorizationList;
1251
1514
  chain?: import('viem').Chain | null;
@@ -1260,15 +1523,15 @@ export class GnosisSafe_json {
1260
1523
  if (!this.contract.write) {
1261
1524
  throw new Error('Wallet client is required for write operations');
1262
1525
  }
1263
- return this.contract.write.approveHash([hashToApprove] as const, options) as Promise<`0x${string}`>;
1526
+ return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
1264
1527
  }
1265
1528
 
1266
1529
  /**
1267
- * disableModule
1530
+ * setup
1268
1531
  * nonpayable
1269
1532
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1270
1533
  */
1271
- async disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
1534
+ async setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, fallbackHandler: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1272
1535
  accessList?: import('viem').AccessList;
1273
1536
  authorizationList?: import('viem').AuthorizationList;
1274
1537
  chain?: import('viem').Chain | null;
@@ -1283,15 +1546,15 @@ export class GnosisSafe_json {
1283
1546
  if (!this.contract.write) {
1284
1547
  throw new Error('Wallet client is required for write operations');
1285
1548
  }
1286
- return this.contract.write.disableModule([prevModule, module] as const, options) as Promise<`0x${string}`>;
1549
+ return this.contract.write.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver] as const, options) as Promise<`0x${string}`>;
1287
1550
  }
1288
1551
 
1289
1552
  /**
1290
- * swapOwner
1553
+ * simulateAndRevert
1291
1554
  * nonpayable
1292
1555
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1293
1556
  */
1294
- async swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1557
+ async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1295
1558
  accessList?: import('viem').AccessList;
1296
1559
  authorizationList?: import('viem').AuthorizationList;
1297
1560
  chain?: import('viem').Chain | null;
@@ -1306,15 +1569,15 @@ export class GnosisSafe_json {
1306
1569
  if (!this.contract.write) {
1307
1570
  throw new Error('Wallet client is required for write operations');
1308
1571
  }
1309
- return this.contract.write.swapOwner([prevOwner, oldOwner, newOwner] as const, options) as Promise<`0x${string}`>;
1572
+ return this.contract.write.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<`0x${string}`>;
1310
1573
  }
1311
1574
 
1312
1575
  /**
1313
- * removeOwner
1576
+ * swapOwner
1314
1577
  * nonpayable
1315
1578
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1316
1579
  */
1317
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1580
+ async swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1318
1581
  accessList?: import('viem').AccessList;
1319
1582
  authorizationList?: import('viem').AuthorizationList;
1320
1583
  chain?: import('viem').Chain | null;
@@ -1329,7 +1592,7 @@ export class GnosisSafe_json {
1329
1592
  if (!this.contract.write) {
1330
1593
  throw new Error('Wallet client is required for write operations');
1331
1594
  }
1332
- return this.contract.write.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<`0x${string}`>;
1595
+ return this.contract.write.swapOwner([prevOwner, oldOwner, newOwner] as const, options) as Promise<`0x${string}`>;
1333
1596
  }
1334
1597
 
1335
1598
 
@@ -1368,11 +1631,11 @@ export class GnosisSafe_json {
1368
1631
  return contract.simulate.addOwnerWithThreshold([owner, _threshold] as const, options) as Promise<void>;
1369
1632
  },
1370
1633
  /**
1371
- * Simulate isValidSignature
1634
+ * Simulate approveHash
1372
1635
  * Returns gas estimate and result without sending transaction
1373
1636
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1374
1637
  */
1375
- async isValidSignature(_data: `0x${string}`, _signature: `0x${string}`, options?: {
1638
+ async approveHash(hashToApprove: `0x${string}`, options?: {
1376
1639
  accessList?: import('viem').AccessList;
1377
1640
  authorizationList?: import('viem').AuthorizationList;
1378
1641
  chain?: import('viem').Chain | null;
@@ -1383,15 +1646,15 @@ export class GnosisSafe_json {
1383
1646
  maxPriorityFeePerGas?: bigint;
1384
1647
  nonce?: number;
1385
1648
  value?: bigint;
1386
- }): Promise<`0x${string}`> {
1387
- return contract.simulate.isValidSignature([_data, _signature] as const, options) as Promise<`0x${string}`>;
1649
+ }): Promise<void> {
1650
+ return contract.simulate.approveHash([hashToApprove] as const, options) as Promise<void>;
1388
1651
  },
1389
1652
  /**
1390
- * Simulate execTransactionFromModule
1653
+ * Simulate changeThreshold
1391
1654
  * Returns gas estimate and result without sending transaction
1392
1655
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1393
1656
  */
1394
- async execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1657
+ async changeThreshold(_threshold: bigint, options?: {
1395
1658
  accessList?: import('viem').AccessList;
1396
1659
  authorizationList?: import('viem').AuthorizationList;
1397
1660
  chain?: import('viem').Chain | null;
@@ -1402,15 +1665,15 @@ export class GnosisSafe_json {
1402
1665
  maxPriorityFeePerGas?: bigint;
1403
1666
  nonce?: number;
1404
1667
  value?: bigint;
1405
- }): Promise<boolean> {
1406
- return contract.simulate.execTransactionFromModule([to, value, data, operation] as const, options) as Promise<boolean>;
1668
+ }): Promise<void> {
1669
+ return contract.simulate.changeThreshold([_threshold] as const, options) as Promise<void>;
1407
1670
  },
1408
1671
  /**
1409
- * Simulate enableModule
1672
+ * Simulate disableModule
1410
1673
  * Returns gas estimate and result without sending transaction
1411
1674
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1412
1675
  */
1413
- async enableModule(module: `0x${string}`, options?: {
1676
+ async disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
1414
1677
  accessList?: import('viem').AccessList;
1415
1678
  authorizationList?: import('viem').AuthorizationList;
1416
1679
  chain?: import('viem').Chain | null;
@@ -1422,14 +1685,14 @@ export class GnosisSafe_json {
1422
1685
  nonce?: number;
1423
1686
  value?: bigint;
1424
1687
  }): Promise<void> {
1425
- return contract.simulate.enableModule([module] as const, options) as Promise<void>;
1688
+ return contract.simulate.disableModule([prevModule, module] as const, options) as Promise<void>;
1426
1689
  },
1427
1690
  /**
1428
- * Simulate changeThreshold
1691
+ * Simulate enableModule
1429
1692
  * Returns gas estimate and result without sending transaction
1430
1693
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1431
1694
  */
1432
- async changeThreshold(_threshold: bigint, options?: {
1695
+ async enableModule(module: `0x${string}`, options?: {
1433
1696
  accessList?: import('viem').AccessList;
1434
1697
  authorizationList?: import('viem').AuthorizationList;
1435
1698
  chain?: import('viem').Chain | null;
@@ -1441,7 +1704,7 @@ export class GnosisSafe_json {
1441
1704
  nonce?: number;
1442
1705
  value?: bigint;
1443
1706
  }): Promise<void> {
1444
- return contract.simulate.changeThreshold([_threshold] as const, options) as Promise<void>;
1707
+ return contract.simulate.enableModule([module] as const, options) as Promise<void>;
1445
1708
  },
1446
1709
  /**
1447
1710
  * Simulate execTransaction
@@ -1463,11 +1726,11 @@ export class GnosisSafe_json {
1463
1726
  return contract.simulate.execTransaction([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures] as const, options) as Promise<boolean>;
1464
1727
  },
1465
1728
  /**
1466
- * Simulate changeMasterCopy
1729
+ * Simulate execTransactionFromModule
1467
1730
  * Returns gas estimate and result without sending transaction
1468
1731
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1469
1732
  */
1470
- async changeMasterCopy(_masterCopy: `0x${string}`, options?: {
1733
+ async execTransactionFromModule(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1471
1734
  accessList?: import('viem').AccessList;
1472
1735
  authorizationList?: import('viem').AuthorizationList;
1473
1736
  chain?: import('viem').Chain | null;
@@ -1478,15 +1741,15 @@ export class GnosisSafe_json {
1478
1741
  maxPriorityFeePerGas?: bigint;
1479
1742
  nonce?: number;
1480
1743
  value?: bigint;
1481
- }): Promise<void> {
1482
- return contract.simulate.changeMasterCopy([_masterCopy] as const, options) as Promise<void>;
1744
+ }): Promise<boolean> {
1745
+ return contract.simulate.execTransactionFromModule([to, value, data, operation] as const, options) as Promise<boolean>;
1483
1746
  },
1484
1747
  /**
1485
- * Simulate signMessage
1748
+ * Simulate execTransactionFromModuleReturnData
1486
1749
  * Returns gas estimate and result without sending transaction
1487
1750
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1488
1751
  */
1489
- async signMessage(_data: `0x${string}`, options?: {
1752
+ async execTransactionFromModuleReturnData(to: `0x${string}`, value: bigint, data: `0x${string}`, operation: bigint, options?: {
1490
1753
  accessList?: import('viem').AccessList;
1491
1754
  authorizationList?: import('viem').AuthorizationList;
1492
1755
  chain?: import('viem').Chain | null;
@@ -1497,15 +1760,15 @@ export class GnosisSafe_json {
1497
1760
  maxPriorityFeePerGas?: bigint;
1498
1761
  nonce?: number;
1499
1762
  value?: bigint;
1500
- }): Promise<void> {
1501
- return contract.simulate.signMessage([_data] as const, options) as Promise<void>;
1763
+ }): Promise<[boolean, `0x${string}`]> {
1764
+ return contract.simulate.execTransactionFromModuleReturnData([to, value, data, operation] as const, options) as Promise<[boolean, `0x${string}`]>;
1502
1765
  },
1503
1766
  /**
1504
- * Simulate setup
1767
+ * Simulate removeOwner
1505
1768
  * Returns gas estimate and result without sending transaction
1506
1769
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1507
1770
  */
1508
- async setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1771
+ async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1509
1772
  accessList?: import('viem').AccessList;
1510
1773
  authorizationList?: import('viem').AuthorizationList;
1511
1774
  chain?: import('viem').Chain | null;
@@ -1517,7 +1780,7 @@ export class GnosisSafe_json {
1517
1780
  nonce?: number;
1518
1781
  value?: bigint;
1519
1782
  }): Promise<void> {
1520
- return contract.simulate.setup([_owners, _threshold, to, data, paymentToken, payment, paymentReceiver] as const, options) as Promise<void>;
1783
+ return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1521
1784
  },
1522
1785
  /**
1523
1786
  * Simulate requiredTxGas
@@ -1539,11 +1802,11 @@ export class GnosisSafe_json {
1539
1802
  return contract.simulate.requiredTxGas([to, value, data, operation] as const, options) as Promise<bigint>;
1540
1803
  },
1541
1804
  /**
1542
- * Simulate approveHash
1805
+ * Simulate setFallbackHandler
1543
1806
  * Returns gas estimate and result without sending transaction
1544
1807
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1545
1808
  */
1546
- async approveHash(hashToApprove: `0x${string}`, options?: {
1809
+ async setFallbackHandler(handler: `0x${string}`, options?: {
1547
1810
  accessList?: import('viem').AccessList;
1548
1811
  authorizationList?: import('viem').AuthorizationList;
1549
1812
  chain?: import('viem').Chain | null;
@@ -1555,14 +1818,14 @@ export class GnosisSafe_json {
1555
1818
  nonce?: number;
1556
1819
  value?: bigint;
1557
1820
  }): Promise<void> {
1558
- return contract.simulate.approveHash([hashToApprove] as const, options) as Promise<void>;
1821
+ return contract.simulate.setFallbackHandler([handler] as const, options) as Promise<void>;
1559
1822
  },
1560
1823
  /**
1561
- * Simulate disableModule
1824
+ * Simulate setGuard
1562
1825
  * Returns gas estimate and result without sending transaction
1563
1826
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1564
1827
  */
1565
- async disableModule(prevModule: `0x${string}`, module: `0x${string}`, options?: {
1828
+ async setGuard(guard: `0x${string}`, options?: {
1566
1829
  accessList?: import('viem').AccessList;
1567
1830
  authorizationList?: import('viem').AuthorizationList;
1568
1831
  chain?: import('viem').Chain | null;
@@ -1574,14 +1837,14 @@ export class GnosisSafe_json {
1574
1837
  nonce?: number;
1575
1838
  value?: bigint;
1576
1839
  }): Promise<void> {
1577
- return contract.simulate.disableModule([prevModule, module] as const, options) as Promise<void>;
1840
+ return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
1578
1841
  },
1579
1842
  /**
1580
- * Simulate swapOwner
1843
+ * Simulate setup
1581
1844
  * Returns gas estimate and result without sending transaction
1582
1845
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1583
1846
  */
1584
- async swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1847
+ async setup(_owners: `0x${string}`[], _threshold: bigint, to: `0x${string}`, data: `0x${string}`, fallbackHandler: `0x${string}`, paymentToken: `0x${string}`, payment: bigint, paymentReceiver: `0x${string}`, options?: {
1585
1848
  accessList?: import('viem').AccessList;
1586
1849
  authorizationList?: import('viem').AuthorizationList;
1587
1850
  chain?: import('viem').Chain | null;
@@ -1593,14 +1856,14 @@ export class GnosisSafe_json {
1593
1856
  nonce?: number;
1594
1857
  value?: bigint;
1595
1858
  }): Promise<void> {
1596
- return contract.simulate.swapOwner([prevOwner, oldOwner, newOwner] as const, options) as Promise<void>;
1859
+ return contract.simulate.setup([_owners, _threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver] as const, options) as Promise<void>;
1597
1860
  },
1598
1861
  /**
1599
- * Simulate removeOwner
1862
+ * Simulate simulateAndRevert
1600
1863
  * Returns gas estimate and result without sending transaction
1601
1864
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
1602
1865
  */
1603
- async removeOwner(prevOwner: `0x${string}`, owner: `0x${string}`, _threshold: bigint, options?: {
1866
+ async simulateAndRevert(targetContract: `0x${string}`, calldataPayload: `0x${string}`, options?: {
1604
1867
  accessList?: import('viem').AccessList;
1605
1868
  authorizationList?: import('viem').AuthorizationList;
1606
1869
  chain?: import('viem').Chain | null;
@@ -1612,7 +1875,26 @@ export class GnosisSafe_json {
1612
1875
  nonce?: number;
1613
1876
  value?: bigint;
1614
1877
  }): Promise<void> {
1615
- return contract.simulate.removeOwner([prevOwner, owner, _threshold] as const, options) as Promise<void>;
1878
+ return contract.simulate.simulateAndRevert([targetContract, calldataPayload] as const, options) as Promise<void>;
1879
+ },
1880
+ /**
1881
+ * Simulate swapOwner
1882
+ * Returns gas estimate and result without sending transaction
1883
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1884
+ */
1885
+ async swapOwner(prevOwner: `0x${string}`, oldOwner: `0x${string}`, newOwner: `0x${string}`, options?: {
1886
+ accessList?: import('viem').AccessList;
1887
+ authorizationList?: import('viem').AuthorizationList;
1888
+ chain?: import('viem').Chain | null;
1889
+ dataSuffix?: `0x${string}`;
1890
+ gas?: bigint;
1891
+ gasPrice?: bigint;
1892
+ maxFeePerGas?: bigint;
1893
+ maxPriorityFeePerGas?: bigint;
1894
+ nonce?: number;
1895
+ value?: bigint;
1896
+ }): Promise<void> {
1897
+ return contract.simulate.swapOwner([prevOwner, oldOwner, newOwner] as const, options) as Promise<void>;
1616
1898
  }
1617
1899
  };
1618
1900
  }
@@ -1632,16 +1914,16 @@ export class GnosisSafe_json {
1632
1914
  get watch() {
1633
1915
  return {
1634
1916
  /**
1635
- * Watch ExecutionFailed events
1917
+ * Watch AddedOwner events
1636
1918
  * @param callback Function to call when event is emitted
1637
1919
  * @param filter Optional filter for indexed parameters
1638
1920
  * @returns Unwatch function to stop listening
1639
1921
  */
1640
- ExecutionFailed: (callback: (event: { txHash: `0x${string}` }) => void) => {
1922
+ AddedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
1641
1923
  return this.publicClient.watchContractEvent({
1642
1924
  address: this.contractAddress,
1643
1925
  abi: GnosisSafe_jsonAbi,
1644
- eventName: 'ExecutionFailed',
1926
+ eventName: 'AddedOwner',
1645
1927
 
1646
1928
  onLogs: (logs: any[]) => {
1647
1929
  logs.forEach((log: any) => {
@@ -1651,16 +1933,35 @@ export class GnosisSafe_json {
1651
1933
  }) as () => void;
1652
1934
  },
1653
1935
  /**
1654
- * Watch AddedOwner events
1936
+ * Watch ApproveHash events
1655
1937
  * @param callback Function to call when event is emitted
1656
1938
  * @param filter Optional filter for indexed parameters
1657
1939
  * @returns Unwatch function to stop listening
1658
1940
  */
1659
- AddedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
1941
+ ApproveHash: (callback: (event: { approvedHash: `0x${string}`; owner: `0x${string}` }) => void, filter?: { approvedHash: `0x${string}`; owner: `0x${string}` }) => {
1660
1942
  return this.publicClient.watchContractEvent({
1661
1943
  address: this.contractAddress,
1662
1944
  abi: GnosisSafe_jsonAbi,
1663
- eventName: 'AddedOwner',
1945
+ eventName: 'ApproveHash',
1946
+ args: filter,
1947
+ onLogs: (logs: any[]) => {
1948
+ logs.forEach((log: any) => {
1949
+ callback(log.args as any);
1950
+ });
1951
+ },
1952
+ }) as () => void;
1953
+ },
1954
+ /**
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',
1664
1965
 
1665
1966
  onLogs: (logs: any[]) => {
1666
1967
  logs.forEach((log: any) => {
@@ -1670,16 +1971,16 @@ export class GnosisSafe_json {
1670
1971
  }) as () => void;
1671
1972
  },
1672
1973
  /**
1673
- * Watch RemovedOwner events
1974
+ * Watch ChangedGuard events
1674
1975
  * @param callback Function to call when event is emitted
1675
1976
  * @param filter Optional filter for indexed parameters
1676
1977
  * @returns Unwatch function to stop listening
1677
1978
  */
1678
- RemovedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
1979
+ ChangedGuard: (callback: (event: { guard: `0x${string}` }) => void) => {
1679
1980
  return this.publicClient.watchContractEvent({
1680
1981
  address: this.contractAddress,
1681
1982
  abi: GnosisSafe_jsonAbi,
1682
- eventName: 'RemovedOwner',
1983
+ eventName: 'ChangedGuard',
1683
1984
 
1684
1985
  onLogs: (logs: any[]) => {
1685
1986
  logs.forEach((log: any) => {
@@ -1707,6 +2008,25 @@ export class GnosisSafe_json {
1707
2008
  },
1708
2009
  }) as () => void;
1709
2010
  },
2011
+ /**
2012
+ * Watch DisabledModule events
2013
+ * @param callback Function to call when event is emitted
2014
+ * @param filter Optional filter for indexed parameters
2015
+ * @returns Unwatch function to stop listening
2016
+ */
2017
+ DisabledModule: (callback: (event: { module: `0x${string}` }) => void) => {
2018
+ return this.publicClient.watchContractEvent({
2019
+ address: this.contractAddress,
2020
+ abi: GnosisSafe_jsonAbi,
2021
+ eventName: 'DisabledModule',
2022
+
2023
+ onLogs: (logs: any[]) => {
2024
+ logs.forEach((log: any) => {
2025
+ callback(log.args as any);
2026
+ });
2027
+ },
2028
+ }) as () => void;
2029
+ },
1710
2030
  /**
1711
2031
  * Watch EnabledModule events
1712
2032
  * @param callback Function to call when event is emitted
@@ -1727,16 +2047,73 @@ export class GnosisSafe_json {
1727
2047
  }) as () => void;
1728
2048
  },
1729
2049
  /**
1730
- * Watch DisabledModule events
2050
+ * Watch ExecutionFailure events
1731
2051
  * @param callback Function to call when event is emitted
1732
2052
  * @param filter Optional filter for indexed parameters
1733
2053
  * @returns Unwatch function to stop listening
1734
2054
  */
1735
- DisabledModule: (callback: (event: { module: `0x${string}` }) => void) => {
2055
+ ExecutionFailure: (callback: (event: { txHash: `0x${string}`; payment: bigint }) => void) => {
1736
2056
  return this.publicClient.watchContractEvent({
1737
2057
  address: this.contractAddress,
1738
2058
  abi: GnosisSafe_jsonAbi,
1739
- eventName: 'DisabledModule',
2059
+ eventName: 'ExecutionFailure',
2060
+
2061
+ onLogs: (logs: any[]) => {
2062
+ logs.forEach((log: any) => {
2063
+ callback(log.args as any);
2064
+ });
2065
+ },
2066
+ }) as () => void;
2067
+ },
2068
+ /**
2069
+ * Watch ExecutionFromModuleFailure events
2070
+ * @param callback Function to call when event is emitted
2071
+ * @param filter Optional filter for indexed parameters
2072
+ * @returns Unwatch function to stop listening
2073
+ */
2074
+ ExecutionFromModuleFailure: (callback: (event: { module: `0x${string}` }) => void, filter?: { module: `0x${string}` }) => {
2075
+ return this.publicClient.watchContractEvent({
2076
+ address: this.contractAddress,
2077
+ abi: GnosisSafe_jsonAbi,
2078
+ eventName: 'ExecutionFromModuleFailure',
2079
+ args: filter,
2080
+ onLogs: (logs: any[]) => {
2081
+ logs.forEach((log: any) => {
2082
+ callback(log.args as any);
2083
+ });
2084
+ },
2085
+ }) as () => void;
2086
+ },
2087
+ /**
2088
+ * Watch ExecutionFromModuleSuccess events
2089
+ * @param callback Function to call when event is emitted
2090
+ * @param filter Optional filter for indexed parameters
2091
+ * @returns Unwatch function to stop listening
2092
+ */
2093
+ ExecutionFromModuleSuccess: (callback: (event: { module: `0x${string}` }) => void, filter?: { module: `0x${string}` }) => {
2094
+ return this.publicClient.watchContractEvent({
2095
+ address: this.contractAddress,
2096
+ abi: GnosisSafe_jsonAbi,
2097
+ eventName: 'ExecutionFromModuleSuccess',
2098
+ args: filter,
2099
+ onLogs: (logs: any[]) => {
2100
+ logs.forEach((log: any) => {
2101
+ callback(log.args as any);
2102
+ });
2103
+ },
2104
+ }) as () => void;
2105
+ },
2106
+ /**
2107
+ * Watch ExecutionSuccess events
2108
+ * @param callback Function to call when event is emitted
2109
+ * @param filter Optional filter for indexed parameters
2110
+ * @returns Unwatch function to stop listening
2111
+ */
2112
+ ExecutionSuccess: (callback: (event: { txHash: `0x${string}`; payment: bigint }) => void) => {
2113
+ return this.publicClient.watchContractEvent({
2114
+ address: this.contractAddress,
2115
+ abi: GnosisSafe_jsonAbi,
2116
+ eventName: 'ExecutionSuccess',
1740
2117
 
1741
2118
  onLogs: (logs: any[]) => {
1742
2119
  logs.forEach((log: any) => {
@@ -1746,17 +2123,74 @@ export class GnosisSafe_json {
1746
2123
  }) as () => void;
1747
2124
  },
1748
2125
  /**
1749
- * Watch ContractCreation events
2126
+ * Watch RemovedOwner events
1750
2127
  * @param callback Function to call when event is emitted
1751
2128
  * @param filter Optional filter for indexed parameters
1752
2129
  * @returns Unwatch function to stop listening
1753
2130
  */
1754
- ContractCreation: (callback: (event: { newContract: `0x${string}` }) => void) => {
2131
+ RemovedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
1755
2132
  return this.publicClient.watchContractEvent({
1756
2133
  address: this.contractAddress,
1757
2134
  abi: GnosisSafe_jsonAbi,
1758
- eventName: 'ContractCreation',
2135
+ eventName: 'RemovedOwner',
1759
2136
 
2137
+ onLogs: (logs: any[]) => {
2138
+ logs.forEach((log: any) => {
2139
+ callback(log.args as any);
2140
+ });
2141
+ },
2142
+ }) as () => void;
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
+ },
2182
+ /**
2183
+ * Watch SignMsg events
2184
+ * @param callback Function to call when event is emitted
2185
+ * @param filter Optional filter for indexed parameters
2186
+ * @returns Unwatch function to stop listening
2187
+ */
2188
+ SignMsg: (callback: (event: { msgHash: `0x${string}` }) => void, filter?: { msgHash: `0x${string}` }) => {
2189
+ return this.publicClient.watchContractEvent({
2190
+ address: this.contractAddress,
2191
+ abi: GnosisSafe_jsonAbi,
2192
+ eventName: 'SignMsg',
2193
+ args: filter,
1760
2194
  onLogs: (logs: any[]) => {
1761
2195
  logs.forEach((log: any) => {
1762
2196
  callback(log.args as any);