@gitmyabi/gnosissafe 1.0.9 → 1.0.11

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,17 +2,17 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **GnosisSafe**
4
4
 
5
- - **Build ID**: `etherscan-gnosissafe-34cfac64-1785717112381`
5
+ - **Build ID**: `etherscan-gnosissafe-728a0c47-1785774040244`
6
6
  - **Build Number**: 1
7
- - **Commit**: `2898aba`
7
+ - **Commit**: `e4eeea4`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
- - **Contracts**: 1
10
+ - **Contracts**: 2
11
11
 
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/gnosissafe@1.0.9
15
+ npm install @gitmyabi/gnosissafe@1.0.11
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -101,7 +101,7 @@ This package provides full TypeScript type safety for all contract methods, even
101
101
 
102
102
  ## Generated Contracts
103
103
 
104
- This package includes type bindings for 1 contract(s) generated from ABI artifacts.
104
+ This package includes type bindings for 2 contract(s) generated from ABI artifacts.
105
105
 
106
106
  ## License
107
107
 
@@ -0,0 +1,87 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * GnosisSafeProxy_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const GnosisSafeProxy_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "address";
10
+ readonly name: "_singleton";
11
+ readonly type: "address";
12
+ }];
13
+ readonly stateMutability: "nonpayable";
14
+ readonly type: "constructor";
15
+ }, {
16
+ readonly stateMutability: "payable";
17
+ readonly type: "fallback";
18
+ }];
19
+ /**
20
+ * Type-safe ABI for GnosisSafeProxy_json
21
+ */
22
+ export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
23
+ /**
24
+ * Contract instance type for GnosisSafeProxy_json
25
+ */
26
+ export type GnosisSafeProxy_jsonContract = any;
27
+ /**
28
+ * GnosisSafeProxy_json Contract Class
29
+ *
30
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * import { createPublicClient, createWalletClient, http } from 'viem';
35
+ * import { mainnet } from 'viem/chains';
36
+ * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
37
+ *
38
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
+ *
41
+ * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
42
+ *
43
+ * // Read functions
44
+ * const result = await contract.balanceOf('0x...');
45
+ *
46
+ * // Write functions
47
+ * const hash = await contract.transfer('0x...', 1000n);
48
+ *
49
+ * // Simulate transactions (dry-run)
50
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
51
+ * console.log('Gas estimate:', simulation.request.gas);
52
+ *
53
+ * // Watch events
54
+ * const unwatch = contract.watch.Transfer((event) => {
55
+ * console.log('Transfer event:', event);
56
+ * });
57
+ * ```
58
+ */
59
+ export declare class GnosisSafeProxy_json {
60
+ private contract;
61
+ private contractAddress;
62
+ private publicClient;
63
+ constructor(address: Address, clients: {
64
+ publicClient: PublicClient;
65
+ walletClient?: WalletClient;
66
+ });
67
+ /**
68
+ * Get the contract address
69
+ */
70
+ get address(): Address;
71
+ /**
72
+ * Get the underlying viem contract instance
73
+ */
74
+ getContract(): GnosisSafeProxy_jsonContract;
75
+ /**
76
+ * Simulate contract write operations (dry-run without sending transaction)
77
+ *
78
+ * Note: This contract has no write functions, so simulate returns an empty object.
79
+ */
80
+ get simulate(): {};
81
+ /**
82
+ * Watch contract events
83
+ *
84
+ * Note: This contract has no events, so watch returns an empty object.
85
+ */
86
+ get watch(): {};
87
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GnosisSafeProxy_json = exports.GnosisSafeProxy_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * GnosisSafeProxy_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.GnosisSafeProxy_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "_singleton",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "stateMutability": "payable",
24
+ "type": "fallback"
25
+ }
26
+ ];
27
+ /**
28
+ * GnosisSafeProxy_json Contract Class
29
+ *
30
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * import { createPublicClient, createWalletClient, http } from 'viem';
35
+ * import { mainnet } from 'viem/chains';
36
+ * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
37
+ *
38
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
+ *
41
+ * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
42
+ *
43
+ * // Read functions
44
+ * const result = await contract.balanceOf('0x...');
45
+ *
46
+ * // Write functions
47
+ * const hash = await contract.transfer('0x...', 1000n);
48
+ *
49
+ * // Simulate transactions (dry-run)
50
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
51
+ * console.log('Gas estimate:', simulation.request.gas);
52
+ *
53
+ * // Watch events
54
+ * const unwatch = contract.watch.Transfer((event) => {
55
+ * console.log('Transfer event:', event);
56
+ * });
57
+ * ```
58
+ */
59
+ class GnosisSafeProxy_json {
60
+ constructor(address, clients) {
61
+ this.contractAddress = address;
62
+ this.publicClient = clients.publicClient;
63
+ this.contract = (0, viem_1.getContract)({
64
+ address,
65
+ abi: exports.GnosisSafeProxy_jsonAbi,
66
+ client: {
67
+ public: clients.publicClient,
68
+ wallet: clients.walletClient,
69
+ },
70
+ });
71
+ }
72
+ /**
73
+ * Get the contract address
74
+ */
75
+ get address() {
76
+ return this.contractAddress;
77
+ }
78
+ /**
79
+ * Get the underlying viem contract instance
80
+ */
81
+ getContract() {
82
+ return this.contract;
83
+ }
84
+ // No read functions
85
+ // No write functions
86
+ /**
87
+ * Simulate contract write operations (dry-run without sending transaction)
88
+ *
89
+ * Note: This contract has no write functions, so simulate returns an empty object.
90
+ */
91
+ get simulate() {
92
+ return {};
93
+ }
94
+ /**
95
+ * Watch contract events
96
+ *
97
+ * Note: This contract has no events, so watch returns an empty object.
98
+ */
99
+ get watch() {
100
+ return {};
101
+ }
102
+ }
103
+ exports.GnosisSafeProxy_json = GnosisSafeProxy_json;
@@ -0,0 +1,132 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+ /**
5
+ * GnosisSafeProxy_json ABI
6
+ *
7
+ * This ABI is typed using viem's type system for full type safety.
8
+ */
9
+ export const GnosisSafeProxy_jsonAbi = [
10
+ {
11
+ "inputs": [
12
+ {
13
+ "internalType": "address",
14
+ "name": "_singleton",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable",
19
+ "type": "constructor"
20
+ },
21
+ {
22
+ "stateMutability": "payable",
23
+ "type": "fallback"
24
+ }
25
+ ] as const satisfies Abi;
26
+
27
+ /**
28
+ * Type-safe ABI for GnosisSafeProxy_json
29
+ */
30
+ export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
31
+
32
+ /**
33
+ * Contract instance type for GnosisSafeProxy_json
34
+ */
35
+ // Use any for contract type to avoid complex viem type issues
36
+ // The runtime behavior is type-safe through viem's ABI typing
37
+ export type GnosisSafeProxy_jsonContract = any;
38
+
39
+ /**
40
+ * GnosisSafeProxy_json Contract Class
41
+ *
42
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * import { createPublicClient, createWalletClient, http } from 'viem';
47
+ * import { mainnet } from 'viem/chains';
48
+ * import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
49
+ *
50
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
51
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
52
+ *
53
+ * const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
54
+ *
55
+ * // Read functions
56
+ * const result = await contract.balanceOf('0x...');
57
+ *
58
+ * // Write functions
59
+ * const hash = await contract.transfer('0x...', 1000n);
60
+ *
61
+ * // Simulate transactions (dry-run)
62
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
63
+ * console.log('Gas estimate:', simulation.request.gas);
64
+ *
65
+ * // Watch events
66
+ * const unwatch = contract.watch.Transfer((event) => {
67
+ * console.log('Transfer event:', event);
68
+ * });
69
+ * ```
70
+ */
71
+ export class GnosisSafeProxy_json {
72
+ private contract: GnosisSafeProxy_jsonContract;
73
+ private contractAddress: Address;
74
+ private publicClient: PublicClient;
75
+
76
+ constructor(
77
+ address: Address,
78
+ clients: {
79
+ publicClient: PublicClient;
80
+ walletClient?: WalletClient;
81
+ }
82
+ ) {
83
+ this.contractAddress = address;
84
+ this.publicClient = clients.publicClient;
85
+ this.contract = getContract({
86
+ address,
87
+ abi: GnosisSafeProxy_jsonAbi,
88
+ client: {
89
+ public: clients.publicClient,
90
+ wallet: clients.walletClient,
91
+ },
92
+ });
93
+ }
94
+
95
+ /**
96
+ * Get the contract address
97
+ */
98
+ get address(): Address {
99
+ return this.contractAddress;
100
+ }
101
+
102
+ /**
103
+ * Get the underlying viem contract instance
104
+ */
105
+ getContract(): GnosisSafeProxy_jsonContract {
106
+ return this.contract;
107
+ }
108
+
109
+ // No read functions
110
+
111
+ // No write functions
112
+
113
+
114
+
115
+ /**
116
+ * Simulate contract write operations (dry-run without sending transaction)
117
+ *
118
+ * Note: This contract has no write functions, so simulate returns an empty object.
119
+ */
120
+ get simulate() {
121
+ return {};
122
+ }
123
+
124
+ /**
125
+ * Watch contract events
126
+ *
127
+ * Note: This contract has no events, so watch returns an empty object.
128
+ */
129
+ get watch() {
130
+ return {};
131
+ }
132
+ }