@gitmyabi/gnosissafe 1.0.224 → 1.0.225
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/{Proxy.d.ts → GnosisSafeProxy.d.ts} +12 -14
- package/contracts/{Proxy.js → GnosisSafeProxy.js} +10 -12
- package/contracts/{Proxy.ts → GnosisSafeProxy.ts} +14 -16
- 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-8434dc70-1794619125035`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `b4581eb`
|
|
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.225
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
7
|
+
export declare const GnosisSafeProxyAbi: readonly [{
|
|
8
8
|
readonly inputs: readonly [{
|
|
9
9
|
readonly internalType: "address";
|
|
10
|
-
readonly name: "
|
|
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
|
|
20
|
+
* Type-safe ABI for GnosisSafeProxy
|
|
23
21
|
*/
|
|
24
|
-
export type
|
|
22
|
+
export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
|
|
25
23
|
/**
|
|
26
|
-
* Contract instance type for
|
|
24
|
+
* Contract instance type for GnosisSafeProxy
|
|
27
25
|
*/
|
|
28
|
-
export type
|
|
26
|
+
export type GnosisSafeProxyContract = any;
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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():
|
|
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.
|
|
3
|
+
exports.GnosisSafeProxy = exports.GnosisSafeProxyAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* GnosisSafeProxy ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.GnosisSafeProxyAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
14
14
|
"internalType": "address",
|
|
15
|
-
"name": "
|
|
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
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
-
*
|
|
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
|
|
9
|
+
export const GnosisSafeProxyAbi = [
|
|
10
10
|
{
|
|
11
11
|
"inputs": [
|
|
12
12
|
{
|
|
13
13
|
"internalType": "address",
|
|
14
|
-
"name": "
|
|
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
|
|
28
|
+
* Type-safe ABI for GnosisSafeProxy
|
|
31
29
|
*/
|
|
32
|
-
export type
|
|
30
|
+
export type GnosisSafeProxyAbi = typeof GnosisSafeProxyAbi;
|
|
33
31
|
|
|
34
32
|
/**
|
|
35
|
-
* Contract instance type for
|
|
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
|
|
37
|
+
export type GnosisSafeProxyContract = any;
|
|
40
38
|
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
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 {
|
|
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
|
|
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
|
|
74
|
-
private contract:
|
|
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:
|
|
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():
|
|
105
|
+
getContract(): GnosisSafeProxyContract {
|
|
108
106
|
return this.contract;
|
|
109
107
|
}
|
|
110
108
|
|
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 { GnosisSafeProxyAbi, GnosisSafeProxy } from './GnosisSafeProxy';
|
|
4
|
+
export type { GnosisSafeProxyAbi as GnosisSafeProxyAbiType, GnosisSafeProxyContract } from './GnosisSafeProxy';
|
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.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
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
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 { 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.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-
|
|
3
|
+
"version": "1.0.225",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-8434dc70-1794619125035, commit b4581eb, 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": "b4581eb"
|
|
43
43
|
}
|