@gitmyabi/gnosissafe 1.0.120 → 1.0.122

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