@gitmyabi/safe 1.0.51 → 1.0.52
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 +3 -3
- package/contracts/{SafeProxy_json.d.ts → Proxy_json.d.ts} +14 -12
- package/contracts/{SafeProxy_json.js → Proxy_json.js} +12 -10
- package/contracts/{SafeProxy_json.ts → Proxy_json.ts} +16 -14
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
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-
|
|
5
|
+
- **Build ID**: `etherscan-safe-5e89f8d8-1786768434552`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `73e841f`
|
|
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.
|
|
15
|
+
npm install @gitmyabi/safe@1.0.52
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
7
|
+
export declare const Proxy_jsonAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "address";
|
|
10
|
-
readonly name: "
|
|
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
|
|
22
|
+
* Type-safe ABI for Proxy_json
|
|
21
23
|
*/
|
|
22
|
-
export type
|
|
24
|
+
export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
|
|
23
25
|
/**
|
|
24
|
-
* Contract instance type for
|
|
26
|
+
* Contract instance type for Proxy_json
|
|
25
27
|
*/
|
|
26
|
-
export type
|
|
28
|
+
export type Proxy_jsonContract = any;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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():
|
|
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.
|
|
3
|
+
exports.Proxy_json = exports.Proxy_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
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.
|
|
10
|
+
exports.Proxy_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
14
|
"internalType": "address",
|
|
15
|
-
"name": "
|
|
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
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
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
|
|
9
|
+
export const Proxy_jsonAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [
|
|
12
12
|
{
|
|
13
13
|
"internalType": "address",
|
|
14
|
-
"name": "
|
|
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
|
|
30
|
+
* Type-safe ABI for Proxy_json
|
|
29
31
|
*/
|
|
30
|
-
export type
|
|
32
|
+
export type Proxy_jsonAbi = typeof Proxy_jsonAbi;
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
|
-
* Contract instance type for
|
|
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
|
|
39
|
+
export type Proxy_jsonContract = any;
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
72
|
-
private contract:
|
|
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:
|
|
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():
|
|
107
|
+
getContract(): Proxy_jsonContract {
|
|
106
108
|
return this.contract;
|
|
107
109
|
}
|
|
108
110
|
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { Proxy_jsonAbi, Proxy_json } from './Proxy_json';
|
|
2
|
+
export type { Proxy_jsonAbi as Proxy_jsonAbiType, Proxy_jsonContract } from './Proxy_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';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Safe_json = exports.Safe_jsonAbi = exports.
|
|
3
|
+
exports.Safe_json = exports.Safe_jsonAbi = exports.Proxy_json = exports.Proxy_jsonAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
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; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { Proxy_jsonAbi, Proxy_json } from './Proxy_json';
|
|
3
|
+
export type { Proxy_jsonAbi as Proxy_jsonAbiType, Proxy_jsonContract } from './Proxy_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.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-
|
|
3
|
+
"version": "1.0.52",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for Safe (build etherscan-safe-5e89f8d8-1786768434552, commit 73e841f, 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": "
|
|
42
|
+
"shortHash": "73e841f"
|
|
43
43
|
}
|