@gitmyabi/safe 1.0.52 → 1.0.54

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-5e89f8d8-1786768434552`
5
+ - **Build ID**: `etherscan-safe-fa0e7ed2-1786822240937`
6
6
  - **Build Number**: 1
7
- - **Commit**: `73e841f`
7
+ - **Commit**: `f03f914`
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.52
15
+ npm install @gitmyabi/safe@1.0.54
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,33 +1,31 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * Proxy_json ABI
3
+ * SafeProxy_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const Proxy_jsonAbi: readonly [{
7
+ export declare const SafeProxy_jsonAbi: 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_json
20
+ * Type-safe ABI for SafeProxy_json
23
21
  */
24
- export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
22
+ export type SafeProxy_jsonAbi = typeof SafeProxy_jsonAbi;
25
23
  /**
26
- * Contract instance type for Proxy_json
24
+ * Contract instance type for SafeProxy_json
27
25
  */
28
- export type Proxy_jsonContract = any;
26
+ export type SafeProxy_jsonContract = any;
29
27
  /**
30
- * Proxy_json Contract Class
28
+ * SafeProxy_json 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 Proxy_jsonContract = any;
35
33
  * ```typescript
36
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
37
35
  * import { mainnet } from 'viem/chains';
38
- * import { Proxy_json } from 'Proxy_json';
36
+ * import { SafeProxy_json } from 'SafeProxy_json';
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_json('0x...', { publicClient, walletClient });
41
+ * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
44
42
  *
45
43
  * // Read functions
46
44
  * const result = await contract.balanceOf('0x...');
@@ -58,7 +56,7 @@ export type Proxy_jsonContract = any;
58
56
  * });
59
57
  * ```
60
58
  */
61
- export declare class Proxy_json {
59
+ export declare class SafeProxy_json {
62
60
  private contract;
63
61
  private contractAddress;
64
62
  private publicClient;
@@ -73,7 +71,7 @@ export declare class Proxy_json {
73
71
  /**
74
72
  * Get the underlying viem contract instance
75
73
  */
76
- getContract(): Proxy_jsonContract;
74
+ getContract(): SafeProxy_jsonContract;
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_json = exports.Proxy_jsonAbi = void 0;
3
+ exports.SafeProxy_json = exports.SafeProxy_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * Proxy_json ABI
6
+ * SafeProxy_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.Proxy_jsonAbi = [
10
+ exports.SafeProxy_jsonAbi = [
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_json Contract Class
28
+ * SafeProxy_json 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.Proxy_jsonAbi = [
35
33
  * ```typescript
36
34
  * import { createPublicClient, createWalletClient, http } from 'viem';
37
35
  * import { mainnet } from 'viem/chains';
38
- * import { Proxy_json } from 'Proxy_json';
36
+ * import { SafeProxy_json } from 'SafeProxy_json';
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_json('0x...', { publicClient, walletClient });
41
+ * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
44
42
  *
45
43
  * // Read functions
46
44
  * const result = await contract.balanceOf('0x...');
@@ -58,13 +56,13 @@ exports.Proxy_jsonAbi = [
58
56
  * });
59
57
  * ```
60
58
  */
61
- class Proxy_json {
59
+ class SafeProxy_json {
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.Proxy_jsonAbi,
65
+ abi: exports.SafeProxy_jsonAbi,
68
66
  client: {
69
67
  public: clients.publicClient,
70
68
  wallet: clients.walletClient,
@@ -102,4 +100,4 @@ class Proxy_json {
102
100
  return {};
103
101
  }
104
102
  }
105
- exports.Proxy_json = Proxy_json;
103
+ exports.SafeProxy_json = SafeProxy_json;
@@ -2,44 +2,42 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * Proxy_json ABI
5
+ * SafeProxy_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const Proxy_jsonAbi = [
9
+ export const SafeProxy_jsonAbi = [
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_json
28
+ * Type-safe ABI for SafeProxy_json
31
29
  */
32
- export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
30
+ export type SafeProxy_jsonAbi = typeof SafeProxy_jsonAbi;
33
31
 
34
32
  /**
35
- * Contract instance type for Proxy_json
33
+ * Contract instance type for SafeProxy_json
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 Proxy_jsonContract = any;
37
+ export type SafeProxy_jsonContract = any;
40
38
 
41
39
  /**
42
- * Proxy_json Contract Class
40
+ * SafeProxy_json 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 Proxy_jsonContract = any;
47
45
  * ```typescript
48
46
  * import { createPublicClient, createWalletClient, http } from 'viem';
49
47
  * import { mainnet } from 'viem/chains';
