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