@gitmyabi/eth2x-fli 1.0.0
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 +108 -0
- package/contracts/SetToken_json.d.ts +2137 -0
- package/contracts/SetToken_json.js +2237 -0
- package/contracts/SetToken_json.ts +2832 -0
- package/contracts/index.d.ts +2 -0
- package/contracts/index.js +7 -0
- package/contracts/index.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,2137 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* ISetToken.Position struct type
|
|
4
|
+
*/
|
|
5
|
+
export type ISetToken_Position = {
|
|
6
|
+
component: `0x${string}`;
|
|
7
|
+
module: `0x${string}`;
|
|
8
|
+
unit: bigint;
|
|
9
|
+
positionState: bigint;
|
|
10
|
+
data: `0x${string}`;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* SetToken_json ABI
|
|
14
|
+
*
|
|
15
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SetToken_jsonAbi: readonly [{
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "address[]";
|
|
20
|
+
readonly name: "_components";
|
|
21
|
+
readonly type: "address[]";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "int256[]";
|
|
24
|
+
readonly name: "_units";
|
|
25
|
+
readonly type: "int256[]";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "address[]";
|
|
28
|
+
readonly name: "_modules";
|
|
29
|
+
readonly type: "address[]";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "contract IController";
|
|
32
|
+
readonly name: "_controller";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "_manager";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "string";
|
|
40
|
+
readonly name: "_name";
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
}, {
|
|
43
|
+
readonly internalType: "string";
|
|
44
|
+
readonly name: "_symbol";
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
}];
|
|
47
|
+
readonly stateMutability: "nonpayable";
|
|
48
|
+
readonly type: "constructor";
|
|
49
|
+
}, {
|
|
50
|
+
readonly anonymous: false;
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly indexed: true;
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "owner";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly indexed: true;
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
readonly name: "spender";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "value";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "Approval";
|
|
68
|
+
readonly type: "event";
|
|
69
|
+
}, {
|
|
70
|
+
readonly anonymous: false;
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly indexed: true;
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly name: "_component";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "ComponentAdded";
|
|
78
|
+
readonly type: "event";
|
|
79
|
+
}, {
|
|
80
|
+
readonly anonymous: false;
|
|
81
|
+
readonly inputs: readonly [{
|
|
82
|
+
readonly indexed: true;
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
readonly name: "_component";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "ComponentRemoved";
|
|
88
|
+
readonly type: "event";
|
|
89
|
+
}, {
|
|
90
|
+
readonly anonymous: false;
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "_component";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "int256";
|
|
99
|
+
readonly name: "_realUnit";
|
|
100
|
+
readonly type: "int256";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "DefaultPositionUnitEdited";
|
|
103
|
+
readonly type: "event";
|
|
104
|
+
}, {
|
|
105
|
+
readonly anonymous: false;
|
|
106
|
+
readonly inputs: readonly [{
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "_component";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly indexed: true;
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "_positionModule";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly indexed: false;
|
|
118
|
+
readonly internalType: "bytes";
|
|
119
|
+
readonly name: "_data";
|
|
120
|
+
readonly type: "bytes";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "ExternalPositionDataEdited";
|
|
123
|
+
readonly type: "event";
|
|
124
|
+
}, {
|
|
125
|
+
readonly anonymous: false;
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly indexed: true;
|
|
128
|
+
readonly internalType: "address";
|
|
129
|
+
readonly name: "_component";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}, {
|
|
132
|
+
readonly indexed: true;
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly name: "_positionModule";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly indexed: false;
|
|
138
|
+
readonly internalType: "int256";
|
|
139
|
+
readonly name: "_realUnit";
|
|
140
|
+
readonly type: "int256";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "ExternalPositionUnitEdited";
|
|
143
|
+
readonly type: "event";
|
|
144
|
+
}, {
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: true;
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "_target";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly indexed: true;
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "_value";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly indexed: false;
|
|
158
|
+
readonly internalType: "bytes";
|
|
159
|
+
readonly name: "_data";
|
|
160
|
+
readonly type: "bytes";
|
|
161
|
+
}, {
|
|
162
|
+
readonly indexed: false;
|
|
163
|
+
readonly internalType: "bytes";
|
|
164
|
+
readonly name: "_returnValue";
|
|
165
|
+
readonly type: "bytes";
|
|
166
|
+
}];
|
|
167
|
+
readonly name: "Invoked";
|
|
168
|
+
readonly type: "event";
|
|
169
|
+
}, {
|
|
170
|
+
readonly anonymous: false;
|
|
171
|
+
readonly inputs: readonly [{
|
|
172
|
+
readonly indexed: false;
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
readonly name: "_newManager";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
readonly internalType: "address";
|
|
179
|
+
readonly name: "_oldManager";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "ManagerEdited";
|
|
183
|
+
readonly type: "event";
|
|
184
|
+
}, {
|
|
185
|
+
readonly anonymous: false;
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly indexed: true;
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
readonly name: "_module";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "ModuleAdded";
|
|
193
|
+
readonly type: "event";
|
|
194
|
+
}, {
|
|
195
|
+
readonly anonymous: false;
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly indexed: true;
|
|
198
|
+
readonly internalType: "address";
|
|
199
|
+
readonly name: "_module";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "ModuleInitialized";
|
|
203
|
+
readonly type: "event";
|
|
204
|
+
}, {
|
|
205
|
+
readonly anonymous: false;
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly indexed: true;
|
|
208
|
+
readonly internalType: "address";
|
|
209
|
+
readonly name: "_module";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "ModuleRemoved";
|
|
213
|
+
readonly type: "event";
|
|
214
|
+
}, {
|
|
215
|
+
readonly anonymous: false;
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly indexed: true;
|
|
218
|
+
readonly internalType: "address";
|
|
219
|
+
readonly name: "_module";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}];
|
|
222
|
+
readonly name: "PendingModuleRemoved";
|
|
223
|
+
readonly type: "event";
|
|
224
|
+
}, {
|
|
225
|
+
readonly anonymous: false;
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly indexed: true;
|
|
228
|
+
readonly internalType: "address";
|
|
229
|
+
readonly name: "_component";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}, {
|
|
232
|
+
readonly indexed: true;
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "_positionModule";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "PositionModuleAdded";
|
|
238
|
+
readonly type: "event";
|
|
239
|
+
}, {
|
|
240
|
+
readonly anonymous: false;
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly indexed: true;
|
|
243
|
+
readonly internalType: "address";
|
|
244
|
+
readonly name: "_component";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly indexed: true;
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly name: "_positionModule";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "PositionModuleRemoved";
|
|
253
|
+
readonly type: "event";
|
|
254
|
+
}, {
|
|
255
|
+
readonly anonymous: false;
|
|
256
|
+
readonly inputs: readonly [{
|
|
257
|
+
readonly indexed: false;
|
|
258
|
+
readonly internalType: "int256";
|
|
259
|
+
readonly name: "_newMultiplier";
|
|
260
|
+
readonly type: "int256";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "PositionMultiplierEdited";
|
|
263
|
+
readonly type: "event";
|
|
264
|
+
}, {
|
|
265
|
+
readonly anonymous: false;
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly indexed: true;
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "from";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: true;
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
readonly name: "to";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
}, {
|
|
277
|
+
readonly indexed: false;
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
readonly name: "value";
|
|
280
|
+
readonly type: "uint256";
|
|
281
|
+
}];
|
|
282
|
+
readonly name: "Transfer";
|
|
283
|
+
readonly type: "event";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly internalType: "address";
|
|
287
|
+
readonly name: "_component";
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "addComponent";
|
|
291
|
+
readonly outputs: readonly [];
|
|
292
|
+
readonly stateMutability: "nonpayable";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly internalType: "address";
|
|
297
|
+
readonly name: "_component";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
readonly name: "_positionModule";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "addExternalPositionModule";
|
|
305
|
+
readonly outputs: readonly [];
|
|
306
|
+
readonly stateMutability: "nonpayable";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}, {
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly internalType: "address";
|
|
311
|
+
readonly name: "_module";
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
}];
|
|
314
|
+
readonly name: "addModule";
|
|
315
|
+
readonly outputs: readonly [];
|
|
316
|
+
readonly stateMutability: "nonpayable";
|
|
317
|
+
readonly type: "function";
|
|
318
|
+
}, {
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly internalType: "address";
|
|
321
|
+
readonly name: "owner";
|
|
322
|
+
readonly type: "address";
|
|
323
|
+
}, {
|
|
324
|
+
readonly internalType: "address";
|
|
325
|
+
readonly name: "spender";
|
|
326
|
+
readonly type: "address";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "allowance";
|
|
329
|
+
readonly outputs: readonly [{
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
readonly name: "";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}];
|
|
334
|
+
readonly stateMutability: "view";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
readonly name: "spender";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}, {
|
|
342
|
+
readonly internalType: "uint256";
|
|
343
|
+
readonly name: "amount";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
}];
|
|
346
|
+
readonly name: "approve";
|
|
347
|
+
readonly outputs: readonly [{
|
|
348
|
+
readonly internalType: "bool";
|
|
349
|
+
readonly name: "";
|
|
350
|
+
readonly type: "bool";
|
|
351
|
+
}];
|
|
352
|
+
readonly stateMutability: "nonpayable";
|
|
353
|
+
readonly type: "function";
|
|
354
|
+
}, {
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "account";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "balanceOf";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
}];
|
|
366
|
+
readonly stateMutability: "view";
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
}, {
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly internalType: "address";
|
|
371
|
+
readonly name: "_account";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
}, {
|
|
374
|
+
readonly internalType: "uint256";
|
|
375
|
+
readonly name: "_quantity";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}];
|
|
378
|
+
readonly name: "burn";
|
|
379
|
+
readonly outputs: readonly [];
|
|
380
|
+
readonly stateMutability: "nonpayable";
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
}, {
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly internalType: "uint256";
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "components";
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly internalType: "address";
|
|
391
|
+
readonly name: "";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
}, {
|
|
397
|
+
readonly inputs: readonly [];
|
|
398
|
+
readonly name: "controller";
|
|
399
|
+
readonly outputs: readonly [{
|
|
400
|
+
readonly internalType: "contract IController";
|
|
401
|
+
readonly name: "";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}];
|
|
404
|
+
readonly stateMutability: "view";
|
|
405
|
+
readonly type: "function";
|
|
406
|
+
}, {
|
|
407
|
+
readonly inputs: readonly [];
|
|
408
|
+
readonly name: "decimals";
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly internalType: "uint8";
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly type: "uint8";
|
|
413
|
+
}];
|
|
414
|
+
readonly stateMutability: "view";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
}, {
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly internalType: "address";
|
|
419
|
+
readonly name: "spender";
|
|
420
|
+
readonly type: "address";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "uint256";
|
|
423
|
+
readonly name: "subtractedValue";
|
|
424
|
+
readonly type: "uint256";
|
|
425
|
+
}];
|
|
426
|
+
readonly name: "decreaseAllowance";
|
|
427
|
+
readonly outputs: readonly [{
|
|
428
|
+
readonly internalType: "bool";
|
|
429
|
+
readonly name: "";
|
|
430
|
+
readonly type: "bool";
|
|
431
|
+
}];
|
|
432
|
+
readonly stateMutability: "nonpayable";
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
}, {
|
|
435
|
+
readonly inputs: readonly [{
|
|
436
|
+
readonly internalType: "address";
|
|
437
|
+
readonly name: "_component";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
}, {
|
|
440
|
+
readonly internalType: "int256";
|
|
441
|
+
readonly name: "_realUnit";
|
|
442
|
+
readonly type: "int256";
|
|
443
|
+
}];
|
|
444
|
+
readonly name: "editDefaultPositionUnit";
|
|
445
|
+
readonly outputs: readonly [];
|
|
446
|
+
readonly stateMutability: "nonpayable";
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
}, {
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly internalType: "address";
|
|
451
|
+
readonly name: "_component";
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
}, {
|
|
454
|
+
readonly internalType: "address";
|
|
455
|
+
readonly name: "_positionModule";
|
|
456
|
+
readonly type: "address";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "bytes";
|
|
459
|
+
readonly name: "_data";
|
|
460
|
+
readonly type: "bytes";
|
|
461
|
+
}];
|
|
462
|
+
readonly name: "editExternalPositionData";
|
|
463
|
+
readonly outputs: readonly [];
|
|
464
|
+
readonly stateMutability: "nonpayable";
|
|
465
|
+
readonly type: "function";
|
|
466
|
+
}, {
|
|
467
|
+
readonly inputs: readonly [{
|
|
468
|
+
readonly internalType: "address";
|
|
469
|
+
readonly name: "_component";
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "address";
|
|
473
|
+
readonly name: "_positionModule";
|
|
474
|
+
readonly type: "address";
|
|
475
|
+
}, {
|
|
476
|
+
readonly internalType: "int256";
|
|
477
|
+
readonly name: "_realUnit";
|
|
478
|
+
readonly type: "int256";
|
|
479
|
+
}];
|
|
480
|
+
readonly name: "editExternalPositionUnit";
|
|
481
|
+
readonly outputs: readonly [];
|
|
482
|
+
readonly stateMutability: "nonpayable";
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
}, {
|
|
485
|
+
readonly inputs: readonly [{
|
|
486
|
+
readonly internalType: "int256";
|
|
487
|
+
readonly name: "_newMultiplier";
|
|
488
|
+
readonly type: "int256";
|
|
489
|
+
}];
|
|
490
|
+
readonly name: "editPositionMultiplier";
|
|
491
|
+
readonly outputs: readonly [];
|
|
492
|
+
readonly stateMutability: "nonpayable";
|
|
493
|
+
readonly type: "function";
|
|
494
|
+
}, {
|
|
495
|
+
readonly inputs: readonly [];
|
|
496
|
+
readonly name: "getComponents";
|
|
497
|
+
readonly outputs: readonly [{
|
|
498
|
+
readonly internalType: "address[]";
|
|
499
|
+
readonly name: "";
|
|
500
|
+
readonly type: "address[]";
|
|
501
|
+
}];
|
|
502
|
+
readonly stateMutability: "view";
|
|
503
|
+
readonly type: "function";
|
|
504
|
+
}, {
|
|
505
|
+
readonly inputs: readonly [{
|
|
506
|
+
readonly internalType: "address";
|
|
507
|
+
readonly name: "_component";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
}];
|
|
510
|
+
readonly name: "getDefaultPositionRealUnit";
|
|
511
|
+
readonly outputs: readonly [{
|
|
512
|
+
readonly internalType: "int256";
|
|
513
|
+
readonly name: "";
|
|
514
|
+
readonly type: "int256";
|
|
515
|
+
}];
|
|
516
|
+
readonly stateMutability: "view";
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
}, {
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly internalType: "address";
|
|
521
|
+
readonly name: "_component";
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "address";
|
|
525
|
+
readonly name: "_positionModule";
|
|
526
|
+
readonly type: "address";
|
|
527
|
+
}];
|
|
528
|
+
readonly name: "getExternalPositionData";
|
|
529
|
+
readonly outputs: readonly [{
|
|
530
|
+
readonly internalType: "bytes";
|
|
531
|
+
readonly name: "";
|
|
532
|
+
readonly type: "bytes";
|
|
533
|
+
}];
|
|
534
|
+
readonly stateMutability: "view";
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
}, {
|
|
537
|
+
readonly inputs: readonly [{
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
readonly name: "_component";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}];
|
|
542
|
+
readonly name: "getExternalPositionModules";
|
|
543
|
+
readonly outputs: readonly [{
|
|
544
|
+
readonly internalType: "address[]";
|
|
545
|
+
readonly name: "";
|
|
546
|
+
readonly type: "address[]";
|
|
547
|
+
}];
|
|
548
|
+
readonly stateMutability: "view";
|
|
549
|
+
readonly type: "function";
|
|
550
|
+
}, {
|
|
551
|
+
readonly inputs: readonly [{
|
|
552
|
+
readonly internalType: "address";
|
|
553
|
+
readonly name: "_component";
|
|
554
|
+
readonly type: "address";
|
|
555
|
+
}, {
|
|
556
|
+
readonly internalType: "address";
|
|
557
|
+
readonly name: "_positionModule";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}];
|
|
560
|
+
readonly name: "getExternalPositionRealUnit";
|
|
561
|
+
readonly outputs: readonly [{
|
|
562
|
+
readonly internalType: "int256";
|
|
563
|
+
readonly name: "";
|
|
564
|
+
readonly type: "int256";
|
|
565
|
+
}];
|
|
566
|
+
readonly stateMutability: "view";
|
|
567
|
+
readonly type: "function";
|
|
568
|
+
}, {
|
|
569
|
+
readonly inputs: readonly [];
|
|
570
|
+
readonly name: "getModules";
|
|
571
|
+
readonly outputs: readonly [{
|
|
572
|
+
readonly internalType: "address[]";
|
|
573
|
+
readonly name: "";
|
|
574
|
+
readonly type: "address[]";
|
|
575
|
+
}];
|
|
576
|
+
readonly stateMutability: "view";
|
|
577
|
+
readonly type: "function";
|
|
578
|
+
}, {
|
|
579
|
+
readonly inputs: readonly [];
|
|
580
|
+
readonly name: "getPositions";
|
|
581
|
+
readonly outputs: readonly [{
|
|
582
|
+
readonly components: readonly [{
|
|
583
|
+
readonly internalType: "address";
|
|
584
|
+
readonly name: "component";
|
|
585
|
+
readonly type: "address";
|
|
586
|
+
}, {
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
readonly name: "module";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly internalType: "int256";
|
|
592
|
+
readonly name: "unit";
|
|
593
|
+
readonly type: "int256";
|
|
594
|
+
}, {
|
|
595
|
+
readonly internalType: "uint8";
|
|
596
|
+
readonly name: "positionState";
|
|
597
|
+
readonly type: "uint8";
|
|
598
|
+
}, {
|
|
599
|
+
readonly internalType: "bytes";
|
|
600
|
+
readonly name: "data";
|
|
601
|
+
readonly type: "bytes";
|
|
602
|
+
}];
|
|
603
|
+
readonly internalType: "struct ISetToken.Position[]";
|
|
604
|
+
readonly name: "";
|
|
605
|
+
readonly type: "tuple[]";
|
|
606
|
+
}];
|
|
607
|
+
readonly stateMutability: "view";
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
}, {
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
readonly name: "_component";
|
|
613
|
+
readonly type: "address";
|
|
614
|
+
}];
|
|
615
|
+
readonly name: "getTotalComponentRealUnits";
|
|
616
|
+
readonly outputs: readonly [{
|
|
617
|
+
readonly internalType: "int256";
|
|
618
|
+
readonly name: "";
|
|
619
|
+
readonly type: "int256";
|
|
620
|
+
}];
|
|
621
|
+
readonly stateMutability: "view";
|
|
622
|
+
readonly type: "function";
|
|
623
|
+
}, {
|
|
624
|
+
readonly inputs: readonly [{
|
|
625
|
+
readonly internalType: "address";
|
|
626
|
+
readonly name: "spender";
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
}, {
|
|
629
|
+
readonly internalType: "uint256";
|
|
630
|
+
readonly name: "addedValue";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
}];
|
|
633
|
+
readonly name: "increaseAllowance";
|
|
634
|
+
readonly outputs: readonly [{
|
|
635
|
+
readonly internalType: "bool";
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "bool";
|
|
638
|
+
}];
|
|
639
|
+
readonly stateMutability: "nonpayable";
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
}, {
|
|
642
|
+
readonly inputs: readonly [];
|
|
643
|
+
readonly name: "initializeModule";
|
|
644
|
+
readonly outputs: readonly [];
|
|
645
|
+
readonly stateMutability: "nonpayable";
|
|
646
|
+
readonly type: "function";
|
|
647
|
+
}, {
|
|
648
|
+
readonly inputs: readonly [{
|
|
649
|
+
readonly internalType: "address";
|
|
650
|
+
readonly name: "_target";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}, {
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
readonly name: "_value";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
}, {
|
|
657
|
+
readonly internalType: "bytes";
|
|
658
|
+
readonly name: "_data";
|
|
659
|
+
readonly type: "bytes";
|
|
660
|
+
}];
|
|
661
|
+
readonly name: "invoke";
|
|
662
|
+
readonly outputs: readonly [{
|
|
663
|
+
readonly internalType: "bytes";
|
|
664
|
+
readonly name: "_returnValue";
|
|
665
|
+
readonly type: "bytes";
|
|
666
|
+
}];
|
|
667
|
+
readonly stateMutability: "nonpayable";
|
|
668
|
+
readonly type: "function";
|
|
669
|
+
}, {
|
|
670
|
+
readonly inputs: readonly [{
|
|
671
|
+
readonly internalType: "address";
|
|
672
|
+
readonly name: "_component";
|
|
673
|
+
readonly type: "address";
|
|
674
|
+
}];
|
|
675
|
+
readonly name: "isComponent";
|
|
676
|
+
readonly outputs: readonly [{
|
|
677
|
+
readonly internalType: "bool";
|
|
678
|
+
readonly name: "";
|
|
679
|
+
readonly type: "bool";
|
|
680
|
+
}];
|
|
681
|
+
readonly stateMutability: "view";
|
|
682
|
+
readonly type: "function";
|
|
683
|
+
}, {
|
|
684
|
+
readonly inputs: readonly [{
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
readonly name: "_component";
|
|
687
|
+
readonly type: "address";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "address";
|
|
690
|
+
readonly name: "_module";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}];
|
|
693
|
+
readonly name: "isExternalPositionModule";
|
|
694
|
+
readonly outputs: readonly [{
|
|
695
|
+
readonly internalType: "bool";
|
|
696
|
+
readonly name: "";
|
|
697
|
+
readonly type: "bool";
|
|
698
|
+
}];
|
|
699
|
+
readonly stateMutability: "view";
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
}, {
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly internalType: "address";
|
|
704
|
+
readonly name: "_module";
|
|
705
|
+
readonly type: "address";
|
|
706
|
+
}];
|
|
707
|
+
readonly name: "isInitializedModule";
|
|
708
|
+
readonly outputs: readonly [{
|
|
709
|
+
readonly internalType: "bool";
|
|
710
|
+
readonly name: "";
|
|
711
|
+
readonly type: "bool";
|
|
712
|
+
}];
|
|
713
|
+
readonly stateMutability: "view";
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
}, {
|
|
716
|
+
readonly inputs: readonly [];
|
|
717
|
+
readonly name: "isLocked";
|
|
718
|
+
readonly outputs: readonly [{
|
|
719
|
+
readonly internalType: "bool";
|
|
720
|
+
readonly name: "";
|
|
721
|
+
readonly type: "bool";
|
|
722
|
+
}];
|
|
723
|
+
readonly stateMutability: "view";
|
|
724
|
+
readonly type: "function";
|
|
725
|
+
}, {
|
|
726
|
+
readonly inputs: readonly [{
|
|
727
|
+
readonly internalType: "address";
|
|
728
|
+
readonly name: "_module";
|
|
729
|
+
readonly type: "address";
|
|
730
|
+
}];
|
|
731
|
+
readonly name: "isPendingModule";
|
|
732
|
+
readonly outputs: readonly [{
|
|
733
|
+
readonly internalType: "bool";
|
|
734
|
+
readonly name: "";
|
|
735
|
+
readonly type: "bool";
|
|
736
|
+
}];
|
|
737
|
+
readonly stateMutability: "view";
|
|
738
|
+
readonly type: "function";
|
|
739
|
+
}, {
|
|
740
|
+
readonly inputs: readonly [];
|
|
741
|
+
readonly name: "lock";
|
|
742
|
+
readonly outputs: readonly [];
|
|
743
|
+
readonly stateMutability: "nonpayable";
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
}, {
|
|
746
|
+
readonly inputs: readonly [];
|
|
747
|
+
readonly name: "locker";
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly internalType: "address";
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly stateMutability: "view";
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
}, {
|
|
756
|
+
readonly inputs: readonly [];
|
|
757
|
+
readonly name: "manager";
|
|
758
|
+
readonly outputs: readonly [{
|
|
759
|
+
readonly internalType: "address";
|
|
760
|
+
readonly name: "";
|
|
761
|
+
readonly type: "address";
|
|
762
|
+
}];
|
|
763
|
+
readonly stateMutability: "view";
|
|
764
|
+
readonly type: "function";
|
|
765
|
+
}, {
|
|
766
|
+
readonly inputs: readonly [{
|
|
767
|
+
readonly internalType: "address";
|
|
768
|
+
readonly name: "_account";
|
|
769
|
+
readonly type: "address";
|
|
770
|
+
}, {
|
|
771
|
+
readonly internalType: "uint256";
|
|
772
|
+
readonly name: "_quantity";
|
|
773
|
+
readonly type: "uint256";
|
|
774
|
+
}];
|
|
775
|
+
readonly name: "mint";
|
|
776
|
+
readonly outputs: readonly [];
|
|
777
|
+
readonly stateMutability: "nonpayable";
|
|
778
|
+
readonly type: "function";
|
|
779
|
+
}, {
|
|
780
|
+
readonly inputs: readonly [{
|
|
781
|
+
readonly internalType: "address";
|
|
782
|
+
readonly name: "";
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
}];
|
|
785
|
+
readonly name: "moduleStates";
|
|
786
|
+
readonly outputs: readonly [{
|
|
787
|
+
readonly internalType: "enum ISetToken.ModuleState";
|
|
788
|
+
readonly name: "";
|
|
789
|
+
readonly type: "uint8";
|
|
790
|
+
}];
|
|
791
|
+
readonly stateMutability: "view";
|
|
792
|
+
readonly type: "function";
|
|
793
|
+
}, {
|
|
794
|
+
readonly inputs: readonly [{
|
|
795
|
+
readonly internalType: "uint256";
|
|
796
|
+
readonly name: "";
|
|
797
|
+
readonly type: "uint256";
|
|
798
|
+
}];
|
|
799
|
+
readonly name: "modules";
|
|
800
|
+
readonly outputs: readonly [{
|
|
801
|
+
readonly internalType: "address";
|
|
802
|
+
readonly name: "";
|
|
803
|
+
readonly type: "address";
|
|
804
|
+
}];
|
|
805
|
+
readonly stateMutability: "view";
|
|
806
|
+
readonly type: "function";
|
|
807
|
+
}, {
|
|
808
|
+
readonly inputs: readonly [];
|
|
809
|
+
readonly name: "name";
|
|
810
|
+
readonly outputs: readonly [{
|
|
811
|
+
readonly internalType: "string";
|
|
812
|
+
readonly name: "";
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
}];
|
|
815
|
+
readonly stateMutability: "view";
|
|
816
|
+
readonly type: "function";
|
|
817
|
+
}, {
|
|
818
|
+
readonly inputs: readonly [];
|
|
819
|
+
readonly name: "positionMultiplier";
|
|
820
|
+
readonly outputs: readonly [{
|
|
821
|
+
readonly internalType: "int256";
|
|
822
|
+
readonly name: "";
|
|
823
|
+
readonly type: "int256";
|
|
824
|
+
}];
|
|
825
|
+
readonly stateMutability: "view";
|
|
826
|
+
readonly type: "function";
|
|
827
|
+
}, {
|
|
828
|
+
readonly inputs: readonly [{
|
|
829
|
+
readonly internalType: "address";
|
|
830
|
+
readonly name: "_component";
|
|
831
|
+
readonly type: "address";
|
|
832
|
+
}];
|
|
833
|
+
readonly name: "removeComponent";
|
|
834
|
+
readonly outputs: readonly [];
|
|
835
|
+
readonly stateMutability: "nonpayable";
|
|
836
|
+
readonly type: "function";
|
|
837
|
+
}, {
|
|
838
|
+
readonly inputs: readonly [{
|
|
839
|
+
readonly internalType: "address";
|
|
840
|
+
readonly name: "_component";
|
|
841
|
+
readonly type: "address";
|
|
842
|
+
}, {
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "_positionModule";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}];
|
|
847
|
+
readonly name: "removeExternalPositionModule";
|
|
848
|
+
readonly outputs: readonly [];
|
|
849
|
+
readonly stateMutability: "nonpayable";
|
|
850
|
+
readonly type: "function";
|
|
851
|
+
}, {
|
|
852
|
+
readonly inputs: readonly [{
|
|
853
|
+
readonly internalType: "address";
|
|
854
|
+
readonly name: "_module";
|
|
855
|
+
readonly type: "address";
|
|
856
|
+
}];
|
|
857
|
+
readonly name: "removeModule";
|
|
858
|
+
readonly outputs: readonly [];
|
|
859
|
+
readonly stateMutability: "nonpayable";
|
|
860
|
+
readonly type: "function";
|
|
861
|
+
}, {
|
|
862
|
+
readonly inputs: readonly [{
|
|
863
|
+
readonly internalType: "address";
|
|
864
|
+
readonly name: "_module";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
}];
|
|
867
|
+
readonly name: "removePendingModule";
|
|
868
|
+
readonly outputs: readonly [];
|
|
869
|
+
readonly stateMutability: "nonpayable";
|
|
870
|
+
readonly type: "function";
|
|
871
|
+
}, {
|
|
872
|
+
readonly inputs: readonly [{
|
|
873
|
+
readonly internalType: "address";
|
|
874
|
+
readonly name: "_manager";
|
|
875
|
+
readonly type: "address";
|
|
876
|
+
}];
|
|
877
|
+
readonly name: "setManager";
|
|
878
|
+
readonly outputs: readonly [];
|
|
879
|
+
readonly stateMutability: "nonpayable";
|
|
880
|
+
readonly type: "function";
|
|
881
|
+
}, {
|
|
882
|
+
readonly inputs: readonly [];
|
|
883
|
+
readonly name: "symbol";
|
|
884
|
+
readonly outputs: readonly [{
|
|
885
|
+
readonly internalType: "string";
|
|
886
|
+
readonly name: "";
|
|
887
|
+
readonly type: "string";
|
|
888
|
+
}];
|
|
889
|
+
readonly stateMutability: "view";
|
|
890
|
+
readonly type: "function";
|
|
891
|
+
}, {
|
|
892
|
+
readonly inputs: readonly [];
|
|
893
|
+
readonly name: "totalSupply";
|
|
894
|
+
readonly outputs: readonly [{
|
|
895
|
+
readonly internalType: "uint256";
|
|
896
|
+
readonly name: "";
|
|
897
|
+
readonly type: "uint256";
|
|
898
|
+
}];
|
|
899
|
+
readonly stateMutability: "view";
|
|
900
|
+
readonly type: "function";
|
|
901
|
+
}, {
|
|
902
|
+
readonly inputs: readonly [{
|
|
903
|
+
readonly internalType: "address";
|
|
904
|
+
readonly name: "recipient";
|
|
905
|
+
readonly type: "address";
|
|
906
|
+
}, {
|
|
907
|
+
readonly internalType: "uint256";
|
|
908
|
+
readonly name: "amount";
|
|
909
|
+
readonly type: "uint256";
|
|
910
|
+
}];
|
|
911
|
+
readonly name: "transfer";
|
|
912
|
+
readonly outputs: readonly [{
|
|
913
|
+
readonly internalType: "bool";
|
|
914
|
+
readonly name: "";
|
|
915
|
+
readonly type: "bool";
|
|
916
|
+
}];
|
|
917
|
+
readonly stateMutability: "nonpayable";
|
|
918
|
+
readonly type: "function";
|
|
919
|
+
}, {
|
|
920
|
+
readonly inputs: readonly [{
|
|
921
|
+
readonly internalType: "address";
|
|
922
|
+
readonly name: "sender";
|
|
923
|
+
readonly type: "address";
|
|
924
|
+
}, {
|
|
925
|
+
readonly internalType: "address";
|
|
926
|
+
readonly name: "recipient";
|
|
927
|
+
readonly type: "address";
|
|
928
|
+
}, {
|
|
929
|
+
readonly internalType: "uint256";
|
|
930
|
+
readonly name: "amount";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
}];
|
|
933
|
+
readonly name: "transferFrom";
|
|
934
|
+
readonly outputs: readonly [{
|
|
935
|
+
readonly internalType: "bool";
|
|
936
|
+
readonly name: "";
|
|
937
|
+
readonly type: "bool";
|
|
938
|
+
}];
|
|
939
|
+
readonly stateMutability: "nonpayable";
|
|
940
|
+
readonly type: "function";
|
|
941
|
+
}, {
|
|
942
|
+
readonly inputs: readonly [];
|
|
943
|
+
readonly name: "unlock";
|
|
944
|
+
readonly outputs: readonly [];
|
|
945
|
+
readonly stateMutability: "nonpayable";
|
|
946
|
+
readonly type: "function";
|
|
947
|
+
}, {
|
|
948
|
+
readonly stateMutability: "payable";
|
|
949
|
+
readonly type: "receive";
|
|
950
|
+
}];
|
|
951
|
+
/**
|
|
952
|
+
* Type-safe ABI for SetToken_json
|
|
953
|
+
*/
|
|
954
|
+
export type SetToken_jsonAbi = typeof SetToken_jsonAbi;
|
|
955
|
+
/**
|
|
956
|
+
* Contract instance type for SetToken_json
|
|
957
|
+
*/
|
|
958
|
+
export type SetToken_jsonContract = any;
|
|
959
|
+
/**
|
|
960
|
+
* SetToken_json Contract Class
|
|
961
|
+
*
|
|
962
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
963
|
+
*
|
|
964
|
+
* @example
|
|
965
|
+
* ```typescript
|
|
966
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
967
|
+
* import { mainnet } from 'viem/chains';
|
|
968
|
+
* import { SetToken_json } from 'SetToken_json';
|
|
969
|
+
*
|
|
970
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
971
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
972
|
+
*
|
|
973
|
+
* const contract = new SetToken_json('0x...', { publicClient, walletClient });
|
|
974
|
+
*
|
|
975
|
+
* // Read functions
|
|
976
|
+
* const result = await contract.balanceOf('0x...');
|
|
977
|
+
*
|
|
978
|
+
* // Write functions
|
|
979
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
980
|
+
*
|
|
981
|
+
* // Simulate transactions (dry-run)
|
|
982
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
983
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
984
|
+
*
|
|
985
|
+
* // Watch events
|
|
986
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
987
|
+
* console.log('Transfer event:', event);
|
|
988
|
+
* });
|
|
989
|
+
* ```
|
|
990
|
+
*/
|
|
991
|
+
export declare class SetToken_json {
|
|
992
|
+
private contract;
|
|
993
|
+
private contractAddress;
|
|
994
|
+
private publicClient;
|
|
995
|
+
constructor(address: Address, clients: {
|
|
996
|
+
publicClient: PublicClient;
|
|
997
|
+
walletClient?: WalletClient;
|
|
998
|
+
});
|
|
999
|
+
/**
|
|
1000
|
+
* Get the contract address
|
|
1001
|
+
*/
|
|
1002
|
+
get address(): Address;
|
|
1003
|
+
/**
|
|
1004
|
+
* Get the underlying viem contract instance
|
|
1005
|
+
*/
|
|
1006
|
+
getContract(): SetToken_jsonContract;
|
|
1007
|
+
/**
|
|
1008
|
+
* allowance
|
|
1009
|
+
* view
|
|
1010
|
+
*/
|
|
1011
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
1012
|
+
/**
|
|
1013
|
+
* balanceOf
|
|
1014
|
+
* view
|
|
1015
|
+
*/
|
|
1016
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
1017
|
+
/**
|
|
1018
|
+
* components
|
|
1019
|
+
* view
|
|
1020
|
+
*/
|
|
1021
|
+
components(arg0: bigint): Promise<`0x${string}`>;
|
|
1022
|
+
/**
|
|
1023
|
+
* controller
|
|
1024
|
+
* view
|
|
1025
|
+
*/
|
|
1026
|
+
controller(): Promise<`0x${string}`>;
|
|
1027
|
+
/**
|
|
1028
|
+
* decimals
|
|
1029
|
+
* view
|
|
1030
|
+
*/
|
|
1031
|
+
decimals(): Promise<bigint>;
|
|
1032
|
+
/**
|
|
1033
|
+
* getComponents
|
|
1034
|
+
* view
|
|
1035
|
+
*/
|
|
1036
|
+
getComponents(): Promise<`0x${string}`[]>;
|
|
1037
|
+
/**
|
|
1038
|
+
* getDefaultPositionRealUnit
|
|
1039
|
+
* view
|
|
1040
|
+
*/
|
|
1041
|
+
getDefaultPositionRealUnit(_component: `0x${string}`): Promise<bigint>;
|
|
1042
|
+
/**
|
|
1043
|
+
* getExternalPositionData
|
|
1044
|
+
* view
|
|
1045
|
+
*/
|
|
1046
|
+
getExternalPositionData(_component: `0x${string}`, _positionModule: `0x${string}`): Promise<`0x${string}`>;
|
|
1047
|
+
/**
|
|
1048
|
+
* getExternalPositionModules
|
|
1049
|
+
* view
|
|
1050
|
+
*/
|
|
1051
|
+
getExternalPositionModules(_component: `0x${string}`): Promise<`0x${string}`[]>;
|
|
1052
|
+
/**
|
|
1053
|
+
* getExternalPositionRealUnit
|
|
1054
|
+
* view
|
|
1055
|
+
*/
|
|
1056
|
+
getExternalPositionRealUnit(_component: `0x${string}`, _positionModule: `0x${string}`): Promise<bigint>;
|
|
1057
|
+
/**
|
|
1058
|
+
* getModules
|
|
1059
|
+
* view
|
|
1060
|
+
*/
|
|
1061
|
+
getModules(): Promise<`0x${string}`[]>;
|
|
1062
|
+
/**
|
|
1063
|
+
* getPositions
|
|
1064
|
+
* view
|
|
1065
|
+
*/
|
|
1066
|
+
getPositions(): Promise<ISetToken_Position[]>;
|
|
1067
|
+
/**
|
|
1068
|
+
* getTotalComponentRealUnits
|
|
1069
|
+
* view
|
|
1070
|
+
*/
|
|
1071
|
+
getTotalComponentRealUnits(_component: `0x${string}`): Promise<bigint>;
|
|
1072
|
+
/**
|
|
1073
|
+
* isComponent
|
|
1074
|
+
* view
|
|
1075
|
+
*/
|
|
1076
|
+
isComponent(_component: `0x${string}`): Promise<boolean>;
|
|
1077
|
+
/**
|
|
1078
|
+
* isExternalPositionModule
|
|
1079
|
+
* view
|
|
1080
|
+
*/
|
|
1081
|
+
isExternalPositionModule(_component: `0x${string}`, _module: `0x${string}`): Promise<boolean>;
|
|
1082
|
+
/**
|
|
1083
|
+
* isInitializedModule
|
|
1084
|
+
* view
|
|
1085
|
+
*/
|
|
1086
|
+
isInitializedModule(_module: `0x${string}`): Promise<boolean>;
|
|
1087
|
+
/**
|
|
1088
|
+
* isLocked
|
|
1089
|
+
* view
|
|
1090
|
+
*/
|
|
1091
|
+
isLocked(): Promise<boolean>;
|
|
1092
|
+
/**
|
|
1093
|
+
* isPendingModule
|
|
1094
|
+
* view
|
|
1095
|
+
*/
|
|
1096
|
+
isPendingModule(_module: `0x${string}`): Promise<boolean>;
|
|
1097
|
+
/**
|
|
1098
|
+
* locker
|
|
1099
|
+
* view
|
|
1100
|
+
*/
|
|
1101
|
+
locker(): Promise<`0x${string}`>;
|
|
1102
|
+
/**
|
|
1103
|
+
* manager
|
|
1104
|
+
* view
|
|
1105
|
+
*/
|
|
1106
|
+
manager(): Promise<`0x${string}`>;
|
|
1107
|
+
/**
|
|
1108
|
+
* moduleStates
|
|
1109
|
+
* view
|
|
1110
|
+
*/
|
|
1111
|
+
moduleStates(arg0: `0x${string}`): Promise<bigint>;
|
|
1112
|
+
/**
|
|
1113
|
+
* modules
|
|
1114
|
+
* view
|
|
1115
|
+
*/
|
|
1116
|
+
modules(arg0: bigint): Promise<`0x${string}`>;
|
|
1117
|
+
/**
|
|
1118
|
+
* name
|
|
1119
|
+
* view
|
|
1120
|
+
*/
|
|
1121
|
+
name(): Promise<string>;
|
|
1122
|
+
/**
|
|
1123
|
+
* positionMultiplier
|
|
1124
|
+
* view
|
|
1125
|
+
*/
|
|
1126
|
+
positionMultiplier(): Promise<bigint>;
|
|
1127
|
+
/**
|
|
1128
|
+
* symbol
|
|
1129
|
+
* view
|
|
1130
|
+
*/
|
|
1131
|
+
symbol(): Promise<string>;
|
|
1132
|
+
/**
|
|
1133
|
+
* totalSupply
|
|
1134
|
+
* view
|
|
1135
|
+
*/
|
|
1136
|
+
totalSupply(): Promise<bigint>;
|
|
1137
|
+
/**
|
|
1138
|
+
* addComponent
|
|
1139
|
+
* nonpayable
|
|
1140
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1141
|
+
*/
|
|
1142
|
+
addComponent(_component: `0x${string}`, options?: {
|
|
1143
|
+
accessList?: import('viem').AccessList;
|
|
1144
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1145
|
+
chain?: import('viem').Chain | null;
|
|
1146
|
+
dataSuffix?: `0x${string}`;
|
|
1147
|
+
gas?: bigint;
|
|
1148
|
+
gasPrice?: bigint;
|
|
1149
|
+
maxFeePerGas?: bigint;
|
|
1150
|
+
maxPriorityFeePerGas?: bigint;
|
|
1151
|
+
nonce?: number;
|
|
1152
|
+
value?: bigint;
|
|
1153
|
+
}): Promise<`0x${string}`>;
|
|
1154
|
+
/**
|
|
1155
|
+
* addExternalPositionModule
|
|
1156
|
+
* nonpayable
|
|
1157
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1158
|
+
*/
|
|
1159
|
+
addExternalPositionModule(_component: `0x${string}`, _positionModule: `0x${string}`, options?: {
|
|
1160
|
+
accessList?: import('viem').AccessList;
|
|
1161
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1162
|
+
chain?: import('viem').Chain | null;
|
|
1163
|
+
dataSuffix?: `0x${string}`;
|
|
1164
|
+
gas?: bigint;
|
|
1165
|
+
gasPrice?: bigint;
|
|
1166
|
+
maxFeePerGas?: bigint;
|
|
1167
|
+
maxPriorityFeePerGas?: bigint;
|
|
1168
|
+
nonce?: number;
|
|
1169
|
+
value?: bigint;
|
|
1170
|
+
}): Promise<`0x${string}`>;
|
|
1171
|
+
/**
|
|
1172
|
+
* addModule
|
|
1173
|
+
* nonpayable
|
|
1174
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1175
|
+
*/
|
|
1176
|
+
addModule(_module: `0x${string}`, options?: {
|
|
1177
|
+
accessList?: import('viem').AccessList;
|
|
1178
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1179
|
+
chain?: import('viem').Chain | null;
|
|
1180
|
+
dataSuffix?: `0x${string}`;
|
|
1181
|
+
gas?: bigint;
|
|
1182
|
+
gasPrice?: bigint;
|
|
1183
|
+
maxFeePerGas?: bigint;
|
|
1184
|
+
maxPriorityFeePerGas?: bigint;
|
|
1185
|
+
nonce?: number;
|
|
1186
|
+
value?: bigint;
|
|
1187
|
+
}): Promise<`0x${string}`>;
|
|
1188
|
+
/**
|
|
1189
|
+
* approve
|
|
1190
|
+
* nonpayable
|
|
1191
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1192
|
+
*/
|
|
1193
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1194
|
+
accessList?: import('viem').AccessList;
|
|
1195
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1196
|
+
chain?: import('viem').Chain | null;
|
|
1197
|
+
dataSuffix?: `0x${string}`;
|
|
1198
|
+
gas?: bigint;
|
|
1199
|
+
gasPrice?: bigint;
|
|
1200
|
+
maxFeePerGas?: bigint;
|
|
1201
|
+
maxPriorityFeePerGas?: bigint;
|
|
1202
|
+
nonce?: number;
|
|
1203
|
+
value?: bigint;
|
|
1204
|
+
}): Promise<`0x${string}`>;
|
|
1205
|
+
/**
|
|
1206
|
+
* burn
|
|
1207
|
+
* nonpayable
|
|
1208
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1209
|
+
*/
|
|
1210
|
+
burn(_account: `0x${string}`, _quantity: bigint, options?: {
|
|
1211
|
+
accessList?: import('viem').AccessList;
|
|
1212
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1213
|
+
chain?: import('viem').Chain | null;
|
|
1214
|
+
dataSuffix?: `0x${string}`;
|
|
1215
|
+
gas?: bigint;
|
|
1216
|
+
gasPrice?: bigint;
|
|
1217
|
+
maxFeePerGas?: bigint;
|
|
1218
|
+
maxPriorityFeePerGas?: bigint;
|
|
1219
|
+
nonce?: number;
|
|
1220
|
+
value?: bigint;
|
|
1221
|
+
}): Promise<`0x${string}`>;
|
|
1222
|
+
/**
|
|
1223
|
+
* decreaseAllowance
|
|
1224
|
+
* nonpayable
|
|
1225
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1226
|
+
*/
|
|
1227
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1228
|
+
accessList?: import('viem').AccessList;
|
|
1229
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1230
|
+
chain?: import('viem').Chain | null;
|
|
1231
|
+
dataSuffix?: `0x${string}`;
|
|
1232
|
+
gas?: bigint;
|
|
1233
|
+
gasPrice?: bigint;
|
|
1234
|
+
maxFeePerGas?: bigint;
|
|
1235
|
+
maxPriorityFeePerGas?: bigint;
|
|
1236
|
+
nonce?: number;
|
|
1237
|
+
value?: bigint;
|
|
1238
|
+
}): Promise<`0x${string}`>;
|
|
1239
|
+
/**
|
|
1240
|
+
* editDefaultPositionUnit
|
|
1241
|
+
* nonpayable
|
|
1242
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1243
|
+
*/
|
|
1244
|
+
editDefaultPositionUnit(_component: `0x${string}`, _realUnit: bigint, options?: {
|
|
1245
|
+
accessList?: import('viem').AccessList;
|
|
1246
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1247
|
+
chain?: import('viem').Chain | null;
|
|
1248
|
+
dataSuffix?: `0x${string}`;
|
|
1249
|
+
gas?: bigint;
|
|
1250
|
+
gasPrice?: bigint;
|
|
1251
|
+
maxFeePerGas?: bigint;
|
|
1252
|
+
maxPriorityFeePerGas?: bigint;
|
|
1253
|
+
nonce?: number;
|
|
1254
|
+
value?: bigint;
|
|
1255
|
+
}): Promise<`0x${string}`>;
|
|
1256
|
+
/**
|
|
1257
|
+
* editExternalPositionData
|
|
1258
|
+
* nonpayable
|
|
1259
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1260
|
+
*/
|
|
1261
|
+
editExternalPositionData(_component: `0x${string}`, _positionModule: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1262
|
+
accessList?: import('viem').AccessList;
|
|
1263
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1264
|
+
chain?: import('viem').Chain | null;
|
|
1265
|
+
dataSuffix?: `0x${string}`;
|
|
1266
|
+
gas?: bigint;
|
|
1267
|
+
gasPrice?: bigint;
|
|
1268
|
+
maxFeePerGas?: bigint;
|
|
1269
|
+
maxPriorityFeePerGas?: bigint;
|
|
1270
|
+
nonce?: number;
|
|
1271
|
+
value?: bigint;
|
|
1272
|
+
}): Promise<`0x${string}`>;
|
|
1273
|
+
/**
|
|
1274
|
+
* editExternalPositionUnit
|
|
1275
|
+
* nonpayable
|
|
1276
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1277
|
+
*/
|
|
1278
|
+
editExternalPositionUnit(_component: `0x${string}`, _positionModule: `0x${string}`, _realUnit: bigint, options?: {
|
|
1279
|
+
accessList?: import('viem').AccessList;
|
|
1280
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1281
|
+
chain?: import('viem').Chain | null;
|
|
1282
|
+
dataSuffix?: `0x${string}`;
|
|
1283
|
+
gas?: bigint;
|
|
1284
|
+
gasPrice?: bigint;
|
|
1285
|
+
maxFeePerGas?: bigint;
|
|
1286
|
+
maxPriorityFeePerGas?: bigint;
|
|
1287
|
+
nonce?: number;
|
|
1288
|
+
value?: bigint;
|
|
1289
|
+
}): Promise<`0x${string}`>;
|
|
1290
|
+
/**
|
|
1291
|
+
* editPositionMultiplier
|
|
1292
|
+
* nonpayable
|
|
1293
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1294
|
+
*/
|
|
1295
|
+
editPositionMultiplier(_newMultiplier: bigint, options?: {
|
|
1296
|
+
accessList?: import('viem').AccessList;
|
|
1297
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1298
|
+
chain?: import('viem').Chain | null;
|
|
1299
|
+
dataSuffix?: `0x${string}`;
|
|
1300
|
+
gas?: bigint;
|
|
1301
|
+
gasPrice?: bigint;
|
|
1302
|
+
maxFeePerGas?: bigint;
|
|
1303
|
+
maxPriorityFeePerGas?: bigint;
|
|
1304
|
+
nonce?: number;
|
|
1305
|
+
value?: bigint;
|
|
1306
|
+
}): Promise<`0x${string}`>;
|
|
1307
|
+
/**
|
|
1308
|
+
* increaseAllowance
|
|
1309
|
+
* nonpayable
|
|
1310
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1311
|
+
*/
|
|
1312
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1313
|
+
accessList?: import('viem').AccessList;
|
|
1314
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1315
|
+
chain?: import('viem').Chain | null;
|
|
1316
|
+
dataSuffix?: `0x${string}`;
|
|
1317
|
+
gas?: bigint;
|
|
1318
|
+
gasPrice?: bigint;
|
|
1319
|
+
maxFeePerGas?: bigint;
|
|
1320
|
+
maxPriorityFeePerGas?: bigint;
|
|
1321
|
+
nonce?: number;
|
|
1322
|
+
value?: bigint;
|
|
1323
|
+
}): Promise<`0x${string}`>;
|
|
1324
|
+
/**
|
|
1325
|
+
* initializeModule
|
|
1326
|
+
* nonpayable
|
|
1327
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1328
|
+
*/
|
|
1329
|
+
initializeModule(options?: {
|
|
1330
|
+
accessList?: import('viem').AccessList;
|
|
1331
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1332
|
+
chain?: import('viem').Chain | null;
|
|
1333
|
+
dataSuffix?: `0x${string}`;
|
|
1334
|
+
gas?: bigint;
|
|
1335
|
+
gasPrice?: bigint;
|
|
1336
|
+
maxFeePerGas?: bigint;
|
|
1337
|
+
maxPriorityFeePerGas?: bigint;
|
|
1338
|
+
nonce?: number;
|
|
1339
|
+
value?: bigint;
|
|
1340
|
+
}): Promise<`0x${string}`>;
|
|
1341
|
+
/**
|
|
1342
|
+
* invoke
|
|
1343
|
+
* nonpayable
|
|
1344
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1345
|
+
*/
|
|
1346
|
+
invoke(_target: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1347
|
+
accessList?: import('viem').AccessList;
|
|
1348
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1349
|
+
chain?: import('viem').Chain | null;
|
|
1350
|
+
dataSuffix?: `0x${string}`;
|
|
1351
|
+
gas?: bigint;
|
|
1352
|
+
gasPrice?: bigint;
|
|
1353
|
+
maxFeePerGas?: bigint;
|
|
1354
|
+
maxPriorityFeePerGas?: bigint;
|
|
1355
|
+
nonce?: number;
|
|
1356
|
+
value?: bigint;
|
|
1357
|
+
}): Promise<`0x${string}`>;
|
|
1358
|
+
/**
|
|
1359
|
+
* lock
|
|
1360
|
+
* nonpayable
|
|
1361
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1362
|
+
*/
|
|
1363
|
+
lock(options?: {
|
|
1364
|
+
accessList?: import('viem').AccessList;
|
|
1365
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1366
|
+
chain?: import('viem').Chain | null;
|
|
1367
|
+
dataSuffix?: `0x${string}`;
|
|
1368
|
+
gas?: bigint;
|
|
1369
|
+
gasPrice?: bigint;
|
|
1370
|
+
maxFeePerGas?: bigint;
|
|
1371
|
+
maxPriorityFeePerGas?: bigint;
|
|
1372
|
+
nonce?: number;
|
|
1373
|
+
value?: bigint;
|
|
1374
|
+
}): Promise<`0x${string}`>;
|
|
1375
|
+
/**
|
|
1376
|
+
* mint
|
|
1377
|
+
* nonpayable
|
|
1378
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1379
|
+
*/
|
|
1380
|
+
mint(_account: `0x${string}`, _quantity: bigint, options?: {
|
|
1381
|
+
accessList?: import('viem').AccessList;
|
|
1382
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1383
|
+
chain?: import('viem').Chain | null;
|
|
1384
|
+
dataSuffix?: `0x${string}`;
|
|
1385
|
+
gas?: bigint;
|
|
1386
|
+
gasPrice?: bigint;
|
|
1387
|
+
maxFeePerGas?: bigint;
|
|
1388
|
+
maxPriorityFeePerGas?: bigint;
|
|
1389
|
+
nonce?: number;
|
|
1390
|
+
value?: bigint;
|
|
1391
|
+
}): Promise<`0x${string}`>;
|
|
1392
|
+
/**
|
|
1393
|
+
* removeComponent
|
|
1394
|
+
* nonpayable
|
|
1395
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1396
|
+
*/
|
|
1397
|
+
removeComponent(_component: `0x${string}`, options?: {
|
|
1398
|
+
accessList?: import('viem').AccessList;
|
|
1399
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1400
|
+
chain?: import('viem').Chain | null;
|
|
1401
|
+
dataSuffix?: `0x${string}`;
|
|
1402
|
+
gas?: bigint;
|
|
1403
|
+
gasPrice?: bigint;
|
|
1404
|
+
maxFeePerGas?: bigint;
|
|
1405
|
+
maxPriorityFeePerGas?: bigint;
|
|
1406
|
+
nonce?: number;
|
|
1407
|
+
value?: bigint;
|
|
1408
|
+
}): Promise<`0x${string}`>;
|
|
1409
|
+
/**
|
|
1410
|
+
* removeExternalPositionModule
|
|
1411
|
+
* nonpayable
|
|
1412
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1413
|
+
*/
|
|
1414
|
+
removeExternalPositionModule(_component: `0x${string}`, _positionModule: `0x${string}`, options?: {
|
|
1415
|
+
accessList?: import('viem').AccessList;
|
|
1416
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1417
|
+
chain?: import('viem').Chain | null;
|
|
1418
|
+
dataSuffix?: `0x${string}`;
|
|
1419
|
+
gas?: bigint;
|
|
1420
|
+
gasPrice?: bigint;
|
|
1421
|
+
maxFeePerGas?: bigint;
|
|
1422
|
+
maxPriorityFeePerGas?: bigint;
|
|
1423
|
+
nonce?: number;
|
|
1424
|
+
value?: bigint;
|
|
1425
|
+
}): Promise<`0x${string}`>;
|
|
1426
|
+
/**
|
|
1427
|
+
* removeModule
|
|
1428
|
+
* nonpayable
|
|
1429
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1430
|
+
*/
|
|
1431
|
+
removeModule(_module: `0x${string}`, options?: {
|
|
1432
|
+
accessList?: import('viem').AccessList;
|
|
1433
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1434
|
+
chain?: import('viem').Chain | null;
|
|
1435
|
+
dataSuffix?: `0x${string}`;
|
|
1436
|
+
gas?: bigint;
|
|
1437
|
+
gasPrice?: bigint;
|
|
1438
|
+
maxFeePerGas?: bigint;
|
|
1439
|
+
maxPriorityFeePerGas?: bigint;
|
|
1440
|
+
nonce?: number;
|
|
1441
|
+
value?: bigint;
|
|
1442
|
+
}): Promise<`0x${string}`>;
|
|
1443
|
+
/**
|
|
1444
|
+
* removePendingModule
|
|
1445
|
+
* nonpayable
|
|
1446
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1447
|
+
*/
|
|
1448
|
+
removePendingModule(_module: `0x${string}`, options?: {
|
|
1449
|
+
accessList?: import('viem').AccessList;
|
|
1450
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1451
|
+
chain?: import('viem').Chain | null;
|
|
1452
|
+
dataSuffix?: `0x${string}`;
|
|
1453
|
+
gas?: bigint;
|
|
1454
|
+
gasPrice?: bigint;
|
|
1455
|
+
maxFeePerGas?: bigint;
|
|
1456
|
+
maxPriorityFeePerGas?: bigint;
|
|
1457
|
+
nonce?: number;
|
|
1458
|
+
value?: bigint;
|
|
1459
|
+
}): Promise<`0x${string}`>;
|
|
1460
|
+
/**
|
|
1461
|
+
* setManager
|
|
1462
|
+
* nonpayable
|
|
1463
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1464
|
+
*/
|
|
1465
|
+
setManager(_manager: `0x${string}`, options?: {
|
|
1466
|
+
accessList?: import('viem').AccessList;
|
|
1467
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1468
|
+
chain?: import('viem').Chain | null;
|
|
1469
|
+
dataSuffix?: `0x${string}`;
|
|
1470
|
+
gas?: bigint;
|
|
1471
|
+
gasPrice?: bigint;
|
|
1472
|
+
maxFeePerGas?: bigint;
|
|
1473
|
+
maxPriorityFeePerGas?: bigint;
|
|
1474
|
+
nonce?: number;
|
|
1475
|
+
value?: bigint;
|
|
1476
|
+
}): Promise<`0x${string}`>;
|
|
1477
|
+
/**
|
|
1478
|
+
* transfer
|
|
1479
|
+
* nonpayable
|
|
1480
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1481
|
+
*/
|
|
1482
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1483
|
+
accessList?: import('viem').AccessList;
|
|
1484
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1485
|
+
chain?: import('viem').Chain | null;
|
|
1486
|
+
dataSuffix?: `0x${string}`;
|
|
1487
|
+
gas?: bigint;
|
|
1488
|
+
gasPrice?: bigint;
|
|
1489
|
+
maxFeePerGas?: bigint;
|
|
1490
|
+
maxPriorityFeePerGas?: bigint;
|
|
1491
|
+
nonce?: number;
|
|
1492
|
+
value?: bigint;
|
|
1493
|
+
}): Promise<`0x${string}`>;
|
|
1494
|
+
/**
|
|
1495
|
+
* transferFrom
|
|
1496
|
+
* nonpayable
|
|
1497
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1498
|
+
*/
|
|
1499
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1500
|
+
accessList?: import('viem').AccessList;
|
|
1501
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1502
|
+
chain?: import('viem').Chain | null;
|
|
1503
|
+
dataSuffix?: `0x${string}`;
|
|
1504
|
+
gas?: bigint;
|
|
1505
|
+
gasPrice?: bigint;
|
|
1506
|
+
maxFeePerGas?: bigint;
|
|
1507
|
+
maxPriorityFeePerGas?: bigint;
|
|
1508
|
+
nonce?: number;
|
|
1509
|
+
value?: bigint;
|
|
1510
|
+
}): Promise<`0x${string}`>;
|
|
1511
|
+
/**
|
|
1512
|
+
* unlock
|
|
1513
|
+
* nonpayable
|
|
1514
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1515
|
+
*/
|
|
1516
|
+
unlock(options?: {
|
|
1517
|
+
accessList?: import('viem').AccessList;
|
|
1518
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1519
|
+
chain?: import('viem').Chain | null;
|
|
1520
|
+
dataSuffix?: `0x${string}`;
|
|
1521
|
+
gas?: bigint;
|
|
1522
|
+
gasPrice?: bigint;
|
|
1523
|
+
maxFeePerGas?: bigint;
|
|
1524
|
+
maxPriorityFeePerGas?: bigint;
|
|
1525
|
+
nonce?: number;
|
|
1526
|
+
value?: bigint;
|
|
1527
|
+
}): Promise<`0x${string}`>;
|
|
1528
|
+
/**
|
|
1529
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
1530
|
+
*
|
|
1531
|
+
* @example
|
|
1532
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
1533
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
1534
|
+
* console.log('Would succeed:', result.result);
|
|
1535
|
+
*/
|
|
1536
|
+
get simulate(): {
|
|
1537
|
+
/**
|
|
1538
|
+
* Simulate addComponent
|
|
1539
|
+
* Returns gas estimate and result without sending transaction
|
|
1540
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1541
|
+
*/
|
|
1542
|
+
addComponent(_component: `0x${string}`, options?: {
|
|
1543
|
+
accessList?: import("viem").AccessList;
|
|
1544
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1545
|
+
chain?: import("viem").Chain | null;
|
|
1546
|
+
dataSuffix?: `0x${string}`;
|
|
1547
|
+
gas?: bigint;
|
|
1548
|
+
gasPrice?: bigint;
|
|
1549
|
+
maxFeePerGas?: bigint;
|
|
1550
|
+
maxPriorityFeePerGas?: bigint;
|
|
1551
|
+
nonce?: number;
|
|
1552
|
+
value?: bigint;
|
|
1553
|
+
}): Promise<void>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Simulate addExternalPositionModule
|
|
1556
|
+
* Returns gas estimate and result without sending transaction
|
|
1557
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1558
|
+
*/
|
|
1559
|
+
addExternalPositionModule(_component: `0x${string}`, _positionModule: `0x${string}`, options?: {
|
|
1560
|
+
accessList?: import("viem").AccessList;
|
|
1561
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1562
|
+
chain?: import("viem").Chain | null;
|
|
1563
|
+
dataSuffix?: `0x${string}`;
|
|
1564
|
+
gas?: bigint;
|
|
1565
|
+
gasPrice?: bigint;
|
|
1566
|
+
maxFeePerGas?: bigint;
|
|
1567
|
+
maxPriorityFeePerGas?: bigint;
|
|
1568
|
+
nonce?: number;
|
|
1569
|
+
value?: bigint;
|
|
1570
|
+
}): Promise<void>;
|
|
1571
|
+
/**
|
|
1572
|
+
* Simulate addModule
|
|
1573
|
+
* Returns gas estimate and result without sending transaction
|
|
1574
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1575
|
+
*/
|
|
1576
|
+
addModule(_module: `0x${string}`, options?: {
|
|
1577
|
+
accessList?: import("viem").AccessList;
|
|
1578
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1579
|
+
chain?: import("viem").Chain | null;
|
|
1580
|
+
dataSuffix?: `0x${string}`;
|
|
1581
|
+
gas?: bigint;
|
|
1582
|
+
gasPrice?: bigint;
|
|
1583
|
+
maxFeePerGas?: bigint;
|
|
1584
|
+
maxPriorityFeePerGas?: bigint;
|
|
1585
|
+
nonce?: number;
|
|
1586
|
+
value?: bigint;
|
|
1587
|
+
}): Promise<void>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Simulate approve
|
|
1590
|
+
* Returns gas estimate and result without sending transaction
|
|
1591
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1592
|
+
*/
|
|
1593
|
+
approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1594
|
+
accessList?: import("viem").AccessList;
|
|
1595
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1596
|
+
chain?: import("viem").Chain | null;
|
|
1597
|
+
dataSuffix?: `0x${string}`;
|
|
1598
|
+
gas?: bigint;
|
|
1599
|
+
gasPrice?: bigint;
|
|
1600
|
+
maxFeePerGas?: bigint;
|
|
1601
|
+
maxPriorityFeePerGas?: bigint;
|
|
1602
|
+
nonce?: number;
|
|
1603
|
+
value?: bigint;
|
|
1604
|
+
}): Promise<boolean>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Simulate burn
|
|
1607
|
+
* Returns gas estimate and result without sending transaction
|
|
1608
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1609
|
+
*/
|
|
1610
|
+
burn(_account: `0x${string}`, _quantity: bigint, options?: {
|
|
1611
|
+
accessList?: import("viem").AccessList;
|
|
1612
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1613
|
+
chain?: import("viem").Chain | null;
|
|
1614
|
+
dataSuffix?: `0x${string}`;
|
|
1615
|
+
gas?: bigint;
|
|
1616
|
+
gasPrice?: bigint;
|
|
1617
|
+
maxFeePerGas?: bigint;
|
|
1618
|
+
maxPriorityFeePerGas?: bigint;
|
|
1619
|
+
nonce?: number;
|
|
1620
|
+
value?: bigint;
|
|
1621
|
+
}): Promise<void>;
|
|
1622
|
+
/**
|
|
1623
|
+
* Simulate decreaseAllowance
|
|
1624
|
+
* Returns gas estimate and result without sending transaction
|
|
1625
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1626
|
+
*/
|
|
1627
|
+
decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1628
|
+
accessList?: import("viem").AccessList;
|
|
1629
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1630
|
+
chain?: import("viem").Chain | null;
|
|
1631
|
+
dataSuffix?: `0x${string}`;
|
|
1632
|
+
gas?: bigint;
|
|
1633
|
+
gasPrice?: bigint;
|
|
1634
|
+
maxFeePerGas?: bigint;
|
|
1635
|
+
maxPriorityFeePerGas?: bigint;
|
|
1636
|
+
nonce?: number;
|
|
1637
|
+
value?: bigint;
|
|
1638
|
+
}): Promise<boolean>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Simulate editDefaultPositionUnit
|
|
1641
|
+
* Returns gas estimate and result without sending transaction
|
|
1642
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1643
|
+
*/
|
|
1644
|
+
editDefaultPositionUnit(_component: `0x${string}`, _realUnit: bigint, options?: {
|
|
1645
|
+
accessList?: import("viem").AccessList;
|
|
1646
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1647
|
+
chain?: import("viem").Chain | null;
|
|
1648
|
+
dataSuffix?: `0x${string}`;
|
|
1649
|
+
gas?: bigint;
|
|
1650
|
+
gasPrice?: bigint;
|
|
1651
|
+
maxFeePerGas?: bigint;
|
|
1652
|
+
maxPriorityFeePerGas?: bigint;
|
|
1653
|
+
nonce?: number;
|
|
1654
|
+
value?: bigint;
|
|
1655
|
+
}): Promise<void>;
|
|
1656
|
+
/**
|
|
1657
|
+
* Simulate editExternalPositionData
|
|
1658
|
+
* Returns gas estimate and result without sending transaction
|
|
1659
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1660
|
+
*/
|
|
1661
|
+
editExternalPositionData(_component: `0x${string}`, _positionModule: `0x${string}`, _data: `0x${string}`, options?: {
|
|
1662
|
+
accessList?: import("viem").AccessList;
|
|
1663
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1664
|
+
chain?: import("viem").Chain | null;
|
|
1665
|
+
dataSuffix?: `0x${string}`;
|
|
1666
|
+
gas?: bigint;
|
|
1667
|
+
gasPrice?: bigint;
|
|
1668
|
+
maxFeePerGas?: bigint;
|
|
1669
|
+
maxPriorityFeePerGas?: bigint;
|
|
1670
|
+
nonce?: number;
|
|
1671
|
+
value?: bigint;
|
|
1672
|
+
}): Promise<void>;
|
|
1673
|
+
/**
|
|
1674
|
+
* Simulate editExternalPositionUnit
|
|
1675
|
+
* Returns gas estimate and result without sending transaction
|
|
1676
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1677
|
+
*/
|
|
1678
|
+
editExternalPositionUnit(_component: `0x${string}`, _positionModule: `0x${string}`, _realUnit: bigint, options?: {
|
|
1679
|
+
accessList?: import("viem").AccessList;
|
|
1680
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1681
|
+
chain?: import("viem").Chain | null;
|
|
1682
|
+
dataSuffix?: `0x${string}`;
|
|
1683
|
+
gas?: bigint;
|
|
1684
|
+
gasPrice?: bigint;
|
|
1685
|
+
maxFeePerGas?: bigint;
|
|
1686
|
+
maxPriorityFeePerGas?: bigint;
|
|
1687
|
+
nonce?: number;
|
|
1688
|
+
value?: bigint;
|
|
1689
|
+
}): Promise<void>;
|
|
1690
|
+
/**
|
|
1691
|
+
* Simulate editPositionMultiplier
|
|
1692
|
+
* Returns gas estimate and result without sending transaction
|
|
1693
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1694
|
+
*/
|
|
1695
|
+
editPositionMultiplier(_newMultiplier: bigint, options?: {
|
|
1696
|
+
accessList?: import("viem").AccessList;
|
|
1697
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1698
|
+
chain?: import("viem").Chain | null;
|
|
1699
|
+
dataSuffix?: `0x${string}`;
|
|
1700
|
+
gas?: bigint;
|
|
1701
|
+
gasPrice?: bigint;
|
|
1702
|
+
maxFeePerGas?: bigint;
|
|
1703
|
+
maxPriorityFeePerGas?: bigint;
|
|
1704
|
+
nonce?: number;
|
|
1705
|
+
value?: bigint;
|
|
1706
|
+
}): Promise<void>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Simulate increaseAllowance
|
|
1709
|
+
* Returns gas estimate and result without sending transaction
|
|
1710
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1711
|
+
*/
|
|
1712
|
+
increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1713
|
+
accessList?: import("viem").AccessList;
|
|
1714
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1715
|
+
chain?: import("viem").Chain | null;
|
|
1716
|
+
dataSuffix?: `0x${string}`;
|
|
1717
|
+
gas?: bigint;
|
|
1718
|
+
gasPrice?: bigint;
|
|
1719
|
+
maxFeePerGas?: bigint;
|
|
1720
|
+
maxPriorityFeePerGas?: bigint;
|
|
1721
|
+
nonce?: number;
|
|
1722
|
+
value?: bigint;
|
|
1723
|
+
}): Promise<boolean>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Simulate initializeModule
|
|
1726
|
+
* Returns gas estimate and result without sending transaction
|
|
1727
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1728
|
+
*/
|
|
1729
|
+
initializeModule(options?: {
|
|
1730
|
+
accessList?: import("viem").AccessList;
|
|
1731
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1732
|
+
chain?: import("viem").Chain | null;
|
|
1733
|
+
dataSuffix?: `0x${string}`;
|
|
1734
|
+
gas?: bigint;
|
|
1735
|
+
gasPrice?: bigint;
|
|
1736
|
+
maxFeePerGas?: bigint;
|
|
1737
|
+
maxPriorityFeePerGas?: bigint;
|
|
1738
|
+
nonce?: number;
|
|
1739
|
+
value?: bigint;
|
|
1740
|
+
}): Promise<void>;
|
|
1741
|
+
/**
|
|
1742
|
+
* Simulate invoke
|
|
1743
|
+
* Returns gas estimate and result without sending transaction
|
|
1744
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1745
|
+
*/
|
|
1746
|
+
invoke(_target: `0x${string}`, _value: bigint, _data: `0x${string}`, options?: {
|
|
1747
|
+
accessList?: import("viem").AccessList;
|
|
1748
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1749
|
+
chain?: import("viem").Chain | null;
|
|
1750
|
+
dataSuffix?: `0x${string}`;
|
|
1751
|
+
gas?: bigint;
|
|
1752
|
+
gasPrice?: bigint;
|
|
1753
|
+
maxFeePerGas?: bigint;
|
|
1754
|
+
maxPriorityFeePerGas?: bigint;
|
|
1755
|
+
nonce?: number;
|
|
1756
|
+
value?: bigint;
|
|
1757
|
+
}): Promise<`0x${string}`>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Simulate lock
|
|
1760
|
+
* Returns gas estimate and result without sending transaction
|
|
1761
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1762
|
+
*/
|
|
1763
|
+
lock(options?: {
|
|
1764
|
+
accessList?: import("viem").AccessList;
|
|
1765
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1766
|
+
chain?: import("viem").Chain | null;
|
|
1767
|
+
dataSuffix?: `0x${string}`;
|
|
1768
|
+
gas?: bigint;
|
|
1769
|
+
gasPrice?: bigint;
|
|
1770
|
+
maxFeePerGas?: bigint;
|
|
1771
|
+
maxPriorityFeePerGas?: bigint;
|
|
1772
|
+
nonce?: number;
|
|
1773
|
+
value?: bigint;
|
|
1774
|
+
}): Promise<void>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Simulate mint
|
|
1777
|
+
* Returns gas estimate and result without sending transaction
|
|
1778
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1779
|
+
*/
|
|
1780
|
+
mint(_account: `0x${string}`, _quantity: bigint, options?: {
|
|
1781
|
+
accessList?: import("viem").AccessList;
|
|
1782
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1783
|
+
chain?: import("viem").Chain | null;
|
|
1784
|
+
dataSuffix?: `0x${string}`;
|
|
1785
|
+
gas?: bigint;
|
|
1786
|
+
gasPrice?: bigint;
|
|
1787
|
+
maxFeePerGas?: bigint;
|
|
1788
|
+
maxPriorityFeePerGas?: bigint;
|
|
1789
|
+
nonce?: number;
|
|
1790
|
+
value?: bigint;
|
|
1791
|
+
}): Promise<void>;
|
|
1792
|
+
/**
|
|
1793
|
+
* Simulate removeComponent
|
|
1794
|
+
* Returns gas estimate and result without sending transaction
|
|
1795
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1796
|
+
*/
|
|
1797
|
+
removeComponent(_component: `0x${string}`, options?: {
|
|
1798
|
+
accessList?: import("viem").AccessList;
|
|
1799
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1800
|
+
chain?: import("viem").Chain | null;
|
|
1801
|
+
dataSuffix?: `0x${string}`;
|
|
1802
|
+
gas?: bigint;
|
|
1803
|
+
gasPrice?: bigint;
|
|
1804
|
+
maxFeePerGas?: bigint;
|
|
1805
|
+
maxPriorityFeePerGas?: bigint;
|
|
1806
|
+
nonce?: number;
|
|
1807
|
+
value?: bigint;
|
|
1808
|
+
}): Promise<void>;
|
|
1809
|
+
/**
|
|
1810
|
+
* Simulate removeExternalPositionModule
|
|
1811
|
+
* Returns gas estimate and result without sending transaction
|
|
1812
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1813
|
+
*/
|
|
1814
|
+
removeExternalPositionModule(_component: `0x${string}`, _positionModule: `0x${string}`, options?: {
|
|
1815
|
+
accessList?: import("viem").AccessList;
|
|
1816
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1817
|
+
chain?: import("viem").Chain | null;
|
|
1818
|
+
dataSuffix?: `0x${string}`;
|
|
1819
|
+
gas?: bigint;
|
|
1820
|
+
gasPrice?: bigint;
|
|
1821
|
+
maxFeePerGas?: bigint;
|
|
1822
|
+
maxPriorityFeePerGas?: bigint;
|
|
1823
|
+
nonce?: number;
|
|
1824
|
+
value?: bigint;
|
|
1825
|
+
}): Promise<void>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Simulate removeModule
|
|
1828
|
+
* Returns gas estimate and result without sending transaction
|
|
1829
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1830
|
+
*/
|
|
1831
|
+
removeModule(_module: `0x${string}`, options?: {
|
|
1832
|
+
accessList?: import("viem").AccessList;
|
|
1833
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1834
|
+
chain?: import("viem").Chain | null;
|
|
1835
|
+
dataSuffix?: `0x${string}`;
|
|
1836
|
+
gas?: bigint;
|
|
1837
|
+
gasPrice?: bigint;
|
|
1838
|
+
maxFeePerGas?: bigint;
|
|
1839
|
+
maxPriorityFeePerGas?: bigint;
|
|
1840
|
+
nonce?: number;
|
|
1841
|
+
value?: bigint;
|
|
1842
|
+
}): Promise<void>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Simulate removePendingModule
|
|
1845
|
+
* Returns gas estimate and result without sending transaction
|
|
1846
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1847
|
+
*/
|
|
1848
|
+
removePendingModule(_module: `0x${string}`, options?: {
|
|
1849
|
+
accessList?: import("viem").AccessList;
|
|
1850
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1851
|
+
chain?: import("viem").Chain | null;
|
|
1852
|
+
dataSuffix?: `0x${string}`;
|
|
1853
|
+
gas?: bigint;
|
|
1854
|
+
gasPrice?: bigint;
|
|
1855
|
+
maxFeePerGas?: bigint;
|
|
1856
|
+
maxPriorityFeePerGas?: bigint;
|
|
1857
|
+
nonce?: number;
|
|
1858
|
+
value?: bigint;
|
|
1859
|
+
}): Promise<void>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Simulate setManager
|
|
1862
|
+
* Returns gas estimate and result without sending transaction
|
|
1863
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1864
|
+
*/
|
|
1865
|
+
setManager(_manager: `0x${string}`, options?: {
|
|
1866
|
+
accessList?: import("viem").AccessList;
|
|
1867
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1868
|
+
chain?: import("viem").Chain | null;
|
|
1869
|
+
dataSuffix?: `0x${string}`;
|
|
1870
|
+
gas?: bigint;
|
|
1871
|
+
gasPrice?: bigint;
|
|
1872
|
+
maxFeePerGas?: bigint;
|
|
1873
|
+
maxPriorityFeePerGas?: bigint;
|
|
1874
|
+
nonce?: number;
|
|
1875
|
+
value?: bigint;
|
|
1876
|
+
}): Promise<void>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Simulate transfer
|
|
1879
|
+
* Returns gas estimate and result without sending transaction
|
|
1880
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1881
|
+
*/
|
|
1882
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1883
|
+
accessList?: import("viem").AccessList;
|
|
1884
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1885
|
+
chain?: import("viem").Chain | null;
|
|
1886
|
+
dataSuffix?: `0x${string}`;
|
|
1887
|
+
gas?: bigint;
|
|
1888
|
+
gasPrice?: bigint;
|
|
1889
|
+
maxFeePerGas?: bigint;
|
|
1890
|
+
maxPriorityFeePerGas?: bigint;
|
|
1891
|
+
nonce?: number;
|
|
1892
|
+
value?: bigint;
|
|
1893
|
+
}): Promise<boolean>;
|
|
1894
|
+
/**
|
|
1895
|
+
* Simulate transferFrom
|
|
1896
|
+
* Returns gas estimate and result without sending transaction
|
|
1897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1898
|
+
*/
|
|
1899
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1900
|
+
accessList?: import("viem").AccessList;
|
|
1901
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1902
|
+
chain?: import("viem").Chain | null;
|
|
1903
|
+
dataSuffix?: `0x${string}`;
|
|
1904
|
+
gas?: bigint;
|
|
1905
|
+
gasPrice?: bigint;
|
|
1906
|
+
maxFeePerGas?: bigint;
|
|
1907
|
+
maxPriorityFeePerGas?: bigint;
|
|
1908
|
+
nonce?: number;
|
|
1909
|
+
value?: bigint;
|
|
1910
|
+
}): Promise<boolean>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Simulate unlock
|
|
1913
|
+
* Returns gas estimate and result without sending transaction
|
|
1914
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1915
|
+
*/
|
|
1916
|
+
unlock(options?: {
|
|
1917
|
+
accessList?: import("viem").AccessList;
|
|
1918
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1919
|
+
chain?: import("viem").Chain | null;
|
|
1920
|
+
dataSuffix?: `0x${string}`;
|
|
1921
|
+
gas?: bigint;
|
|
1922
|
+
gasPrice?: bigint;
|
|
1923
|
+
maxFeePerGas?: bigint;
|
|
1924
|
+
maxPriorityFeePerGas?: bigint;
|
|
1925
|
+
nonce?: number;
|
|
1926
|
+
value?: bigint;
|
|
1927
|
+
}): Promise<void>;
|
|
1928
|
+
};
|
|
1929
|
+
/**
|
|
1930
|
+
* Watch contract events
|
|
1931
|
+
*
|
|
1932
|
+
* @example
|
|
1933
|
+
* // Watch all Transfer events
|
|
1934
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1935
|
+
* console.log('Transfer:', event);
|
|
1936
|
+
* });
|
|
1937
|
+
*
|
|
1938
|
+
* // Stop watching
|
|
1939
|
+
* unwatch();
|
|
1940
|
+
*/
|
|
1941
|
+
get watch(): {
|
|
1942
|
+
/**
|
|
1943
|
+
* Watch Approval events
|
|
1944
|
+
* @param callback Function to call when event is emitted
|
|
1945
|
+
* @param filter Optional filter for indexed parameters
|
|
1946
|
+
* @returns Unwatch function to stop listening
|
|
1947
|
+
*/
|
|
1948
|
+
Approval: (callback: (event: {
|
|
1949
|
+
owner: `0x${string}`;
|
|
1950
|
+
spender: `0x${string}`;
|
|
1951
|
+
value: bigint;
|
|
1952
|
+
}) => void, filter?: {
|
|
1953
|
+
owner: `0x${string}`;
|
|
1954
|
+
spender: `0x${string}`;
|
|
1955
|
+
}) => () => void;
|
|
1956
|
+
/**
|
|
1957
|
+
* Watch ComponentAdded events
|
|
1958
|
+
* @param callback Function to call when event is emitted
|
|
1959
|
+
* @param filter Optional filter for indexed parameters
|
|
1960
|
+
* @returns Unwatch function to stop listening
|
|
1961
|
+
*/
|
|
1962
|
+
ComponentAdded: (callback: (event: {
|
|
1963
|
+
_component: `0x${string}`;
|
|
1964
|
+
}) => void, filter?: {
|
|
1965
|
+
_component: `0x${string}`;
|
|
1966
|
+
}) => () => void;
|
|
1967
|
+
/**
|
|
1968
|
+
* Watch ComponentRemoved events
|
|
1969
|
+
* @param callback Function to call when event is emitted
|
|
1970
|
+
* @param filter Optional filter for indexed parameters
|
|
1971
|
+
* @returns Unwatch function to stop listening
|
|
1972
|
+
*/
|
|
1973
|
+
ComponentRemoved: (callback: (event: {
|
|
1974
|
+
_component: `0x${string}`;
|
|
1975
|
+
}) => void, filter?: {
|
|
1976
|
+
_component: `0x${string}`;
|
|
1977
|
+
}) => () => void;
|
|
1978
|
+
/**
|
|
1979
|
+
* Watch DefaultPositionUnitEdited events
|
|
1980
|
+
* @param callback Function to call when event is emitted
|
|
1981
|
+
* @param filter Optional filter for indexed parameters
|
|
1982
|
+
* @returns Unwatch function to stop listening
|
|
1983
|
+
*/
|
|
1984
|
+
DefaultPositionUnitEdited: (callback: (event: {
|
|
1985
|
+
_component: `0x${string}`;
|
|
1986
|
+
_realUnit: bigint;
|
|
1987
|
+
}) => void, filter?: {
|
|
1988
|
+
_component: `0x${string}`;
|
|
1989
|
+
}) => () => void;
|
|
1990
|
+
/**
|
|
1991
|
+
* Watch ExternalPositionDataEdited events
|
|
1992
|
+
* @param callback Function to call when event is emitted
|
|
1993
|
+
* @param filter Optional filter for indexed parameters
|
|
1994
|
+
* @returns Unwatch function to stop listening
|
|
1995
|
+
*/
|
|
1996
|
+
ExternalPositionDataEdited: (callback: (event: {
|
|
1997
|
+
_component: `0x${string}`;
|
|
1998
|
+
_positionModule: `0x${string}`;
|
|
1999
|
+
_data: `0x${string}`;
|
|
2000
|
+
}) => void, filter?: {
|
|
2001
|
+
_component: `0x${string}`;
|
|
2002
|
+
_positionModule: `0x${string}`;
|
|
2003
|
+
}) => () => void;
|
|
2004
|
+
/**
|
|
2005
|
+
* Watch ExternalPositionUnitEdited events
|
|
2006
|
+
* @param callback Function to call when event is emitted
|
|
2007
|
+
* @param filter Optional filter for indexed parameters
|
|
2008
|
+
* @returns Unwatch function to stop listening
|
|
2009
|
+
*/
|
|
2010
|
+
ExternalPositionUnitEdited: (callback: (event: {
|
|
2011
|
+
_component: `0x${string}`;
|
|
2012
|
+
_positionModule: `0x${string}`;
|
|
2013
|
+
_realUnit: bigint;
|
|
2014
|
+
}) => void, filter?: {
|
|
2015
|
+
_component: `0x${string}`;
|
|
2016
|
+
_positionModule: `0x${string}`;
|
|
2017
|
+
}) => () => void;
|
|
2018
|
+
/**
|
|
2019
|
+
* Watch Invoked events
|
|
2020
|
+
* @param callback Function to call when event is emitted
|
|
2021
|
+
* @param filter Optional filter for indexed parameters
|
|
2022
|
+
* @returns Unwatch function to stop listening
|
|
2023
|
+
*/
|
|
2024
|
+
Invoked: (callback: (event: {
|
|
2025
|
+
_target: `0x${string}`;
|
|
2026
|
+
_value: bigint;
|
|
2027
|
+
_data: `0x${string}`;
|
|
2028
|
+
_returnValue: `0x${string}`;
|
|
2029
|
+
}) => void, filter?: {
|
|
2030
|
+
_target: `0x${string}`;
|
|
2031
|
+
_value: bigint;
|
|
2032
|
+
}) => () => void;
|
|
2033
|
+
/**
|
|
2034
|
+
* Watch ManagerEdited events
|
|
2035
|
+
* @param callback Function to call when event is emitted
|
|
2036
|
+
* @param filter Optional filter for indexed parameters
|
|
2037
|
+
* @returns Unwatch function to stop listening
|
|
2038
|
+
*/
|
|
2039
|
+
ManagerEdited: (callback: (event: {
|
|
2040
|
+
_newManager: `0x${string}`;
|
|
2041
|
+
_oldManager: `0x${string}`;
|
|
2042
|
+
}) => void) => () => void;
|
|
2043
|
+
/**
|
|
2044
|
+
* Watch ModuleAdded events
|
|
2045
|
+
* @param callback Function to call when event is emitted
|
|
2046
|
+
* @param filter Optional filter for indexed parameters
|
|
2047
|
+
* @returns Unwatch function to stop listening
|
|
2048
|
+
*/
|
|
2049
|
+
ModuleAdded: (callback: (event: {
|
|
2050
|
+
_module: `0x${string}`;
|
|
2051
|
+
}) => void, filter?: {
|
|
2052
|
+
_module: `0x${string}`;
|
|
2053
|
+
}) => () => void;
|
|
2054
|
+
/**
|
|
2055
|
+
* Watch ModuleInitialized events
|
|
2056
|
+
* @param callback Function to call when event is emitted
|
|
2057
|
+
* @param filter Optional filter for indexed parameters
|
|
2058
|
+
* @returns Unwatch function to stop listening
|
|
2059
|
+
*/
|
|
2060
|
+
ModuleInitialized: (callback: (event: {
|
|
2061
|
+
_module: `0x${string}`;
|
|
2062
|
+
}) => void, filter?: {
|
|
2063
|
+
_module: `0x${string}`;
|
|
2064
|
+
}) => () => void;
|
|
2065
|
+
/**
|
|
2066
|
+
* Watch ModuleRemoved events
|
|
2067
|
+
* @param callback Function to call when event is emitted
|
|
2068
|
+
* @param filter Optional filter for indexed parameters
|
|
2069
|
+
* @returns Unwatch function to stop listening
|
|
2070
|
+
*/
|
|
2071
|
+
ModuleRemoved: (callback: (event: {
|
|
2072
|
+
_module: `0x${string}`;
|
|
2073
|
+
}) => void, filter?: {
|
|
2074
|
+
_module: `0x${string}`;
|
|
2075
|
+
}) => () => void;
|
|
2076
|
+
/**
|
|
2077
|
+
* Watch PendingModuleRemoved events
|
|
2078
|
+
* @param callback Function to call when event is emitted
|
|
2079
|
+
* @param filter Optional filter for indexed parameters
|
|
2080
|
+
* @returns Unwatch function to stop listening
|
|
2081
|
+
*/
|
|
2082
|
+
PendingModuleRemoved: (callback: (event: {
|
|
2083
|
+
_module: `0x${string}`;
|
|
2084
|
+
}) => void, filter?: {
|
|
2085
|
+
_module: `0x${string}`;
|
|
2086
|
+
}) => () => void;
|
|
2087
|
+
/**
|
|
2088
|
+
* Watch PositionModuleAdded events
|
|
2089
|
+
* @param callback Function to call when event is emitted
|
|
2090
|
+
* @param filter Optional filter for indexed parameters
|
|
2091
|
+
* @returns Unwatch function to stop listening
|
|
2092
|
+
*/
|
|
2093
|
+
PositionModuleAdded: (callback: (event: {
|
|
2094
|
+
_component: `0x${string}`;
|
|
2095
|
+
_positionModule: `0x${string}`;
|
|
2096
|
+
}) => void, filter?: {
|
|
2097
|
+
_component: `0x${string}`;
|
|
2098
|
+
_positionModule: `0x${string}`;
|
|
2099
|
+
}) => () => void;
|
|
2100
|
+
/**
|
|
2101
|
+
* Watch PositionModuleRemoved events
|
|
2102
|
+
* @param callback Function to call when event is emitted
|
|
2103
|
+
* @param filter Optional filter for indexed parameters
|
|
2104
|
+
* @returns Unwatch function to stop listening
|
|
2105
|
+
*/
|
|
2106
|
+
PositionModuleRemoved: (callback: (event: {
|
|
2107
|
+
_component: `0x${string}`;
|
|
2108
|
+
_positionModule: `0x${string}`;
|
|
2109
|
+
}) => void, filter?: {
|
|
2110
|
+
_component: `0x${string}`;
|
|
2111
|
+
_positionModule: `0x${string}`;
|
|
2112
|
+
}) => () => void;
|
|
2113
|
+
/**
|
|
2114
|
+
* Watch PositionMultiplierEdited events
|
|
2115
|
+
* @param callback Function to call when event is emitted
|
|
2116
|
+
* @param filter Optional filter for indexed parameters
|
|
2117
|
+
* @returns Unwatch function to stop listening
|
|
2118
|
+
*/
|
|
2119
|
+
PositionMultiplierEdited: (callback: (event: {
|
|
2120
|
+
_newMultiplier: bigint;
|
|
2121
|
+
}) => void) => () => void;
|
|
2122
|
+
/**
|
|
2123
|
+
* Watch Transfer events
|
|
2124
|
+
* @param callback Function to call when event is emitted
|
|
2125
|
+
* @param filter Optional filter for indexed parameters
|
|
2126
|
+
* @returns Unwatch function to stop listening
|
|
2127
|
+
*/
|
|
2128
|
+
Transfer: (callback: (event: {
|
|
2129
|
+
from: `0x${string}`;
|
|
2130
|
+
to: `0x${string}`;
|
|
2131
|
+
value: bigint;
|
|
2132
|
+
}) => void, filter?: {
|
|
2133
|
+
from: `0x${string}`;
|
|
2134
|
+
to: `0x${string}`;
|
|
2135
|
+
}) => () => void;
|
|
2136
|
+
};
|
|
2137
|
+
}
|