@gitmyabi/gnosissafe 1.0.222 → 1.0.224
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/{GnosisSafeProxy.d.ts → Proxy.d.ts} +14 -12
- package/contracts/{GnosisSafeProxy.js → Proxy.js} +12 -10
- package/contracts/{GnosisSafeProxy.ts → Proxy.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 **GnosisSafe**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-gnosissafe-
|
|
5
|
+
- **Build ID**: `etherscan-gnosissafe-4e6b14fa-1794548438816`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `982d607`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
10
|
- **Contracts**: 2
|
|
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **GnosisSafe**
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/gnosissafe@1.0.
|
|
15
|
+
npm install @gitmyabi/gnosissafe@1.0.224
|
|
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 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 ProxyAbi: 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
|
|
21
23
|
*/
|
|
22
|
-
export type
|
|
24
|
+
export type ProxyAbi = typeof ProxyAbi;
|
|
23
25
|
/**
|
|
24
|
-
* Contract instance type for
|
|
26
|
+
* Contract instance type for Proxy
|
|
25
27
|
*/
|
|
26
|
-
export type
|
|
28
|
+
export type ProxyContract = any;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* Proxy 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 GnosisSafeProxyContract = any;
|
|
|
33
35
|
* ```typescript
|
|
34
36
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
35
37
|
* import { mainnet } from 'viem/chains';
|
|
36
|
-
* import {
|
|
38
|
+
* import { Proxy } from 'Proxy';
|
|
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('0x...', { publicClient, walletClient });
|
|
42
44
|
*
|
|
43
45
|
* // Read functions
|
|
44
46
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -56,7 +58,7 @@ export type GnosisSafeProxyContract = any;
|
|
|
56
58
|
* });
|
|
57
59
|
* ```
|
|
58
60
|
*/
|
|
59
|
-
export declare class
|
|
61
|
+
export declare class Proxy {
|
|
60
62
|
private contract;
|
|
61
63
|
private contractAddress;
|
|
62
64
|
private publicClient;
|
|
@@ -71,7 +73,7 @@ export declare class GnosisSafeProxy {
|
|
|
71
73
|
/**
|
|
72
74
|
* Get the underlying viem contract instance.
|
|
73
75
|
*/
|
|
74
|
-
getContract():
|
|
76
|
+
getContract(): ProxyContract;
|
|
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 = exports.ProxyAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Proxy ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.ProxyAbi = [
|
|
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 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.GnosisSafeProxyAbi = [
|
|
|
33
35
|
* ```typescript
|
|
34
36
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
35
37
|
* import { mainnet } from 'viem/chains';
|
|
36
|
-
* import {
|
|
38
|
+
* import { Proxy } from 'Proxy';
|
|
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('0x...', { publicClient, walletClient });
|
|
42
44
|
*
|
|
43
45
|
* // Read functions
|
|
44
46
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -56,13 +58,13 @@ exports.GnosisSafeProxyAbi = [
|
|
|
56
58
|
* });
|
|
57
59
|
* ```
|
|
58
60
|
*/
|
|
59
|
-
class
|
|
61
|
+
class Proxy {
|
|
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.ProxyAbi,
|
|
66
68
|
client: {
|
|
67
69
|
public: clients.publicClient,
|
|
68
70
|
wallet: clients.walletClient,
|
|
@@ -100,4 +102,4 @@ class GnosisSafeProxy {
|
|
|
100
102
|
return {};
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
|
-
exports.
|
|
105
|
+
exports.Proxy = Proxy;
|
|
@@ -2,42 +2,44 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
|
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Proxy 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 ProxyAbi = [
|
|
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
|
|
29
31
|
*/
|
|
30
|
-
export type
|
|
32
|
+
export type ProxyAbi = typeof ProxyAbi;
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
|
-
* Contract instance type for
|
|
35
|
+
* Contract instance type for Proxy
|
|
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 ProxyContract = any;
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
42
|
+
* Proxy 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 GnosisSafeProxyContract = any;
|
|
|
45
47
|
* ```typescript
|
|
46
48
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
47
49
|
* import { mainnet } from 'viem/chains';
|
|
48
|
-
* import {
|
|
50
|
+
* import { Proxy } from 'Proxy';
|
|
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('0x...', { publicClient, walletClient });
|
|
54
56
|
*
|
|
55
57
|
* // Read functions
|
|
56
58
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -68,8 +70,8 @@ export type GnosisSafeProxyContract = any;
|
|
|
68
70
|
* });
|
|
69
71
|
* ```
|
|
70
72
|
*/
|
|
71
|
-
export class
|
|
72
|
-
private contract:
|
|
73
|
+
export class Proxy {
|
|
74
|
+
private contract: ProxyContract;
|
|
73
75
|
private contractAddress: Address;
|
|
74
76
|
private publicClient: PublicClient;
|
|
75
77
|
|
|
@@ -84,7 +86,7 @@ export class GnosisSafeProxy {
|
|
|
84
86
|
this.publicClient = clients.publicClient;
|
|
85
87
|
this.contract = getContract({
|
|
86
88
|
address,
|
|
87
|
-
abi:
|
|
89
|
+
abi: ProxyAbi,
|
|
88
90
|
client: {
|
|
89
91
|
public: clients.publicClient,
|
|
90
92
|
wallet: clients.walletClient,
|
|
@@ -102,7 +104,7 @@ export class GnosisSafeProxy {
|
|
|
102
104
|
/**
|
|
103
105
|
* Get the underlying viem contract instance.
|
|
104
106
|
*/
|
|
105
|
-
getContract():
|
|
107
|
+
getContract(): ProxyContract {
|
|
106
108
|
return this.contract;
|
|
107
109
|
}
|
|
108
110
|
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { GnosisSafeAbi, GnosisSafe } from './GnosisSafe';
|
|
2
2
|
export type { GnosisSafeAbi as GnosisSafeAbiType, GnosisSafeContract } from './GnosisSafe';
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
3
|
+
export { ProxyAbi, Proxy } from './Proxy';
|
|
4
|
+
export type { ProxyAbi as ProxyAbiType, ProxyContract } from './Proxy';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Proxy = exports.ProxyAbi = 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
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
package/contracts/index.ts
CHANGED
|
@@ -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 {
|
|
5
|
-
export type {
|
|
4
|
+
export { ProxyAbi, Proxy } from './Proxy';
|
|
5
|
+
export type { ProxyAbi as ProxyAbiType, ProxyContract } from './Proxy';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/gnosissafe",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-
|
|
3
|
+
"version": "1.0.224",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-4e6b14fa-1794548438816, commit 982d607, 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": "
|
|
42
|
+
"shortHash": "982d607"
|
|
43
43
|
}
|