@gitmyabi/safe 1.0.147 → 1.0.148

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-d8eb559b-1790218588640`
5
+ - **Build ID**: `etherscan-safe-2f5301a3-1790282655092`
6
6
  - **Build Number**: 1
7
- - **Commit**: `11716cf`
7
+ - **Commit**: `894549c`
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.147
15
+ npm install @gitmyabi/safe@1.0.148
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -53,16 +53,6 @@ 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";
66
56
  }, {
67
57
  readonly anonymous: false;
68
58
  readonly inputs: readonly [{
@@ -295,28 +285,6 @@ export declare const Safe_jsonAbi: readonly [{
295
285
  readonly outputs: readonly [];
296
286
  readonly stateMutability: "view";
297
287
  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";
320
288
  }, {
321
289
  readonly inputs: readonly [{
322
290
  readonly internalType: "bytes32";
@@ -335,24 +303,6 @@ export declare const Safe_jsonAbi: readonly [{
335
303
  readonly outputs: readonly [];
336
304
  readonly stateMutability: "view";
337
305
  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";
356
306
  }, {
357
307
  readonly inputs: readonly [{
358
308
  readonly internalType: "address";
@@ -387,6 +337,56 @@ export declare const Safe_jsonAbi: readonly [{
387
337
  readonly outputs: readonly [];
388
338
  readonly stateMutability: "nonpayable";
389
339
  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,6 +493,16 @@ 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";
496
506
  }, {
497
507
  readonly inputs: readonly [{
498
508
  readonly internalType: "address";
@@ -598,7 +608,7 @@ export declare const Safe_jsonAbi: readonly [{
598
608
  readonly name: "getTransactionHash";
599
609
  readonly outputs: readonly [{
600
610
  readonly internalType: "bytes32";
601
- readonly name: "txHash";
611
+ readonly name: "";
602
612
  readonly type: "bytes32";
603
613
  }];
604
614
  readonly stateMutability: "view";
@@ -679,16 +689,6 @@ export declare const Safe_jsonAbi: readonly [{
679
689
  readonly outputs: readonly [];
680
690
  readonly stateMutability: "nonpayable";
681
691
  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,15 +843,31 @@ 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
+ */
846
850
  checkNSignatures(dataHash: `0x${string}`, data: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
847
- checkNSignatures(executor: `0x${string}`, dataHash: `0x${string}`, signatures: `0x${string}`, requiredSignatures: bigint): Promise<void>;
851
+ /**
852
+ * checkSignatures
853
+ * view
854
+ */
848
855
  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>;
850
856
  /**
851
857
  * domainSeparator
852
858
  * view
853
859
  */
854
860
  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>;
855
871
  /**
856
872
  * getModulesPaginated
857
873
  * view
@@ -1084,23 +1100,6 @@ export declare class Safe_json {
1084
1100
  nonce?: number;
1085
1101
  value?: bigint;
1086
1102
  }): 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}`>;
1104
1103
  /**
1105
1104
  * setup
1106
1105
  * nonpayable
@@ -1348,23 +1347,6 @@ export declare class Safe_json {
1348
1347
  nonce?: number;
1349
1348
  value?: bigint;
1350
1349
  }): 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>;
1368
1350
  /**
1369
1351
  * Simulate setup
1370
1352
  * Returns gas estimate and result without sending transaction
@@ -1476,17 +1458,6 @@ export declare class Safe_json {
1476
1458
  }) => void, filter?: {
1477
1459
  guard: `0x${string}`;
1478
1460
  }) => () => 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;
1490
1461
  /**
1491
1462
  * Watch ChangedThreshold events
1492
1463
  * @param callback Function to call when event is emitted
@@ -71,19 +71,6 @@ 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
- },
87
74
  {
88
75
  "anonymous": false,
89
76
  "inputs": [
@@ -382,34 +369,6 @@ exports.Safe_jsonAbi = [
382
369
  "stateMutability": "view",
383
370
  "type": "function"
384
371
  },
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
- },
413
372
  {
414
373
  "inputs": [
415
374
  {
@@ -433,29 +392,6 @@ exports.Safe_jsonAbi = [
433
392
  "stateMutability": "view",
434
393
  "type": "function"
435
394
  },
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
- },
459
395
  {
460
396
  "inputs": [
461
397
  {
@@ -500,6 +436,70 @@ exports.Safe_jsonAbi = [
500
436
  "stateMutability": "nonpayable",
501
437
  "type": "function"
502
438
  },
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,6 +637,19 @@ 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
+ },
640
653
  {
641
654
  "inputs": [
642
655
  {
@@ -773,7 +786,7 @@ exports.Safe_jsonAbi = [
773
786
  "outputs": [
774
787
  {
775
788
  "internalType": "bytes32",
776
- "name": "txHash",
789
+ "name": "",
777
790
  "type": "bytes32"
778
791
  }
779
792
  ],
@@ -880,19 +893,6 @@ exports.Safe_jsonAbi = [
880
893
  "stateMutability": "nonpayable",
881
894
  "type": "function"
882
895
  },
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,11 +1077,19 @@ class Safe_json {
1077
1077
  async approvedHashes(arg0, arg1) {
1078
1078
  return this.contract.read.approvedHashes([arg0, arg1]);
1079
1079
  }
1080
- async checkNSignatures(...args) {
1081
- return this.contract.read.checkNSignatures(args);
1080
+ /**
1081
+ * checkNSignatures
1082
+ * view
1083
+ */
1084
+ async checkNSignatures(dataHash, data, signatures, requiredSignatures) {
1085
+ return this.contract.read.checkNSignatures([dataHash, data, signatures, requiredSignatures]);
1082
1086
  }
