@gitmyabi/basewallet 1.0.1 → 1.0.2
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 +159 -174
- package/contracts/BaseWallet_json.js +182 -200
- package/contracts/BaseWallet_json.ts +185 -203
- package/contracts/Proxy_json.d.ts +5 -10
- package/contracts/Proxy_json.js +6 -12
- package/contracts/Proxy_json.ts +6 -12
- package/package.json +3 -3
|
@@ -9,292 +9,274 @@ const viem_1 = require("viem");
|
|
|
9
9
|
*/
|
|
10
10
|
exports.BaseWallet_jsonAbi = [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
12
|
+
"constant": false,
|
|
13
13
|
"inputs": [
|
|
14
14
|
{
|
|
15
|
-
"
|
|
16
|
-
"internalType": "address",
|
|
17
|
-
"name": "module",
|
|
15
|
+
"name": "_newOwner",
|
|
18
16
|
"type": "address"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"internalType": "bool",
|
|
23
|
-
"name": "value",
|
|
24
|
-
"type": "bool"
|
|
25
17
|
}
|
|
26
18
|
],
|
|
27
|
-
"name": "
|
|
28
|
-
"
|
|
19
|
+
"name": "setOwner",
|
|
20
|
+
"outputs": [],
|
|
21
|
+
"payable": false,
|
|
22
|
+
"stateMutability": "nonpayable",
|
|
23
|
+
"type": "function"
|
|
29
24
|
},
|
|
30
25
|
{
|
|
31
|
-
"
|
|
26
|
+
"constant": false,
|
|
32
27
|
"inputs": [
|
|
33
28
|
{
|
|
34
|
-
"
|
|
35
|
-
"internalType": "address",
|
|
36
|
-
"name": "module",
|
|
29
|
+
"name": "_module",
|
|
37
30
|
"type": "address"
|
|
38
31
|
},
|
|
39
32
|
{
|
|
40
|
-
"
|
|
41
|
-
"internalType": "bytes4",
|
|
42
|
-
"name": "method",
|
|
33
|
+
"name": "_method",
|
|
43
34
|
"type": "bytes4"
|
|
44
35
|
}
|
|
45
36
|
],
|
|
46
|
-
"name": "
|
|
47
|
-
"
|
|
37
|
+
"name": "enableStaticCall",
|
|
38
|
+
"outputs": [],
|
|
39
|
+
"payable": false,
|
|
40
|
+
"stateMutability": "nonpayable",
|
|
41
|
+
"type": "function"
|
|
48
42
|
},
|
|
49
43
|
{
|
|
50
|
-
"
|
|
44
|
+
"constant": false,
|
|
51
45
|
"inputs": [
|
|
52
46
|
{
|
|
53
|
-
"
|
|
54
|
-
"internalType": "address",
|
|
55
|
-
"name": "module",
|
|
56
|
-
"type": "address"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"indexed": true,
|
|
60
|
-
"internalType": "address",
|
|
61
|
-
"name": "target",
|
|
47
|
+
"name": "_module",
|
|
62
48
|
"type": "address"
|
|
63
49
|
},
|
|
64
50
|
{
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"name": "value",
|
|
68
|
-
"type": "uint256"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "bytes",
|
|
73
|
-
"name": "data",
|
|
74
|
-
"type": "bytes"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"name": "Invoked",
|
|
78
|
-
"type": "event"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"anonymous": false,
|
|
82
|
-
"inputs": [
|
|
83
|
-
{
|
|
84
|
-
"indexed": false,
|
|
85
|
-
"internalType": "address",
|
|
86
|
-
"name": "owner",
|
|
87
|
-
"type": "address"
|
|
51
|
+
"name": "_value",
|
|
52
|
+
"type": "bool"
|
|
88
53
|
}
|
|
89
54
|
],
|
|
90
|
-
"name": "
|
|
91
|
-
"
|
|
55
|
+
"name": "authoriseModule",
|
|
56
|
+
"outputs": [],
|
|
57
|
+
"payable": false,
|
|
58
|
+
"stateMutability": "nonpayable",
|
|
59
|
+
"type": "function"
|
|
92
60
|
},
|
|
93
61
|
{
|
|
94
|
-
"
|
|
62
|
+
"constant": false,
|
|
95
63
|
"inputs": [
|
|
96
64
|
{
|
|
97
|
-
"
|
|
98
|
-
"internalType": "uint256",
|
|
99
|
-
"name": "value",
|
|
100
|
-
"type": "uint256"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"indexed": true,
|
|
104
|
-
"internalType": "address",
|
|
105
|
-
"name": "sender",
|
|
65
|
+
"name": "_owner",
|
|
106
66
|
"type": "address"
|
|
107
67
|
},
|
|
108
68
|
{
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"name": "data",
|
|
112
|
-
"type": "bytes"
|
|
69
|
+
"name": "_modules",
|
|
70
|
+
"type": "address[]"
|
|
113
71
|
}
|
|
114
72
|
],
|
|
115
|
-
"name": "
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
"type": "fallback"
|
|
73
|
+
"name": "init",
|
|
74
|
+
"outputs": [],
|
|
75
|
+
"payable": false,
|
|
76
|
+
"stateMutability": "nonpayable",
|
|
77
|
+
"type": "function"
|
|
121
78
|
},
|
|
122
79
|
{
|
|
123
|
-
"
|
|
80
|
+
"constant": true,
|
|
81
|
+
"inputs": [],
|
|
82
|
+
"name": "implementation",
|
|
83
|
+
"outputs": [
|
|
124
84
|
{
|
|
125
|
-
"
|
|
126
|
-
"name": "_module",
|
|
85
|
+
"name": "",
|
|
127
86
|
"type": "address"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"internalType": "bool",
|
|
131
|
-
"name": "_value",
|
|
132
|
-
"type": "bool"
|
|
133
87
|
}
|
|
134
88
|
],
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"stateMutability": "nonpayable",
|
|
89
|
+
"payable": false,
|
|
90
|
+
"stateMutability": "view",
|
|
138
91
|
"type": "function"
|
|
139
92
|
},
|
|
140
93
|
{
|
|
94
|
+
"constant": true,
|
|
141
95
|
"inputs": [
|
|
142
96
|
{
|
|
143
|
-
"
|
|
97
|
+
"name": "",
|
|
98
|
+
"type": "bytes4"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"name": "enabled",
|
|
102
|
+
"outputs": [
|
|
103
|
+
{
|
|
144
104
|
"name": "",
|
|
145
105
|
"type": "address"
|
|
146
106
|
}
|
|
147
107
|
],
|
|
148
|
-
"
|
|
108
|
+
"payable": false,
|
|
109
|
+
"stateMutability": "view",
|
|
110
|
+
"type": "function"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"constant": true,
|
|
114
|
+
"inputs": [],
|
|
115
|
+
"name": "owner",
|
|
149
116
|
"outputs": [
|
|
150
117
|
{
|
|
151
|
-
"internalType": "bool",
|
|
152
118
|
"name": "",
|
|
153
|
-
"type": "
|
|
119
|
+
"type": "address"
|
|
154
120
|
}
|
|
155
121
|
],
|
|
122
|
+
"payable": false,
|
|
156
123
|
"stateMutability": "view",
|
|
157
124
|
"type": "function"
|
|
158
125
|
},
|
|
159
126
|
{
|
|
127
|
+
"constant": false,
|
|
160
128
|
"inputs": [
|
|
161
129
|
{
|
|
162
|
-
"
|
|
163
|
-
"name": "_module",
|
|
130
|
+
"name": "_target",
|
|
164
131
|
"type": "address"
|
|
165
132
|
},
|
|
166
133
|
{
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
|
|
134
|
+
"name": "_value",
|
|
135
|
+
"type": "uint256"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "_data",
|
|
139
|
+
"type": "bytes"
|
|
170
140
|
}
|
|
171
141
|
],
|
|
172
|
-
"name": "
|
|
142
|
+
"name": "invoke",
|
|
173
143
|
"outputs": [],
|
|
144
|
+
"payable": false,
|
|
174
145
|
"stateMutability": "nonpayable",
|
|
175
146
|
"type": "function"
|
|
176
147
|
},
|
|
177
148
|
{
|
|
149
|
+
"constant": true,
|
|
178
150
|
"inputs": [
|
|
179
151
|
{
|
|
180
|
-
"internalType": "bytes4",
|
|
181
152
|
"name": "",
|
|
182
|
-
"type": "
|
|
153
|
+
"type": "address"
|
|
183
154
|
}
|
|
184
155
|
],
|
|
185
|
-
"name": "
|
|
156
|
+
"name": "authorised",
|
|
186
157
|
"outputs": [
|
|
187
158
|
{
|
|
188
|
-
"internalType": "address",
|
|
189
159
|
"name": "",
|
|
190
|
-
"type": "
|
|
160
|
+
"type": "bool"
|
|
191
161
|
}
|
|
192
162
|
],
|
|
163
|
+
"payable": false,
|
|
193
164
|
"stateMutability": "view",
|
|
194
165
|
"type": "function"
|
|
195
166
|
},
|
|
196
167
|
{
|
|
168
|
+
"constant": true,
|
|
197
169
|
"inputs": [],
|
|
198
|
-
"name": "
|
|
170
|
+
"name": "modules",
|
|
199
171
|
"outputs": [
|
|
200
172
|
{
|
|
201
|
-
"internalType": "address",
|
|
202
173
|
"name": "",
|
|
203
|
-
"type": "
|
|
174
|
+
"type": "uint256"
|
|
204
175
|
}
|
|
205
176
|
],
|
|
177
|
+
"payable": false,
|
|
206
178
|
"stateMutability": "view",
|
|
207
179
|
"type": "function"
|
|
208
180
|
},
|
|
209
181
|
{
|
|
182
|
+
"payable": true,
|
|
183
|
+
"stateMutability": "payable",
|
|
184
|
+
"type": "fallback"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"anonymous": false,
|
|
210
188
|
"inputs": [
|
|
211
189
|
{
|
|
212
|
-
"
|
|
213
|
-
"name": "
|
|
190
|
+
"indexed": true,
|
|
191
|
+
"name": "module",
|
|
214
192
|
"type": "address"
|
|
215
193
|
},
|
|
216
194
|
{
|
|
217
|
-
"
|
|
218
|
-
"name": "
|
|
219
|
-
"type": "
|
|
195
|
+
"indexed": false,
|
|
196
|
+
"name": "value",
|
|
197
|
+
"type": "bool"
|
|
220
198
|
}
|
|
221
199
|
],
|
|
222
|
-
"name": "
|
|
223
|
-
"
|
|
224
|
-
"stateMutability": "nonpayable",
|
|
225
|
-
"type": "function"
|
|
200
|
+
"name": "AuthorisedModule",
|
|
201
|
+
"type": "event"
|
|
226
202
|
},
|
|
227
203
|
{
|
|
204
|
+
"anonymous": false,
|
|
228
205
|
"inputs": [
|
|
229
206
|
{
|
|
230
|
-
"
|
|
231
|
-
"name": "
|
|
207
|
+
"indexed": true,
|
|
208
|
+
"name": "module",
|
|
232
209
|
"type": "address"
|
|
233
210
|
},
|
|
234
211
|
{
|
|
235
|
-
"
|
|
236
|
-
"name": "
|
|
237
|
-
"type": "
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"internalType": "bytes",
|
|
241
|
-
"name": "_data",
|
|
242
|
-
"type": "bytes"
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"name": "invoke",
|
|
246
|
-
"outputs": [
|
|
247
|
-
{
|
|
248
|
-
"internalType": "bytes",
|
|
249
|
-
"name": "_result",
|
|
250
|
-
"type": "bytes"
|
|
212
|
+
"indexed": true,
|
|
213
|
+
"name": "method",
|
|
214
|
+
"type": "bytes4"
|
|
251
215
|
}
|
|
252
216
|
],
|
|
253
|
-
"
|
|
254
|
-
"type": "
|
|
217
|
+
"name": "EnabledStaticCall",
|
|
218
|
+
"type": "event"
|
|
255
219
|
},
|
|
256
220
|
{
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"outputs": [
|
|
221
|
+
"anonymous": false,
|
|
222
|
+
"inputs": [
|
|
260
223
|
{
|
|
261
|
-
"
|
|
262
|
-
"name": "",
|
|
224
|
+
"indexed": true,
|
|
225
|
+
"name": "module",
|
|
226
|
+
"type": "address"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"indexed": true,
|
|
230
|
+
"name": "target",
|
|
231
|
+
"type": "address"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"indexed": true,
|
|
235
|
+
"name": "value",
|
|
263
236
|
"type": "uint256"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"indexed": false,
|
|
240
|
+
"name": "data",
|
|
241
|
+
"type": "bytes"
|
|
264
242
|
}
|
|
265
243
|
],
|
|
266
|
-
"
|
|
267
|
-
"type": "
|
|
244
|
+
"name": "Invoked",
|
|
245
|
+
"type": "event"
|
|
268
246
|
},
|
|
269
247
|
{
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"outputs": [
|
|
248
|
+
"anonymous": false,
|
|
249
|
+
"inputs": [
|
|
273
250
|
{
|
|
274
|
-
"
|
|
275
|
-
"name": "",
|
|
251
|
+
"indexed": true,
|
|
252
|
+
"name": "value",
|
|
253
|
+
"type": "uint256"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"indexed": true,
|
|
257
|
+
"name": "sender",
|
|
276
258
|
"type": "address"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"indexed": false,
|
|
262
|
+
"name": "data",
|
|
263
|
+
"type": "bytes"
|
|
277
264
|
}
|
|
278
265
|
],
|
|
279
|
-
"
|
|
280
|
-
"type": "
|
|
266
|
+
"name": "Received",
|
|
267
|
+
"type": "event"
|
|
281
268
|
},
|
|
282
269
|
{
|
|
270
|
+
"anonymous": false,
|
|
283
271
|
"inputs": [
|
|
284
272
|
{
|
|
285
|
-
"
|
|
286
|
-
"name": "
|
|
273
|
+
"indexed": false,
|
|
274
|
+
"name": "owner",
|
|
287
275
|
"type": "address"
|
|
288
276
|
}
|
|
289
277
|
],
|
|
290
|
-
"name": "
|
|
291
|
-
"
|
|
292
|
-
"stateMutability": "nonpayable",
|
|
293
|
-
"type": "function"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"stateMutability": "payable",
|
|
297
|
-
"type": "receive"
|
|
278
|
+
"name": "OwnerChanged",
|
|
279
|
+
"type": "event"
|
|
298
280
|
}
|
|
299
281
|
];
|
|
300
282
|
/**
|
|
@@ -355,11 +337,11 @@ class BaseWallet_json {
|
|
|
355
337
|
return this.contract;
|
|
356
338
|
}
|
|
357
339
|
/**
|
|
358
|
-
*
|
|
340
|
+
* implementation
|
|
359
341
|
* view
|
|
360
342
|
*/
|
|
361
|
-
async
|
|
362
|
-
return this.contract.read.
|
|
343
|
+
async implementation() {
|
|
344
|
+
return this.contract.read.implementation();
|
|
363
345
|
}
|
|
364
346
|
/**
|
|
365
347
|
* enabled
|
|
@@ -369,36 +351,36 @@ class BaseWallet_json {
|
|
|
369
351
|
return this.contract.read.enabled([arg0]);
|
|
370
352
|
}
|
|
371
353
|
/**
|
|
372
|
-
*
|
|
354
|
+
* owner
|
|
373
355
|
* view
|
|
374
356
|
*/
|
|
375
|
-
async
|
|
376
|
-
return this.contract.read.
|
|
357
|
+
async owner() {
|
|
358
|
+
return this.contract.read.owner();
|
|
377
359
|
}
|
|
378
360
|
/**
|
|
379
|
-
*
|
|
361
|
+
* authorised
|
|
380
362
|
* view
|
|
381
363
|
*/
|
|
382
|
-
async
|
|
383
|
-
return this.contract.read.
|
|
364
|
+
async authorised(arg0) {
|
|
365
|
+
return this.contract.read.authorised([arg0]);
|
|
384
366
|
}
|
|
385
367
|
/**
|
|
386
|
-
*
|
|
368
|
+
* modules
|
|
387
369
|
* view
|
|
388
370
|
*/
|
|
389
|
-
async
|
|
390
|
-
return this.contract.read.
|
|
371
|
+
async modules() {
|
|
372
|
+
return this.contract.read.modules();
|
|
391
373
|
}
|
|
392
374
|
/**
|
|
393
|
-
*
|
|
375
|
+
* setOwner
|
|
394
376
|
* nonpayable
|
|
395
377
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
396
378
|
*/
|
|
397
|
-
async
|
|
379
|
+
async setOwner(_newOwner, options) {
|
|
398
380
|
if (!this.contract.write) {
|
|
399
381
|
throw new Error('Wallet client is required for write operations');
|
|
400
382
|
}
|
|
401
|
-
return this.contract.write.
|
|
383
|
+
return this.contract.write.setOwner([_newOwner], options);
|
|
402
384
|
}
|
|
403
385
|
/**
|
|
404
386
|
* enableStaticCall
|
|
@@ -412,37 +394,37 @@ class BaseWallet_json {
|
|
|
412
394
|
return this.contract.write.enableStaticCall([_module, _method], options);
|
|
413
395
|
}
|
|
414
396
|
/**
|
|
415
|
-
*
|
|
397
|
+
* authoriseModule
|
|
416
398
|
* nonpayable
|
|
417
399
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
418
400
|
*/
|
|
419
|
-
async
|
|
401
|
+
async authoriseModule(_module, _value, options) {
|
|
420
402
|
if (!this.contract.write) {
|
|
421
403
|
throw new Error('Wallet client is required for write operations');
|
|
422
404
|
}
|
|
423
|
-
return this.contract.write.
|
|
405
|
+
return this.contract.write.authoriseModule([_module, _value], options);
|
|
424
406
|
}
|
|
425
407
|
/**
|
|
426
|
-
*
|
|
408
|
+
* init
|
|
427
409
|
* nonpayable
|
|
428
410
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
429
411
|
*/
|
|
430
|
-
async
|
|
412
|
+
async init(_owner, _modules, options) {
|
|
431
413
|
if (!this.contract.write) {
|
|
432
414
|
throw new Error('Wallet client is required for write operations');
|
|
433
415
|
}
|
|
434
|
-
return this.contract.write.
|
|
416
|
+
return this.contract.write.init([_owner, _modules], options);
|
|
435
417
|
}
|
|
436
418
|
/**
|
|
437
|
-
*
|
|
419
|
+
* invoke
|
|
438
420
|
* nonpayable
|
|
439
421
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
440
422
|
*/
|
|
441
|
-
async
|
|
423
|
+
async invoke(_target, _value, _data, options) {
|
|
442
424
|
if (!this.contract.write) {
|
|
443
425
|
throw new Error('Wallet client is required for write operations');
|
|
444
426
|
}
|
|
445
|
-
return this.contract.write.
|
|
427
|
+
return this.contract.write.invoke([_target, _value, _data], options);
|
|
446
428
|
}
|
|
447
429
|
/**
|
|
448
430
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -459,12 +441,12 @@ class BaseWallet_json {
|
|
|
459
441
|
}
|
|
460
442
|
return {
|
|
461
443
|
/**
|
|
462
|
-
* Simulate
|
|
444
|
+
* Simulate setOwner
|
|
463
445
|
* Returns gas estimate and result without sending transaction
|
|
464
446
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
465
447
|
*/
|
|
466
|
-
async
|
|
467
|
-
return contract.simulate.
|
|
448
|
+
async setOwner(_newOwner, options) {
|
|
449
|
+
return contract.simulate.setOwner([_newOwner], options);
|
|
468
450
|
},
|
|
469
451
|
/**
|
|
470
452
|
* Simulate enableStaticCall
|
|
@@ -474,6 +456,14 @@ class BaseWallet_json {
|
|
|
474
456
|
async enableStaticCall(_module, _method, options) {
|
|
475
457
|
return contract.simulate.enableStaticCall([_module, _method], options);
|
|
476
458
|
},
|
|
459
|
+
/**
|
|
460
|
+
* Simulate authoriseModule
|
|
461
|
+
* Returns gas estimate and result without sending transaction
|
|
462
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
463
|
+
*/
|
|
464
|
+
async authoriseModule(_module, _value, options) {
|
|
465
|
+
return contract.simulate.authoriseModule([_module, _value], options);
|
|
466
|
+
},
|
|
477
467
|
/**
|
|
478
468
|
* Simulate init
|
|
479
469
|
* Returns gas estimate and result without sending transaction
|
|
@@ -489,14 +479,6 @@ class BaseWallet_json {
|
|
|
489
479
|
*/
|
|
490
480
|
async invoke(_target, _value, _data, options) {
|
|
491
481
|
return contract.simulate.invoke([_target, _value, _data], options);
|
|
492
|
-
},
|
|
493
|
-
/**
|
|
494
|
-
* Simulate setOwner
|
|
495
|
-
* Returns gas estimate and result without sending transaction
|
|
496
|
-
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
497
|
-
*/
|
|
498
|
-
async setOwner(_newOwner, options) {
|
|
499
|
-
return contract.simulate.setOwner([_newOwner], options);
|
|
500
482
|
}
|
|
501
483
|
};
|
|
502
484
|
}
|
|
@@ -572,16 +554,17 @@ class BaseWallet_json {
|
|
|
572
554
|
});
|
|
573
555
|
},
|
|
574
556
|
/**
|
|
575
|
-
* Watch
|
|
557
|
+
* Watch Received events
|
|
576
558
|
* @param callback Function to call when event is emitted
|
|
577
559
|
* @param filter Optional filter for indexed parameters
|
|
578
560
|
* @returns Unwatch function to stop listening
|
|
579
561
|
*/
|
|
580
|
-
|
|
562
|
+
Received: (callback, filter) => {
|
|
581
563
|
return this.publicClient.watchContractEvent({
|
|
582
564
|
address: this.contractAddress,
|
|
583
565
|
abi: exports.BaseWallet_jsonAbi,
|
|
584
|
-
eventName: '
|
|
566
|
+
eventName: 'Received',
|
|
567
|
+
args: filter,
|
|
585
568
|
onLogs: (logs) => {
|
|
586
569
|
logs.forEach((log) => {
|
|
587
570
|
callback(log.args);
|
|
@@ -590,17 +573,16 @@ class BaseWallet_json {
|
|
|
590
573
|
});
|
|
591
574
|
},
|
|
592
575
|
/**
|
|
593
|
-
* Watch
|
|
576
|
+
* Watch OwnerChanged events
|
|
594
577
|
* @param callback Function to call when event is emitted
|
|
595
578
|
* @param filter Optional filter for indexed parameters
|
|
596
579
|
* @returns Unwatch function to stop listening
|
|
597
580
|
*/
|
|
598
|
-
|
|
581
|
+
OwnerChanged: (callback) => {
|
|
599
582
|
return this.publicClient.watchContractEvent({
|
|
600
583
|
address: this.contractAddress,
|
|
601
584
|
abi: exports.BaseWallet_jsonAbi,
|
|
602
|
-
eventName: '
|
|
603
|
-
args: filter,
|
|
585
|
+
eventName: 'OwnerChanged',
|
|
604
586
|
onLogs: (logs) => {
|
|
605
587
|
logs.forEach((log) => {
|
|
606
588
|
callback(log.args);
|