@gitmyabi/basewallet 1.0.1 → 1.0.3
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/BaseWallet_json.d.ts +159 -171
- package/contracts/BaseWallet_json.js +187 -200
- package/contracts/BaseWallet_json.ts +191 -204
- 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/Proxy_json.d.ts +0 -132
- package/contracts/Proxy_json.js +0 -159
- package/contracts/Proxy_json.ts +0 -188
package/README.md
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Auto-generated TypeScript type bindings for **BaseWallet**
|
|
4
4
|
|
|
5
|
-
- **Build ID**: `etherscan-basewallet-
|
|
5
|
+
- **Build ID**: `etherscan-basewallet-b6d64221-1790544139002`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
7
|
+
- **Commit**: `b3f2bbc`
|
|
8
8
|
- **Branch**: `etherscan`
|
|
9
9
|
- **Target**: `ethers-v6`
|
|
10
|
-
- **Contracts**:
|
|
10
|
+
- **Contracts**: 1
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install @gitmyabi/basewallet@1.0.
|
|
15
|
+
npm install @gitmyabi/basewallet@1.0.3
|
|
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
|
|
104
|
+
This package includes type bindings for 1 contract(s) generated from ABI artifacts.
|
|
105
105
|
|
|
106
106
|
## License
|
|
107
107
|
|
|
@@ -5,228 +5,216 @@ import type { Address, PublicClient, WalletClient } from 'viem';
|
|
|
5
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
6
6
|
*/
|
|
7
7
|
export declare const BaseWallet_jsonAbi: readonly [{
|
|
8
|
-
readonly
|
|
8
|
+
readonly constant: false;
|
|
9
9
|
readonly inputs: readonly [{
|
|
10
|
-
readonly
|
|
11
|
-
readonly internalType: "address";
|
|
12
|
-
readonly name: "module";
|
|
10
|
+
readonly name: "_newOwner";
|
|
13
11
|
readonly type: "address";
|
|
14
|
-
}, {
|
|
15
|
-
readonly indexed: false;
|
|
16
|
-
readonly internalType: "bool";
|
|
17
|
-
readonly name: "value";
|
|
18
|
-
readonly type: "bool";
|
|
19
12
|
}];
|
|
20
|
-
readonly name: "
|
|
21
|
-
readonly
|
|
13
|
+
readonly name: "setOwner";
|
|
14
|
+
readonly outputs: readonly [];
|
|
15
|
+
readonly payable: false;
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
readonly type: "function";
|
|
22
18
|
}, {
|
|
23
|
-
readonly
|
|
19
|
+
readonly constant: false;
|
|
24
20
|
readonly inputs: readonly [{
|
|
25
|
-
readonly
|
|
26
|
-
readonly internalType: "address";
|
|
27
|
-
readonly name: "module";
|
|
21
|
+
readonly name: "_module";
|
|
28
22
|
readonly type: "address";
|
|
29
23
|
}, {
|
|
30
|
-
readonly
|
|
31
|
-
readonly internalType: "bytes4";
|
|
32
|
-
readonly name: "method";
|
|
24
|
+
readonly name: "_method";
|
|
33
25
|
readonly type: "bytes4";
|
|
34
26
|
}];
|
|
35
|
-
readonly name: "
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly indexed: true;
|
|
41
|
-
readonly internalType: "address";
|
|
42
|
-
readonly name: "module";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}, {
|
|
45
|
-
readonly indexed: true;
|
|
46
|
-
readonly internalType: "address";
|
|
47
|
-
readonly name: "target";
|
|
48
|
-
readonly type: "address";
|
|
49
|
-
}, {
|
|
50
|
-
readonly indexed: true;
|
|
51
|
-
readonly internalType: "uint256";
|
|
52
|
-
readonly name: "value";
|
|
53
|
-
readonly type: "uint256";
|
|
54
|
-
}, {
|
|
55
|
-
readonly indexed: false;
|
|
56
|
-
readonly internalType: "bytes";
|
|
57
|
-
readonly name: "data";
|
|
58
|
-
readonly type: "bytes";
|
|
59
|
-
}];
|
|
60
|
-
readonly name: "Invoked";
|
|
61
|
-
readonly type: "event";
|
|
62
|
-
}, {
|
|
63
|
-
readonly anonymous: false;
|
|
64
|
-
readonly inputs: readonly [{
|
|
65
|
-
readonly indexed: false;
|
|
66
|
-
readonly internalType: "address";
|
|
67
|
-
readonly name: "owner";
|
|
68
|
-
readonly type: "address";
|
|
69
|
-
}];
|
|
70
|
-
readonly name: "OwnerChanged";
|
|
71
|
-
readonly type: "event";
|
|
72
|
-
}, {
|
|
73
|
-
readonly anonymous: false;
|
|
74
|
-
readonly inputs: readonly [{
|
|
75
|
-
readonly indexed: true;
|
|
76
|
-
readonly internalType: "uint256";
|
|
77
|
-
readonly name: "value";
|
|
78
|
-
readonly type: "uint256";
|
|
79
|
-
}, {
|
|
80
|
-
readonly indexed: true;
|
|
81
|
-
readonly internalType: "address";
|
|
82
|
-
readonly name: "sender";
|
|
83
|
-
readonly type: "address";
|
|
84
|
-
}, {
|
|
85
|
-
readonly indexed: false;
|
|
86
|
-
readonly internalType: "bytes";
|
|
87
|
-
readonly name: "data";
|
|
88
|
-
readonly type: "bytes";
|
|
89
|
-
}];
|
|
90
|
-
readonly name: "Received";
|
|
91
|
-
readonly type: "event";
|
|
92
|
-
}, {
|
|
93
|
-
readonly stateMutability: "payable";
|
|
94
|
-
readonly type: "fallback";
|
|
27
|
+
readonly name: "enableStaticCall";
|
|
28
|
+
readonly outputs: readonly [];
|
|
29
|
+
readonly payable: false;
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
readonly type: "function";
|
|
95
32
|
}, {
|
|
33
|
+
readonly constant: false;
|
|
96
34
|
readonly inputs: readonly [{
|
|
97
|
-
readonly internalType: "address";
|
|
98
35
|
readonly name: "_module";
|
|
99
36
|
readonly type: "address";
|
|
100
37
|
}, {
|
|
101
|
-
readonly internalType: "bool";
|
|
102
38
|
readonly name: "_value";
|
|
103
39
|
readonly type: "bool";
|
|
104
40
|
}];
|
|
105
41
|
readonly name: "authoriseModule";
|
|
106
42
|
readonly outputs: readonly [];
|
|
43
|
+
readonly payable: false;
|
|
107
44
|
readonly stateMutability: "nonpayable";
|
|
108
45
|
readonly type: "function";
|
|
109
46
|
}, {
|
|
47
|
+
readonly constant: false;
|
|
110
48
|
readonly inputs: readonly [{
|
|
111
|
-
readonly
|
|
112
|
-
readonly name: "";
|
|
49
|
+
readonly name: "_owner";
|
|
113
50
|
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "_modules";
|
|
53
|
+
readonly type: "address[]";
|
|
114
54
|
}];
|
|
115
|
-
readonly name: "
|
|
116
|
-
readonly outputs: readonly [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
readonly type: "bool";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "view";
|
|
55
|
+
readonly name: "init";
|
|
56
|
+
readonly outputs: readonly [];
|
|
57
|
+
readonly payable: false;
|
|
58
|
+
readonly stateMutability: "nonpayable";
|
|
122
59
|
readonly type: "function";
|
|
123
60
|
}, {
|
|
124
|
-
readonly
|
|
125
|
-
|
|
126
|
-
|
|
61
|
+
readonly constant: true;
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "implementation";
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly name: "";
|
|
127
66
|
readonly type: "address";
|
|
128
|
-
}, {
|
|
129
|
-
readonly internalType: "bytes4";
|
|
130
|
-
readonly name: "_method";
|
|
131
|
-
readonly type: "bytes4";
|
|
132
67
|
}];
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly stateMutability: "nonpayable";
|
|
68
|
+
readonly payable: false;
|
|
69
|
+
readonly stateMutability: "view";
|
|
136
70
|
readonly type: "function";
|
|
137
71
|
}, {
|
|
72
|
+
readonly constant: true;
|
|
138
73
|
readonly inputs: readonly [{
|
|
139
|
-
readonly internalType: "bytes4";
|
|
140
74
|
readonly name: "";
|
|
141
75
|
readonly type: "bytes4";
|
|
142
76
|
}];
|
|
143
77
|
readonly name: "enabled";
|
|
144
78
|
readonly outputs: readonly [{
|
|
145
|
-
readonly internalType: "address";
|
|
146
79
|
readonly name: "";
|
|
147
80
|
readonly type: "address";
|
|
148
81
|
}];
|
|
82
|
+
readonly payable: false;
|
|
149
83
|
readonly stateMutability: "view";
|
|
150
84
|
readonly type: "function";
|
|
151
85
|
}, {
|
|
86
|
+
readonly constant: true;
|
|
152
87
|
readonly inputs: readonly [];
|
|
153
|
-
readonly name: "
|
|
88
|
+
readonly name: "owner";
|
|
154
89
|
readonly outputs: readonly [{
|
|
155
|
-
readonly internalType: "address";
|
|
156
90
|
readonly name: "";
|
|
157
91
|
readonly type: "address";
|
|
158
92
|
}];
|
|
93
|
+
readonly payable: false;
|
|
159
94
|
readonly stateMutability: "view";
|
|
160
95
|
readonly type: "function";
|
|
161
96
|
}, {
|
|
97
|
+
readonly constant: false;
|
|
162
98
|
readonly inputs: readonly [{
|
|
163
|
-
readonly internalType: "address";
|
|
164
|
-
readonly name: "_owner";
|
|
165
|
-
readonly type: "address";
|
|
166
|
-
}, {
|
|
167
|
-
readonly internalType: "address[]";
|
|
168
|
-
readonly name: "_modules";
|
|
169
|
-
readonly type: "address[]";
|
|
170
|
-
}];
|
|
171
|
-
readonly name: "init";
|
|
172
|
-
readonly outputs: readonly [];
|
|
173
|
-
readonly stateMutability: "nonpayable";
|
|
174
|
-
readonly type: "function";
|
|
175
|
-
}, {
|
|
176
|
-
readonly inputs: readonly [{
|
|
177
|
-
readonly internalType: "address";
|
|
178
99
|
readonly name: "_target";
|
|
179
100
|
readonly type: "address";
|
|
180
101
|
}, {
|
|
181
|
-
readonly internalType: "uint256";
|
|
182
102
|
readonly name: "_value";
|
|
183
103
|
readonly type: "uint256";
|
|
184
104
|
}, {
|
|
185
|
-
readonly internalType: "bytes";
|
|
186
105
|
readonly name: "_data";
|
|
187
106
|
readonly type: "bytes";
|
|
188
107
|
}];
|
|
189
108
|
readonly name: "invoke";
|
|
190
109
|
readonly outputs: readonly [{
|
|
191
|
-
readonly internalType: "bytes";
|
|
192
110
|
readonly name: "_result";
|
|
193
111
|
readonly type: "bytes";
|
|
194
112
|
}];
|
|
113
|
+
readonly payable: false;
|
|
195
114
|
readonly stateMutability: "nonpayable";
|
|
196
115
|
readonly type: "function";
|
|
197
116
|
}, {
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
117
|
+
readonly constant: true;
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "authorised";
|
|
200
123
|
readonly outputs: readonly [{
|
|
201
|
-
readonly internalType: "uint256";
|
|
202
124
|
readonly name: "";
|
|
203
|
-
readonly type: "
|
|
125
|
+
readonly type: "bool";
|
|
204
126
|
}];
|
|
127
|
+
readonly payable: false;
|
|
205
128
|
readonly stateMutability: "view";
|
|
206
129
|
readonly type: "function";
|
|
207
130
|
}, {
|
|
131
|
+
readonly constant: true;
|
|
208
132
|
readonly inputs: readonly [];
|
|
209
|
-
readonly name: "
|
|
133
|
+
readonly name: "modules";
|
|
210
134
|
readonly outputs: readonly [{
|
|
211
|
-
readonly internalType: "address";
|
|
212
135
|
readonly name: "";
|
|
213
|
-
readonly type: "
|
|
136
|
+
readonly type: "uint256";
|
|
214
137
|
}];
|
|
138
|
+
readonly payable: false;
|
|
215
139
|
readonly stateMutability: "view";
|
|
216
140
|
readonly type: "function";
|
|
217
141
|
}, {
|
|
142
|
+
readonly payable: true;
|
|
143
|
+
readonly stateMutability: "payable";
|
|
144
|
+
readonly type: "fallback";
|
|
145
|
+
}, {
|
|
146
|
+
readonly anonymous: false;
|
|
218
147
|
readonly inputs: readonly [{
|
|
219
|
-
readonly
|
|
220
|
-
readonly name: "
|
|
148
|
+
readonly indexed: true;
|
|
149
|
+
readonly name: "module";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly indexed: false;
|
|
153
|
+
readonly name: "value";
|
|
154
|
+
readonly type: "bool";
|
|
155
|
+
}];
|
|
156
|
+
readonly name: "AuthorisedModule";
|
|
157
|
+
readonly type: "event";
|
|
158
|
+
}, {
|
|
159
|
+
readonly anonymous: false;
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly indexed: true;
|
|
162
|
+
readonly name: "module";
|
|
221
163
|
readonly type: "address";
|
|
164
|
+
}, {
|
|
165
|
+
readonly indexed: true;
|
|
166
|
+
readonly name: "method";
|
|
167
|
+
readonly type: "bytes4";
|
|
222
168
|
}];
|
|
223
|
-
readonly name: "
|
|
224
|
-
readonly
|
|
225
|
-
readonly stateMutability: "nonpayable";
|
|
226
|
-
readonly type: "function";
|
|
169
|
+
readonly name: "EnabledStaticCall";
|
|
170
|
+
readonly type: "event";
|
|
227
171
|
}, {
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
172
|
+
readonly anonymous: false;
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly indexed: true;
|
|
175
|
+
readonly name: "module";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: true;
|
|
179
|
+
readonly name: "target";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}, {
|
|
182
|
+
readonly indexed: true;
|
|
183
|
+
readonly name: "value";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
}, {
|
|
186
|
+
readonly indexed: false;
|
|
187
|
+
readonly name: "data";
|
|
188
|
+
readonly type: "bytes";
|
|
189
|
+
}];
|
|
190
|
+
readonly name: "Invoked";
|
|
191
|
+
readonly type: "event";
|
|
192
|
+
}, {
|
|
193
|
+
readonly anonymous: false;
|
|
194
|
+
readonly inputs: readonly [{
|
|
195
|
+
readonly indexed: true;
|
|
196
|
+
readonly name: "value";
|
|
197
|
+
readonly type: "uint256";
|
|
198
|
+
}, {
|
|
199
|
+
readonly indexed: true;
|
|
200
|
+
readonly name: "sender";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
}, {
|
|
203
|
+
readonly indexed: false;
|
|
204
|
+
readonly name: "data";
|
|
205
|
+
readonly type: "bytes";
|
|
206
|
+
}];
|
|
207
|
+
readonly name: "Received";
|
|
208
|
+
readonly type: "event";
|
|
209
|
+
}, {
|
|
210
|
+
readonly anonymous: false;
|
|
211
|
+
readonly inputs: readonly [{
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly name: "owner";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}];
|
|
216
|
+
readonly name: "OwnerChanged";
|
|
217
|
+
readonly type: "event";
|
|
230
218
|
}];
|
|
231
219
|
/**
|
|
232
220
|
* Type-safe ABI for BaseWallet_json
|
|
@@ -285,36 +273,36 @@ export declare class BaseWallet_json {
|
|
|
285
273
|
*/
|
|
286
274
|
getContract(): BaseWallet_jsonContract;
|
|
287
275
|
/**
|
|
288
|
-
*
|
|
276
|
+
* implementation
|
|
289
277
|
* view
|
|
290
278
|
*/
|
|
291
|
-
|
|
279
|
+
implementation(): Promise<`0x${string}`>;
|
|
292
280
|
/**
|
|
293
281
|
* enabled
|
|
294
282
|
* view
|
|
295
283
|
*/
|
|
296
284
|
enabled(arg0: `0x${string}`): Promise<`0x${string}`>;
|
|
297
285
|
/**
|
|
298
|
-
*
|
|
286
|
+
* owner
|
|
299
287
|
* view
|
|
300
288
|
*/
|
|
301
|
-
|
|
289
|
+
owner(): Promise<`0x${string}`>;
|
|
302
290
|
/**
|
|
303
|
-
*
|
|
291
|
+
* authorised
|
|
304
292
|
* view
|
|
305
293
|
*/
|
|
306
|
-
|
|
294
|
+
authorised(arg0: `0x${string}`): Promise<boolean>;
|
|
307
295
|
/**
|
|
308
|
-
*
|
|
296
|
+
* modules
|
|
309
297
|
* view
|
|
310
298
|
*/
|
|
311
|
-
|
|
299
|
+
modules(): Promise<bigint>;
|
|
312
300
|
/**
|
|
313
|
-
*
|
|
301
|
+
* setOwner
|
|
314
302
|
* nonpayable
|
|
315
303
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
316
304
|
*/
|
|
317
|
-
|
|
305
|
+
setOwner(_newOwner: `0x${string}`, options?: {
|
|
318
306
|
accessList?: import('viem').AccessList;
|
|
319
307
|
authorizationList?: import('viem').AuthorizationList;
|
|
320
308
|
chain?: import('viem').Chain | null;
|
|
@@ -344,11 +332,11 @@ export declare class BaseWallet_json {
|
|
|
344
332
|
value?: bigint;
|
|
345
333
|
}): Promise<`0x${string}`>;
|
|
346
334
|
/**
|
|
347
|
-
*
|
|
335
|
+
* authoriseModule
|
|
348
336
|
* nonpayable
|
|
349
337
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
350
338
|
*/
|
|
351
|
-
|
|
339
|
+
authoriseModule(_module: `0x${string}`, _value: boolean, options?: {
|
|
352
340
|
accessList?: import('viem').AccessList;
|
|
353
341
|
authorizationList?: import('viem').AuthorizationList;
|
|
354
342
|
chain?: import('viem').Chain | null;
|
|
@@ -361,11 +349,11 @@ export declare class BaseWallet_json {
|
|
|
361
349
|
value?: bigint;
|
|
362
350
|
}): Promise<`0x${string}`>;
|
|
363
351
|
/**
|
|
364
|
-
*
|
|
352
|
+
* init
|
|
365
353
|
* nonpayable
|
|
366
354
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
367
355
|
*/
|
|
368
|
-
|
|
356
|
+
init(_owner: `0x${string}`, _modules: `0x${string}`[], options?: {
|
|
369
357
|
accessList?: import('viem').AccessList;
|
|
370
358
|
authorizationList?: import('viem').AuthorizationList;
|
|
371
359
|
chain?: import('viem').Chain | null;
|
|
@@ -378,11 +366,11 @@ export declare class BaseWallet_json {
|
|
|
378
366
|
value?: bigint;
|
|
379
367
|
}): Promise<`0x${string}`>;
|
|
380
368
|
/**
|
|
381
|
-
*
|
|
369
|
+
* invoke
|
|
382
370
|
* nonpayable
|
|
383
371
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
384
372
|
*/
|
|
385
|
-
|
|
373
|
+
invoke(_target: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
386
374
|
accessList?: import('viem').AccessList;
|
|
387
375
|
authorizationList?: import('viem').AuthorizationList;
|
|
388
376
|
chain?: import('viem').Chain | null;
|
|
@@ -404,11 +392,11 @@ export declare class BaseWallet_json {
|
|
|
404
392
|
*/
|
|
405
393
|
get simulate(): {
|
|
406
394
|
/**
|
|
407
|
-
* Simulate
|
|
395
|
+
* Simulate setOwner
|
|
408
396
|
* Returns gas estimate and result without sending transaction
|
|
409
397
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
410
398
|
*/
|
|
411
|
-
|
|
399
|
+
setOwner(_newOwner: `0x${string}`, options?: {
|
|
412
400
|
accessList?: import("viem").AccessList;
|
|
413
401
|
authorizationList?: import("viem").AuthorizationList;
|
|
414
402
|
chain?: import("viem").Chain | null;
|
|
@@ -438,11 +426,11 @@ export declare class BaseWallet_json {
|
|
|
438
426
|
value?: bigint;
|
|
439
427
|
}): Promise<void>;
|
|
440
428
|
/**
|
|
441
|
-
* Simulate
|
|
429
|
+
* Simulate authoriseModule
|
|
442
430
|
* Returns gas estimate and result without sending transaction
|
|
443
431
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
444
432
|
*/
|
|
445
|
-
|
|
433
|
+
authoriseModule(_module: `0x${string}`, _value: boolean, options?: {
|
|
446
434
|
accessList?: import("viem").AccessList;
|
|
447
435
|
authorizationList?: import("viem").AuthorizationList;
|
|
448
436
|
chain?: import("viem").Chain | null;
|
|
@@ -455,11 +443,11 @@ export declare class BaseWallet_json {
|
|
|
455
443
|
value?: bigint;
|
|
456
444
|
}): Promise<void>;
|
|
457
445
|
/**
|
|
458
|
-
* Simulate
|
|
446
|
+
* Simulate init
|
|
459
447
|
* Returns gas estimate and result without sending transaction
|
|
460
448
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
461
449
|
*/
|
|
462
|
-
|
|
450
|
+
init(_owner: `0x${string}`, _modules: `0x${string}`[], options?: {
|
|
463
451
|
accessList?: import("viem").AccessList;
|
|
464
452
|
authorizationList?: import("viem").AuthorizationList;
|
|
465
453
|
chain?: import("viem").Chain | null;
|
|
@@ -470,13 +458,13 @@ export declare class BaseWallet_json {
|
|
|
470
458
|
maxPriorityFeePerGas?: bigint;
|
|
471
459
|
nonce?: number;
|
|
472
460
|
value?: bigint;
|
|
473
|
-
}): Promise
|
|
461
|
+
}): Promise<void>;
|
|
474
462
|
/**
|
|
475
|
-
* Simulate
|
|
463
|
+
* Simulate invoke
|
|
476
464
|
* Returns gas estimate and result without sending transaction
|
|
477
465
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
478
466
|
*/
|
|
479
|
-
|
|
467
|
+
invoke(_target: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
480
468
|
accessList?: import("viem").AccessList;
|
|
481
469
|
authorizationList?: import("viem").AuthorizationList;
|
|
482
470
|
chain?: import("viem").Chain | null;
|
|
@@ -487,7 +475,7 @@ export declare class BaseWallet_json {
|
|
|
487
475
|
maxPriorityFeePerGas?: bigint;
|
|
488
476
|
nonce?: number;
|
|
489
477
|
value?: bigint;
|
|
490
|
-
}): Promise
|
|
478
|
+
}): Promise<`0x${string}`>;
|
|
491
479
|
};
|
|
492
480
|
/**
|
|
493
481
|
* Watch contract events
|
|
@@ -543,15 +531,6 @@ export declare class BaseWallet_json {
|
|
|
543
531
|
target: `0x${string}`;
|
|
544
532
|
value: bigint;
|
|
545
533
|
}) => () => void;
|
|
546
|
-
/**
|
|
547
|
-
* Watch OwnerChanged events
|
|
548
|
-
* @param callback Function to call when event is emitted
|
|
549
|
-
* @param filter Optional filter for indexed parameters
|
|
550
|
-
* @returns Unwatch function to stop listening
|
|
551
|
-
*/
|
|
552
|
-
OwnerChanged: (callback: (event: {
|
|
553
|
-
owner: `0x${string}`;
|
|
554
|
-
}) => void) => () => void;
|
|
555
534
|
/**
|
|
556
535
|
* Watch Received events
|
|
557
536
|
* @param callback Function to call when event is emitted
|
|
@@ -566,5 +545,14 @@ export declare class BaseWallet_json {
|
|
|
566
545
|
value: bigint;
|
|
567
546
|
sender: `0x${string}`;
|
|
568
547
|
}) => () => void;
|
|
548
|
+
/**
|
|
549
|
+
* Watch OwnerChanged events
|
|
550
|
+
* @param callback Function to call when event is emitted
|
|
551
|
+
* @param filter Optional filter for indexed parameters
|
|
552
|
+
* @returns Unwatch function to stop listening
|
|
553
|
+
*/
|
|
554
|
+
OwnerChanged: (callback: (event: {
|
|
555
|
+
owner: `0x${string}`;
|
|
556
|
+
}) => void) => () => void;
|
|
569
557
|
};
|
|
570
558
|
}
|