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