@gitmyabi/gnosissafe 1.0.204 → 1.0.205

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 **GnosisSafe**
4
4
 
5
- - **Build ID**: `etherscan-gnosissafe-887d2c7a-1793770515504`
5
+ - **Build ID**: `etherscan-gnosissafe-fd89a89c-1793798370923`
6
6
  - **Build Number**: 1
7
- - **Commit**: `e3626f8`
7
+ - **Commit**: `04a1076`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 2
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **GnosisSafe**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/gnosissafe@1.0.204
15
+ npm install @gitmyabi/gnosissafe@1.0.205
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -105,4 +105,4 @@ This package includes type bindings for 2 contract(s) generated from ABI artifac
105
105
 
106
106
  ## License
107
107
 
108
- MIT
108
+ Apache License 2.0
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * GnosisSafe_json ABI
3
+ * GnosisSafe ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const GnosisSafe_jsonAbi: readonly [{
7
+ export declare const GnosisSafeAbi: readonly [{
8
8
  readonly inputs: readonly [];
9
9
  readonly stateMutability: "nonpayable";
10
10
  readonly type: "constructor";
@@ -804,15 +804,15 @@ export declare const GnosisSafe_jsonAbi: readonly [{
804
804
  readonly type: "receive";
805
805
  }];
806
806
  /**
807
- * Type-safe ABI for GnosisSafe_json
807
+ * Type-safe ABI for GnosisSafe
808
808
  */
809
- export type GnosisSafe_jsonAbi = typeof GnosisSafe_jsonAbi;
809
+ export type GnosisSafeAbi = typeof GnosisSafeAbi;
810
810
  /**
811
- * Contract instance type for GnosisSafe_json
811
+ * Contract instance type for GnosisSafe
812
812
  */
813
- export type GnosisSafe_jsonContract = any;
813
+ export type GnosisSafeContract = any;
814
814
  /**
815
- * GnosisSafe_json Contract Class
815
+ * GnosisSafe Contract Class
816
816
  *
817
817
  * Provides a class-based API similar to TypeChain for interacting with the contract.
818
818
  *
@@ -820,12 +820,12 @@ export type GnosisSafe_jsonContract = any;
820
820
  * ```typescript
821
821
  * import { createPublicClient, createWalletClient, http } from 'viem';
822
822
  * import { mainnet } from 'viem/chains';
823
- * import { GnosisSafe_json } from 'GnosisSafe_json';
823
+ * import { GnosisSafe } from 'GnosisSafe';
824
824
  *
825
825
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
826
826
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
827
827
  *
828
- * const contract = new GnosisSafe_json('0x...', { publicClient, walletClient });
828
+ * const contract = new GnosisSafe('0x...', { publicClient, walletClient });
829
829
  *
830
830
  * // Read functions
831
831
  * const result = await contract.balanceOf('0x...');
@@ -843,7 +843,7 @@ export type GnosisSafe_jsonContract = any;
843
843
  * });
844
844
  * ```
845
845
  */
846
- export declare class GnosisSafe_json {
846
+ export declare class GnosisSafe {
847
847
  private contract;
848
848
  private contractAddress;
849
849
  private publicClient;
@@ -856,9 +856,9 @@ export declare class GnosisSafe_json {
856
856
  */
857
857
  get address(): Address;
858
858
  /**
859
- * Get the underlying viem contract instance
859
+ * Get the underlying viem contract instance.
860
860
  */
861
- getContract(): GnosisSafe_jsonContract;
861
+ getContract(): GnosisSafeContract;
862
862
  /**
863
863
  * VERSION
864
864
  * view
@@ -1491,8 +1491,8 @@ export declare class GnosisSafe_json {
1491
1491
  approvedHash: `0x${string}`;
1492
1492
  owner: `0x${string}`;
1493
1493
  }) => void, filter?: {
1494
- approvedHash: `0x${string}`;
1495
- owner: `0x${string}`;
1494
+ approvedHash?: `0x${string}` | `0x${string}`[] | null;
1495
+ owner?: `0x${string}` | `0x${string}`[] | null;
1496
1496
  }) => () => void;
1497
1497
  /**
1498
1498
  * Watch ChangedFallbackHandler events
@@ -1558,7 +1558,7 @@ export declare class GnosisSafe_json {
1558
1558
  ExecutionFromModuleFailure: (callback: (event: {
1559
1559
  module: `0x${string}`;
1560
1560
  }) => void, filter?: {
1561
- module: `0x${string}`;
1561
+ module?: `0x${string}` | `0x${string}`[] | null;
1562
1562
  }) => () => void;
1563
1563
  /**
1564
1564
  * Watch ExecutionFromModuleSuccess events
@@ -1569,7 +1569,7 @@ export declare class GnosisSafe_json {
1569
1569
  ExecutionFromModuleSuccess: (callback: (event: {
1570
1570
  module: `0x${string}`;
1571
1571
  }) => void, filter?: {
1572
- module: `0x${string}`;
1572
+ module?: `0x${string}` | `0x${string}`[] | null;
1573
1573
  }) => () => void;
1574
1574
  /**
1575
1575
  * Watch ExecutionSuccess events
@@ -1600,7 +1600,7 @@ export declare class GnosisSafe_json {
1600
1600
  sender: `0x${string}`;
1601
1601
  value: bigint;
1602
1602
  }) => void, filter?: {
1603
- sender: `0x${string}`;
1603
+ sender?: `0x${string}` | `0x${string}`[] | null;
1604
1604
  }) => () => void;
1605
1605
  /**
1606
1606
  * Watch SafeSetup events
@@ -1615,7 +1615,7 @@ export declare class GnosisSafe_json {
1615
1615
  initializer: `0x${string}`;
1616
1616
  fallbackHandler: `0x${string}`;
1617
1617
  }) => void, filter?: {
1618
- initiator: `0x${string}`;
1618
+ initiator?: `0x${string}` | `0x${string}`[] | null;
1619
1619
  }) => () => void;
1620
1620
  /**
1621
1621
  * Watch SignMsg events
@@ -1626,7 +1626,7 @@ export declare class GnosisSafe_json {
1626
1626
  SignMsg: (callback: (event: {
1627
1627
  msgHash: `0x${string}`;
1628
1628
  }) => void, filter?: {
1629
- msgHash: `0x${string}`;
1629
+ msgHash?: `0x${string}` | `0x${string}`[] | null;
1630
1630
  }) => () => void;
1631
1631
  };
1632
1632
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GnosisSafe_json = exports.GnosisSafe_jsonAbi = void 0;
3
+ exports.GnosisSafe = exports.GnosisSafeAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * GnosisSafe_json ABI
6
+ * GnosisSafe ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.GnosisSafe_jsonAbi = [
10
+ exports.GnosisSafeAbi = [
11
11
  {
12
12
  "inputs": [],
13
13
  "stateMutability": "nonpayable",
@@ -1041,7 +1041,7 @@ exports.GnosisSafe_jsonAbi = [
1041
1041
  }
1042
1042
  ];
1043
1043
  /**
1044
- * GnosisSafe_json Contract Class
1044
+ * GnosisSafe Contract Class
1045
1045
  *
1046
1046
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1047
1047
  *
@@ -1049,12 +1049,12 @@ exports.GnosisSafe_jsonAbi = [
1049
1049
  * ```typescript
1050
1050
  * import { createPublicClient, createWalletClient, http } from 'viem';
1051
1051
  * import { mainnet } from 'viem/chains';
1052
- * import { GnosisSafe_json } from 'GnosisSafe_json';
1052
+ * import { GnosisSafe } from 'GnosisSafe';
1053
1053
  *
1054
1054
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1055
1055
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1056
1056
  *
1057
- * const contract = new GnosisSafe_json('0x...', { publicClient, walletClient });
1057
+ * const contract = new GnosisSafe('0x...', { publicClient, walletClient });
1058
1058
  *
1059
1059
  * // Read functions
1060
1060
  * const result = await contract.balanceOf('0x...');
@@ -1072,13 +1072,13 @@ exports.GnosisSafe_jsonAbi = [
1072
1072
  * });
1073
1073
  * ```
1074
1074
  */
1075
- class GnosisSafe_json {
1075
+ class GnosisSafe {
1076
1076
  constructor(address, clients) {
1077
1077
  this.contractAddress = address;
1078
1078
  this.publicClient = clients.publicClient;
1079
1079
  this.contract = (0, viem_1.getContract)({
1080
1080
  address,
1081
- abi: exports.GnosisSafe_jsonAbi,
1081
+ abi: exports.GnosisSafeAbi,
1082
1082
  client: {
1083
1083
  public: clients.publicClient,
1084
1084
  wallet: clients.walletClient,
@@ -1092,7 +1092,7 @@ class GnosisSafe_json {
1092
1092
  return this.contractAddress;
1093
1093
  }
1094
1094
  /**
1095
- * Get the underlying viem contract instance
1095
+ * Get the underlying viem contract instance.
1096
1096
  */
1097
1097
  getContract() {
1098
1098
  return this.contract;
@@ -1533,7 +1533,7 @@ class GnosisSafe_json {
1533
1533
  AddedOwner: (callback) => {
1534
1534
  return this.publicClient.watchContractEvent({
1535
1535
  address: this.contractAddress,
1536
- abi: exports.GnosisSafe_jsonAbi,
1536
+ abi: exports.GnosisSafeAbi,
1537
1537
  eventName: 'AddedOwner',
1538
1538
  onLogs: (logs) => {
1539
1539
  logs.forEach((log) => {
@@ -1551,7 +1551,7 @@ class GnosisSafe_json {
1551
1551
  ApproveHash: (callback, filter) => {
1552
1552
  return this.publicClient.watchContractEvent({
1553
1553
  address: this.contractAddress,
1554
- abi: exports.GnosisSafe_jsonAbi,
1554
+ abi: exports.GnosisSafeAbi,
1555
1555
  eventName: 'ApproveHash',
1556
1556
  args: filter,
1557
1557
  onLogs: (logs) => {
@@ -1570,7 +1570,7 @@ class GnosisSafe_json {
1570
1570
  ChangedFallbackHandler: (callback) => {
1571
1571
  return this.publicClient.watchContractEvent({
1572
1572
  address: this.contractAddress,
1573
- abi: exports.GnosisSafe_jsonAbi,
1573
+ abi: exports.GnosisSafeAbi,
1574
1574
  eventName: 'ChangedFallbackHandler',
1575
1575
  onLogs: (logs) => {
1576
1576
  logs.forEach((log) => {
@@ -1588,7 +1588,7 @@ class GnosisSafe_json {
1588
1588
  ChangedGuard: (callback) => {
1589
1589
  return this.publicClient.watchContractEvent({
1590
1590
  address: this.contractAddress,
1591
- abi: exports.GnosisSafe_jsonAbi,
1591
+ abi: exports.GnosisSafeAbi,
1592
1592
  eventName: 'ChangedGuard',
1593
1593
  onLogs: (logs) => {
1594
1594
  logs.forEach((log) => {
@@ -1606,7 +1606,7 @@ class GnosisSafe_json {
1606
1606
  ChangedThreshold: (callback) => {
1607
1607
  return this.publicClient.watchContractEvent({
1608
1608
  address: this.contractAddress,
1609
- abi: exports.GnosisSafe_jsonAbi,
1609
+ abi: exports.GnosisSafeAbi,
1610
1610
  eventName: 'ChangedThreshold',
1611
1611
  onLogs: (logs) => {
1612
1612
  logs.forEach((log) => {
@@ -1624,7 +1624,7 @@ class GnosisSafe_json {
1624
1624
  DisabledModule: (callback) => {
1625
1625
  return this.publicClient.watchContractEvent({
1626
1626
  address: this.contractAddress,
1627
- abi: exports.GnosisSafe_jsonAbi,
1627
+ abi: exports.GnosisSafeAbi,
1628
1628
  eventName: 'DisabledModule',
1629
1629
  onLogs: (logs) => {
1630
1630
  logs.forEach((log) => {
@@ -1642,7 +1642,7 @@ class GnosisSafe_json {
1642
1642
  EnabledModule: (callback) => {
1643
1643
  return this.publicClient.watchContractEvent({
1644
1644
  address: this.contractAddress,
1645
- abi: exports.GnosisSafe_jsonAbi,
1645
+ abi: exports.GnosisSafeAbi,
1646
1646
  eventName: 'EnabledModule',
1647
1647
  onLogs: (logs) => {
1648
1648
  logs.forEach((log) => {
@@ -1660,7 +1660,7 @@ class GnosisSafe_json {
1660
1660
  ExecutionFailure: (callback) => {
1661
1661
  return this.publicClient.watchContractEvent({
1662
1662
  address: this.contractAddress,
1663
- abi: exports.GnosisSafe_jsonAbi,
1663
+ abi: exports.GnosisSafeAbi,
1664
1664
  eventName: 'ExecutionFailure',
1665
1665
  onLogs: (logs) => {
1666
1666
  logs.forEach((log) => {
@@ -1678,7 +1678,7 @@ class GnosisSafe_json {
1678
1678
  ExecutionFromModuleFailure: (callback, filter) => {
1679
1679
  return this.publicClient.watchContractEvent({
1680
1680
  address: this.contractAddress,
1681
- abi: exports.GnosisSafe_jsonAbi,
1681
+ abi: exports.GnosisSafeAbi,
1682
1682
  eventName: 'ExecutionFromModuleFailure',
1683
1683
  args: filter,
1684
1684
  onLogs: (logs) => {
@@ -1697,7 +1697,7 @@ class GnosisSafe_json {
1697
1697
  ExecutionFromModuleSuccess: (callback, filter) => {
1698
1698
  return this.publicClient.watchContractEvent({
1699
1699
  address: this.contractAddress,
1700
- abi: exports.GnosisSafe_jsonAbi,
1700
+ abi: exports.GnosisSafeAbi,
1701
1701
  eventName: 'ExecutionFromModuleSuccess',
1702
1702
  args: filter,
1703
1703
  onLogs: (logs) => {
@@ -1716,7 +1716,7 @@ class GnosisSafe_json {
1716
1716
  ExecutionSuccess: (callback) => {
1717
1717
  return this.publicClient.watchContractEvent({
1718
1718
  address: this.contractAddress,
1719
- abi: exports.GnosisSafe_jsonAbi,
1719
+ abi: exports.GnosisSafeAbi,
1720
1720
  eventName: 'ExecutionSuccess',
1721
1721
  onLogs: (logs) => {
1722
1722
  logs.forEach((log) => {
@@ -1734,7 +1734,7 @@ class GnosisSafe_json {
1734
1734
  RemovedOwner: (callback) => {
1735
1735
  return this.publicClient.watchContractEvent({
1736
1736
  address: this.contractAddress,
1737
- abi: exports.GnosisSafe_jsonAbi,
1737
+ abi: exports.GnosisSafeAbi,
1738
1738
  eventName: 'RemovedOwner',
1739
1739
  onLogs: (logs) => {
1740
1740
  logs.forEach((log) => {
@@ -1752,7 +1752,7 @@ class GnosisSafe_json {
1752
1752
  SafeReceived: (callback, filter) => {
1753
1753
  return this.publicClient.watchContractEvent({
1754
1754
  address: this.contractAddress,
1755
- abi: exports.GnosisSafe_jsonAbi,
1755
+ abi: exports.GnosisSafeAbi,
1756
1756
  eventName: 'SafeReceived',
1757
1757
  args: filter,
1758
1758
  onLogs: (logs) => {
@@ -1771,7 +1771,7 @@ class GnosisSafe_json {
1771
1771
  SafeSetup: (callback, filter) => {
1772
1772
  return this.publicClient.watchContractEvent({
1773
1773
  address: this.contractAddress,
1774
- abi: exports.GnosisSafe_jsonAbi,
1774
+ abi: exports.GnosisSafeAbi,
1775
1775
  eventName: 'SafeSetup',
1776
1776
  args: filter,
1777
1777
  onLogs: (logs) => {
@@ -1790,7 +1790,7 @@ class GnosisSafe_json {
1790
1790
  SignMsg: (callback, filter) => {
1791
1791
  return this.publicClient.watchContractEvent({
1792
1792
  address: this.contractAddress,
1793
- abi: exports.GnosisSafe_jsonAbi,
1793
+ abi: exports.GnosisSafeAbi,
1794
1794
  eventName: 'SignMsg',
1795
1795
  args: filter,
1796
1796
  onLogs: (logs) => {
@@ -1803,4 +1803,4 @@ class GnosisSafe_json {
1803
1803
  };
1804
1804
  }
1805
1805
  }
1806
- exports.GnosisSafe_json = GnosisSafe_json;
1806
+ exports.GnosisSafe = GnosisSafe;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * GnosisSafe_json ABI
5
+ * GnosisSafe ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const GnosisSafe_jsonAbi = [
9
+ export const GnosisSafeAbi = [
10
10
  {
11
11
  "inputs": [],
12
12
  "stateMutability": "nonpayable",
@@ -1041,19 +1041,19 @@ export const GnosisSafe_jsonAbi = [
1041
1041
  ] as const satisfies Abi;
1042
1042
 
1043
1043
  /**
1044
- * Type-safe ABI for GnosisSafe_json
1044
+ * Type-safe ABI for GnosisSafe
1045
1045
  */
1046
- export type GnosisSafe_jsonAbi = typeof GnosisSafe_jsonAbi;
1046
+ export type GnosisSafeAbi = typeof GnosisSafeAbi;
1047
1047
 
1048
1048
  /**
1049
- * Contract instance type for GnosisSafe_json
1049
+ * Contract instance type for GnosisSafe
1050
1050
  */
1051
1051
  // Use any for contract type to avoid complex viem type issues
1052
1052
  // The runtime behavior is type-safe through viem's ABI typing
1053
- export type GnosisSafe_jsonContract = any;
1053
+ export type GnosisSafeContract = any;
1054
1054
 
1055
1055
  /**
1056
- * GnosisSafe_json Contract Class
1056
+ * GnosisSafe Contract Class
1057
1057
  *
1058
1058
  * Provides a class-based API similar to TypeChain for interacting with the contract.
1059
1059
  *
@@ -1061,12 +1061,12 @@ export type GnosisSafe_jsonContract = any;
1061
1061
  * ```typescript
1062
1062
  * import { createPublicClient, createWalletClient, http } from 'viem';
1063
1063
  * import { mainnet } from 'viem/chains';
1064
- * import { GnosisSafe_json } from 'GnosisSafe_json';
1064
+ * import { GnosisSafe } from 'GnosisSafe';
1065
1065
  *
1066
1066
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1067
1067
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1068
1068
  *
1069
- * const contract = new GnosisSafe_json('0x...', { publicClient, walletClient });
1069
+ * const contract = new GnosisSafe('0x...', { publicClient, walletClient });
1070
1070
  *
1071
1071
  * // Read functions
1072
1072
  * const result = await contract.balanceOf('0x...');
@@ -1084,8 +1084,8 @@ export type GnosisSafe_jsonContract = any;
1084
1084
  * });
1085
1085
  * ```
1086
1086
  */
1087
- export class GnosisSafe_json {
1088
- private contract: GnosisSafe_jsonContract;
1087
+ export class GnosisSafe {
1088
+ private contract: GnosisSafeContract;
1089
1089
  private contractAddress: Address;
1090
1090
  private publicClient: PublicClient;
1091
1091
 
@@ -1100,7 +1100,7 @@ export class GnosisSafe_json {
1100
1100
  this.publicClient = clients.publicClient;
1101
1101
  this.contract = getContract({
1102
1102
  address,
1103
- abi: GnosisSafe_jsonAbi,
1103
+ abi: GnosisSafeAbi,
1104
1104
  client: {
1105
1105
  public: clients.publicClient,
1106
1106
  wallet: clients.walletClient,
@@ -1116,9 +1116,9 @@ export class GnosisSafe_json {
1116
1116
  }
1117
1117
 
1118
1118
  /**
1119
- * Get the underlying viem contract instance
1119
+ * Get the underlying viem contract instance.
1120
1120
  */
1121
- getContract(): GnosisSafe_jsonContract {
1121
+ getContract(): GnosisSafeContract {
1122
1122
  return this.contract;
1123
1123
  }
1124
1124
 
@@ -1922,7 +1922,7 @@ export class GnosisSafe_json {
1922
1922
  AddedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
1923
1923
  return this.publicClient.watchContractEvent({
1924
1924
  address: this.contractAddress,
1925
- abi: GnosisSafe_jsonAbi,
1925
+ abi: GnosisSafeAbi,
1926
1926
  eventName: 'AddedOwner',
1927
1927
 
1928
1928
  onLogs: (logs: any[]) => {
@@ -1938,12 +1938,12 @@ export class GnosisSafe_json {
1938
1938
  * @param filter Optional filter for indexed parameters
1939
1939
  * @returns Unwatch function to stop listening
1940
1940
  */
1941
- ApproveHash: (callback: (event: { approvedHash: `0x${string}`; owner: `0x${string}` }) => void, filter?: { approvedHash: `0x${string}`; owner: `0x${string}` }) => {
1941
+ ApproveHash: (callback: (event: { approvedHash: `0x${string}`; owner: `0x${string}` }) => void, filter?: { approvedHash?: `0x${string}` | `0x${string}`[] | null; owner?: `0x${string}` | `0x${string}`[] | null }) => {
1942
1942
  return this.publicClient.watchContractEvent({
1943
1943
  address: this.contractAddress,
1944
- abi: GnosisSafe_jsonAbi,
1944
+ abi: GnosisSafeAbi,
1945
1945
  eventName: 'ApproveHash',
1946
- args: filter,
1946
+ args: filter as any,
1947
1947
  onLogs: (logs: any[]) => {
1948
1948
  logs.forEach((log: any) => {
1949
1949
  callback(log.args as any);
@@ -1960,7 +1960,7 @@ export class GnosisSafe_json {
1960
1960
  ChangedFallbackHandler: (callback: (event: { handler: `0x${string}` }) => void) => {
1961
1961
  return this.publicClient.watchContractEvent({
1962
1962
  address: this.contractAddress,
1963
- abi: GnosisSafe_jsonAbi,
1963
+ abi: GnosisSafeAbi,
1964
1964
  eventName: 'ChangedFallbackHandler',
1965
1965
 
1966
1966
  onLogs: (logs: any[]) => {
@@ -1979,7 +1979,7 @@ export class GnosisSafe_json {
1979
1979
  ChangedGuard: (callback: (event: { guard: `0x${string}` }) => void) => {
1980
1980
  return this.publicClient.watchContractEvent({
1981
1981
  address: this.contractAddress,
1982
- abi: GnosisSafe_jsonAbi,
1982
+ abi: GnosisSafeAbi,
1983
1983
  eventName: 'ChangedGuard',
1984
1984
 
1985
1985
  onLogs: (logs: any[]) => {
@@ -1998,7 +1998,7 @@ export class GnosisSafe_json {
1998
1998
  ChangedThreshold: (callback: (event: { threshold: bigint }) => void) => {
1999
1999
  return this.publicClient.watchContractEvent({
2000
2000
  address: this.contractAddress,
2001
- abi: GnosisSafe_jsonAbi,
2001
+ abi: GnosisSafeAbi,
2002
2002
  eventName: 'ChangedThreshold',
2003
2003
 
2004
2004
  onLogs: (logs: any[]) => {
@@ -2017,7 +2017,7 @@ export class GnosisSafe_json {
2017
2017
  DisabledModule: (callback: (event: { module: `0x${string}` }) => void) => {
2018
2018
  return this.publicClient.watchContractEvent({
2019
2019
  address: this.contractAddress,
2020
- abi: GnosisSafe_jsonAbi,
2020
+ abi: GnosisSafeAbi,
2021
2021
  eventName: 'DisabledModule',
2022
2022
 
2023
2023
  onLogs: (logs: any[]) => {
@@ -2036,7 +2036,7 @@ export class GnosisSafe_json {
2036
2036
  EnabledModule: (callback: (event: { module: `0x${string}` }) => void) => {
2037
2037
  return this.publicClient.watchContractEvent({
2038
2038
  address: this.contractAddress,
2039
- abi: GnosisSafe_jsonAbi,
2039
+ abi: GnosisSafeAbi,
2040
2040
  eventName: 'EnabledModule',
2041
2041
 
2042
2042
  onLogs: (logs: any[]) => {
@@ -2055,7 +2055,7 @@ export class GnosisSafe_json {
2055
2055
  ExecutionFailure: (callback: (event: { txHash: `0x${string}`; payment: bigint }) => void) => {
2056
2056
  return this.publicClient.watchContractEvent({
2057
2057
  address: this.contractAddress,
2058
- abi: GnosisSafe_jsonAbi,
2058
+ abi: GnosisSafeAbi,
2059
2059
  eventName: 'ExecutionFailure',
2060
2060
 
2061
2061
  onLogs: (logs: any[]) => {
@@ -2071,12 +2071,12 @@ export class GnosisSafe_json {
2071
2071
  * @param filter Optional filter for indexed parameters
2072
2072
  * @returns Unwatch function to stop listening
2073
2073
  */
2074
- ExecutionFromModuleFailure: (callback: (event: { module: `0x${string}` }) => void, filter?: { module: `0x${string}` }) => {
2074
+ ExecutionFromModuleFailure: (callback: (event: { module: `0x${string}` }) => void, filter?: { module?: `0x${string}` | `0x${string}`[] | null }) => {
2075
2075
  return this.publicClient.watchContractEvent({
2076
2076
  address: this.contractAddress,
2077
- abi: GnosisSafe_jsonAbi,
2077
+ abi: GnosisSafeAbi,
2078
2078
  eventName: 'ExecutionFromModuleFailure',
2079
- args: filter,
2079
+ args: filter as any,
2080
2080
  onLogs: (logs: any[]) => {
2081
2081
  logs.forEach((log: any) => {
2082
2082
  callback(log.args as any);
@@ -2090,12 +2090,12 @@ export class GnosisSafe_json {
2090
2090
  * @param filter Optional filter for indexed parameters
2091
2091
  * @returns Unwatch function to stop listening
2092
2092
  */
2093
- ExecutionFromModuleSuccess: (callback: (event: { module: `0x${string}` }) => void, filter?: { module: `0x${string}` }) => {
2093
+ ExecutionFromModuleSuccess: (callback: (event: { module: `0x${string}` }) => void, filter?: { module?: `0x${string}` | `0x${string}`[] | null }) => {
2094
2094
  return this.publicClient.watchContractEvent({
2095
2095
  address: this.contractAddress,
2096
- abi: GnosisSafe_jsonAbi,
2096
+ abi: GnosisSafeAbi,
2097
2097
  eventName: 'ExecutionFromModuleSuccess',
2098
- args: filter,
2098
+ args: filter as any,
2099
2099
  onLogs: (logs: any[]) => {
2100
2100
  logs.forEach((log: any) => {
2101
2101
  callback(log.args as any);
@@ -2112,7 +2112,7 @@ export class GnosisSafe_json {
2112
2112
  ExecutionSuccess: (callback: (event: { txHash: `0x${string}`; payment: bigint }) => void) => {
2113
2113
  return this.publicClient.watchContractEvent({
2114
2114
  address: this.contractAddress,
2115
- abi: GnosisSafe_jsonAbi,
2115
+ abi: GnosisSafeAbi,
2116
2116
  eventName: 'ExecutionSuccess',
2117
2117
 
2118
2118
  onLogs: (logs: any[]) => {
@@ -2131,7 +2131,7 @@ export class GnosisSafe_json {
2131
2131
  RemovedOwner: (callback: (event: { owner: `0x${string}` }) => void) => {
2132
2132
  return this.publicClient.watchContractEvent({
2133
2133
  address: this.contractAddress,
2134
- abi: GnosisSafe_jsonAbi,
2134
+ abi: GnosisSafeAbi,
2135
2135
  eventName: 'RemovedOwner',
2136
2136
 
2137
2137
  onLogs: (logs: any[]) => {
@@ -2147,12 +2147,12 @@ export class GnosisSafe_json {
2147
2147
  * @param filter Optional filter for indexed parameters
2148
2148
  * @returns Unwatch function to stop listening
2149
2149
  */
2150
- SafeReceived: (callback: (event: { sender: `0x${string}`; value: bigint }) => void, filter?: { sender: `0x${string}` }) => {
2150
+ SafeReceived: (callback: (event: { sender: `0x${string}`; value: bigint }) => void, filter?: { sender?: `0x${string}` | `0x${string}`[] | null }) => {
2151
2151
  return this.publicClient.watchContractEvent({
2152
2152
  address: this.contractAddress,
2153
- abi: GnosisSafe_jsonAbi,
2153
+ abi: GnosisSafeAbi,
2154
2154
  eventName: 'SafeReceived',
2155
- args: filter,
2155
+ args: filter as any,
2156
2156
  onLogs: (logs: any[]) => {
2157
2157
  logs.forEach((log: any) => {
2158
2158
  callback(log.args as any);
@@ -2166,12 +2166,12 @@ export class GnosisSafe_json {
2166
2166
  * @param filter Optional filter for indexed parameters
2167
2167
  * @returns Unwatch function to stop listening
2168
2168
  */
2169
- SafeSetup: (callback: (event: { initiator: `0x${string}`; owners: `0x${string}`[]; threshold: bigint; initializer: `0x${string}`; fallbackHandler: `0x${string}` }) => void, filter?: { initiator: `0x${string}` }) => {
2169
+ SafeSetup: (callback: (event: { initiator: `0x${string}`; owners: `0x${string}`[]; threshold: bigint; initializer: `0x${string}`; fallbackHandler: `0x${string}` }) => void, filter?: { initiator?: `0x${string}` | `0x${string}`[] | null }) => {
2170
2170
  return this.publicClient.watchContractEvent({
2171
2171
  address: this.contractAddress,
2172
- abi: GnosisSafe_jsonAbi,
2172
+ abi: GnosisSafeAbi,
2173
2173
  eventName: 'SafeSetup',
2174
- args: filter,
2174
+ args: filter as any,
2175
2175
  onLogs: (logs: any[]) => {
2176
2176
  logs.forEach((log: any) => {
2177
2177
  callback(log.args as any);
@@ -2185,12 +2185,12 @@ export class GnosisSafe_json {
2185
2185
  * @param filter Optional filter for indexed parameters
2186
2186
  * @returns Unwatch function to stop listening
2187
2187
  */
2188
- SignMsg: (callback: (event: { msgHash: `0x${string}` }) => void, filter?: { msgHash: `0x${string}` }) => {
2188
+ SignMsg: (callback: (event: { msgHash: `0x${string}` }) => void, filter?: { msgHash?: `0x${string}` | `0x${string}`[] | null }) => {
2189
2189
  return this.publicClient.watchContractEvent({
2190
2190
  address: this.contractAddress,
2191
- abi: GnosisSafe_jsonAbi,
2191
+ abi: GnosisSafeAbi,
2192
2192
  eventName: 'SignMsg',
2193
- args: filter,
2193
+ args: filter as any,
2194
2194
  onLogs: (logs: any[]) => {
2195
2195
  logs.forEach((log: any) => {
2196
2196
  callback(log.args as any);
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * GnosisSafeProxy_json ABI
3
+ * GnosisSafeProxy ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const GnosisSafeProxy_jsonAbi: readonly [{
7
+ export declare const GnosisSafeProxyAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "address";
10
10
  readonly name: "_singleton";
@@ -17,15 +17,15 @@ export declare const GnosisSafeProxy_jsonAbi: readonly [{
17
17
  readonly type: "fallback";
18
18
  }];
19
19
  /**
20
- * Type-safe ABI for GnosisSafeProxy_json
20
+ * Type-safe ABI for GnosisSafeProxy
21
21
  */
22
- export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
22
+ export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
23
23
  /**
24
- * Contract instance type for GnosisSafeProxy_json
24
+ * Contract instance type for GnosisSafeProxy
25
25
  */
26
- export type GnosisSafeProxy_jsonContract = any;
26
+ export type GnosisSafeProxyContract = any;
27
27
  /**
28
- * GnosisSafeProxy_json Contract Class
28
+ * GnosisSafeProxy Contract Class
29
29
  *
30
30
  * Provides a class-based API similar to TypeChain for interacting with the contract.
31
31
  *
@@ -33,12 +33,12 @@ export type GnosisSafeProxy_jsonContract = any;
33
33
  * ```typescript
34
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
35
35
  * import { mainnet } from 'viem/chains';
36
- * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
36
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
37
37
  *
38
38
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
39
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
40
  *
41
- * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
41
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
42
42
  *
43
43
  * // Read functions
44
44
  * const result = await contract.balanceOf('0x...');
@@ -56,7 +56,7 @@ export type GnosisSafeProxy_jsonContract = any;
56
56
  * });
57
57
  * ```
58
58
  */
59
- export declare class GnosisSafeProxy_json {
59
+ export declare class GnosisSafeProxy {
60
60
  private contract;
61
61
  private contractAddress;
62
62
  private publicClient;
@@ -69,9 +69,9 @@ export declare class GnosisSafeProxy_json {
69
69
  */
70
70
  get address(): Address;
71
71
  /**
72
- * Get the underlying viem contract instance
72
+ * Get the underlying viem contract instance.
73
73
  */
74
- getContract(): GnosisSafeProxy_jsonContract;
74
+ getContract(): GnosisSafeProxyContract;
75
75
  /**
76
76
  * Simulate contract write operations (dry-run without sending transaction)
77
77
  *
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GnosisSafeProxy_json = exports.GnosisSafeProxy_jsonAbi = void 0;
3
+ exports.GnosisSafeProxy = exports.GnosisSafeProxyAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * GnosisSafeProxy_json ABI
6
+ * GnosisSafeProxy ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.GnosisSafeProxy_jsonAbi = [
10
+ exports.GnosisSafeProxyAbi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
@@ -25,7 +25,7 @@ exports.GnosisSafeProxy_jsonAbi = [
25
25
  }
26
26
  ];
27
27
  /**
28
- * GnosisSafeProxy_json Contract Class
28
+ * GnosisSafeProxy Contract Class
29
29
  *
30
30
  * Provides a class-based API similar to TypeChain for interacting with the contract.
31
31
  *
@@ -33,12 +33,12 @@ exports.GnosisSafeProxy_jsonAbi = [
33
33
  * ```typescript
34
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
35
35
  * import { mainnet } from 'viem/chains';
36
- * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
36
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
37
37
  *
38
38
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
39
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
40
  *
41
- * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
41
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
42
42
  *
43
43
  * // Read functions
44
44
  * const result = await contract.balanceOf('0x...');
@@ -56,13 +56,13 @@ exports.GnosisSafeProxy_jsonAbi = [
56
56
  * });
57
57
  * ```
58
58
  */
59
- class GnosisSafeProxy_json {
59
+ class GnosisSafeProxy {
60
60
  constructor(address, clients) {
61
61
  this.contractAddress = address;
62
62
  this.publicClient = clients.publicClient;
63
63
  this.contract = (0, viem_1.getContract)({
64
64
  address,
65
- abi: exports.GnosisSafeProxy_jsonAbi,
65
+ abi: exports.GnosisSafeProxyAbi,
66
66
  client: {
67
67
  public: clients.publicClient,
68
68
  wallet: clients.walletClient,
@@ -76,7 +76,7 @@ class GnosisSafeProxy_json {
76
76
  return this.contractAddress;
77
77
  }
78
78
  /**
79
- * Get the underlying viem contract instance
79
+ * Get the underlying viem contract instance.
80
80
  */
81
81
  getContract() {
82
82
  return this.contract;
@@ -100,4 +100,4 @@ class GnosisSafeProxy_json {
100
100
  return {};
101
101
  }
102
102
  }
103
- exports.GnosisSafeProxy_json = GnosisSafeProxy_json;
103
+ exports.GnosisSafeProxy = GnosisSafeProxy;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * GnosisSafeProxy_json ABI
5
+ * GnosisSafeProxy ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const GnosisSafeProxy_jsonAbi = [
9
+ export const GnosisSafeProxyAbi = [
10
10
  {
11
11
  "inputs": [
12
12
  {
@@ -25,19 +25,19 @@ export const GnosisSafeProxy_jsonAbi = [
25
25
  ] as const satisfies Abi;
26
26
 
27
27
  /**
28
- * Type-safe ABI for GnosisSafeProxy_json
28
+ * Type-safe ABI for GnosisSafeProxy
29
29
  */
30
- export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
30
+ export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
31
31
 
32
32
  /**
33
- * Contract instance type for GnosisSafeProxy_json
33
+ * Contract instance type for GnosisSafeProxy
34
34
  */
35
35
  // Use any for contract type to avoid complex viem type issues
36
36
  // The runtime behavior is type-safe through viem's ABI typing
37
- export type GnosisSafeProxy_jsonContract = any;
37
+ export type GnosisSafeProxyContract = any;
38
38
 
39
39
  /**
40
- * GnosisSafeProxy_json Contract Class
40
+ * GnosisSafeProxy Contract Class
41
41
  *
42
42
  * Provides a class-based API similar to TypeChain for interacting with the contract.
43
43
  *
@@ -45,12 +45,12 @@ export type GnosisSafeProxy_jsonContract = any;
45
45
  * ```typescript
46
46
  * import { createPublicClient, createWalletClient, http } from 'viem';
47
47
  * import { mainnet } from 'viem/chains';
48
- * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
48
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
49
49
  *
50
50
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
51
51
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
52
52
  *
53
- * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
53
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
54
54
  *
55
55
  * // Read functions
56
56
  * const result = await contract.balanceOf('0x...');
@@ -68,8 +68,8 @@ export type GnosisSafeProxy_jsonContract = any;
68
68
  * });
69
69
  * ```
70
70
  */
71
- export class GnosisSafeProxy_json {
72
- private contract: GnosisSafeProxy_jsonContract;
71
+ export class GnosisSafeProxy {
72
+ private contract: GnosisSafeProxyContract;
73
73
  private contractAddress: Address;
74
74
  private publicClient: PublicClient;
75
75
 
@@ -84,7 +84,7 @@ export class GnosisSafeProxy_json {
84
84
  this.publicClient = clients.publicClient;
85
85
  this.contract = getContract({
86
86
  address,
87
- abi: GnosisSafeProxy_jsonAbi,
87
+ abi: GnosisSafeProxyAbi,
88
88
  client: {
89
89
  public: clients.publicClient,
90
90
  wallet: clients.walletClient,
@@ -100,9 +100,9 @@ export class GnosisSafeProxy_json {
100
100
  }
101
101
 
102
102
  /**
103
- * Get the underlying viem contract instance
103
+ * Get the underlying viem contract instance.
104
104
  */
105
- getContract(): GnosisSafeProxy_jsonContract {
105
+ getContract(): GnosisSafeProxyContract {
106
106
  return this.contract;
107
107
  }
108
108
 
@@ -1,4 +1,4 @@
1
- export { GnosisSafeProxy_jsonAbi, GnosisSafeProxy_json } from './GnosisSafeProxy_json';
2
- export type { GnosisSafeProxy_jsonAbi as GnosisSafeProxy_jsonAbiType, GnosisSafeProxy_jsonContract } from './GnosisSafeProxy_json';
3
- export { GnosisSafe_jsonAbi, GnosisSafe_json } from './GnosisSafe_json';
4
- export type { GnosisSafe_jsonAbi as GnosisSafe_jsonAbiType, GnosisSafe_jsonContract } from './GnosisSafe_json';
1
+ export { GnosisSafeAbi, GnosisSafe } from './GnosisSafe';
2
+ export type { GnosisSafeAbi as GnosisSafeAbiType, GnosisSafeContract } from './GnosisSafe';
3
+ export { GnosisSafeProxyAbi, GnosisSafeProxy } from './GnosisSafeProxy';
4
+ export type { GnosisSafeProxyAbi as GnosisSafeProxyAbiType, GnosisSafeProxyContract } from './GnosisSafeProxy';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GnosisSafe_json = exports.GnosisSafe_jsonAbi = exports.GnosisSafeProxy_json = exports.GnosisSafeProxy_jsonAbi = void 0;
3
+ exports.GnosisSafeProxy = exports.GnosisSafeProxyAbi = exports.GnosisSafe = exports.GnosisSafeAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var GnosisSafeProxy_json_1 = require("./GnosisSafeProxy_json");
6
- Object.defineProperty(exports, "GnosisSafeProxy_jsonAbi", { enumerable: true, get: function () { return GnosisSafeProxy_json_1.GnosisSafeProxy_jsonAbi; } });
7
- Object.defineProperty(exports, "GnosisSafeProxy_json", { enumerable: true, get: function () { return GnosisSafeProxy_json_1.GnosisSafeProxy_json; } });
8
- var GnosisSafe_json_1 = require("./GnosisSafe_json");
9
- Object.defineProperty(exports, "GnosisSafe_jsonAbi", { enumerable: true, get: function () { return GnosisSafe_json_1.GnosisSafe_jsonAbi; } });
10
- Object.defineProperty(exports, "GnosisSafe_json", { enumerable: true, get: function () { return GnosisSafe_json_1.GnosisSafe_json; } });
5
+ var GnosisSafe_1 = require("./GnosisSafe");
6
+ Object.defineProperty(exports, "GnosisSafeAbi", { enumerable: true, get: function () { return GnosisSafe_1.GnosisSafeAbi; } });
7
+ Object.defineProperty(exports, "GnosisSafe", { enumerable: true, get: function () { return GnosisSafe_1.GnosisSafe; } });
8
+ var GnosisSafeProxy_1 = require("./GnosisSafeProxy");
9
+ Object.defineProperty(exports, "GnosisSafeProxyAbi", { enumerable: true, get: function () { return GnosisSafeProxy_1.GnosisSafeProxyAbi; } });
10
+ Object.defineProperty(exports, "GnosisSafeProxy", { enumerable: true, get: function () { return GnosisSafeProxy_1.GnosisSafeProxy; } });
@@ -1,5 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
- export { GnosisSafeProxy_jsonAbi, GnosisSafeProxy_json } from './GnosisSafeProxy_json';
3
- export type { GnosisSafeProxy_jsonAbi as GnosisSafeProxy_jsonAbiType, GnosisSafeProxy_jsonContract } from './GnosisSafeProxy_json';
4
- export { GnosisSafe_jsonAbi, GnosisSafe_json } from './GnosisSafe_json';
5
- export type { GnosisSafe_jsonAbi as GnosisSafe_jsonAbiType, GnosisSafe_jsonContract } from './GnosisSafe_json';
2
+ export { GnosisSafeAbi, GnosisSafe } from './GnosisSafe';
3
+ export type { GnosisSafeAbi as GnosisSafeAbiType, GnosisSafeContract } from './GnosisSafe';
4
+ export { GnosisSafeProxyAbi, GnosisSafeProxy } from './GnosisSafeProxy';
5
+ export type { GnosisSafeProxyAbi as GnosisSafeProxyAbiType, GnosisSafeProxyContract } from './GnosisSafeProxy';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/gnosissafe",
3
- "version": "1.0.204",
4
- "description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-887d2c7a-1793770515504, commit e3626f8, branch etherscan)",
3
+ "version": "1.0.205",
4
+ "description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-fd89a89c-1793798370923, commit 04a1076, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -30,7 +30,7 @@
30
30
  "abi",
31
31
  "ethers-v6"
32
32
  ],
33
- "license": "MIT",
33
+ "license": "Apache-2.0",
34
34
  "dependencies": {
35
35
  "viem": "^2.0.0"
36
36
  },
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/gnosissafe"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "e3626f8"
42
+ "shortHash": "04a1076"
43
43
  }