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