@gitmyabi/gnosissafe 1.0.8 → 1.0.9
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 +5 -5
- package/contracts/GnosisSafe_json.d.ts +201 -243
- package/contracts/GnosisSafe_json.js +205 -310
- package/contracts/GnosisSafe_json.ts +238 -323
- package/contracts/index.d.ts +0 -2
- package/contracts/index.js +1 -4
- package/contracts/index.ts +0 -2
- package/package.json +3 -3
- package/contracts/GnosisSafeProxy_json.d.ts +0 -87
- package/contracts/GnosisSafeProxy_json.js +0 -103
- package/contracts/GnosisSafeProxy_json.ts +0 -132
package/contracts/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { GnosisSafeProxy_jsonAbi, GnosisSafeProxy_json } from './GnosisSafeProxy_json';
|
|
2
|
-
export type { GnosisSafeProxy_jsonAbi as GnosisSafeProxy_jsonAbiType, GnosisSafeProxy_jsonContract } from './GnosisSafeProxy_json';
|
|
3
1
|
export { GnosisSafe_jsonAbi, GnosisSafe_json } from './GnosisSafe_json';
|
|
4
2
|
export type { GnosisSafe_jsonAbi as GnosisSafe_jsonAbiType, GnosisSafe_jsonContract } from './GnosisSafe_json';
|
package/contracts/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GnosisSafe_json = exports.GnosisSafe_jsonAbi =
|
|
3
|
+
exports.GnosisSafe_json = exports.GnosisSafe_jsonAbi = void 0;
|
|
4
4
|
// Auto-generated exports for all contracts
|
|
5
|
-
var GnosisSafeProxy_json_1 = require("./GnosisSafeProxy_json");
|
|
6
|
-
Object.defineProperty(exports, "GnosisSafeProxy_jsonAbi", { enumerable: true, get: function () { return GnosisSafeProxy_json_1.GnosisSafeProxy_jsonAbi; } });
|
|
7
|
-
Object.defineProperty(exports, "GnosisSafeProxy_json", { enumerable: true, get: function () { return GnosisSafeProxy_json_1.GnosisSafeProxy_json; } });
|
|
8
5
|
var GnosisSafe_json_1 = require("./GnosisSafe_json");
|
|
9
6
|
Object.defineProperty(exports, "GnosisSafe_jsonAbi", { enumerable: true, get: function () { return GnosisSafe_json_1.GnosisSafe_jsonAbi; } });
|
|
10
7
|
Object.defineProperty(exports, "GnosisSafe_json", { enumerable: true, get: function () { return GnosisSafe_json_1.GnosisSafe_json; } });
|
package/contracts/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
// Auto-generated exports for all contracts
|
|
2
|
-
export { GnosisSafeProxy_jsonAbi, GnosisSafeProxy_json } from './GnosisSafeProxy_json';
|
|
3
|
-
export type { GnosisSafeProxy_jsonAbi as GnosisSafeProxy_jsonAbiType, GnosisSafeProxy_jsonContract } from './GnosisSafeProxy_json';
|
|
4
2
|
export { GnosisSafe_jsonAbi, GnosisSafe_json } from './GnosisSafe_json';
|
|
5
3
|
export type { GnosisSafe_jsonAbi as GnosisSafe_jsonAbiType, GnosisSafe_jsonContract } from './GnosisSafe_json';
|
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.9",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for GnosisSafe (build etherscan-gnosissafe-34cfac64-1785717112381, commit 2898aba, 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": "2898aba"
|
|
43
43
|
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* GnosisSafeProxy_json ABI
|
|
4
|
-
*
|
|
5
|
-
* This ABI is typed using viem's type system for full type safety.
|
|
6
|
-
*/
|
|
7
|
-
export declare const GnosisSafeProxy_jsonAbi: readonly [{
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly internalType: "address";
|
|
10
|
-
readonly name: "_singleton";
|
|
11
|
-
readonly type: "address";
|
|
12
|
-
}];
|
|
13
|
-
readonly stateMutability: "nonpayable";
|
|
14
|
-
readonly type: "constructor";
|
|
15
|
-
}, {
|
|
16
|
-
readonly stateMutability: "payable";
|
|
17
|
-
readonly type: "fallback";
|
|
18
|
-
}];
|
|
19
|
-
/**
|
|
20
|
-
* Type-safe ABI for GnosisSafeProxy_json
|
|
21
|
-
*/
|
|
22
|
-
export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
|
|
23
|
-
/**
|
|
24
|
-
* Contract instance type for GnosisSafeProxy_json
|
|
25
|
-
*/
|
|
26
|
-
export type GnosisSafeProxy_jsonContract = any;
|
|
27
|
-
/**
|
|
28
|
-
* GnosisSafeProxy_json Contract Class
|
|
29
|
-
*
|
|
30
|
-
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
35
|
-
* import { mainnet } from 'viem/chains';
|
|
36
|
-
* import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
|
|
37
|
-
*
|
|
38
|
-
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
39
|
-
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
40
|
-
*
|
|
41
|
-
* const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
|
|
42
|
-
*
|
|
43
|
-
* // Read functions
|
|
44
|
-
* const result = await contract.balanceOf('0x...');
|
|
45
|
-
*
|
|
46
|
-
* // Write functions
|
|
47
|
-
* const hash = await contract.transfer('0x...', 1000n);
|
|
48
|
-
*
|
|
49
|
-
* // Simulate transactions (dry-run)
|
|
50
|
-
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
51
|
-
* console.log('Gas estimate:', simulation.request.gas);
|
|
52
|
-
*
|
|
53
|
-
* // Watch events
|
|
54
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
55
|
-
* console.log('Transfer event:', event);
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare class GnosisSafeProxy_json {
|
|
60
|
-
private contract;
|
|
61
|
-
private contractAddress;
|
|
62
|
-
private publicClient;
|
|
63
|
-
constructor(address: Address, clients: {
|
|
64
|
-
publicClient: PublicClient;
|
|
65
|
-
walletClient?: WalletClient;
|
|
66
|
-
});
|
|
67
|
-
/**
|
|
68
|
-
* Get the contract address
|
|
69
|
-
*/
|
|
70
|
-
get address(): Address;
|
|
71
|
-
/**
|
|
72
|
-
* Get the underlying viem contract instance
|
|
73
|
-
*/
|
|
74
|
-
getContract(): GnosisSafeProxy_jsonContract;
|
|
75
|
-
/**
|
|
76
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
77
|
-
*
|
|
78
|
-
* Note: This contract has no write functions, so simulate returns an empty object.
|
|
79
|
-
*/
|
|
80
|
-
get simulate(): {};
|
|
81
|
-
/**
|
|
82
|
-
* Watch contract events
|
|
83
|
-
*
|
|
84
|
-
* Note: This contract has no events, so watch returns an empty object.
|
|
85
|
-
*/
|
|
86
|
-
get watch(): {};
|
|
87
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GnosisSafeProxy_json = exports.GnosisSafeProxy_jsonAbi = void 0;
|
|
4
|
-
const viem_1 = require("viem");
|
|
5
|
-
/**
|
|
6
|
-
* GnosisSafeProxy_json ABI
|
|
7
|
-
*
|
|
8
|
-
* This ABI is typed using viem's type system for full type safety.
|
|
9
|
-
*/
|
|
10
|
-
exports.GnosisSafeProxy_jsonAbi = [
|
|
11
|
-
{
|
|
12
|
-
"inputs": [
|
|
13
|
-
{
|
|
14
|
-
"internalType": "address",
|
|
15
|
-
"name": "_singleton",
|
|
16
|
-
"type": "address"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"stateMutability": "nonpayable",
|
|
20
|
-
"type": "constructor"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"stateMutability": "payable",
|
|
24
|
-
"type": "fallback"
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
/**
|
|
28
|
-
* GnosisSafeProxy_json Contract Class
|
|
29
|
-
*
|
|
30
|
-
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
35
|
-
* import { mainnet } from 'viem/chains';
|
|
36
|
-
* import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
|
|
37
|
-
*
|
|
38
|
-
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
39
|
-
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
40
|
-
*
|
|
41
|
-
* const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
|
|
42
|
-
*
|
|
43
|
-
* // Read functions
|
|
44
|
-
* const result = await contract.balanceOf('0x...');
|
|
45
|
-
*
|
|
46
|
-
* // Write functions
|
|
47
|
-
* const hash = await contract.transfer('0x...', 1000n);
|
|
48
|
-
*
|
|
49
|
-
* // Simulate transactions (dry-run)
|
|
50
|
-
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
51
|
-
* console.log('Gas estimate:', simulation.request.gas);
|
|
52
|
-
*
|
|
53
|
-
* // Watch events
|
|
54
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
55
|
-
* console.log('Transfer event:', event);
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
class GnosisSafeProxy_json {
|
|
60
|
-
constructor(address, clients) {
|
|
61
|
-
this.contractAddress = address;
|
|
62
|
-
this.publicClient = clients.publicClient;
|
|
63
|
-
this.contract = (0, viem_1.getContract)({
|
|
64
|
-
address,
|
|
65
|
-
abi: exports.GnosisSafeProxy_jsonAbi,
|
|
66
|
-
client: {
|
|
67
|
-
public: clients.publicClient,
|
|
68
|
-
wallet: clients.walletClient,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Get the contract address
|
|
74
|
-
*/
|
|
75
|
-
get address() {
|
|
76
|
-
return this.contractAddress;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Get the underlying viem contract instance
|
|
80
|
-
*/
|
|
81
|
-
getContract() {
|
|
82
|
-
return this.contract;
|
|
83
|
-
}
|
|
84
|
-
// No read functions
|
|
85
|
-
// No write functions
|
|
86
|
-
/**
|
|
87
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
88
|
-
*
|
|
89
|
-
* Note: This contract has no write functions, so simulate returns an empty object.
|
|
90
|
-
*/
|
|
91
|
-
get simulate() {
|
|
92
|
-
return {};
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Watch contract events
|
|
96
|
-
*
|
|
97
|
-
* Note: This contract has no events, so watch returns an empty object.
|
|
98
|
-
*/
|
|
99
|
-
get watch() {
|
|
100
|
-
return {};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.GnosisSafeProxy_json = GnosisSafeProxy_json;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
|
-
import { getContract } from 'viem';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* GnosisSafeProxy_json ABI
|
|
6
|
-
*
|
|
7
|
-
* This ABI is typed using viem's type system for full type safety.
|
|
8
|
-
*/
|
|
9
|
-
export const GnosisSafeProxy_jsonAbi = [
|
|
10
|
-
{
|
|
11
|
-
"inputs": [
|
|
12
|
-
{
|
|
13
|
-
"internalType": "address",
|
|
14
|
-
"name": "_singleton",
|
|
15
|
-
"type": "address"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"stateMutability": "nonpayable",
|
|
19
|
-
"type": "constructor"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"stateMutability": "payable",
|
|
23
|
-
"type": "fallback"
|
|
24
|
-
}
|
|
25
|
-
] as const satisfies Abi;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Type-safe ABI for GnosisSafeProxy_json
|
|
29
|
-
*/
|
|
30
|
-
export type GnosisSafeProxy_jsonAbi = typeof GnosisSafeProxy_jsonAbi;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Contract instance type for GnosisSafeProxy_json
|
|
34
|
-
*/
|
|
35
|
-
// Use any for contract type to avoid complex viem type issues
|
|
36
|
-
// The runtime behavior is type-safe through viem's ABI typing
|
|
37
|
-
export type GnosisSafeProxy_jsonContract = any;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* GnosisSafeProxy_json Contract Class
|
|
41
|
-
*
|
|
42
|
-
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
47
|
-
* import { mainnet } from 'viem/chains';
|
|
48
|
-
* import { GnosisSafeProxy_json } from 'GnosisSafeProxy_json';
|
|
49
|
-
*
|
|
50
|
-
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
51
|
-
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
52
|
-
*
|
|
53
|
-
* const contract = new GnosisSafeProxy_json('0x...', { publicClient, walletClient });
|
|
54
|
-
*
|
|
55
|
-
* // Read functions
|
|
56
|
-
* const result = await contract.balanceOf('0x...');
|
|
57
|
-
*
|
|
58
|
-
* // Write functions
|
|
59
|
-
* const hash = await contract.transfer('0x...', 1000n);
|
|
60
|
-
*
|
|
61
|
-
* // Simulate transactions (dry-run)
|
|
62
|
-
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
63
|
-
* console.log('Gas estimate:', simulation.request.gas);
|
|
64
|
-
*
|
|
65
|
-
* // Watch events
|
|
66
|
-
* const unwatch = contract.watch.Transfer((event) => {
|
|
67
|
-
* console.log('Transfer event:', event);
|
|
68
|
-
* });
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export class GnosisSafeProxy_json {
|
|
72
|
-
private contract: GnosisSafeProxy_jsonContract;
|
|
73
|
-
private contractAddress: Address;
|
|
74
|
-
private publicClient: PublicClient;
|
|
75
|
-
|
|
76
|
-
constructor(
|
|
77
|
-
address: Address,
|
|
78
|
-
clients: {
|
|
79
|
-
publicClient: PublicClient;
|
|
80
|
-
walletClient?: WalletClient;
|
|
81
|
-
}
|
|
82
|
-
) {
|
|
83
|
-
this.contractAddress = address;
|
|
84
|
-
this.publicClient = clients.publicClient;
|
|
85
|
-
this.contract = getContract({
|
|
86
|
-
address,
|
|
87
|
-
abi: GnosisSafeProxy_jsonAbi,
|
|
88
|
-
client: {
|
|
89
|
-
public: clients.publicClient,
|
|
90
|
-
wallet: clients.walletClient,
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Get the contract address
|
|
97
|
-
*/
|
|
98
|
-
get address(): Address {
|
|
99
|
-
return this.contractAddress;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Get the underlying viem contract instance
|
|
104
|
-
*/
|
|
105
|
-
getContract(): GnosisSafeProxy_jsonContract {
|
|
106
|
-
return this.contract;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// No read functions
|
|
110
|
-
|
|
111
|
-
// No write functions
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Simulate contract write operations (dry-run without sending transaction)
|
|
117
|
-
*
|
|
118
|
-
* Note: This contract has no write functions, so simulate returns an empty object.
|
|
119
|
-
*/
|
|
120
|
-
get simulate() {
|
|
121
|
-
return {};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Watch contract events
|
|
126
|
-
*
|
|
127
|
-
* Note: This contract has no events, so watch returns an empty object.
|
|
128
|
-
*/
|
|
129
|
-
get watch() {
|
|
130
|
-
return {};
|
|
131
|
-
}
|
|
132
|
-
}
|