@gitmyabi/safe 1.0.231 → 1.0.233

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 **Safe**
4
4
 
5
- - **Build ID**: `etherscan-safe-9dc3c205-1792366133077`
5
+ - **Build ID**: `etherscan-safe-6401d8d9-1792386134469`
6
6
  - **Build Number**: 1
7
- - **Commit**: `cf7893c`
7
+ - **Commit**: `37d8d87`
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/safe@1.0.231
15
+ npm install @gitmyabi/safe@1.0.233
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
 
@@ -1,31 +1,33 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * SafeProxy_json ABI
3
+ * Proxy_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 SafeProxy_jsonAbi: readonly [{
7
+ export declare const Proxy_jsonAbi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "address";
10
- readonly name: "_singleton";
10
+ readonly name: "_masterCopy";
11
11
  readonly type: "address";
12
12
  }];
13
+ readonly payable: false;
13
14
  readonly stateMutability: "nonpayable";
14
15
  readonly type: "constructor";
15
16
  }, {
17
+ readonly payable: true;
16
18
  readonly stateMutability: "payable";
17
19
  readonly type: "fallback";
18
20
  }];
19
21
  /**
20
- * Type-safe ABI for SafeProxy_json
22
+ * Type-safe ABI for Proxy_json
21
23
  */
22
- export type SafeProxy_jsonAbi = typeof SafeProxy_jsonAbi;
24
+ export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
23
25
  /**
24
- * Contract instance type for SafeProxy_json
26
+ * Contract instance type for Proxy_json
25
27
  */
26
- export type SafeProxy_jsonContract = any;
28
+ export type Proxy_jsonContract = any;
27
29
  /**
28
- * SafeProxy_json Contract Class
30
+ * Proxy_json Contract Class
29
31
  *
30
32
  * Provides a class-based API similar to TypeChain for interacting with the contract.
31
33
  *
@@ -33,12 +35,12 @@ export type SafeProxy_jsonContract = any;
33
35
  * ```typescript
34
36
  * import { createPublicClient, createWalletClient, http } from 'viem';
35
37
  * import { mainnet } from 'viem/chains';
36
- * import { SafeProxy_json } from 'SafeProxy_json';
38
+ * import { Proxy_json } from 'Proxy_json';
37
39
  *
38
40
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
41
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
42
  *
41
- * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
43
+ * const contract = new Proxy_json('0x...', { publicClient, walletClient });
42
44
  *
43
45
  * // Read functions
44
46
  * const result = await contract.balanceOf('0x...');
@@ -56,7 +58,7 @@ export type SafeProxy_jsonContract = any;
56
58
  * });
57
59
  * ```
58
60
  */