1083
- async checkSignatures(...args) {
1084
- return this.contract.read.checkSignatures(args);
1087
+ /**
1088
+ * checkSignatures
1089
+ * view
1090
+ */
1091
+ async checkSignatures(dataHash, data, signatures) {
1092
+ return this.contract.read.checkSignatures([dataHash, data, signatures]);
1085
1093
  }
1086
1094
  /**
1087
1095
  * domainSeparator
@@ -1090,6 +1098,20 @@ class Safe_json {
1090
1098
  async domainSeparator() {
1091
1099
  return this.contract.read.domainSeparator();
1092
1100
  }
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
+ }
1093
1115
  /**
1094
1116
  * getModulesPaginated
1095
1117
  * view
@@ -1274,17 +1296,6 @@ class Safe_json {
1274
1296
  }
1275
1297
  return this.contract.write.setGuard([guard], options);
1276
1298
  }
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
- }
1288
1299
  /**
1289
1300
  * setup
1290
1301
  * nonpayable
@@ -1420,14 +1431,6 @@ class Safe_json {
1420
1431
  async setGuard(guard, options) {
1421
1432
  return contract.simulate.setGuard([guard], options);
1422
1433
  },
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
- },
1431
1434
  /**
1432
1435
  * Simulate setup
1433
1436
  * Returns gas estimate and result without sending transaction
@@ -1544,25 +1547,6 @@ class Safe_json {
1544
1547
  },
1545
1548
  });
1546
1549
  },
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
- },
1566
1550
  /**
1567
1551
  * Watch ChangedThreshold events
1568
1552
  * @param callback Function to call when event is emitted
@@ -70,19 +70,6 @@ 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
- },
86
73
  {
87
74
  "anonymous": false,
88
75
  "inputs": [
@@ -381,34 +368,6 @@ export const Safe_jsonAbi = [
381
368
  "stateMutability": "view",
382
369
  "type": "function"
383
370
  },
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
- },
412
371
  {
413
372
  "inputs": [
414
373
  {
@@ -432,29 +391,6 @@ export const Safe_jsonAbi = [
432
391
  "stateMutability": "view",
433
392
  "type": "function"
434
393
  },
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
- },
458
394
  {
459
395
  "inputs": [
460
396
  {
@@ -499,6 +435,70 @@ export const Safe_jsonAbi = [
499
435
  "stateMutability": "nonpayable",
500
436
  "type": "function"
501
437
  },
438
+ {
439
+ "inputs": [
440
+ {
441
+ "internalType": "address",
442
+ "name": "to",
443
+ "type": "address"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "value",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "bytes",
452
+ "name": "data",
453
+ "type": "bytes"
454
+ },
455
+ {
456
+ "internalType": "enum Enum.Operation",
457
+ "name": "operation",
458
+ "type": "uint8"
459
+ },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "safeTxGas",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "baseGas",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "gasPrice",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "address",
477
+ "name": "gasToken",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "address",
482
+ "name": "refundReceiver",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "_nonce",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "name": "encodeTransactionData",
492
+ "outputs": [
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,6 +636,19 @@ 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
+ },
639
652
  {
640
653
  "inputs": [
641
654
  {
@@ -772,7 +785,7 @@ export const Safe_jsonAbi = [
772
785
  "outputs": [
773
786
  {
774
787
  "internalType": "bytes32",
775
- "name": "txHash",
788
+ "name": "",
776
789
  "type": "bytes32"
777
790
  }
778
791
  ],
@@ -879,19 +892,6 @@ export const Safe_jsonAbi = [
879
892
  "stateMutability": "nonpayable",
880
893
  "type": "function"
881
894
  },
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,16 +1104,20 @@ export class Safe_json {
1104
1104
  return this.contract.read.approvedHashes([arg0, arg1] as const) as Promise<bigint>;
1105
1105
  }
1106
1106
 
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>;
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>;
1111
1113
  }
1112
1114
 
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>;
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>;
1117
1121
  }
1118
1122
 
1119
1123
  /**
@@ -1124,6 +1128,22 @@ export class Safe_json {
1124
1128
  return this.contract.read.domainSeparator() as Promise<`0x${string}`>;
1125
1129
  }
1126
1130
 
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
+
1127
1147
  /**
1128
1148
  * getModulesPaginated
1129
1149
  * view
@@ -1449,29 +1469,6 @@ export class Safe_json {
1449
1469
  return this.contract.write.setGuard([guard] as const, options) as Promise<`0x${string}`>;
1450
1470
  }
1451
1471
 
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
-
1475
1472
  /**
1476
1473
  * setup
1477
1474
  * nonpayable
@@ -1766,25 +1763,6 @@ export class Safe_json {
1766
1763
  }): Promise<void> {
1767
1764
  return contract.simulate.setGuard([guard] as const, options) as Promise<void>;
1768
1765
  },
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
- },
1788
1766
  /**
1789
1767
  * Simulate setup
1790
1768
  * Returns gas estimate and result without sending transaction
@@ -1935,25 +1913,6 @@ export class Safe_json {
1935
1913
  },
1936
1914
  }) as () => void;
1937
1915
  },
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
- },
1957
1916
  /**
1958
1917
  * Watch ChangedThreshold events
1959
1918
  * @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.147",
4
- "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-d8eb559b-1790218588640, commit 11716cf, branch etherscan)",
3
+ "version": "1.0.148",
4
+ "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-2f5301a3-1790282655092, commit 894549c, 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": "11716cf"
42
+ "shortHash": "894549c"
43
43
  }