@gitmyabi/gnosissafe 1.0.208 → 1.0.210

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.
@@ -1,33 +1,31 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * Proxy 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 ProxyAbi: readonly [{
7
+ export declare const GnosisSafeProxyAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "address";
10
- readonly name: "_masterCopy";
10
+ readonly name: "_singleton";
11
11
  readonly type: "address";
12
12
  }];
13
- readonly payable: false;
14
13
  readonly stateMutability: "nonpayable";
15
14
  readonly type: "constructor";
16
15
  }, {
17
- readonly payable: true;
18
16
  readonly stateMutability: "payable";
19
17
  readonly type: "fallback";
20
18
  }];
21
19
  /**
22
- * Type-safe ABI for Proxy
20
+ * Type-safe ABI for GnosisSafeProxy
23
21
  */
24
- export type ProxyAbi = typeof ProxyAbi;
22
+ export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
25
23
  /**
26
- * Contract instance type for Proxy
24
+ * Contract instance type for GnosisSafeProxy
27
25
  */
28
- export type ProxyContract = any;
26
+ export type GnosisSafeProxyContract = any;
29
27
  /**
30
- * Proxy Contract Class
28
+ * GnosisSafeProxy Contract Class
31
29
  *
32
30
  * Provides a class-based API similar to TypeChain for interacting with the contract.
33
31
  *
@@ -35,12 +33,12 @@ export type ProxyContract = any;
35
33
  * ```typescript
36
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
37
35
  * import { mainnet } from 'viem/chains';
38
- * import { Proxy } from 'Proxy';
36
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
39
37
  *
40
38
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
41
39
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
42
40
  *
43
- * const contract = new Proxy('0x...', { publicClient, walletClient });
41
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
44
42
  *
45
43
  * // Read functions
46
44
  * const result = await contract.balanceOf('0x...');
@@ -58,7 +56,7 @@ export type ProxyContract = any;
58
56
  * });
59
57
  * ```
60
58
  */