59
- export declare class SafeProxy_json {
61
+ export declare class Proxy_json {
60
62
  private contract;
61
63
  private contractAddress;
62
64
  private publicClient;
@@ -71,7 +73,7 @@ export declare class SafeProxy_json {
71
73
  /**
72
74
  * Get the underlying viem contract instance
73
75
  */
74
- getContract(): SafeProxy_jsonContract;
76
+ getContract(): Proxy_jsonContract;
75
77
  /**
76
78
  * Simulate contract write operations (dry-run without sending transaction)
77
79
  *
@@ -1,31 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SafeProxy_json = exports.SafeProxy_jsonAbi = void 0;
3
+ exports.Proxy_json = exports.Proxy_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * SafeProxy_json ABI
6
+ * Proxy_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.SafeProxy_jsonAbi = [
10
+ exports.Proxy_jsonAbi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
14
14
  "internalType": "address",
15
- "name": "_singleton",
15
+ "name": "_masterCopy",
16
16
  "type": "address"
17
17
  }
18
18
  ],
19
+ "payable": false,
19
20
  "stateMutability": "nonpayable",
20
21
  "type": "constructor"
21
22
  },
22
23
  {
24
+ "payable": true,
23
25
  "stateMutability": "payable",
24
26
  "type": "fallback"
25
27
  }
26
28
  ];
27
29
  /**
28
- * SafeProxy_json Contract Class
30
+ * Proxy_json Contract Class
29
31
  *
30
32
  * Provides a class-based API similar to TypeChain for interacting with the contract.
31
33
  *
@@ -33,12 +35,12 @@ exports.SafeProxy_jsonAbi = [
33
35
  * ```typescript
34
36
  * import { createPublicClient, createWalletClient, http } from 'viem';
35
37
  * import { mainnet } from 'viem/chains';
36
- * import { SafeProxy_json } from 'SafeProxy_json';
38
+ * import { Proxy_json } from 'Proxy_json';
37
39
  *
38
40
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
39
41
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
40
42
  *
41
- * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
43
+ * const contract = new Proxy_json('0x...', { publicClient, walletClient });
42
44
  *
43
45
  * // Read functions
44
46
  * const result = await contract.balanceOf('0x...');
@@ -56,13 +58,13 @@ exports.SafeProxy_jsonAbi = [
56
58
  * });
57
59
  * ```
58
60
  */
59
- class SafeProxy_json {
61
+ class Proxy_json {
60
62
  constructor(address, clients) {
61
63
  this.contractAddress = address;
62
64
  this.publicClient = clients.publicClient;
63
65
  this.contract = (0, viem_1.getContract)({
64
66
  address,
65
- abi: exports.SafeProxy_jsonAbi,
67
+ abi: exports.Proxy_jsonAbi,
66
68
  client: {
67
69
  public: clients.publicClient,
68
70
  wallet: clients.walletClient,
@@ -100,4 +102,4 @@ class SafeProxy_json {
100
102
  return {};
101
103
  }
102
104
  }
103
- exports.SafeProxy_json = SafeProxy_json;
105
+ exports.Proxy_json = Proxy_json;
@@ -2,42 +2,44 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * SafeProxy_json ABI
5
+ * Proxy_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const SafeProxy_jsonAbi = [
9
+ export const Proxy_jsonAbi = [
10
10
  {
11
11
  "inputs": [
12
12
  {
13
13
  "internalType": "address",
14
- "name": "_singleton",
14
+ "name": "_masterCopy",
15
15
  "type": "address"
16
16
  }
17
17
  ],
18
+ "payable": false,
18
19
  "stateMutability": "nonpayable",
19
20
  "type": "constructor"
20
21
  },
21
22
  {
23
+ "payable": true,
22
24
  "stateMutability": "payable",
23
25
  "type": "fallback"
24
26
  }
25
27
  ] as const satisfies Abi;
26
28
 
27
29
  /**
28
- * Type-safe ABI for SafeProxy_json
30
+ * Type-safe ABI for Proxy_json
29
31
  */
30
- export type SafeProxy_jsonAbi = typeof SafeProxy_jsonAbi;
32
+ export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
31
33
 
32
34
  /**
33
- * Contract instance type for SafeProxy_json
35
+ * Contract instance type for Proxy_json
34
36
  */
35
37
  // Use any for contract type to avoid complex viem type issues
36
38
  // The runtime behavior is type-safe through viem's ABI typing
37
- export type SafeProxy_jsonContract = any;
39
+ export type Proxy_jsonContract = any;
38
40
 
39
41
  /**
40
- * SafeProxy_json Contract Class
42
+ * Proxy_json Contract Class
41
43
  *
42
44
  * Provides a class-based API similar to TypeChain for interacting with the contract.
43
45
  *
@@ -45,12 +47,12 @@ export type SafeProxy_jsonContract = any;
45
47
  * ```typescript
46
48
  * import { createPublicClient, createWalletClient, http } from 'viem';
47
49
  * import { mainnet } from 'viem/chains';
48
- * import { SafeProxy_json } from 'SafeProxy_json';
50
+ * import { Proxy_json } from 'Proxy_json';
49
51
  *
50
52
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
51
53
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
52
54
  *
53
- * const contract = new SafeProxy_json('0x...', { publicClient, walletClient });
55
+ * const contract = new Proxy_json('0x...', { publicClient, walletClient });
54
56
  *
55
57
  * // Read functions
56
58
  * const result = await contract.balanceOf('0x...');
@@ -68,8 +70,8 @@ export type SafeProxy_jsonContract = any;
68
70
  * });
69
71
  * ```
70
72
  */
71
- export class SafeProxy_json {
72
- private contract: SafeProxy_jsonContract;
73
+ export class Proxy_json {
74
+ private contract: Proxy_jsonContract;
73
75
  private contractAddress: Address;
74
76
  private publicClient: PublicClient;
75
77
 
@@ -84,7 +86,7 @@ export class SafeProxy_json {
84
86
  this.publicClient = clients.publicClient;
85
87
  this.contract = getContract({
86
88
  address,
87
- abi: SafeProxy_jsonAbi,
89
+ abi: Proxy_jsonAbi,
88
90
  client: {
89
91
  public: clients.publicClient,
90
92
  wallet: clients.walletClient,
@@ -102,7 +104,7 @@ export class SafeProxy_json {
102
104
  /**
103
105
  * Get the underlying viem contract instance
104
106
  */
105
- getContract(): SafeProxy_jsonContract {
107
+ getContract(): Proxy_jsonContract {
106
108
  return this.contract;
107
109
  }
108
110