50
- * import { Proxy_json } from 'Proxy_json';
48
+ * import { SafeProxy_json } from 'SafeProxy_json';
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_json('0x...', { publicClient, walletClient });
53
+ * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
56
54
  *
57
55
  * // Read functions
58
56
  * const result = await contract.balanceOf('0x...');
@@ -70,8 +68,8 @@ export type Proxy_jsonContract = any;
70
68
  * });
71
69
  * ```
72
70
  */
73
- export class Proxy_json {
74
- private contract: Proxy_jsonContract;
71
+ export class SafeProxy_json {
72
+ private contract: SafeProxy_jsonContract;
75
73
  private contractAddress: Address;
76
74
  private publicClient: PublicClient;
77
75
 
@@ -86,7 +84,7 @@ export class Proxy_json {
86
84
  this.publicClient = clients.publicClient;
87
85
  this.contract = getContract({
88
86
  address,
89
- abi: Proxy_jsonAbi,
87
+ abi: SafeProxy_jsonAbi,
90
88
  client: {
91
89
  public: clients.publicClient,
92
90
  wallet: clients.walletClient,
@@ -104,7 +102,7 @@ export class Proxy_json {
104
102
  /**
105
103
  * Get the underlying viem contract instance
106
104
  */
107
- getContract(): Proxy_jsonContract {
105
+ getContract(): SafeProxy_jsonContract {
108
106
  return this.contract;
109
107
  }
110
108
 
@@ -1,4 +1,4 @@
1
- export { Proxy_jsonAbi, Proxy_json } from './Proxy_json';
2
- export type { Proxy_jsonAbi as Proxy_jsonAbiType, Proxy_jsonContract } from './Proxy_json';
1
+ export { SafeProxy_jsonAbi, SafeProxy_json } from './SafeProxy_json';
2
+ export type { SafeProxy_jsonAbi as SafeProxy_jsonAbiType, SafeProxy_jsonContract } from './SafeProxy_json';
3
3
  export { Safe_jsonAbi, Safe_json } from './Safe_json';
4
4
  export type { Safe_jsonAbi as Safe_jsonAbiType, Safe_jsonContract } from './Safe_json';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Safe_json = exports.Safe_jsonAbi = exports.Proxy_json = exports.Proxy_jsonAbi = void 0;
3
+ exports.Safe_json = exports.Safe_jsonAbi = exports.SafeProxy_json = exports.SafeProxy_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var Proxy_json_1 = require("./Proxy_json");
6
- Object.defineProperty(exports, "Proxy_jsonAbi", { enumerable: true, get: function () { return Proxy_json_1.Proxy_jsonAbi; } });
7
- Object.defineProperty(exports, "Proxy_json", { enumerable: true, get: function () { return Proxy_json_1.Proxy_json; } });
5
+ var SafeProxy_json_1 = require("./SafeProxy_json");
6
+ Object.defineProperty(exports, "SafeProxy_jsonAbi", { enumerable: true, get: function () { return SafeProxy_json_1.SafeProxy_jsonAbi; } });
7
+ Object.defineProperty(exports, "SafeProxy_json", { enumerable: true, get: function () { return SafeProxy_json_1.SafeProxy_json; } });
8
8
  var Safe_json_1 = require("./Safe_json");
9
9
  Object.defineProperty(exports, "Safe_jsonAbi", { enumerable: true, get: function () { return Safe_json_1.Safe_jsonAbi; } });
10
10
  Object.defineProperty(exports, "Safe_json", { enumerable: true, get: function () { return Safe_json_1.Safe_json; } });
@@ -1,5 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
- export { Proxy_jsonAbi, Proxy_json } from './Proxy_json';
3
- export type { Proxy_jsonAbi as Proxy_jsonAbiType, Proxy_jsonContract } from './Proxy_json';
2
+ export { SafeProxy_jsonAbi, SafeProxy_json } from './SafeProxy_json';
3
+ export type { SafeProxy_jsonAbi as SafeProxy_jsonAbiType, SafeProxy_jsonContract } from './SafeProxy_json';
4
4
  export { Safe_jsonAbi, Safe_json } from './Safe_json';
5
5
  export type { Safe_jsonAbi as Safe_jsonAbiType, Safe_jsonContract } from './Safe_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/safe",
3
- "version": "1.0.52",
4
- "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-5e89f8d8-1786768434552, commit 73e841f, branch etherscan)",
3
+ "version": "1.0.54",
4
+ "description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-fa0e7ed2-1786822240937, commit f03f914, 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": "73e841f"
42
+ "shortHash": "f03f914"
43
43
  }