61
- export declare class Proxy {
59
+ export declare class GnosisSafeProxy {
62
60
  private contract;
63
61
  private contractAddress;
64
62
  private publicClient;
@@ -73,7 +71,7 @@ export declare class Proxy {
73
71
  /**
74
72
  * Get the underlying viem contract instance.
75
73
  */
76
- getContract(): ProxyContract;
74
+ getContract(): GnosisSafeProxyContract;
77
75
  /**
78
76
  * Simulate contract write operations (dry-run without sending transaction)
79
77
  *
@@ -1,33 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Proxy = exports.ProxyAbi = void 0;
3
+ exports.GnosisSafeProxy = exports.GnosisSafeProxyAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * Proxy 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.ProxyAbi = [
10
+ exports.GnosisSafeProxyAbi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
14
14
  "internalType": "address",
15
- "name": "_masterCopy",
15
+ "name": "_singleton",
16
16
  "type": "address"
17
17
  }
18
18
  ],
19
- "payable": false,
20
19
  "stateMutability": "nonpayable",
21
20
  "type": "constructor"
22
21
  },
23
22
  {
24
- "payable": true,
25
23
  "stateMutability": "payable",
26
24
  "type": "fallback"
27
25
  }
28
26
  ];
29
27
  /**
30
- * Proxy Contract Class
28
+ * GnosisSafeProxy Contract Class
31
29
  *
32
30
  * Provides a class-based API similar to TypeChain for interacting with the contract.
33
31
  *
@@ -35,12 +33,12 @@ exports.ProxyAbi = [
35
33
  * ```typescript
36
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
37
35
  * import { mainnet } from 'viem/chains';
38
- * import { Proxy } from 'Proxy';
36
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
39
37
  *
40
38
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
41
39
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
42
40
  *
43
- * const contract = new Proxy('0x...', { publicClient, walletClient });
41
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
44
42
  *
45
43
  * // Read functions
46
44
  * const result = await contract.balanceOf('0x...');
@@ -58,13 +56,13 @@ exports.ProxyAbi = [
58
56
  * });
59
57
  * ```
60
58
  */
61
- class Proxy {
59
+ class GnosisSafeProxy {
62
60
  constructor(address, clients) {
63
61
  this.contractAddress = address;
64
62
  this.publicClient = clients.publicClient;
65
63
  this.contract = (0, viem_1.getContract)({
66
64
  address,
67
- abi: exports.ProxyAbi,
65
+ abi: exports.GnosisSafeProxyAbi,
68
66
  client: {
69
67
  public: clients.publicClient,
70
68
  wallet: clients.walletClient,
@@ -102,4 +100,4 @@ class Proxy {
102
100
  return {};
103
101
  }
104
102
  }
105
- exports.Proxy = Proxy;
103
+ exports.GnosisSafeProxy = GnosisSafeProxy;
@@ -2,44 +2,42 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * Proxy 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 ProxyAbi = [
9
+ export const GnosisSafeProxyAbi = [
10
10
  {
11
11
  "inputs": [
12
12
  {
13
13
  "internalType": "address",
14
- "name": "_masterCopy",
14
+ "name": "_singleton",
15
15
  "type": "address"
16
16
  }
17
17
  ],
18
- "payable": false,
19
18
  "stateMutability": "nonpayable",
20
19
  "type": "constructor"
21
20
  },
22
21
  {
23
- "payable": true,
24
22
  "stateMutability": "payable",
25
23
  "type": "fallback"
26
24
  }
27
25
  ] as const satisfies Abi;
28
26
 
29
27
  /**
30
- * Type-safe ABI for Proxy
28
+ * Type-safe ABI for GnosisSafeProxy
31
29
  */
32
- export type ProxyAbi = typeof ProxyAbi;
30
+ export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
33
31
 
34
32
  /**
35
- * Contract instance type for Proxy
33
+ * Contract instance type for GnosisSafeProxy
36
34
  */
37
35
  // Use any for contract type to avoid complex viem type issues
38
36
  // The runtime behavior is type-safe through viem's ABI typing
39
- export type ProxyContract = any;
37
+ export type GnosisSafeProxyContract = any;
40
38
 
41
39
  /**
42
- * Proxy Contract Class
40
+ * GnosisSafeProxy Contract Class
43
41
  *
44
42
  * Provides a class-based API similar to TypeChain for interacting with the contract.
45
43
  *
@@ -47,12 +45,12 @@ export type ProxyContract = any;
47
45
  * ```typescript
48
46
  * import { createPublicClient, createWalletClient, http } from 'viem';
49
47
  * import { mainnet } from 'viem/chains';
50
- * import { Proxy } from 'Proxy';
48
+ * import { GnosisSafeProxy } from 'GnosisSafeProxy';
51
49
  *
52
50
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
53
51
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
54
52
  *
55
- * const contract = new Proxy('0x...', { publicClient, walletClient });
53
+ * const contract = new GnosisSafeProxy('0x...', { publicClient, walletClient });
56
54
  *
57
55
  * // Read functions
58
56
  * const result = await contract.balanceOf('0x...');
@@ -70,8 +68,8 @@ export type ProxyContract = any;
70
68
  * });
71
69
  * ```
72
70
  */
73
- export class Proxy {
74
- private contract: ProxyContract;
71
+ export class GnosisSafeProxy {
72
+ private contract: GnosisSafeProxyContract;
75
73
  private contractAddress: Address;
76
74
  private publicClient: PublicClient;
77
75
 
@@ -86,7 +84,7 @@ export class Proxy {
86
84
  this.publicClient = clients.publicClient;
87
85
  this.contract = getContract({
88
86
  address,
89
- abi: ProxyAbi,
87
+ abi: GnosisSafeProxyAbi,
90
88
  client: {
91
89
  public: clients.publicClient,
92
90
  wallet: clients.walletClient,
@@ -104,7 +102,7 @@ export class Proxy {
104
102
  /**
105
103
  * Get the underlying viem contract instance.
106
104
  */
107
- getContract(): ProxyContract {
105
+ getContract(): GnosisSafeProxyContract {
108
106
  return this.contract;
109
107
  }
110
108
 
@@ -1,4 +1,4 @@
1
1
  export { GnosisSafeAbi, GnosisSafe } from './GnosisSafe';
2
2
  export type { GnosisSafeAbi as GnosisSafeAbiType, GnosisSafeContract } from './GnosisSafe';
3
- export { ProxyAbi, Proxy } from './Proxy';
4
- export type { ProxyAbi as ProxyAbiType, ProxyContract } from './Proxy';
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.Proxy = exports.ProxyAbi = exports.GnosisSafe = exports.GnosisSafeAbi = void 0;
3
+ exports.GnosisSafeProxy = exports.GnosisSafeProxyAbi = exports.GnosisSafe = exports.GnosisSafeAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
5
  var GnosisSafe_1 = require("./GnosisSafe");
6
6
  Object.defineProperty(exports, "GnosisSafeAbi", { enumerable: true, get: function () { return GnosisSafe_1.GnosisSafeAbi; } });
7
7
  Object.defineProperty(exports, "GnosisSafe", { enumerable: true, get: function () { return GnosisSafe_1.GnosisSafe; } });
8
- var Proxy_1 = require("./Proxy");
9
- Object.defineProperty(exports, "ProxyAbi", { enumerable: true, get: function () { return Proxy_1.ProxyAbi; } });
10
- Object.defineProperty(exports, "Proxy", { enumerable: true, get: function () { return Proxy_1.Proxy; } });
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
2
  export { GnosisSafeAbi, GnosisSafe } from './GnosisSafe';
3
3
  export type { GnosisSafeAbi as GnosisSafeAbiType, GnosisSafeContract } from './GnosisSafe';
4
- export { ProxyAbi, Proxy } from './Proxy';
5
- export type { ProxyAbi as ProxyAbiType, ProxyContract } from './Proxy';
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.208",
4
- "description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-679824d7-1793891642613, commit cdc5fe8, branch etherscan)",
3
+ "version": "1.0.210",
4
+ "description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-4fa8afb6-1794038970810, commit 0e52562, 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/gnosissafe"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "cdc5fe8"
42
+ "shortHash": "0e52562"
43
43
  }