@gitmyabi/safe 1.0.145 → 1.0.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **Safe**
4
4
 
5
- - **Build ID**: `etherscan-safe-b57f9836-1790183568505`
5
+ - **Build ID**: `etherscan-safe-d8eb559b-1790218588640`
6
6
  - **Build Number**: 1
7
- - **Commit**: `e115458`
7
+ - **Commit**: `11716cf`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 2
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **Safe**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/safe@1.0.145
15
+ npm install @gitmyabi/safe@1.0.147
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -53,6 +53,16 @@ export declare const Safe_jsonAbi: readonly [{
53
53
  }];
54
54
  readonly name: "ChangedGuard";
55
55
  readonly type: "event";
56
+ }, {
57
+ readonly anonymous: false;
58
+ readonly inputs: readonly [{
59
+ readonly indexed: true;
60
+ readonly internalType: "address";
61
+ readonly name: "moduleGuard";
62
+ readonly type: "address";
63
+ }];
64
+ readonly name: "ChangedModuleGuard";
65
+ readonly type: "event";
56
66
  }, {
57
67
  readonly anonymous: false;
58
68
  readonly inputs: readonly [{
@@ -285,6 +295,28 @@ export declare const Safe_jsonAbi: readonly [{
285
295
  readonly outputs: readonly [];
286
296
  readonly stateMutability: "view";
287
297
  readonly type: "function";
298
+ }, {
299
+ readonly inputs: readonly [{
300
+ readonly internalType: "address";
301
+ readonly name: "executor";
302
+ readonly type: "address";
303
+ }, {
304
+ readonly internalType: "bytes32";
305
+ readonly name: "dataHash";
306
+ readonly type: "bytes32";
307
+ }, {
308
+ readonly internalType: "bytes";
309
+ readonly name: "signatures";
310
+ readonly type: "bytes";
311
+ }, {
312
+ readonly internalType: "uint256";
313
+ readonly name: "requiredSignatures";
314
+ readonly type: "uint256";
315
+ }];
316
+ readonly name: "checkNSignatures";
317
+ readonly outputs: readonly [];
318
+ readonly stateMutability: "view";
319
+ readonly type: "function";
288
320
  }, {
289
321
  readonly inputs: readonly [{
290
322
  readonly internalType: "bytes32";
@@ -303,6 +335,24 @@ export declare const Safe_jsonAbi: readonly [{
303
335
  readonly outputs: readonly [];
304
336
  readonly stateMutability: "view";
305
337
  readonly type: "function";
338
+ }, {
339
+ readonly inputs: readonly [{
340
+ readonly internalType: "address";
341
+ readonly name: "executor";
342
+ readonly type: "address";
343
+ }, {
344
+ readonly internalType: "bytes32";
345
+ readonly name: "dataHash";
346
+ readonly type: "bytes32";
347
+ }, {
348
+ readonly internalType: "bytes";
349
+ readonly name: "signatures";
350
+ readonly type: "bytes";
351
+ }];
352
+ readonly name: "checkSignatures";
353
+ readonly outputs: readonly [];
354
+ readonly stateMutability: "view";
355
+ readonly type: "function";
306
356
  }, {
307
357
  readonly inputs: readonly [{
308
358
  readonly internalType: "address";
@@ -337,56 +387,6 @@ export declare const Safe_jsonAbi: readonly [{
337
387
  readonly outputs: readonly [];
338
388
  readonly stateMutability: "nonpayable";
339
389
  readonly type: "function";
340
- }, {
341
- readonly inputs: readonly [{
342
- readonly internalType: "address";
343
- readonly name: "to";
344
- readonly type: "address";
345
- }, {
346
- readonly internalType: "uint256";
347
- readonly name: "value";
348
- readonly type: "uint256";
349
- }, {
350
- readonly internalType: "bytes";
351
- readonly name: "data";
352
- readonly type: "bytes";
353
- }, {
354
- readonly internalType: "enum Enum.Operation";
355
- readonly name: "operation";
356
- readonly type: "uint8";
357
- }, {
358
- readonly internalType: "uint256";
359
- readonly name: "safeTxGas";
360
- readonly type: "uint256";
361
- }, {
362
- readonly internalType: "uint256";
363
- readonly name: "baseGas";
364
- readonly type: "uint256";
365
- }, {
366
- readonly internalType: "uint256";
367
- readonly name: "gasPrice";
368
- readonly type: "uint256";
369
- }, {
370
- readonly internalType: "address";
371
- readonly name: "gasToken";
372
- readonly type: "address";
373
- }, {
374
- readonly internalType: "address";
375
- readonly name: "refundReceiver";
376
- readonly type: "address";
377
- }, {
378
- readonly internalType: "uint256";
379
- readonly name: "_nonce";
380
- readonly type: "uint256";
381
- }];
382
- readonly name: "encodeTransactionData";
383
- readonly outputs: readonly [{
384
- readonly internalType: "bytes";
385
- readonly name: "";
386
- readonly type: "bytes";
387
- }];
388
- readonly stateMutability: "view";
389
- readonly type: "function";
390
390
  }, {
391
391
  readonly inputs: readonly [{
392
392
  readonly internalType: "address";
@@ -493,16 +493,6 @@ export declare const Safe_jsonAbi: readonly [{
493
493
  }];
494
494
  readonly stateMutability: "nonpayable";
495
495
  readonly type: "function";
496
- }, {
497
- readonly inputs: readonly [];
498
- readonly name: "getChainId";
499
- readonly outputs: readonly [{
500
- readonly internalType: "uint256";
501
- readonly name: "";
502
- readonly type: "uint256";
503
- }];
504
- readonly stateMutability: "view";
505
- readonly type: "function";
506
496
  }, {
507
497
  readonly inputs: readonly [{
508
498
  readonly internalType: "address";
@@ -608,7 +598,7 @@ export declare const Safe_jsonAbi: readonly [{
608
598
  readonly name: "getTransactionHash";
609
599
  readonly outputs: readonly [{
610
600
  readonly internalType: "bytes32";
611
- readonly name: "";
601
+ readonly name: "txHash";
612
602
  readonly type: "bytes32";
613
603
  }];
614
604
  readonly stateMutability: "view";
@@ -689,6 +679,16 @@ export declare const Safe_jsonAbi: readonly [{
689
679
  readonly outputs: readonly [];
690
680
  readonly stateMutability: "nonpayable";
691
681
  readonly type: "function";
682
+ }, {
683
+ readonly inputs: readonly [{
684
+ readonly internalType: "address";
685
+ readonly name: "moduleGuard";
686
+ readonly type: "address";
687
+ }];
688
+ readonly name: "setModuleGuard";
689
+ readonly outputs: readonly [];
690
+ readonly stateMutability: "nonpayable";
691
+ readonly type: "function";
692
692
  }, {
693
693
  readonly inputs: readonly [{
694
694
  readonly internalType: "address[]";
@@ -843,31 +843,15 @@ export declare class Safe_json {
843
843
  * view
844
844
  */
845
845
  approvedHashes(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
846
- /**
847
- * checkNSignatures
848
- * view
849
- */
850
846
  checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
851
- /**
852
- * checkSignatures
853
- * view
854
- */
847
+ checkNSignatures(executor: `0x${string}`, dataHash: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
855
848
  checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void>;
849
+ checkSignatures(executor: `0x${string}`, dataHash: `0x${string}`, signatures: `0x${string}`): Promise<void>;
856
850
  /**
857
851
  * domainSeparator
858
852
  * view
859
853
  */
860
854
  domainSeparator(): Promise<`0x${string}`>;
861
- /**
862
- * encodeTransactionData
863
- * view
864
- */
865
- 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}`>;
866
- /**
867
- * getChainId
868
- * view
869
- */
870
- getChainId(): Promise<bigint>;
871
855
  /**
872
856
  * getModulesPaginated
873
857
  * view
@@ -1100,6 +1084,23 @@ export declare class Safe_json {
1100
1084
  nonce?: number;
1101
1085
  value?: bigint;
1102
1086
  }): Promise<`0x${string}`>;
1087
+ /**
1088
+ * setModuleGuard
1089
+ * nonpayable
1090
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1091
+ */
1092
+ setModuleGuard(moduleGuard: `0x${string}`, options?: {
1093
+ accessList?: import('viem').AccessList;
1094
+ authorizationList?: import('viem').AuthorizationList;
1095
+ chain?: import('viem').Chain | null;
1096
+ dataSuffix?: `0x${string}`;
1097
+ gas?: bigint;
1098
+ gasPrice?: bigint;
1099
+ maxFeePerGas?: bigint;
1100
+ maxPriorityFeePerGas?: bigint;
1101
+ nonce?: number;
1102
+ value?: bigint;
1103
+ }): Promise<`0x${string}`>;
1103
1104
  /**
1104
1105
  * setup
1105
1106
  * nonpayable
@@ -1347,6 +1348,23 @@ export declare class Safe_json {
1347
1348
  nonce?: number;
1348
1349
  value?: bigint;
1349
1350
  }): Promise<void>;
1351
+ /**
1352
+ * Simulate setModuleGuard
1353
+ * Returns gas estimate and result without sending transaction
1354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1355
+ */
1356
+ setModuleGuard(moduleGuard: `0x${string}`, options?: {
1357
+ accessList?: import("viem").AccessList;
1358
+ authorizationList?: import("viem").AuthorizationList;
1359
+ chain?: import("viem").Chain | null;
1360
+ dataSuffix?: `0x${string}`;
1361
+ gas?: bigint;
1362
+ gasPrice?: bigint;
1363
+ maxFeePerGas?: bigint;
1364
+ maxPriorityFeePerGas?: bigint;
1365
+ nonce?: number;
1366
+ value?: bigint;
1367
+ }): Promise<void>;
1350
1368
  /**
1351
1369
  * Simulate setup
1352
1370
  * Returns gas estimate and result without sending transaction
@@ -1458,6 +1476,17 @@ export declare class Safe_json {
1458
1476
  }) => void, filter?: {
1459
1477
  guard: `0x${string}`;
1460
1478
  }) => () => void;
1479
+ /**
1480
+ * Watch ChangedModuleGuard events
1481
+ * @param callback Function to call when event is emitted
1482
+ * @param filter Optional filter for indexed parameters
1483
+ * @returns Unwatch function to stop listening
1484
+ */
1485
+ ChangedModuleGuard: (callback: (event: {
1486
+ moduleGuard: `0x${string}`;
1487
+ }) => void, filter?: {
1488
+ moduleGuard: `0x${string}`;
1489
+ }) => () => void;
1461
1490
  /**
1462
1491
  * Watch ChangedThreshold events
1463
1492
  * @param callback Function to call when event is emitted
@@ -71,6 +71,19 @@ exports.Safe_jsonAbi = [
71
71
  "name": "ChangedGuard",
72
72
  "type": "event"
73
73
  },
74
+ {
75
+ "anonymous": false,
76
+ "inputs": [
77
+ {
78
+ "indexed": true,
79
+ "internalType": "address",
80
+ "name": "moduleGuard",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "ChangedModuleGuard",
85
+ "type": "event"
86
+ },
74
87
  {
75
88
  "anonymous": false,
76
89
  "inputs": [
@@ -369,6 +382,34 @@ exports.Safe_jsonAbi = [
369
382
  "stateMutability": "view",
370
383
  "type": "function"
371
384
  },
385
+ {
386
+ "inputs": [
387
+ {
388
+ "internalType": "address",
389
+ "name": "executor",
390
+ "type": "address"
391
+ },
392
+ {
393
+ "internalType": "bytes32",
394
+ "name": "dataHash",
395
+ "type": "bytes32"
396
+ },
397
+ {
398
+ "internalType": "bytes",
399
+ "name": "signatures",
400
+ "type": "bytes"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "requiredSignatures",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "name": "checkNSignatures",
409
+ "outputs": [],
410
+ "stateMutability": "view",
411
+ "type": "function"
412
+ },
372
413
  {
373
414
  "inputs": [
374
415
  {
@@ -392,6 +433,29 @@ exports.Safe_jsonAbi = [
392
433
  "stateMutability": "view",
393
434
  "type": "function"
394
435
  },
436
+ {
437
+ "inputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "executor",
441
+ "type": "address"
442
+ },
443
+ {
444
+ "internalType": "bytes32",
445
+ "name": "dataHash",
446
+ "type": "bytes32"
447
+ },
448
+ {
449
+ "internalType": "bytes",
450
+ "name": "signatures",
451
+ "type": "bytes"
452
+ }
453
+ ],
454
+ "name": "checkSignatures",
455
+ "outputs": [],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
395
459
  {
396
460
  "inputs": [
397
461
  {
@@ -436,70 +500,6 @@ exports.Safe_jsonAbi = [
436
500
  "stateMutability": "nonpayable",
437
501
  "type": "function"
438
502
  },
439
- {
440
- "inputs": [
441
- {
442
- "internalType": "address",
443
- "name": "to",
444
- "type": "address"
445
- },
446
- {
447
- "internalType": "uint256",
448
- "name": "value",
449
- "type": "uint256"
450
- },
451
- {
452
- "internalType": "bytes",
453
- "name": "data",
454
- "type": "bytes"
455
- },
456
- {
457
- "internalType": "enum Enum.Operation",
458
- "name": "operation",
459
- "type": "uint8"
460
- },
461
- {
462
- "internalType": "uint256",
463
- "name": "safeTxGas",
464
- "type": "uint256"
465
- },
466
- {
467
- "internalType": "uint256",
468
- "name": "baseGas",
469
- "type": "uint256"
470
- },
471
- {
472
- "internalType": "uint256",
473
- "name": "gasPrice",
474
- "type": "uint256"
475
- },
476
- {
477
- "internalType": "address",
478
- "name": "gasToken",
479
- "type": "address"
480
- },
481
- {
482
- "internalType": "address",
483
- "name": "refundReceiver",
484
- "type": "address"
485
- },
486
- {
487
- "internalType": "uint256",
488
- "name": "_nonce",
489
- "type": "uint256"
490
- }
491
- ],
492
- "name": "encodeTransactionData",
493
- "outputs": [
494
- {
495
- "internalType": "bytes",
496
- "name": "",
497
- "type": "bytes"
498
- }
499
- ],
500
- "stateMutability": "view",
501
- "type": "function"
502
- },
503
503
  {
504
504
  "inputs": [
505
505
  {
@@ -637,19 +637,6 @@ exports.Safe_jsonAbi = [
637
637
  "stateMutability": "nonpayable",
638
638
  "type": "function"
639
639
  },
640
- {
641
- "inputs": [],
642
- "name": "getChainId",
643
- "outputs": [
644
- {
645
- "internalType": "uint256",
646
- "name": "",
647
- "type": "uint256"
648
- }
649
- ],
650
- "stateMutability": "view",
651
- "type": "function"
652
- },
653
640
  {
654
641
  "inputs": [
655
642
  {
@@ -786,7 +773,7 @@ exports.Safe_jsonAbi = [
786
773
  "outputs": [
787
774
  {
788
775
  "internalType": "bytes32",
789
- "name": "",
776
+ "name": "txHash",
790
777
  "type": "bytes32"
791
778
  }
792
779
  ],
@@ -893,6 +880,19 @@ exports.Safe_jsonAbi = [
893
880
  "stateMutability": "nonpayable",
894
881
  "type": "function"
895
882
  },
883
+ {
884
+ "inputs": [
885
+ {
886
+ "internalType": "address",
887
+ "name": "moduleGuard",
888
+ "type": "address"
889
+ }
890
+ ],
891
+ "name": "setModuleGuard",
892
+ "outputs": [],
893
+ "stateMutability": "nonpayable",
894
+ "type": "function"
895
+ },
896
896
  {
897
897
  "inputs": [
898
898
  {
@@ -1077,19 +1077,11 @@ class Safe_json {
1077
1077
  async approvedHashes(arg0, arg1) {
1078
1078
  return this.contract.read.approvedHashes([arg0, arg1]);
1079
1079
  }
1080
- /**
1081
- * checkNSignatures
1082
- * view
1083
- */
1084
- async checkNSignatures(dataHash, data, signatures, requiredSignatures) {
1085
- return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures]);
1080
+ async checkNSignatures(...args) {
1081
+ return this.contract.read.checkNSignatures(args);
1086
1082
  }
1087
- /**
1088
- * checkSignatures
1089
- * view
1090
- */
1091
- async checkSignatures(dataHash, data, signatures) {
1092
- return this.contract.read.checkSignatures([dataHash, data, signatures]);
1083
+ async checkSignatures(...args) {
1084
+ return this.contract.read.checkSignatures(args);
1093
1085
  }
1094
1086
  /**
1095
1087
  * domainSeparator
@@ -1098,20 +1090,6 @@ class Safe_json {
1098
1090
  async domainSeparator() {
1099
1091
  return this.contract.read.domainSeparator();
1100
1092
  }
1101
- /**
1102
- * encodeTransactionData
1103
- * view
1104
- */
1105
- async encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce) {
1106
- return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce]);
1107
- }
1108
- /**
1109
- * getChainId
1110
- * view
1111
- */
1112
- async getChainId() {
1113
- return this.contract.read.getChainId();
1114
- }
1115
1093
  /**
1116
1094
  * getModulesPaginated
1117
1095
  * view
@@ -1296,6 +1274,17 @@ class Safe_json {
1296
1274
  }
1297
1275
  return this.contract.write.setGuard([guard], options);
1298
1276
  }
1277
+ /**
1278
+ * setModuleGuard
1279
+ * nonpayable
1280
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1281
+ */
1282
+ async setModuleGuard(moduleGuard, options) {
1283
+ if (!this.contract.write) {
1284
+ throw new Error('Wallet client is required for write operations');
1285
+ }
1286
+ return this.contract.write.setModuleGuard([moduleGuard], options);
1287
+ }
1299
1288
  /**
1300
1289
  * setup
1301
1290
  * nonpayable
@@ -1431,6 +1420,14 @@ class Safe_json {
1431
1420
  async setGuard(guard, options) {
1432
1421
  return contract.simulate.setGuard([guard], options);
1433
1422
  },
1423
+ /**
1424
+ * Simulate setModuleGuard
1425
+ * Returns gas estimate and result without sending transaction
1426
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1427
+ */
1428
+ async setModuleGuard(moduleGuard, options) {
1429
+ return contract.simulate.setModuleGuard([moduleGuard], options);
1430
+ },
1434
1431
  /**
1435
1432
  * Simulate setup
1436
1433
  * Returns gas estimate and result without sending transaction
@@ -1547,6 +1544,25 @@ class Safe_json {
1547
1544
  },
1548
1545
  });
1549
1546
  },
1547
+ /**
1548
+ * Watch ChangedModuleGuard events
1549
+ * @param callback Function to call when event is emitted
1550
+ * @param filter Optional filter for indexed parameters
1551
+ * @returns Unwatch function to stop listening
1552
+ */
1553
+ ChangedModuleGuard: (callback, filter) => {
1554
+ return this.publicClient.watchContractEvent({
1555
+ address: this.contractAddress,
1556
+ abi: exports.Safe_jsonAbi,
1557
+ eventName: 'ChangedModuleGuard',
1558
+ args: filter,
1559
+ onLogs: (logs) => {
1560
+ logs.forEach((log) => {
1561
+ callback(log.args);
1562
+ });
1563
+ },
1564
+ });
1565
+ },
1550
1566
  /**
1551
1567
  * Watch ChangedThreshold events
1552
1568
  * @param callback Function to call when event is emitted
@@ -70,6 +70,19 @@ export const Safe_jsonAbi = [
70
70
  "name": "ChangedGuard",
71
71
  "type": "event"
72
72
  },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": true,
78
+ "internalType": "address",
79
+ "name": "moduleGuard",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "ChangedModuleGuard",
84
+ "type": "event"
85
+ },
73
86
  {
74
87
  "anonymous": false,
75
88
  "inputs": [
@@ -368,6 +381,34 @@ export const Safe_jsonAbi = [
368
381
  "stateMutability": "view",
369
382
  "type": "function"
370
383
  },
384
+ {
385
+ "inputs": [
386
+ {
387
+ "internalType": "address",
388
+ "name": "executor",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "internalType": "bytes32",
393
+ "name": "dataHash",
394
+ "type": "bytes32"
395
+ },
396
+ {
397
+ "internalType": "bytes",
398
+ "name": "signatures",
399
+ "type": "bytes"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "requiredSignatures",
404
+ "type": "uint256"
405
+ }
406
+ ],
407
+ "name": "checkNSignatures",
408
+ "outputs": [],
409
+ "stateMutability": "view",
410
+ "type": "function"
411
+ },
371
412
  {
372
413
  "inputs": [
373
414
  {
@@ -391,6 +432,29 @@ export const Safe_jsonAbi = [
391
432
  "stateMutability": "view",
392
433
  "type": "function"
393
434
  },
435
+ {
436
+ "inputs": [
437
+ {
438
+ "internalType": "address",
439
+ "name": "executor",
440
+ "type": "address"
441
+ },
442
+ {
443
+ "internalType": "bytes32",
444
+ "name": "dataHash",
445
+ "type": "bytes32"
446
+ },
447
+ {
448
+ "internalType": "bytes",
449
+ "name": "signatures",
450
+ "type": "bytes"
451
+ }
452
+ ],
453
+ "name": "checkSignatures",
454
+ "outputs": [],
455
+ "stateMutability": "view",
456
+ "type": "function"
457
+ },
394
458
  {
395
459
  "inputs": [
396
460
  {
@@ -435,70 +499,6 @@ export const Safe_jsonAbi = [
435
499
  "stateMutability": "nonpayable",
436
500
  "type": "function"
437
501
  },
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": [
493
- {
494
- "internalType": "bytes",
495
- "name": "",
496
- "type": "bytes"
497
- }
498
- ],
499
- "stateMutability": "view",
500
- "type": "function"
501
- },
502
502
  {
503
503
  "inputs": [
504
504
  {
@@ -636,19 +636,6 @@ export const Safe_jsonAbi = [
636
636
  "stateMutability": "nonpayable",
637
637
  "type": "function"
638
638
  },
639
- {
640
- "inputs": [],
641
- "name": "getChainId",
642
- "outputs": [
643
- {
644
- "internalType": "uint256",
645
- "name": "",
646
- "type": "uint256"
647
- }
648
- ],
649
- "stateMutability": "view",
650
- "type": "function"
651
- },
652
639
  {
653
640
  "inputs": [
654
641
  {
@@ -785,7 +772,7 @@ export const Safe_jsonAbi = [
785
772
  "outputs": [
786
773
  {
787
774
  "internalType": "bytes32",
788
- "name": "",
775
+ "name": "txHash",
789
776
  "type": "bytes32"
790
777
  }
791
778
  ],
@@ -892,6 +879,19 @@ export const Safe_jsonAbi = [
892
879
  "stateMutability": "nonpayable",
893
880
  "type": "function"
894
881
  },
882
+ {
883
+ "inputs": [
884
+ {
885
+ "internalType": "address",
886
+ "name": "moduleGuard",
887
+ "type": "address"
888
+ }
889
+ ],
890
+ "name": "setModuleGuard",
891
+ "outputs": [],
892
+ "stateMutability": "nonpayable",
893
+ "type": "function"
894
+ },
895
895
  {
896
896
  "inputs": [
897
897
  {
@@ -1104,20 +1104,16 @@ export class Safe_json {
1104
1104
  return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
1105
1105
  }
1106
1106
 
1107
- /**
1108
- * checkNSignatures
1109
- * view
1110
- */
1111
- async checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void> {
1112
- return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures] as const) as Promise<void>;
1107
+ async checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
1108
+ async checkNSignatures(executor: `0x${string}`, dataHash: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
1109
+ async checkNSignatures(...args: any[]): Promise<any> {
1110
+ return this.contract.read.checkNSignatures(args as any) as Promise<any>;
1113
1111
  }
1114
1112
 
1115
- /**
1116
- * checkSignatures
1117
- * view
1118
- */
1119
- async checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void> {
1120
- return this.contract.read.checkSignatures([dataHash, data, signatures] as const) as Promise<void>;
1113
+ async checkSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`): Promise<void>;
1114
+ async checkSignatures(executor: `0x${string}`, dataHash: `0x${string}`, signatures: `0x${string}`): Promise<void>;
1115
+ async checkSignatures(...args: any[]): Promise<any> {
1116
+ return this.contract.read.checkSignatures(args as any) as Promise<any>;
1121
1117
  }
1122
1118
 
1123
1119
  /**
@@ -1128,22 +1124,6 @@ export class Safe_json {
1128
1124
  return this.contract.read.domainSeparator() as Promise<`0x${string}`>;
1129
1125
  }
1130
1126
 
1131
- /**
1132
- * encodeTransactionData
1133
- * view
1134
- */
1135
- 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}`> {
1136
- return this.contract.read.encodeTransactionData([to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce] as const) as Promise<`0x${string}`>;
1137
- }
1138
-
1139
- /**
1140
- * getChainId
1141
- * view
1142
- */
1143
- async getChainId(): Promise<bigint> {
1144
- return this.contract.read.getChainId() as Promise<bigint>;
1145
- }
1146
-
1147
1127
  /**
1148
1128
  * getModulesPaginated
1149
1129
  * view
@@ -1469,6 +1449,29 @@ export class Safe_json {
1469
1449
  return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
1470
1450
  }
1471
1451
 
1452
+ /**
1453
+ * setModuleGuard
1454
+ * nonpayable
1455
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1456
+ */
1457
+ async setModuleGuard(moduleGuard: `0x${string}`, options?: {
1458
+ accessList?: import('viem').AccessList;
1459
+ authorizationList?: import('viem').AuthorizationList;
1460
+ chain?: import('viem').Chain | null;
1461
+ dataSuffix?: `0x${string}`;
1462
+ gas?: bigint;
1463
+ gasPrice?: bigint;
1464
+ maxFeePerGas?: bigint;
1465
+ maxPriorityFeePerGas?: bigint;
1466
+ nonce?: number;
1467
+ value?: bigint;
1468
+ }): Promise<`0x${string}`> {
1469
+ if (!this.contract.write) {
1470
+ throw new Error('Wallet client is required for write operations');
1471
+ }
1472
+ return this.contract.write.setModuleGuard([moduleGuard] as const, options) as Promise<`0x${string}`>;
1473
+ }
1474
+
1472
1475
  /**
1473
1476
  * setup
1474
1477
  * nonpayable
@@ -1763,6 +1766,25 @@ export class Safe_json {
1763
1766
  }): Promise<void> {
1764
1767
  return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
1765
1768
  },
1769
+ /**
1770
+ * Simulate setModuleGuard
1771
+ * Returns gas estimate and result without sending transaction
1772
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1773
+ */
1774
+ async setModuleGuard(moduleGuard: `0x${string}`, options?: {
1775
+ accessList?: import('viem').AccessList;
1776
+ authorizationList?: import('viem').AuthorizationList;
1777
+ chain?: import('viem').Chain | null;
1778
+ dataSuffix?: `0x${string}`;
1779
+ gas?: bigint;
1780
+ gasPrice?: bigint;
1781
+ maxFeePerGas?: bigint;
1782
+ maxPriorityFeePerGas?: bigint;
1783
+ nonce?: number;
1784
+ value?: bigint;
1785
+ }): Promise<void> {
1786
+ return contract.simulate.setModuleGuard([moduleGuard] as const, options) as Promise<void>;
1787
+ },
1766
1788
  /**
1767
1789
  * Simulate setup
1768
1790
  * Returns gas estimate and result without sending transaction
@@ -1913,6 +1935,25 @@ export class Safe_json {
1913
1935
  },
1914
1936
  }) as () => void;
1915
1937
  },
1938
+ /**
1939
+ * Watch ChangedModuleGuard events
1940
+ * @param callback Function to call when event is emitted
1941
+ * @param filter Optional filter for indexed parameters
1942
+ * @returns Unwatch function to stop listening
1943
+ */
1944
+ ChangedModuleGuard: (callback: (event: { moduleGuard: `0x${string}` }) => void, filter?: { moduleGuard: `0x${string}` }) => {
1945
+ return this.publicClient.watchContractEvent({
1946
+ address: this.contractAddress,
1947
+ abi: Safe_jsonAbi,
1948
+ eventName: 'ChangedModuleGuard',
1949
+ args: filter,
1950
+ onLogs: (logs: any[]) => {
1951
+ logs.forEach((log: any) => {
1952
+ callback(log.args as any);
1953
+ });
1954
+ },
1955
+ }) as () => void;
1956
+ },
1916
1957
  /**
1917
1958
  * Watch ChangedThreshold events
1918
1959
  * @param callback Function to call when event is emitted
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/safe",
3
- "version": "1.0.145",
4
- "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-b57f9836-1790183568505, commit e115458, branch etherscan)",
3
+ "version": "1.0.147",
4
+ "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-d8eb559b-1790218588640, commit 11716cf, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/safe"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "e115458"
42
+ "shortHash": "11716cf"
43
43
  }