@logswap/sdk 0.5.36 → 0.5.38
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/dist/client.d.ts +1 -1
- package/dist/client.js +8 -1
- package/dist/fpool.d.ts +3888 -27
- package/dist/fpool.js +198 -35
- package/dist/generated.d.ts +2078 -292
- package/dist/generated.js +1479 -193
- package/package.json +2 -2
- package/src/client.ts +8 -1
- package/src/fpool.ts +290 -51
- package/src/generated.ts +1481 -193
package/dist/fpool.d.ts
CHANGED
|
@@ -23,6 +23,3724 @@
|
|
|
23
23
|
* `addresses.router`.
|
|
24
24
|
*/
|
|
25
25
|
import { type Address, type Hash, type Hex } from "viem";
|
|
26
|
+
/**
|
|
27
|
+
* The F manager's ABI is the UNION of its two compiled halves (decisions 031): `FPoolManager`
|
|
28
|
+
* holds the primitive and forwards every other selector from its fallback to `FPoolSponsor` —
|
|
29
|
+
* the lever, `claim`, `dissolve`, the handover, the gates, the desk, the names — by delegatecall.
|
|
30
|
+
* One address from outside, so one ABI here; both halves carry the base's events and errors,
|
|
31
|
+
* and viem tolerates the duplicates.
|
|
32
|
+
*/
|
|
33
|
+
export declare const fPoolManagerAbi: readonly [{
|
|
34
|
+
readonly type: "constructor";
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly name: "_feeCollector";
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "nonpayable";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "fallback";
|
|
43
|
+
readonly stateMutability: "nonpayable";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "FEE_MIN";
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "function";
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "HARVEST_FEE";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}];
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "function";
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "LEVER_FLOOR";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly name: "";
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "function";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "MINT_FEE";
|
|
78
|
+
readonly outputs: readonly [{
|
|
79
|
+
readonly name: "";
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}];
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
}, {
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "MINT_FEE_PROTOCOL_CUT";
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly name: "";
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}];
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "acceptCollector";
|
|
98
|
+
readonly outputs: readonly [];
|
|
99
|
+
readonly stateMutability: "nonpayable";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly name: "owner";
|
|
104
|
+
readonly internalType: "address";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "spender";
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly type: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "id";
|
|
112
|
+
readonly internalType: "uint256";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "allowance";
|
|
116
|
+
readonly outputs: readonly [{
|
|
117
|
+
readonly name: "amount";
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
readonly stateMutability: "view";
|
|
122
|
+
}, {
|
|
123
|
+
readonly type: "function";
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly name: "";
|
|
126
|
+
readonly internalType: "bytes32";
|
|
127
|
+
readonly type: "bytes32";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "";
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "allowed";
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly name: "";
|
|
136
|
+
readonly internalType: "bool";
|
|
137
|
+
readonly type: "bool";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly name: "spender";
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "id";
|
|
148
|
+
readonly internalType: "uint256";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "amount";
|
|
152
|
+
readonly internalType: "uint256";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly name: "approve";
|
|
156
|
+
readonly outputs: readonly [{
|
|
157
|
+
readonly name: "";
|
|
158
|
+
readonly internalType: "bool";
|
|
159
|
+
readonly type: "bool";
|
|
160
|
+
}];
|
|
161
|
+
readonly stateMutability: "payable";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
readonly inputs: readonly [{
|
|
165
|
+
readonly name: "owner";
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "id";
|
|
170
|
+
readonly internalType: "uint256";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
readonly name: "balanceOf";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly name: "amount";
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}];
|
|
179
|
+
readonly stateMutability: "view";
|
|
180
|
+
}, {
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly name: "poolId";
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
readonly type: "bytes32";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "gen";
|
|
188
|
+
readonly internalType: "uint256";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "bundleOf";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly name: "supply";
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "quote";
|
|
198
|
+
readonly internalType: "uint256";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "base";
|
|
202
|
+
readonly internalType: "uint256[]";
|
|
203
|
+
readonly type: "uint256[]";
|
|
204
|
+
}];
|
|
205
|
+
readonly stateMutability: "view";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "poolId";
|
|
210
|
+
readonly internalType: "bytes32";
|
|
211
|
+
readonly type: "bytes32";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "owner";
|
|
214
|
+
readonly internalType: "address";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "shares";
|
|
218
|
+
readonly internalType: "uint256";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "minQuoteOut";
|
|
222
|
+
readonly internalType: "uint256";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
readonly name: "burn";
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly name: "dL";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}];
|
|
231
|
+
readonly stateMutability: "nonpayable";
|
|
232
|
+
}, {
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly name: "token";
|
|
236
|
+
readonly internalType: "address";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "amount";
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly type: "uint256";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "burnClaims";
|
|
244
|
+
readonly outputs: readonly [];
|
|
245
|
+
readonly stateMutability: "nonpayable";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
readonly inputs: readonly [{
|
|
249
|
+
readonly name: "token";
|
|
250
|
+
readonly internalType: "address";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}];
|
|
253
|
+
readonly name: "claimIdOf";
|
|
254
|
+
readonly outputs: readonly [{
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly internalType: "uint256";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
readonly stateMutability: "pure";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "function";
|
|
262
|
+
readonly inputs: readonly [{
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
readonly type: "address";
|
|
266
|
+
}];
|
|
267
|
+
readonly name: "claimsOutstanding";
|
|
268
|
+
readonly outputs: readonly [{
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
readonly type: "uint256";
|
|
272
|
+
}];
|
|
273
|
+
readonly stateMutability: "view";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
readonly inputs: readonly [{
|
|
277
|
+
readonly name: "poolId";
|
|
278
|
+
readonly internalType: "bytes32";
|
|
279
|
+
readonly type: "bytes32";
|
|
280
|
+
}];
|
|
281
|
+
readonly name: "compositeX";
|
|
282
|
+
readonly outputs: readonly [{
|
|
283
|
+
readonly name: "X";
|
|
284
|
+
readonly internalType: "int256";
|
|
285
|
+
readonly type: "int256";
|
|
286
|
+
}];
|
|
287
|
+
readonly stateMutability: "view";
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "function";
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly name: "id";
|
|
292
|
+
readonly internalType: "uint256";
|
|
293
|
+
readonly type: "uint256";
|
|
294
|
+
}];
|
|
295
|
+
readonly name: "decimals";
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly name: "";
|
|
298
|
+
readonly internalType: "uint8";
|
|
299
|
+
readonly type: "uint8";
|
|
300
|
+
}];
|
|
301
|
+
readonly stateMutability: "view";
|
|
302
|
+
}, {
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly name: "token";
|
|
306
|
+
readonly internalType: "address";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "target";
|
|
310
|
+
readonly internalType: "address";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "deltaOf";
|
|
314
|
+
readonly outputs: readonly [{
|
|
315
|
+
readonly name: "";
|
|
316
|
+
readonly internalType: "int256";
|
|
317
|
+
readonly type: "int256";
|
|
318
|
+
}];
|
|
319
|
+
readonly stateMutability: "view";
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
readonly inputs: readonly [{
|
|
323
|
+
readonly name: "poolId";
|
|
324
|
+
readonly internalType: "bytes32";
|
|
325
|
+
readonly type: "bytes32";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "gen";
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "holder";
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}];
|
|
335
|
+
readonly name: "dividendOf";
|
|
336
|
+
readonly outputs: readonly [{
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly internalType: "uint256";
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
}];
|
|
341
|
+
readonly stateMutability: "view";
|
|
342
|
+
}, {
|
|
343
|
+
readonly type: "function";
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly internalType: "uint256";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}];
|
|
349
|
+
readonly name: "dps";
|
|
350
|
+
readonly outputs: readonly [{
|
|
351
|
+
readonly name: "";
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}];
|
|
355
|
+
readonly stateMutability: "view";
|
|
356
|
+
}, {
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
readonly inputs: readonly [{
|
|
359
|
+
readonly name: "poolId";
|
|
360
|
+
readonly internalType: "bytes32";
|
|
361
|
+
readonly type: "bytes32";
|
|
362
|
+
}];
|
|
363
|
+
readonly name: "edgePerL";
|
|
364
|
+
readonly outputs: readonly [{
|
|
365
|
+
readonly name: "";
|
|
366
|
+
readonly internalType: "int256";
|
|
367
|
+
readonly type: "int256";
|
|
368
|
+
}];
|
|
369
|
+
readonly stateMutability: "view";
|
|
370
|
+
}, {
|
|
371
|
+
readonly type: "function";
|
|
372
|
+
readonly inputs: readonly [];
|
|
373
|
+
readonly name: "feeCollector";
|
|
374
|
+
readonly outputs: readonly [{
|
|
375
|
+
readonly name: "";
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly type: "address";
|
|
378
|
+
}];
|
|
379
|
+
readonly stateMutability: "view";
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
readonly inputs: readonly [{
|
|
383
|
+
readonly name: "poolId";
|
|
384
|
+
readonly internalType: "bytes32";
|
|
385
|
+
readonly type: "bytes32";
|
|
386
|
+
}];
|
|
387
|
+
readonly name: "feePerL";
|
|
388
|
+
readonly outputs: readonly [{
|
|
389
|
+
readonly name: "";
|
|
390
|
+
readonly internalType: "int256";
|
|
391
|
+
readonly type: "int256";
|
|
392
|
+
}];
|
|
393
|
+
readonly stateMutability: "view";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
readonly inputs: readonly [{
|
|
397
|
+
readonly name: "poolId";
|
|
398
|
+
readonly internalType: "bytes32";
|
|
399
|
+
readonly type: "bytes32";
|
|
400
|
+
}];
|
|
401
|
+
readonly name: "getPool";
|
|
402
|
+
readonly outputs: readonly [{
|
|
403
|
+
readonly name: "";
|
|
404
|
+
readonly internalType: "struct FPoolBase.Pool";
|
|
405
|
+
readonly type: "tuple";
|
|
406
|
+
readonly components: readonly [{
|
|
407
|
+
readonly name: "quote";
|
|
408
|
+
readonly internalType: "address";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "phi";
|
|
412
|
+
readonly internalType: "uint96";
|
|
413
|
+
readonly type: "uint96";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "authority";
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
readonly type: "address";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "lockStrike";
|
|
420
|
+
readonly internalType: "bool";
|
|
421
|
+
readonly type: "bool";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "seeded";
|
|
424
|
+
readonly internalType: "bool";
|
|
425
|
+
readonly type: "bool";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "gen";
|
|
428
|
+
readonly internalType: "uint16";
|
|
429
|
+
readonly type: "uint16";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "n";
|
|
432
|
+
readonly internalType: "uint8";
|
|
433
|
+
readonly type: "uint8";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "restructureBlock";
|
|
436
|
+
readonly internalType: "uint32";
|
|
437
|
+
readonly type: "uint32";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "gateMint";
|
|
440
|
+
readonly internalType: "bool";
|
|
441
|
+
readonly type: "bool";
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "gateSwap";
|
|
444
|
+
readonly internalType: "bool";
|
|
445
|
+
readonly type: "bool";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "Q";
|
|
448
|
+
readonly internalType: "uint128";
|
|
449
|
+
readonly type: "uint128";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "bigSigma";
|
|
452
|
+
readonly internalType: "uint128";
|
|
453
|
+
readonly type: "uint128";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "L";
|
|
456
|
+
readonly internalType: "uint256";
|
|
457
|
+
readonly type: "uint256";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "shares";
|
|
460
|
+
readonly internalType: "uint256";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "theta0";
|
|
464
|
+
readonly internalType: "int256";
|
|
465
|
+
readonly type: "int256";
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "leverTheta";
|
|
468
|
+
readonly internalType: "int256";
|
|
469
|
+
readonly type: "int256";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "pendingAuthority";
|
|
472
|
+
readonly internalType: "address";
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "operator";
|
|
476
|
+
readonly internalType: "address";
|
|
477
|
+
readonly type: "address";
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "minBuffer";
|
|
480
|
+
readonly internalType: "uint96";
|
|
481
|
+
readonly type: "uint96";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "incomeTaken";
|
|
484
|
+
readonly internalType: "uint256";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
}, {
|
|
487
|
+
readonly name: "name";
|
|
488
|
+
readonly internalType: "bytes32";
|
|
489
|
+
readonly type: "bytes32";
|
|
490
|
+
}];
|
|
491
|
+
}];
|
|
492
|
+
readonly stateMutability: "view";
|
|
493
|
+
}, {
|
|
494
|
+
readonly type: "function";
|
|
495
|
+
readonly inputs: readonly [{
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly internalType: "bytes32";
|
|
498
|
+
readonly type: "bytes32";
|
|
499
|
+
}];
|
|
500
|
+
readonly name: "harvestFeeExempt";
|
|
501
|
+
readonly outputs: readonly [{
|
|
502
|
+
readonly name: "";
|
|
503
|
+
readonly internalType: "bool";
|
|
504
|
+
readonly type: "bool";
|
|
505
|
+
}];
|
|
506
|
+
readonly stateMutability: "view";
|
|
507
|
+
}, {
|
|
508
|
+
readonly type: "function";
|
|
509
|
+
readonly inputs: readonly [{
|
|
510
|
+
readonly name: "key";
|
|
511
|
+
readonly internalType: "struct FPoolKey";
|
|
512
|
+
readonly type: "tuple";
|
|
513
|
+
readonly components: readonly [{
|
|
514
|
+
readonly name: "quote";
|
|
515
|
+
readonly internalType: "address";
|
|
516
|
+
readonly type: "address";
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "bases";
|
|
519
|
+
readonly internalType: "address[]";
|
|
520
|
+
readonly type: "address[]";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "weights";
|
|
523
|
+
readonly internalType: "uint256[]";
|
|
524
|
+
readonly type: "uint256[]";
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "phi";
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
readonly type: "uint256";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "lockStrike";
|
|
531
|
+
readonly internalType: "bool";
|
|
532
|
+
readonly type: "bool";
|
|
533
|
+
}, {
|
|
534
|
+
readonly name: "authority";
|
|
535
|
+
readonly internalType: "address";
|
|
536
|
+
readonly type: "address";
|
|
537
|
+
}, {
|
|
538
|
+
readonly name: "salt";
|
|
539
|
+
readonly internalType: "bytes32";
|
|
540
|
+
readonly type: "bytes32";
|
|
541
|
+
}];
|
|
542
|
+
}];
|
|
543
|
+
readonly name: "idOf";
|
|
544
|
+
readonly outputs: readonly [{
|
|
545
|
+
readonly name: "";
|
|
546
|
+
readonly internalType: "bytes32";
|
|
547
|
+
readonly type: "bytes32";
|
|
548
|
+
}];
|
|
549
|
+
readonly stateMutability: "pure";
|
|
550
|
+
}, {
|
|
551
|
+
readonly type: "function";
|
|
552
|
+
readonly inputs: readonly [{
|
|
553
|
+
readonly name: "key";
|
|
554
|
+
readonly internalType: "struct FPoolKey";
|
|
555
|
+
readonly type: "tuple";
|
|
556
|
+
readonly components: readonly [{
|
|
557
|
+
readonly name: "quote";
|
|
558
|
+
readonly internalType: "address";
|
|
559
|
+
readonly type: "address";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "bases";
|
|
562
|
+
readonly internalType: "address[]";
|
|
563
|
+
readonly type: "address[]";
|
|
564
|
+
}, {
|
|
565
|
+
readonly name: "weights";
|
|
566
|
+
readonly internalType: "uint256[]";
|
|
567
|
+
readonly type: "uint256[]";
|
|
568
|
+
}, {
|
|
569
|
+
readonly name: "phi";
|
|
570
|
+
readonly internalType: "uint256";
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "lockStrike";
|
|
574
|
+
readonly internalType: "bool";
|
|
575
|
+
readonly type: "bool";
|
|
576
|
+
}, {
|
|
577
|
+
readonly name: "authority";
|
|
578
|
+
readonly internalType: "address";
|
|
579
|
+
readonly type: "address";
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "salt";
|
|
582
|
+
readonly internalType: "bytes32";
|
|
583
|
+
readonly type: "bytes32";
|
|
584
|
+
}];
|
|
585
|
+
}];
|
|
586
|
+
readonly name: "initialize";
|
|
587
|
+
readonly outputs: readonly [{
|
|
588
|
+
readonly name: "poolId";
|
|
589
|
+
readonly internalType: "bytes32";
|
|
590
|
+
readonly type: "bytes32";
|
|
591
|
+
}];
|
|
592
|
+
readonly stateMutability: "nonpayable";
|
|
593
|
+
}, {
|
|
594
|
+
readonly type: "function";
|
|
595
|
+
readonly inputs: readonly [{
|
|
596
|
+
readonly name: "owner";
|
|
597
|
+
readonly internalType: "address";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "spender";
|
|
601
|
+
readonly internalType: "address";
|
|
602
|
+
readonly type: "address";
|
|
603
|
+
}];
|
|
604
|
+
readonly name: "isOperator";
|
|
605
|
+
readonly outputs: readonly [{
|
|
606
|
+
readonly name: "status";
|
|
607
|
+
readonly internalType: "bool";
|
|
608
|
+
readonly type: "bool";
|
|
609
|
+
}];
|
|
610
|
+
readonly stateMutability: "view";
|
|
611
|
+
}, {
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
readonly inputs: readonly [];
|
|
614
|
+
readonly name: "isUnlocked";
|
|
615
|
+
readonly outputs: readonly [{
|
|
616
|
+
readonly name: "";
|
|
617
|
+
readonly internalType: "bool";
|
|
618
|
+
readonly type: "bool";
|
|
619
|
+
}];
|
|
620
|
+
readonly stateMutability: "view";
|
|
621
|
+
}, {
|
|
622
|
+
readonly type: "function";
|
|
623
|
+
readonly inputs: readonly [{
|
|
624
|
+
readonly name: "poolId";
|
|
625
|
+
readonly internalType: "bytes32";
|
|
626
|
+
readonly type: "bytes32";
|
|
627
|
+
}, {
|
|
628
|
+
readonly name: "j";
|
|
629
|
+
readonly internalType: "uint256";
|
|
630
|
+
readonly type: "uint256";
|
|
631
|
+
}];
|
|
632
|
+
readonly name: "legOf";
|
|
633
|
+
readonly outputs: readonly [{
|
|
634
|
+
readonly name: "base";
|
|
635
|
+
readonly internalType: "address";
|
|
636
|
+
readonly type: "address";
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "weight";
|
|
639
|
+
readonly internalType: "uint256";
|
|
640
|
+
readonly type: "uint256";
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "x";
|
|
643
|
+
readonly internalType: "int256";
|
|
644
|
+
readonly type: "int256";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "reserve";
|
|
647
|
+
readonly internalType: "uint256";
|
|
648
|
+
readonly type: "uint256";
|
|
649
|
+
}];
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
}, {
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
readonly inputs: readonly [{
|
|
654
|
+
readonly name: "poolId";
|
|
655
|
+
readonly internalType: "bytes32";
|
|
656
|
+
readonly type: "bytes32";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "to";
|
|
659
|
+
readonly internalType: "address";
|
|
660
|
+
readonly type: "address";
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "dL";
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "maxQuoteIn";
|
|
667
|
+
readonly internalType: "uint256";
|
|
668
|
+
readonly type: "uint256";
|
|
669
|
+
}];
|
|
670
|
+
readonly name: "mint";
|
|
671
|
+
readonly outputs: readonly [{
|
|
672
|
+
readonly name: "shares";
|
|
673
|
+
readonly internalType: "uint256";
|
|
674
|
+
readonly type: "uint256";
|
|
675
|
+
}];
|
|
676
|
+
readonly stateMutability: "nonpayable";
|
|
677
|
+
}, {
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
readonly inputs: readonly [{
|
|
680
|
+
readonly name: "token";
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
readonly type: "address";
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "to";
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}, {
|
|
688
|
+
readonly name: "amount";
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly type: "uint256";
|
|
691
|
+
}];
|
|
692
|
+
readonly name: "mintClaims";
|
|
693
|
+
readonly outputs: readonly [];
|
|
694
|
+
readonly stateMutability: "nonpayable";
|
|
695
|
+
}, {
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
readonly inputs: readonly [{
|
|
698
|
+
readonly name: "calls";
|
|
699
|
+
readonly internalType: "bytes[]";
|
|
700
|
+
readonly type: "bytes[]";
|
|
701
|
+
}];
|
|
702
|
+
readonly name: "multicall";
|
|
703
|
+
readonly outputs: readonly [{
|
|
704
|
+
readonly name: "results";
|
|
705
|
+
readonly internalType: "bytes[]";
|
|
706
|
+
readonly type: "bytes[]";
|
|
707
|
+
}];
|
|
708
|
+
readonly stateMutability: "nonpayable";
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "function";
|
|
711
|
+
readonly inputs: readonly [{
|
|
712
|
+
readonly name: "poolId";
|
|
713
|
+
readonly internalType: "bytes32";
|
|
714
|
+
readonly type: "bytes32";
|
|
715
|
+
}];
|
|
716
|
+
readonly name: "n";
|
|
717
|
+
readonly outputs: readonly [{
|
|
718
|
+
readonly name: "";
|
|
719
|
+
readonly internalType: "uint256";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}];
|
|
722
|
+
readonly stateMutability: "view";
|
|
723
|
+
}, {
|
|
724
|
+
readonly type: "function";
|
|
725
|
+
readonly inputs: readonly [{
|
|
726
|
+
readonly name: "";
|
|
727
|
+
readonly internalType: "uint256";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
}];
|
|
730
|
+
readonly name: "name";
|
|
731
|
+
readonly outputs: readonly [{
|
|
732
|
+
readonly name: "";
|
|
733
|
+
readonly internalType: "string";
|
|
734
|
+
readonly type: "string";
|
|
735
|
+
}];
|
|
736
|
+
readonly stateMutability: "pure";
|
|
737
|
+
}, {
|
|
738
|
+
readonly type: "function";
|
|
739
|
+
readonly inputs: readonly [];
|
|
740
|
+
readonly name: "nonzeroDeltaCount";
|
|
741
|
+
readonly outputs: readonly [{
|
|
742
|
+
readonly name: "";
|
|
743
|
+
readonly internalType: "uint256";
|
|
744
|
+
readonly type: "uint256";
|
|
745
|
+
}];
|
|
746
|
+
readonly stateMutability: "view";
|
|
747
|
+
}, {
|
|
748
|
+
readonly type: "function";
|
|
749
|
+
readonly inputs: readonly [];
|
|
750
|
+
readonly name: "pendingCollector";
|
|
751
|
+
readonly outputs: readonly [{
|
|
752
|
+
readonly name: "";
|
|
753
|
+
readonly internalType: "address";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
}];
|
|
756
|
+
readonly stateMutability: "view";
|
|
757
|
+
}, {
|
|
758
|
+
readonly type: "function";
|
|
759
|
+
readonly inputs: readonly [{
|
|
760
|
+
readonly name: "poolId";
|
|
761
|
+
readonly internalType: "bytes32";
|
|
762
|
+
readonly type: "bytes32";
|
|
763
|
+
}];
|
|
764
|
+
readonly name: "phiB4B";
|
|
765
|
+
readonly outputs: readonly [{
|
|
766
|
+
readonly name: "";
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}];
|
|
770
|
+
readonly stateMutability: "view";
|
|
771
|
+
}, {
|
|
772
|
+
readonly type: "function";
|
|
773
|
+
readonly inputs: readonly [{
|
|
774
|
+
readonly name: "";
|
|
775
|
+
readonly internalType: "uint256";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}];
|
|
778
|
+
readonly name: "pot";
|
|
779
|
+
readonly outputs: readonly [{
|
|
780
|
+
readonly name: "";
|
|
781
|
+
readonly internalType: "uint256";
|
|
782
|
+
readonly type: "uint256";
|
|
783
|
+
}];
|
|
784
|
+
readonly stateMutability: "view";
|
|
785
|
+
}, {
|
|
786
|
+
readonly type: "function";
|
|
787
|
+
readonly inputs: readonly [{
|
|
788
|
+
readonly name: "next";
|
|
789
|
+
readonly internalType: "address";
|
|
790
|
+
readonly type: "address";
|
|
791
|
+
}];
|
|
792
|
+
readonly name: "proposeCollector";
|
|
793
|
+
readonly outputs: readonly [];
|
|
794
|
+
readonly stateMutability: "nonpayable";
|
|
795
|
+
}, {
|
|
796
|
+
readonly type: "function";
|
|
797
|
+
readonly inputs: readonly [{
|
|
798
|
+
readonly name: "poolId";
|
|
799
|
+
readonly internalType: "bytes32";
|
|
800
|
+
readonly type: "bytes32";
|
|
801
|
+
}, {
|
|
802
|
+
readonly name: "kind";
|
|
803
|
+
readonly internalType: "enum FPoolManager.QuoteKind";
|
|
804
|
+
readonly type: "uint8";
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "j";
|
|
807
|
+
readonly internalType: "uint256";
|
|
808
|
+
readonly type: "uint256";
|
|
809
|
+
}, {
|
|
810
|
+
readonly name: "k";
|
|
811
|
+
readonly internalType: "uint256";
|
|
812
|
+
readonly type: "uint256";
|
|
813
|
+
}, {
|
|
814
|
+
readonly name: "amountIn";
|
|
815
|
+
readonly internalType: "uint256";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}, {
|
|
818
|
+
readonly name: "taker";
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
}];
|
|
822
|
+
readonly name: "quoteSwap";
|
|
823
|
+
readonly outputs: readonly [];
|
|
824
|
+
readonly stateMutability: "nonpayable";
|
|
825
|
+
}, {
|
|
826
|
+
readonly type: "function";
|
|
827
|
+
readonly inputs: readonly [{
|
|
828
|
+
readonly name: "poolId";
|
|
829
|
+
readonly internalType: "bytes32";
|
|
830
|
+
readonly type: "bytes32";
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "gen";
|
|
833
|
+
readonly internalType: "uint256";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}, {
|
|
836
|
+
readonly name: "owner";
|
|
837
|
+
readonly internalType: "address";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
}, {
|
|
840
|
+
readonly name: "shares";
|
|
841
|
+
readonly internalType: "uint256";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
}];
|
|
844
|
+
readonly name: "redeem";
|
|
845
|
+
readonly outputs: readonly [{
|
|
846
|
+
readonly name: "quoteOut";
|
|
847
|
+
readonly internalType: "uint256";
|
|
848
|
+
readonly type: "uint256";
|
|
849
|
+
}];
|
|
850
|
+
readonly stateMutability: "nonpayable";
|
|
851
|
+
}, {
|
|
852
|
+
readonly type: "function";
|
|
853
|
+
readonly inputs: readonly [{
|
|
854
|
+
readonly name: "poolId";
|
|
855
|
+
readonly internalType: "bytes32";
|
|
856
|
+
readonly type: "bytes32";
|
|
857
|
+
}, {
|
|
858
|
+
readonly name: "j";
|
|
859
|
+
readonly internalType: "uint256";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}];
|
|
862
|
+
readonly name: "reserveOf";
|
|
863
|
+
readonly outputs: readonly [{
|
|
864
|
+
readonly name: "";
|
|
865
|
+
readonly internalType: "uint256";
|
|
866
|
+
readonly type: "uint256";
|
|
867
|
+
}];
|
|
868
|
+
readonly stateMutability: "view";
|
|
869
|
+
}, {
|
|
870
|
+
readonly type: "function";
|
|
871
|
+
readonly inputs: readonly [{
|
|
872
|
+
readonly name: "poolId";
|
|
873
|
+
readonly internalType: "bytes32";
|
|
874
|
+
readonly type: "bytes32";
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "L0";
|
|
877
|
+
readonly internalType: "uint256";
|
|
878
|
+
readonly type: "uint256";
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "r0";
|
|
881
|
+
readonly internalType: "uint256[]";
|
|
882
|
+
readonly type: "uint256[]";
|
|
883
|
+
}, {
|
|
884
|
+
readonly name: "Q0";
|
|
885
|
+
readonly internalType: "uint256";
|
|
886
|
+
readonly type: "uint256";
|
|
887
|
+
}];
|
|
888
|
+
readonly name: "seed";
|
|
889
|
+
readonly outputs: readonly [{
|
|
890
|
+
readonly name: "shares";
|
|
891
|
+
readonly internalType: "uint256";
|
|
892
|
+
readonly type: "uint256";
|
|
893
|
+
}];
|
|
894
|
+
readonly stateMutability: "nonpayable";
|
|
895
|
+
}, {
|
|
896
|
+
readonly type: "function";
|
|
897
|
+
readonly inputs: readonly [{
|
|
898
|
+
readonly name: "operator";
|
|
899
|
+
readonly internalType: "address";
|
|
900
|
+
readonly type: "address";
|
|
901
|
+
}, {
|
|
902
|
+
readonly name: "approved";
|
|
903
|
+
readonly internalType: "bool";
|
|
904
|
+
readonly type: "bool";
|
|
905
|
+
}];
|
|
906
|
+
readonly name: "setOperator";
|
|
907
|
+
readonly outputs: readonly [{
|
|
908
|
+
readonly name: "";
|
|
909
|
+
readonly internalType: "bool";
|
|
910
|
+
readonly type: "bool";
|
|
911
|
+
}];
|
|
912
|
+
readonly stateMutability: "payable";
|
|
913
|
+
}, {
|
|
914
|
+
readonly type: "function";
|
|
915
|
+
readonly inputs: readonly [];
|
|
916
|
+
readonly name: "settle";
|
|
917
|
+
readonly outputs: readonly [{
|
|
918
|
+
readonly name: "paid";
|
|
919
|
+
readonly internalType: "uint256";
|
|
920
|
+
readonly type: "uint256";
|
|
921
|
+
}];
|
|
922
|
+
readonly stateMutability: "nonpayable";
|
|
923
|
+
}, {
|
|
924
|
+
readonly type: "function";
|
|
925
|
+
readonly inputs: readonly [{
|
|
926
|
+
readonly name: "poolId";
|
|
927
|
+
readonly internalType: "bytes32";
|
|
928
|
+
readonly type: "bytes32";
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "gen";
|
|
931
|
+
readonly internalType: "uint256";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
}];
|
|
934
|
+
readonly name: "shareIdOf";
|
|
935
|
+
readonly outputs: readonly [{
|
|
936
|
+
readonly name: "";
|
|
937
|
+
readonly internalType: "uint256";
|
|
938
|
+
readonly type: "uint256";
|
|
939
|
+
}];
|
|
940
|
+
readonly stateMutability: "pure";
|
|
941
|
+
}, {
|
|
942
|
+
readonly type: "function";
|
|
943
|
+
readonly inputs: readonly [];
|
|
944
|
+
readonly name: "sponsor";
|
|
945
|
+
readonly outputs: readonly [{
|
|
946
|
+
readonly name: "";
|
|
947
|
+
readonly internalType: "contract FPoolSponsor";
|
|
948
|
+
readonly type: "address";
|
|
949
|
+
}];
|
|
950
|
+
readonly stateMutability: "view";
|
|
951
|
+
}, {
|
|
952
|
+
readonly type: "function";
|
|
953
|
+
readonly inputs: readonly [{
|
|
954
|
+
readonly name: "";
|
|
955
|
+
readonly internalType: "address";
|
|
956
|
+
readonly type: "address";
|
|
957
|
+
}];
|
|
958
|
+
readonly name: "sponsorName";
|
|
959
|
+
readonly outputs: readonly [{
|
|
960
|
+
readonly name: "";
|
|
961
|
+
readonly internalType: "bytes32";
|
|
962
|
+
readonly type: "bytes32";
|
|
963
|
+
}];
|
|
964
|
+
readonly stateMutability: "view";
|
|
965
|
+
}, {
|
|
966
|
+
readonly type: "function";
|
|
967
|
+
readonly inputs: readonly [{
|
|
968
|
+
readonly name: "interfaceId";
|
|
969
|
+
readonly internalType: "bytes4";
|
|
970
|
+
readonly type: "bytes4";
|
|
971
|
+
}];
|
|
972
|
+
readonly name: "supportsInterface";
|
|
973
|
+
readonly outputs: readonly [{
|
|
974
|
+
readonly name: "result";
|
|
975
|
+
readonly internalType: "bool";
|
|
976
|
+
readonly type: "bool";
|
|
977
|
+
}];
|
|
978
|
+
readonly stateMutability: "view";
|
|
979
|
+
}, {
|
|
980
|
+
readonly type: "function";
|
|
981
|
+
readonly inputs: readonly [{
|
|
982
|
+
readonly name: "poolId";
|
|
983
|
+
readonly internalType: "bytes32";
|
|
984
|
+
readonly type: "bytes32";
|
|
985
|
+
}, {
|
|
986
|
+
readonly name: "j";
|
|
987
|
+
readonly internalType: "uint256";
|
|
988
|
+
readonly type: "uint256";
|
|
989
|
+
}, {
|
|
990
|
+
readonly name: "k";
|
|
991
|
+
readonly internalType: "uint256";
|
|
992
|
+
readonly type: "uint256";
|
|
993
|
+
}, {
|
|
994
|
+
readonly name: "amountIn";
|
|
995
|
+
readonly internalType: "uint256";
|
|
996
|
+
readonly type: "uint256";
|
|
997
|
+
}, {
|
|
998
|
+
readonly name: "minOut";
|
|
999
|
+
readonly internalType: "uint256";
|
|
1000
|
+
readonly type: "uint256";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly name: "taker";
|
|
1003
|
+
readonly internalType: "address";
|
|
1004
|
+
readonly type: "address";
|
|
1005
|
+
}];
|
|
1006
|
+
readonly name: "swapBaseForBase";
|
|
1007
|
+
readonly outputs: readonly [{
|
|
1008
|
+
readonly name: "amountOut";
|
|
1009
|
+
readonly internalType: "uint256";
|
|
1010
|
+
readonly type: "uint256";
|
|
1011
|
+
}];
|
|
1012
|
+
readonly stateMutability: "nonpayable";
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly type: "function";
|
|
1015
|
+
readonly inputs: readonly [{
|
|
1016
|
+
readonly name: "poolId";
|
|
1017
|
+
readonly internalType: "bytes32";
|
|
1018
|
+
readonly type: "bytes32";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly name: "j";
|
|
1021
|
+
readonly internalType: "uint256";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly name: "amountIn";
|
|
1025
|
+
readonly internalType: "uint256";
|
|
1026
|
+
readonly type: "uint256";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly name: "minOut";
|
|
1029
|
+
readonly internalType: "uint256";
|
|
1030
|
+
readonly type: "uint256";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly name: "taker";
|
|
1033
|
+
readonly internalType: "address";
|
|
1034
|
+
readonly type: "address";
|
|
1035
|
+
}];
|
|
1036
|
+
readonly name: "swapBaseIn";
|
|
1037
|
+
readonly outputs: readonly [{
|
|
1038
|
+
readonly name: "amountOut";
|
|
1039
|
+
readonly internalType: "uint256";
|
|
1040
|
+
readonly type: "uint256";
|
|
1041
|
+
}];
|
|
1042
|
+
readonly stateMutability: "nonpayable";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly type: "function";
|
|
1045
|
+
readonly inputs: readonly [{
|
|
1046
|
+
readonly name: "poolId";
|
|
1047
|
+
readonly internalType: "bytes32";
|
|
1048
|
+
readonly type: "bytes32";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly name: "j";
|
|
1051
|
+
readonly internalType: "uint256";
|
|
1052
|
+
readonly type: "uint256";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly name: "amountIn";
|
|
1055
|
+
readonly internalType: "uint256";
|
|
1056
|
+
readonly type: "uint256";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "minOut";
|
|
1059
|
+
readonly internalType: "uint256";
|
|
1060
|
+
readonly type: "uint256";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly name: "taker";
|
|
1063
|
+
readonly internalType: "address";
|
|
1064
|
+
readonly type: "address";
|
|
1065
|
+
}];
|
|
1066
|
+
readonly name: "swapQuoteIn";
|
|
1067
|
+
readonly outputs: readonly [{
|
|
1068
|
+
readonly name: "amountOut";
|
|
1069
|
+
readonly internalType: "uint256";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
}];
|
|
1072
|
+
readonly stateMutability: "nonpayable";
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly type: "function";
|
|
1075
|
+
readonly inputs: readonly [{
|
|
1076
|
+
readonly name: "";
|
|
1077
|
+
readonly internalType: "uint256";
|
|
1078
|
+
readonly type: "uint256";
|
|
1079
|
+
}];
|
|
1080
|
+
readonly name: "symbol";
|
|
1081
|
+
readonly outputs: readonly [{
|
|
1082
|
+
readonly name: "";
|
|
1083
|
+
readonly internalType: "string";
|
|
1084
|
+
readonly type: "string";
|
|
1085
|
+
}];
|
|
1086
|
+
readonly stateMutability: "pure";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly type: "function";
|
|
1089
|
+
readonly inputs: readonly [{
|
|
1090
|
+
readonly name: "token";
|
|
1091
|
+
readonly internalType: "address";
|
|
1092
|
+
readonly type: "address";
|
|
1093
|
+
}];
|
|
1094
|
+
readonly name: "sync";
|
|
1095
|
+
readonly outputs: readonly [];
|
|
1096
|
+
readonly stateMutability: "nonpayable";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly type: "function";
|
|
1099
|
+
readonly inputs: readonly [{
|
|
1100
|
+
readonly name: "token";
|
|
1101
|
+
readonly internalType: "address";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "to";
|
|
1105
|
+
readonly internalType: "address";
|
|
1106
|
+
readonly type: "address";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly name: "amount";
|
|
1109
|
+
readonly internalType: "uint256";
|
|
1110
|
+
readonly type: "uint256";
|
|
1111
|
+
}];
|
|
1112
|
+
readonly name: "take";
|
|
1113
|
+
readonly outputs: readonly [];
|
|
1114
|
+
readonly stateMutability: "nonpayable";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly type: "function";
|
|
1117
|
+
readonly inputs: readonly [{
|
|
1118
|
+
readonly name: "poolId";
|
|
1119
|
+
readonly internalType: "bytes32";
|
|
1120
|
+
readonly type: "bytes32";
|
|
1121
|
+
}];
|
|
1122
|
+
readonly name: "theta";
|
|
1123
|
+
readonly outputs: readonly [{
|
|
1124
|
+
readonly name: "";
|
|
1125
|
+
readonly internalType: "int256";
|
|
1126
|
+
readonly type: "int256";
|
|
1127
|
+
}];
|
|
1128
|
+
readonly stateMutability: "view";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly type: "function";
|
|
1131
|
+
readonly inputs: readonly [{
|
|
1132
|
+
readonly name: "";
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
readonly type: "uint256";
|
|
1135
|
+
}];
|
|
1136
|
+
readonly name: "tokenURI";
|
|
1137
|
+
readonly outputs: readonly [{
|
|
1138
|
+
readonly name: "";
|
|
1139
|
+
readonly internalType: "string";
|
|
1140
|
+
readonly type: "string";
|
|
1141
|
+
}];
|
|
1142
|
+
readonly stateMutability: "pure";
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly type: "function";
|
|
1145
|
+
readonly inputs: readonly [{
|
|
1146
|
+
readonly name: "to";
|
|
1147
|
+
readonly internalType: "address";
|
|
1148
|
+
readonly type: "address";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly name: "id";
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
readonly type: "uint256";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly name: "amount";
|
|
1155
|
+
readonly internalType: "uint256";
|
|
1156
|
+
readonly type: "uint256";
|
|
1157
|
+
}];
|
|
1158
|
+
readonly name: "transfer";
|
|
1159
|
+
readonly outputs: readonly [{
|
|
1160
|
+
readonly name: "";
|
|
1161
|
+
readonly internalType: "bool";
|
|
1162
|
+
readonly type: "bool";
|
|
1163
|
+
}];
|
|
1164
|
+
readonly stateMutability: "payable";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly type: "function";
|
|
1167
|
+
readonly inputs: readonly [{
|
|
1168
|
+
readonly name: "from";
|
|
1169
|
+
readonly internalType: "address";
|
|
1170
|
+
readonly type: "address";
|
|
1171
|
+
}, {
|
|
1172
|
+
readonly name: "to";
|
|
1173
|
+
readonly internalType: "address";
|
|
1174
|
+
readonly type: "address";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "id";
|
|
1177
|
+
readonly internalType: "uint256";
|
|
1178
|
+
readonly type: "uint256";
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly name: "amount";
|
|
1181
|
+
readonly internalType: "uint256";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
}];
|
|
1184
|
+
readonly name: "transferFrom";
|
|
1185
|
+
readonly outputs: readonly [{
|
|
1186
|
+
readonly name: "";
|
|
1187
|
+
readonly internalType: "bool";
|
|
1188
|
+
readonly type: "bool";
|
|
1189
|
+
}];
|
|
1190
|
+
readonly stateMutability: "payable";
|
|
1191
|
+
}, {
|
|
1192
|
+
readonly type: "function";
|
|
1193
|
+
readonly inputs: readonly [{
|
|
1194
|
+
readonly name: "data";
|
|
1195
|
+
readonly internalType: "bytes";
|
|
1196
|
+
readonly type: "bytes";
|
|
1197
|
+
}];
|
|
1198
|
+
readonly name: "unlock";
|
|
1199
|
+
readonly outputs: readonly [{
|
|
1200
|
+
readonly name: "result";
|
|
1201
|
+
readonly internalType: "bytes";
|
|
1202
|
+
readonly type: "bytes";
|
|
1203
|
+
}];
|
|
1204
|
+
readonly stateMutability: "nonpayable";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly type: "function";
|
|
1207
|
+
readonly inputs: readonly [];
|
|
1208
|
+
readonly name: "version";
|
|
1209
|
+
readonly outputs: readonly [{
|
|
1210
|
+
readonly name: "";
|
|
1211
|
+
readonly internalType: "uint256";
|
|
1212
|
+
readonly type: "uint256";
|
|
1213
|
+
}];
|
|
1214
|
+
readonly stateMutability: "pure";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly type: "event";
|
|
1217
|
+
readonly anonymous: false;
|
|
1218
|
+
readonly inputs: readonly [{
|
|
1219
|
+
readonly name: "poolId";
|
|
1220
|
+
readonly internalType: "bytes32";
|
|
1221
|
+
readonly type: "bytes32";
|
|
1222
|
+
readonly indexed: true;
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly name: "who";
|
|
1225
|
+
readonly internalType: "address";
|
|
1226
|
+
readonly type: "address";
|
|
1227
|
+
readonly indexed: true;
|
|
1228
|
+
}, {
|
|
1229
|
+
readonly name: "allowed";
|
|
1230
|
+
readonly internalType: "bool";
|
|
1231
|
+
readonly type: "bool";
|
|
1232
|
+
readonly indexed: false;
|
|
1233
|
+
}];
|
|
1234
|
+
readonly name: "Allowed";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly type: "event";
|
|
1237
|
+
readonly anonymous: false;
|
|
1238
|
+
readonly inputs: readonly [{
|
|
1239
|
+
readonly name: "owner";
|
|
1240
|
+
readonly internalType: "address";
|
|
1241
|
+
readonly type: "address";
|
|
1242
|
+
readonly indexed: true;
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly name: "spender";
|
|
1245
|
+
readonly internalType: "address";
|
|
1246
|
+
readonly type: "address";
|
|
1247
|
+
readonly indexed: true;
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "id";
|
|
1250
|
+
readonly internalType: "uint256";
|
|
1251
|
+
readonly type: "uint256";
|
|
1252
|
+
readonly indexed: true;
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly name: "amount";
|
|
1255
|
+
readonly internalType: "uint256";
|
|
1256
|
+
readonly type: "uint256";
|
|
1257
|
+
readonly indexed: false;
|
|
1258
|
+
}];
|
|
1259
|
+
readonly name: "Approval";
|
|
1260
|
+
}, {
|
|
1261
|
+
readonly type: "event";
|
|
1262
|
+
readonly anonymous: false;
|
|
1263
|
+
readonly inputs: readonly [{
|
|
1264
|
+
readonly name: "poolId";
|
|
1265
|
+
readonly internalType: "bytes32";
|
|
1266
|
+
readonly type: "bytes32";
|
|
1267
|
+
readonly indexed: true;
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly name: "current";
|
|
1270
|
+
readonly internalType: "address";
|
|
1271
|
+
readonly type: "address";
|
|
1272
|
+
readonly indexed: true;
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly name: "proposed";
|
|
1275
|
+
readonly internalType: "address";
|
|
1276
|
+
readonly type: "address";
|
|
1277
|
+
readonly indexed: true;
|
|
1278
|
+
}];
|
|
1279
|
+
readonly name: "AuthorityProposed";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly type: "event";
|
|
1282
|
+
readonly anonymous: false;
|
|
1283
|
+
readonly inputs: readonly [{
|
|
1284
|
+
readonly name: "poolId";
|
|
1285
|
+
readonly internalType: "bytes32";
|
|
1286
|
+
readonly type: "bytes32";
|
|
1287
|
+
readonly indexed: true;
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly name: "prev";
|
|
1290
|
+
readonly internalType: "address";
|
|
1291
|
+
readonly type: "address";
|
|
1292
|
+
readonly indexed: true;
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly name: "next";
|
|
1295
|
+
readonly internalType: "address";
|
|
1296
|
+
readonly type: "address";
|
|
1297
|
+
readonly indexed: true;
|
|
1298
|
+
}];
|
|
1299
|
+
readonly name: "AuthoritySet";
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly type: "event";
|
|
1302
|
+
readonly anonymous: false;
|
|
1303
|
+
readonly inputs: readonly [{
|
|
1304
|
+
readonly name: "poolId";
|
|
1305
|
+
readonly internalType: "bytes32";
|
|
1306
|
+
readonly type: "bytes32";
|
|
1307
|
+
readonly indexed: true;
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly name: "sender";
|
|
1310
|
+
readonly internalType: "address";
|
|
1311
|
+
readonly type: "address";
|
|
1312
|
+
readonly indexed: true;
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly name: "dL";
|
|
1315
|
+
readonly internalType: "uint256";
|
|
1316
|
+
readonly type: "uint256";
|
|
1317
|
+
readonly indexed: false;
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "shares";
|
|
1320
|
+
readonly internalType: "uint256";
|
|
1321
|
+
readonly type: "uint256";
|
|
1322
|
+
readonly indexed: false;
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly name: "dQuote";
|
|
1325
|
+
readonly internalType: "uint256";
|
|
1326
|
+
readonly type: "uint256";
|
|
1327
|
+
readonly indexed: false;
|
|
1328
|
+
}];
|
|
1329
|
+
readonly name: "Burn";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly type: "event";
|
|
1332
|
+
readonly anonymous: false;
|
|
1333
|
+
readonly inputs: readonly [{
|
|
1334
|
+
readonly name: "previous";
|
|
1335
|
+
readonly internalType: "address";
|
|
1336
|
+
readonly type: "address";
|
|
1337
|
+
readonly indexed: true;
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly name: "current";
|
|
1340
|
+
readonly internalType: "address";
|
|
1341
|
+
readonly type: "address";
|
|
1342
|
+
readonly indexed: true;
|
|
1343
|
+
}];
|
|
1344
|
+
readonly name: "CollectorAccepted";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly type: "event";
|
|
1347
|
+
readonly anonymous: false;
|
|
1348
|
+
readonly inputs: readonly [{
|
|
1349
|
+
readonly name: "current";
|
|
1350
|
+
readonly internalType: "address";
|
|
1351
|
+
readonly type: "address";
|
|
1352
|
+
readonly indexed: true;
|
|
1353
|
+
}, {
|
|
1354
|
+
readonly name: "proposed";
|
|
1355
|
+
readonly internalType: "address";
|
|
1356
|
+
readonly type: "address";
|
|
1357
|
+
readonly indexed: true;
|
|
1358
|
+
}];
|
|
1359
|
+
readonly name: "CollectorProposed";
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly type: "event";
|
|
1362
|
+
readonly anonymous: false;
|
|
1363
|
+
readonly inputs: readonly [{
|
|
1364
|
+
readonly name: "poolId";
|
|
1365
|
+
readonly internalType: "bytes32";
|
|
1366
|
+
readonly type: "bytes32";
|
|
1367
|
+
readonly indexed: true;
|
|
1368
|
+
}, {
|
|
1369
|
+
readonly name: "from";
|
|
1370
|
+
readonly internalType: "address";
|
|
1371
|
+
readonly type: "address";
|
|
1372
|
+
readonly indexed: true;
|
|
1373
|
+
}, {
|
|
1374
|
+
readonly name: "amount";
|
|
1375
|
+
readonly internalType: "uint256";
|
|
1376
|
+
readonly type: "uint256";
|
|
1377
|
+
readonly indexed: false;
|
|
1378
|
+
}];
|
|
1379
|
+
readonly name: "Deepen";
|
|
1380
|
+
}, {
|
|
1381
|
+
readonly type: "event";
|
|
1382
|
+
readonly anonymous: false;
|
|
1383
|
+
readonly inputs: readonly [{
|
|
1384
|
+
readonly name: "poolId";
|
|
1385
|
+
readonly internalType: "bytes32";
|
|
1386
|
+
readonly type: "bytes32";
|
|
1387
|
+
readonly indexed: true;
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "gen";
|
|
1390
|
+
readonly internalType: "uint256";
|
|
1391
|
+
readonly type: "uint256";
|
|
1392
|
+
readonly indexed: true;
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly name: "supply";
|
|
1395
|
+
readonly internalType: "uint256";
|
|
1396
|
+
readonly type: "uint256";
|
|
1397
|
+
readonly indexed: false;
|
|
1398
|
+
}, {
|
|
1399
|
+
readonly name: "quote";
|
|
1400
|
+
readonly internalType: "uint256";
|
|
1401
|
+
readonly type: "uint256";
|
|
1402
|
+
readonly indexed: false;
|
|
1403
|
+
}];
|
|
1404
|
+
readonly name: "Dissolve";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly type: "event";
|
|
1407
|
+
readonly anonymous: false;
|
|
1408
|
+
readonly inputs: readonly [{
|
|
1409
|
+
readonly name: "poolId";
|
|
1410
|
+
readonly internalType: "bytes32";
|
|
1411
|
+
readonly type: "bytes32";
|
|
1412
|
+
readonly indexed: true;
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly name: "holder";
|
|
1415
|
+
readonly internalType: "address";
|
|
1416
|
+
readonly type: "address";
|
|
1417
|
+
readonly indexed: true;
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly name: "to";
|
|
1420
|
+
readonly internalType: "address";
|
|
1421
|
+
readonly type: "address";
|
|
1422
|
+
readonly indexed: true;
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "amount";
|
|
1425
|
+
readonly internalType: "uint256";
|
|
1426
|
+
readonly type: "uint256";
|
|
1427
|
+
readonly indexed: false;
|
|
1428
|
+
}];
|
|
1429
|
+
readonly name: "DividendClaimed";
|
|
1430
|
+
}, {
|
|
1431
|
+
readonly type: "event";
|
|
1432
|
+
readonly anonymous: false;
|
|
1433
|
+
readonly inputs: readonly [{
|
|
1434
|
+
readonly name: "mintFeeProtocolCut";
|
|
1435
|
+
readonly internalType: "uint256";
|
|
1436
|
+
readonly type: "uint256";
|
|
1437
|
+
readonly indexed: false;
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly name: "harvestFee";
|
|
1440
|
+
readonly internalType: "uint256";
|
|
1441
|
+
readonly type: "uint256";
|
|
1442
|
+
readonly indexed: false;
|
|
1443
|
+
}];
|
|
1444
|
+
readonly name: "FeeParamsSet";
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly type: "event";
|
|
1447
|
+
readonly anonymous: false;
|
|
1448
|
+
readonly inputs: readonly [{
|
|
1449
|
+
readonly name: "poolId";
|
|
1450
|
+
readonly internalType: "bytes32";
|
|
1451
|
+
readonly type: "bytes32";
|
|
1452
|
+
readonly indexed: true;
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly name: "gateMint";
|
|
1455
|
+
readonly internalType: "bool";
|
|
1456
|
+
readonly type: "bool";
|
|
1457
|
+
readonly indexed: false;
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly name: "gateSwap";
|
|
1460
|
+
readonly internalType: "bool";
|
|
1461
|
+
readonly type: "bool";
|
|
1462
|
+
readonly indexed: false;
|
|
1463
|
+
}];
|
|
1464
|
+
readonly name: "GatesSet";
|
|
1465
|
+
}, {
|
|
1466
|
+
readonly type: "event";
|
|
1467
|
+
readonly anonymous: false;
|
|
1468
|
+
readonly inputs: readonly [{
|
|
1469
|
+
readonly name: "poolId";
|
|
1470
|
+
readonly internalType: "bytes32";
|
|
1471
|
+
readonly type: "bytes32";
|
|
1472
|
+
readonly indexed: true;
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly name: "to";
|
|
1475
|
+
readonly internalType: "address";
|
|
1476
|
+
readonly type: "address";
|
|
1477
|
+
readonly indexed: true;
|
|
1478
|
+
}, {
|
|
1479
|
+
readonly name: "amount";
|
|
1480
|
+
readonly internalType: "uint256";
|
|
1481
|
+
readonly type: "uint256";
|
|
1482
|
+
readonly indexed: false;
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly name: "toSponsor";
|
|
1485
|
+
readonly internalType: "uint256";
|
|
1486
|
+
readonly type: "uint256";
|
|
1487
|
+
readonly indexed: false;
|
|
1488
|
+
}];
|
|
1489
|
+
readonly name: "Harvest";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly type: "event";
|
|
1492
|
+
readonly anonymous: false;
|
|
1493
|
+
readonly inputs: readonly [{
|
|
1494
|
+
readonly name: "poolId";
|
|
1495
|
+
readonly internalType: "bytes32";
|
|
1496
|
+
readonly type: "bytes32";
|
|
1497
|
+
readonly indexed: true;
|
|
1498
|
+
}, {
|
|
1499
|
+
readonly name: "exempt";
|
|
1500
|
+
readonly internalType: "bool";
|
|
1501
|
+
readonly type: "bool";
|
|
1502
|
+
readonly indexed: false;
|
|
1503
|
+
}];
|
|
1504
|
+
readonly name: "HarvestFeeExemptSet";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly type: "event";
|
|
1507
|
+
readonly anonymous: false;
|
|
1508
|
+
readonly inputs: readonly [{
|
|
1509
|
+
readonly name: "poolId";
|
|
1510
|
+
readonly internalType: "bytes32";
|
|
1511
|
+
readonly type: "bytes32";
|
|
1512
|
+
readonly indexed: true;
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "quote";
|
|
1515
|
+
readonly internalType: "address";
|
|
1516
|
+
readonly type: "address";
|
|
1517
|
+
readonly indexed: true;
|
|
1518
|
+
}, {
|
|
1519
|
+
readonly name: "authority";
|
|
1520
|
+
readonly internalType: "address";
|
|
1521
|
+
readonly type: "address";
|
|
1522
|
+
readonly indexed: true;
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly name: "bases";
|
|
1525
|
+
readonly internalType: "address[]";
|
|
1526
|
+
readonly type: "address[]";
|
|
1527
|
+
readonly indexed: false;
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "weights";
|
|
1530
|
+
readonly internalType: "uint256[]";
|
|
1531
|
+
readonly type: "uint256[]";
|
|
1532
|
+
readonly indexed: false;
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly name: "phi";
|
|
1535
|
+
readonly internalType: "uint256";
|
|
1536
|
+
readonly type: "uint256";
|
|
1537
|
+
readonly indexed: false;
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly name: "lockStrike";
|
|
1540
|
+
readonly internalType: "bool";
|
|
1541
|
+
readonly type: "bool";
|
|
1542
|
+
readonly indexed: false;
|
|
1543
|
+
}];
|
|
1544
|
+
readonly name: "Initialize";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly type: "event";
|
|
1547
|
+
readonly anonymous: false;
|
|
1548
|
+
readonly inputs: readonly [{
|
|
1549
|
+
readonly name: "poolId";
|
|
1550
|
+
readonly internalType: "bytes32";
|
|
1551
|
+
readonly type: "bytes32";
|
|
1552
|
+
readonly indexed: true;
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly name: "j";
|
|
1555
|
+
readonly internalType: "uint256";
|
|
1556
|
+
readonly type: "uint256";
|
|
1557
|
+
readonly indexed: true;
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly name: "base";
|
|
1560
|
+
readonly internalType: "address";
|
|
1561
|
+
readonly type: "address";
|
|
1562
|
+
readonly indexed: false;
|
|
1563
|
+
}, {
|
|
1564
|
+
readonly name: "newLj";
|
|
1565
|
+
readonly internalType: "uint256";
|
|
1566
|
+
readonly type: "uint256";
|
|
1567
|
+
readonly indexed: false;
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly name: "reserve";
|
|
1570
|
+
readonly internalType: "uint256";
|
|
1571
|
+
readonly type: "uint256";
|
|
1572
|
+
readonly indexed: false;
|
|
1573
|
+
}, {
|
|
1574
|
+
readonly name: "L";
|
|
1575
|
+
readonly internalType: "uint256";
|
|
1576
|
+
readonly type: "uint256";
|
|
1577
|
+
readonly indexed: false;
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly name: "theta0";
|
|
1580
|
+
readonly internalType: "int256";
|
|
1581
|
+
readonly type: "int256";
|
|
1582
|
+
readonly indexed: false;
|
|
1583
|
+
}, {
|
|
1584
|
+
readonly name: "dReserve";
|
|
1585
|
+
readonly internalType: "int256";
|
|
1586
|
+
readonly type: "int256";
|
|
1587
|
+
readonly indexed: false;
|
|
1588
|
+
}, {
|
|
1589
|
+
readonly name: "dShares";
|
|
1590
|
+
readonly internalType: "int256";
|
|
1591
|
+
readonly type: "int256";
|
|
1592
|
+
readonly indexed: false;
|
|
1593
|
+
}];
|
|
1594
|
+
readonly name: "LegSet";
|
|
1595
|
+
}, {
|
|
1596
|
+
readonly type: "event";
|
|
1597
|
+
readonly anonymous: false;
|
|
1598
|
+
readonly inputs: readonly [{
|
|
1599
|
+
readonly name: "poolId";
|
|
1600
|
+
readonly internalType: "bytes32";
|
|
1601
|
+
readonly type: "bytes32";
|
|
1602
|
+
readonly indexed: true;
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly name: "minBuffer";
|
|
1605
|
+
readonly internalType: "uint256";
|
|
1606
|
+
readonly type: "uint256";
|
|
1607
|
+
readonly indexed: false;
|
|
1608
|
+
}];
|
|
1609
|
+
readonly name: "MinBufferRaised";
|
|
1610
|
+
}, {
|
|
1611
|
+
readonly type: "event";
|
|
1612
|
+
readonly anonymous: false;
|
|
1613
|
+
readonly inputs: readonly [{
|
|
1614
|
+
readonly name: "poolId";
|
|
1615
|
+
readonly internalType: "bytes32";
|
|
1616
|
+
readonly type: "bytes32";
|
|
1617
|
+
readonly indexed: true;
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly name: "sender";
|
|
1620
|
+
readonly internalType: "address";
|
|
1621
|
+
readonly type: "address";
|
|
1622
|
+
readonly indexed: true;
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly name: "dL";
|
|
1625
|
+
readonly internalType: "uint256";
|
|
1626
|
+
readonly type: "uint256";
|
|
1627
|
+
readonly indexed: false;
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly name: "shares";
|
|
1630
|
+
readonly internalType: "uint256";
|
|
1631
|
+
readonly type: "uint256";
|
|
1632
|
+
readonly indexed: false;
|
|
1633
|
+
}, {
|
|
1634
|
+
readonly name: "dQuote";
|
|
1635
|
+
readonly internalType: "uint256";
|
|
1636
|
+
readonly type: "uint256";
|
|
1637
|
+
readonly indexed: false;
|
|
1638
|
+
}];
|
|
1639
|
+
readonly name: "Mint";
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly type: "event";
|
|
1642
|
+
readonly anonymous: false;
|
|
1643
|
+
readonly inputs: readonly [{
|
|
1644
|
+
readonly name: "poolId";
|
|
1645
|
+
readonly internalType: "bytes32";
|
|
1646
|
+
readonly type: "bytes32";
|
|
1647
|
+
readonly indexed: true;
|
|
1648
|
+
}, {
|
|
1649
|
+
readonly name: "name";
|
|
1650
|
+
readonly internalType: "bytes32";
|
|
1651
|
+
readonly type: "bytes32";
|
|
1652
|
+
readonly indexed: false;
|
|
1653
|
+
}];
|
|
1654
|
+
readonly name: "NameSet";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly type: "event";
|
|
1657
|
+
readonly anonymous: false;
|
|
1658
|
+
readonly inputs: readonly [{
|
|
1659
|
+
readonly name: "owner";
|
|
1660
|
+
readonly internalType: "address";
|
|
1661
|
+
readonly type: "address";
|
|
1662
|
+
readonly indexed: true;
|
|
1663
|
+
}, {
|
|
1664
|
+
readonly name: "operator";
|
|
1665
|
+
readonly internalType: "address";
|
|
1666
|
+
readonly type: "address";
|
|
1667
|
+
readonly indexed: true;
|
|
1668
|
+
}, {
|
|
1669
|
+
readonly name: "approved";
|
|
1670
|
+
readonly internalType: "bool";
|
|
1671
|
+
readonly type: "bool";
|
|
1672
|
+
readonly indexed: false;
|
|
1673
|
+
}];
|
|
1674
|
+
readonly name: "OperatorSet";
|
|
1675
|
+
}, {
|
|
1676
|
+
readonly type: "event";
|
|
1677
|
+
readonly anonymous: false;
|
|
1678
|
+
readonly inputs: readonly [{
|
|
1679
|
+
readonly name: "poolId";
|
|
1680
|
+
readonly internalType: "bytes32";
|
|
1681
|
+
readonly type: "bytes32";
|
|
1682
|
+
readonly indexed: true;
|
|
1683
|
+
}, {
|
|
1684
|
+
readonly name: "prev";
|
|
1685
|
+
readonly internalType: "address";
|
|
1686
|
+
readonly type: "address";
|
|
1687
|
+
readonly indexed: true;
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly name: "next";
|
|
1690
|
+
readonly internalType: "address";
|
|
1691
|
+
readonly type: "address";
|
|
1692
|
+
readonly indexed: true;
|
|
1693
|
+
}];
|
|
1694
|
+
readonly name: "OperatorSet";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly type: "event";
|
|
1697
|
+
readonly anonymous: false;
|
|
1698
|
+
readonly inputs: readonly [{
|
|
1699
|
+
readonly name: "poolId";
|
|
1700
|
+
readonly internalType: "bytes32";
|
|
1701
|
+
readonly type: "bytes32";
|
|
1702
|
+
readonly indexed: true;
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly name: "inShares";
|
|
1705
|
+
readonly internalType: "bool";
|
|
1706
|
+
readonly type: "bool";
|
|
1707
|
+
readonly indexed: false;
|
|
1708
|
+
}, {
|
|
1709
|
+
readonly name: "amount";
|
|
1710
|
+
readonly internalType: "uint256";
|
|
1711
|
+
readonly type: "uint256";
|
|
1712
|
+
readonly indexed: false;
|
|
1713
|
+
}];
|
|
1714
|
+
readonly name: "ProtocolFee";
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly type: "event";
|
|
1717
|
+
readonly anonymous: false;
|
|
1718
|
+
readonly inputs: readonly [{
|
|
1719
|
+
readonly name: "poolId";
|
|
1720
|
+
readonly internalType: "bytes32";
|
|
1721
|
+
readonly type: "bytes32";
|
|
1722
|
+
readonly indexed: true;
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly name: "gen";
|
|
1725
|
+
readonly internalType: "uint256";
|
|
1726
|
+
readonly type: "uint256";
|
|
1727
|
+
readonly indexed: true;
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly name: "owner";
|
|
1730
|
+
readonly internalType: "address";
|
|
1731
|
+
readonly type: "address";
|
|
1732
|
+
readonly indexed: true;
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly name: "shares";
|
|
1735
|
+
readonly internalType: "uint256";
|
|
1736
|
+
readonly type: "uint256";
|
|
1737
|
+
readonly indexed: false;
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "quoteOut";
|
|
1740
|
+
readonly internalType: "uint256";
|
|
1741
|
+
readonly type: "uint256";
|
|
1742
|
+
readonly indexed: false;
|
|
1743
|
+
}];
|
|
1744
|
+
readonly name: "Redeem";
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly type: "event";
|
|
1747
|
+
readonly anonymous: false;
|
|
1748
|
+
readonly inputs: readonly [{
|
|
1749
|
+
readonly name: "poolId";
|
|
1750
|
+
readonly internalType: "bytes32";
|
|
1751
|
+
readonly type: "bytes32";
|
|
1752
|
+
readonly indexed: true;
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly name: "gen";
|
|
1755
|
+
readonly internalType: "uint256";
|
|
1756
|
+
readonly type: "uint256";
|
|
1757
|
+
readonly indexed: true;
|
|
1758
|
+
}, {
|
|
1759
|
+
readonly name: "L0";
|
|
1760
|
+
readonly internalType: "uint256";
|
|
1761
|
+
readonly type: "uint256";
|
|
1762
|
+
readonly indexed: false;
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly name: "Q0";
|
|
1765
|
+
readonly internalType: "uint256";
|
|
1766
|
+
readonly type: "uint256";
|
|
1767
|
+
readonly indexed: false;
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "theta0";
|
|
1770
|
+
readonly internalType: "int256";
|
|
1771
|
+
readonly type: "int256";
|
|
1772
|
+
readonly indexed: false;
|
|
1773
|
+
}, {
|
|
1774
|
+
readonly name: "r0";
|
|
1775
|
+
readonly internalType: "uint256[]";
|
|
1776
|
+
readonly type: "uint256[]";
|
|
1777
|
+
readonly indexed: false;
|
|
1778
|
+
}];
|
|
1779
|
+
readonly name: "Seeded";
|
|
1780
|
+
}, {
|
|
1781
|
+
readonly type: "event";
|
|
1782
|
+
readonly anonymous: false;
|
|
1783
|
+
readonly inputs: readonly [{
|
|
1784
|
+
readonly name: "who";
|
|
1785
|
+
readonly internalType: "address";
|
|
1786
|
+
readonly type: "address";
|
|
1787
|
+
readonly indexed: true;
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly name: "name";
|
|
1790
|
+
readonly internalType: "bytes32";
|
|
1791
|
+
readonly type: "bytes32";
|
|
1792
|
+
readonly indexed: false;
|
|
1793
|
+
}];
|
|
1794
|
+
readonly name: "SponsorNamed";
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly type: "event";
|
|
1797
|
+
readonly anonymous: false;
|
|
1798
|
+
readonly inputs: readonly [{
|
|
1799
|
+
readonly name: "poolId";
|
|
1800
|
+
readonly internalType: "bytes32";
|
|
1801
|
+
readonly type: "bytes32";
|
|
1802
|
+
readonly indexed: true;
|
|
1803
|
+
}, {
|
|
1804
|
+
readonly name: "sender";
|
|
1805
|
+
readonly internalType: "address";
|
|
1806
|
+
readonly type: "address";
|
|
1807
|
+
readonly indexed: true;
|
|
1808
|
+
}, {
|
|
1809
|
+
readonly name: "tokenIn";
|
|
1810
|
+
readonly internalType: "address";
|
|
1811
|
+
readonly type: "address";
|
|
1812
|
+
readonly indexed: false;
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly name: "tokenOut";
|
|
1815
|
+
readonly internalType: "address";
|
|
1816
|
+
readonly type: "address";
|
|
1817
|
+
readonly indexed: false;
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly name: "amountIn";
|
|
1820
|
+
readonly internalType: "uint256";
|
|
1821
|
+
readonly type: "uint256";
|
|
1822
|
+
readonly indexed: false;
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly name: "amountOut";
|
|
1825
|
+
readonly internalType: "uint256";
|
|
1826
|
+
readonly type: "uint256";
|
|
1827
|
+
readonly indexed: false;
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly name: "reserveIn";
|
|
1830
|
+
readonly internalType: "uint256";
|
|
1831
|
+
readonly type: "uint256";
|
|
1832
|
+
readonly indexed: false;
|
|
1833
|
+
}, {
|
|
1834
|
+
readonly name: "reserveOut";
|
|
1835
|
+
readonly internalType: "uint256";
|
|
1836
|
+
readonly type: "uint256";
|
|
1837
|
+
readonly indexed: false;
|
|
1838
|
+
}];
|
|
1839
|
+
readonly name: "Swap";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly type: "event";
|
|
1842
|
+
readonly anonymous: false;
|
|
1843
|
+
readonly inputs: readonly [{
|
|
1844
|
+
readonly name: "by";
|
|
1845
|
+
readonly internalType: "address";
|
|
1846
|
+
readonly type: "address";
|
|
1847
|
+
readonly indexed: false;
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly name: "from";
|
|
1850
|
+
readonly internalType: "address";
|
|
1851
|
+
readonly type: "address";
|
|
1852
|
+
readonly indexed: true;
|
|
1853
|
+
}, {
|
|
1854
|
+
readonly name: "to";
|
|
1855
|
+
readonly internalType: "address";
|
|
1856
|
+
readonly type: "address";
|
|
1857
|
+
readonly indexed: true;
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly name: "id";
|
|
1860
|
+
readonly internalType: "uint256";
|
|
1861
|
+
readonly type: "uint256";
|
|
1862
|
+
readonly indexed: true;
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly name: "amount";
|
|
1865
|
+
readonly internalType: "uint256";
|
|
1866
|
+
readonly type: "uint256";
|
|
1867
|
+
readonly indexed: false;
|
|
1868
|
+
}];
|
|
1869
|
+
readonly name: "Transfer";
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly type: "error";
|
|
1872
|
+
readonly inputs: readonly [];
|
|
1873
|
+
readonly name: "AlreadySeeded";
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly type: "error";
|
|
1876
|
+
readonly inputs: readonly [];
|
|
1877
|
+
readonly name: "AlreadyUnlocked";
|
|
1878
|
+
}, {
|
|
1879
|
+
readonly type: "error";
|
|
1880
|
+
readonly inputs: readonly [];
|
|
1881
|
+
readonly name: "BadLeg";
|
|
1882
|
+
}, {
|
|
1883
|
+
readonly type: "error";
|
|
1884
|
+
readonly inputs: readonly [];
|
|
1885
|
+
readonly name: "BadParam";
|
|
1886
|
+
}, {
|
|
1887
|
+
readonly type: "error";
|
|
1888
|
+
readonly inputs: readonly [];
|
|
1889
|
+
readonly name: "BalanceOverflow";
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly type: "error";
|
|
1892
|
+
readonly inputs: readonly [];
|
|
1893
|
+
readonly name: "InsufficientBalance";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly type: "error";
|
|
1896
|
+
readonly inputs: readonly [];
|
|
1897
|
+
readonly name: "InsufficientPermission";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly type: "error";
|
|
1900
|
+
readonly inputs: readonly [];
|
|
1901
|
+
readonly name: "InsufficientQuote";
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly type: "error";
|
|
1904
|
+
readonly inputs: readonly [];
|
|
1905
|
+
readonly name: "InvalidToken";
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly type: "error";
|
|
1908
|
+
readonly inputs: readonly [];
|
|
1909
|
+
readonly name: "LegHeld";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly type: "error";
|
|
1912
|
+
readonly inputs: readonly [];
|
|
1913
|
+
readonly name: "LegLive";
|
|
1914
|
+
}, {
|
|
1915
|
+
readonly type: "error";
|
|
1916
|
+
readonly inputs: readonly [];
|
|
1917
|
+
readonly name: "MinBuffer";
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly type: "error";
|
|
1920
|
+
readonly inputs: readonly [{
|
|
1921
|
+
readonly name: "index";
|
|
1922
|
+
readonly internalType: "uint256";
|
|
1923
|
+
readonly type: "uint256";
|
|
1924
|
+
}];
|
|
1925
|
+
readonly name: "MulticallFailed";
|
|
1926
|
+
}, {
|
|
1927
|
+
readonly type: "error";
|
|
1928
|
+
readonly inputs: readonly [];
|
|
1929
|
+
readonly name: "NonstandardToken";
|
|
1930
|
+
}, {
|
|
1931
|
+
readonly type: "error";
|
|
1932
|
+
readonly inputs: readonly [];
|
|
1933
|
+
readonly name: "NotAllowed";
|
|
1934
|
+
}, {
|
|
1935
|
+
readonly type: "error";
|
|
1936
|
+
readonly inputs: readonly [];
|
|
1937
|
+
readonly name: "NotAuthority";
|
|
1938
|
+
}, {
|
|
1939
|
+
readonly type: "error";
|
|
1940
|
+
readonly inputs: readonly [];
|
|
1941
|
+
readonly name: "NotAuthorized";
|
|
1942
|
+
}, {
|
|
1943
|
+
readonly type: "error";
|
|
1944
|
+
readonly inputs: readonly [];
|
|
1945
|
+
readonly name: "NotCollector";
|
|
1946
|
+
}, {
|
|
1947
|
+
readonly type: "error";
|
|
1948
|
+
readonly inputs: readonly [];
|
|
1949
|
+
readonly name: "NotDissolvable";
|
|
1950
|
+
}, {
|
|
1951
|
+
readonly type: "error";
|
|
1952
|
+
readonly inputs: readonly [];
|
|
1953
|
+
readonly name: "NotOperator";
|
|
1954
|
+
}, {
|
|
1955
|
+
readonly type: "error";
|
|
1956
|
+
readonly inputs: readonly [];
|
|
1957
|
+
readonly name: "NotRetired";
|
|
1958
|
+
}, {
|
|
1959
|
+
readonly type: "error";
|
|
1960
|
+
readonly inputs: readonly [];
|
|
1961
|
+
readonly name: "NotSeeded";
|
|
1962
|
+
}, {
|
|
1963
|
+
readonly type: "error";
|
|
1964
|
+
readonly inputs: readonly [];
|
|
1965
|
+
readonly name: "NotSoleLP";
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly type: "error";
|
|
1968
|
+
readonly inputs: readonly [];
|
|
1969
|
+
readonly name: "PoolAlreadyInitialized";
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly type: "error";
|
|
1972
|
+
readonly inputs: readonly [];
|
|
1973
|
+
readonly name: "PoolLocked";
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly type: "error";
|
|
1976
|
+
readonly inputs: readonly [];
|
|
1977
|
+
readonly name: "PoolNotInitialized";
|
|
1978
|
+
}, {
|
|
1979
|
+
readonly type: "error";
|
|
1980
|
+
readonly inputs: readonly [];
|
|
1981
|
+
readonly name: "PriceOutOfRange";
|
|
1982
|
+
}, {
|
|
1983
|
+
readonly type: "error";
|
|
1984
|
+
readonly inputs: readonly [{
|
|
1985
|
+
readonly name: "amount";
|
|
1986
|
+
readonly internalType: "uint256";
|
|
1987
|
+
readonly type: "uint256";
|
|
1988
|
+
}];
|
|
1989
|
+
readonly name: "QuoteResult";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly type: "error";
|
|
1992
|
+
readonly inputs: readonly [];
|
|
1993
|
+
readonly name: "ReserveNotRepresentable";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly type: "error";
|
|
1996
|
+
readonly inputs: readonly [];
|
|
1997
|
+
readonly name: "Restructured";
|
|
1998
|
+
}, {
|
|
1999
|
+
readonly type: "error";
|
|
2000
|
+
readonly inputs: readonly [];
|
|
2001
|
+
readonly name: "SameAsset";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly type: "error";
|
|
2004
|
+
readonly inputs: readonly [];
|
|
2005
|
+
readonly name: "Slippage";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly type: "error";
|
|
2008
|
+
readonly inputs: readonly [];
|
|
2009
|
+
readonly name: "StrikeLocked";
|
|
2010
|
+
}, {
|
|
2011
|
+
readonly type: "error";
|
|
2012
|
+
readonly inputs: readonly [];
|
|
2013
|
+
readonly name: "SyncAlreadyOpen";
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly type: "error";
|
|
2016
|
+
readonly inputs: readonly [];
|
|
2017
|
+
readonly name: "TokensNotSettled";
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly type: "error";
|
|
2020
|
+
readonly inputs: readonly [];
|
|
2021
|
+
readonly name: "TooManyGenerations";
|
|
2022
|
+
}, {
|
|
2023
|
+
readonly type: "error";
|
|
2024
|
+
readonly inputs: readonly [];
|
|
2025
|
+
readonly name: "TooManyLegs";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly type: "error";
|
|
2028
|
+
readonly inputs: readonly [];
|
|
2029
|
+
readonly name: "TransferShortfall";
|
|
2030
|
+
}, {
|
|
2031
|
+
readonly type: "error";
|
|
2032
|
+
readonly inputs: readonly [];
|
|
2033
|
+
readonly name: "ZeroAmount";
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly type: "constructor";
|
|
2036
|
+
readonly inputs: readonly [];
|
|
2037
|
+
readonly stateMutability: "nonpayable";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly type: "function";
|
|
2040
|
+
readonly inputs: readonly [];
|
|
2041
|
+
readonly name: "FEE_MIN";
|
|
2042
|
+
readonly outputs: readonly [{
|
|
2043
|
+
readonly name: "";
|
|
2044
|
+
readonly internalType: "uint256";
|
|
2045
|
+
readonly type: "uint256";
|
|
2046
|
+
}];
|
|
2047
|
+
readonly stateMutability: "view";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly type: "function";
|
|
2050
|
+
readonly inputs: readonly [];
|
|
2051
|
+
readonly name: "HARVEST_FEE";
|
|
2052
|
+
readonly outputs: readonly [{
|
|
2053
|
+
readonly name: "";
|
|
2054
|
+
readonly internalType: "uint256";
|
|
2055
|
+
readonly type: "uint256";
|
|
2056
|
+
}];
|
|
2057
|
+
readonly stateMutability: "view";
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly type: "function";
|
|
2060
|
+
readonly inputs: readonly [];
|
|
2061
|
+
readonly name: "LEVER_FLOOR";
|
|
2062
|
+
readonly outputs: readonly [{
|
|
2063
|
+
readonly name: "";
|
|
2064
|
+
readonly internalType: "uint256";
|
|
2065
|
+
readonly type: "uint256";
|
|
2066
|
+
}];
|
|
2067
|
+
readonly stateMutability: "view";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly type: "function";
|
|
2070
|
+
readonly inputs: readonly [];
|
|
2071
|
+
readonly name: "MINT_FEE";
|
|
2072
|
+
readonly outputs: readonly [{
|
|
2073
|
+
readonly name: "";
|
|
2074
|
+
readonly internalType: "uint256";
|
|
2075
|
+
readonly type: "uint256";
|
|
2076
|
+
}];
|
|
2077
|
+
readonly stateMutability: "view";
|
|
2078
|
+
}, {
|
|
2079
|
+
readonly type: "function";
|
|
2080
|
+
readonly inputs: readonly [];
|
|
2081
|
+
readonly name: "MINT_FEE_PROTOCOL_CUT";
|
|
2082
|
+
readonly outputs: readonly [{
|
|
2083
|
+
readonly name: "";
|
|
2084
|
+
readonly internalType: "uint256";
|
|
2085
|
+
readonly type: "uint256";
|
|
2086
|
+
}];
|
|
2087
|
+
readonly stateMutability: "view";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly type: "function";
|
|
2090
|
+
readonly inputs: readonly [{
|
|
2091
|
+
readonly name: "poolId";
|
|
2092
|
+
readonly internalType: "bytes32";
|
|
2093
|
+
readonly type: "bytes32";
|
|
2094
|
+
}];
|
|
2095
|
+
readonly name: "acceptAuthority";
|
|
2096
|
+
readonly outputs: readonly [];
|
|
2097
|
+
readonly stateMutability: "nonpayable";
|
|
2098
|
+
}, {
|
|
2099
|
+
readonly type: "function";
|
|
2100
|
+
readonly inputs: readonly [];
|
|
2101
|
+
readonly name: "acceptCollector";
|
|
2102
|
+
readonly outputs: readonly [];
|
|
2103
|
+
readonly stateMutability: "nonpayable";
|
|
2104
|
+
}, {
|
|
2105
|
+
readonly type: "function";
|
|
2106
|
+
readonly inputs: readonly [{
|
|
2107
|
+
readonly name: "poolId";
|
|
2108
|
+
readonly internalType: "bytes32";
|
|
2109
|
+
readonly type: "bytes32";
|
|
2110
|
+
}, {
|
|
2111
|
+
readonly name: "base";
|
|
2112
|
+
readonly internalType: "address";
|
|
2113
|
+
readonly type: "address";
|
|
2114
|
+
}, {
|
|
2115
|
+
readonly name: "Lj";
|
|
2116
|
+
readonly internalType: "uint256";
|
|
2117
|
+
readonly type: "uint256";
|
|
2118
|
+
}, {
|
|
2119
|
+
readonly name: "R";
|
|
2120
|
+
readonly internalType: "uint256";
|
|
2121
|
+
readonly type: "uint256";
|
|
2122
|
+
}];
|
|
2123
|
+
readonly name: "admitLeg";
|
|
2124
|
+
readonly outputs: readonly [{
|
|
2125
|
+
readonly name: "dReserve";
|
|
2126
|
+
readonly internalType: "int256";
|
|
2127
|
+
readonly type: "int256";
|
|
2128
|
+
}, {
|
|
2129
|
+
readonly name: "dShares";
|
|
2130
|
+
readonly internalType: "int256";
|
|
2131
|
+
readonly type: "int256";
|
|
2132
|
+
}];
|
|
2133
|
+
readonly stateMutability: "nonpayable";
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly type: "function";
|
|
2136
|
+
readonly inputs: readonly [{
|
|
2137
|
+
readonly name: "owner";
|
|
2138
|
+
readonly internalType: "address";
|
|
2139
|
+
readonly type: "address";
|
|
2140
|
+
}, {
|
|
2141
|
+
readonly name: "spender";
|
|
2142
|
+
readonly internalType: "address";
|
|
2143
|
+
readonly type: "address";
|
|
2144
|
+
}, {
|
|
2145
|
+
readonly name: "id";
|
|
2146
|
+
readonly internalType: "uint256";
|
|
2147
|
+
readonly type: "uint256";
|
|
2148
|
+
}];
|
|
2149
|
+
readonly name: "allowance";
|
|
2150
|
+
readonly outputs: readonly [{
|
|
2151
|
+
readonly name: "amount";
|
|
2152
|
+
readonly internalType: "uint256";
|
|
2153
|
+
readonly type: "uint256";
|
|
2154
|
+
}];
|
|
2155
|
+
readonly stateMutability: "view";
|
|
2156
|
+
}, {
|
|
2157
|
+
readonly type: "function";
|
|
2158
|
+
readonly inputs: readonly [{
|
|
2159
|
+
readonly name: "";
|
|
2160
|
+
readonly internalType: "bytes32";
|
|
2161
|
+
readonly type: "bytes32";
|
|
2162
|
+
}, {
|
|
2163
|
+
readonly name: "";
|
|
2164
|
+
readonly internalType: "address";
|
|
2165
|
+
readonly type: "address";
|
|
2166
|
+
}];
|
|
2167
|
+
readonly name: "allowed";
|
|
2168
|
+
readonly outputs: readonly [{
|
|
2169
|
+
readonly name: "";
|
|
2170
|
+
readonly internalType: "bool";
|
|
2171
|
+
readonly type: "bool";
|
|
2172
|
+
}];
|
|
2173
|
+
readonly stateMutability: "view";
|
|
2174
|
+
}, {
|
|
2175
|
+
readonly type: "function";
|
|
2176
|
+
readonly inputs: readonly [{
|
|
2177
|
+
readonly name: "poolId";
|
|
2178
|
+
readonly internalType: "bytes32";
|
|
2179
|
+
readonly type: "bytes32";
|
|
2180
|
+
}, {
|
|
2181
|
+
readonly name: "who";
|
|
2182
|
+
readonly internalType: "address";
|
|
2183
|
+
readonly type: "address";
|
|
2184
|
+
}];
|
|
2185
|
+
readonly name: "appointOperator";
|
|
2186
|
+
readonly outputs: readonly [];
|
|
2187
|
+
readonly stateMutability: "nonpayable";
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly type: "function";
|
|
2190
|
+
readonly inputs: readonly [{
|
|
2191
|
+
readonly name: "spender";
|
|
2192
|
+
readonly internalType: "address";
|
|
2193
|
+
readonly type: "address";
|
|
2194
|
+
}, {
|
|
2195
|
+
readonly name: "id";
|
|
2196
|
+
readonly internalType: "uint256";
|
|
2197
|
+
readonly type: "uint256";
|
|
2198
|
+
}, {
|
|
2199
|
+
readonly name: "amount";
|
|
2200
|
+
readonly internalType: "uint256";
|
|
2201
|
+
readonly type: "uint256";
|
|
2202
|
+
}];
|
|
2203
|
+
readonly name: "approve";
|
|
2204
|
+
readonly outputs: readonly [{
|
|
2205
|
+
readonly name: "";
|
|
2206
|
+
readonly internalType: "bool";
|
|
2207
|
+
readonly type: "bool";
|
|
2208
|
+
}];
|
|
2209
|
+
readonly stateMutability: "payable";
|
|
2210
|
+
}, {
|
|
2211
|
+
readonly type: "function";
|
|
2212
|
+
readonly inputs: readonly [{
|
|
2213
|
+
readonly name: "owner";
|
|
2214
|
+
readonly internalType: "address";
|
|
2215
|
+
readonly type: "address";
|
|
2216
|
+
}, {
|
|
2217
|
+
readonly name: "id";
|
|
2218
|
+
readonly internalType: "uint256";
|
|
2219
|
+
readonly type: "uint256";
|
|
2220
|
+
}];
|
|
2221
|
+
readonly name: "balanceOf";
|
|
2222
|
+
readonly outputs: readonly [{
|
|
2223
|
+
readonly name: "amount";
|
|
2224
|
+
readonly internalType: "uint256";
|
|
2225
|
+
readonly type: "uint256";
|
|
2226
|
+
}];
|
|
2227
|
+
readonly stateMutability: "view";
|
|
2228
|
+
}, {
|
|
2229
|
+
readonly type: "function";
|
|
2230
|
+
readonly inputs: readonly [{
|
|
2231
|
+
readonly name: "poolId";
|
|
2232
|
+
readonly internalType: "bytes32";
|
|
2233
|
+
readonly type: "bytes32";
|
|
2234
|
+
}, {
|
|
2235
|
+
readonly name: "gen";
|
|
2236
|
+
readonly internalType: "uint256";
|
|
2237
|
+
readonly type: "uint256";
|
|
2238
|
+
}];
|
|
2239
|
+
readonly name: "bundleOf";
|
|
2240
|
+
readonly outputs: readonly [{
|
|
2241
|
+
readonly name: "supply";
|
|
2242
|
+
readonly internalType: "uint256";
|
|
2243
|
+
readonly type: "uint256";
|
|
2244
|
+
}, {
|
|
2245
|
+
readonly name: "quote";
|
|
2246
|
+
readonly internalType: "uint256";
|
|
2247
|
+
readonly type: "uint256";
|
|
2248
|
+
}, {
|
|
2249
|
+
readonly name: "base";
|
|
2250
|
+
readonly internalType: "uint256[]";
|
|
2251
|
+
readonly type: "uint256[]";
|
|
2252
|
+
}];
|
|
2253
|
+
readonly stateMutability: "view";
|
|
2254
|
+
}, {
|
|
2255
|
+
readonly type: "function";
|
|
2256
|
+
readonly inputs: readonly [{
|
|
2257
|
+
readonly name: "token";
|
|
2258
|
+
readonly internalType: "address";
|
|
2259
|
+
readonly type: "address";
|
|
2260
|
+
}, {
|
|
2261
|
+
readonly name: "amount";
|
|
2262
|
+
readonly internalType: "uint256";
|
|
2263
|
+
readonly type: "uint256";
|
|
2264
|
+
}];
|
|
2265
|
+
readonly name: "burnClaims";
|
|
2266
|
+
readonly outputs: readonly [];
|
|
2267
|
+
readonly stateMutability: "nonpayable";
|
|
2268
|
+
}, {
|
|
2269
|
+
readonly type: "function";
|
|
2270
|
+
readonly inputs: readonly [{
|
|
2271
|
+
readonly name: "poolId";
|
|
2272
|
+
readonly internalType: "bytes32";
|
|
2273
|
+
readonly type: "bytes32";
|
|
2274
|
+
}, {
|
|
2275
|
+
readonly name: "gen";
|
|
2276
|
+
readonly internalType: "uint256";
|
|
2277
|
+
readonly type: "uint256";
|
|
2278
|
+
}, {
|
|
2279
|
+
readonly name: "to";
|
|
2280
|
+
readonly internalType: "address";
|
|
2281
|
+
readonly type: "address";
|
|
2282
|
+
}];
|
|
2283
|
+
readonly name: "claim";
|
|
2284
|
+
readonly outputs: readonly [{
|
|
2285
|
+
readonly name: "amount";
|
|
2286
|
+
readonly internalType: "uint256";
|
|
2287
|
+
readonly type: "uint256";
|
|
2288
|
+
}];
|
|
2289
|
+
readonly stateMutability: "nonpayable";
|
|
2290
|
+
}, {
|
|
2291
|
+
readonly type: "function";
|
|
2292
|
+
readonly inputs: readonly [{
|
|
2293
|
+
readonly name: "token";
|
|
2294
|
+
readonly internalType: "address";
|
|
2295
|
+
readonly type: "address";
|
|
2296
|
+
}];
|
|
2297
|
+
readonly name: "claimIdOf";
|
|
2298
|
+
readonly outputs: readonly [{
|
|
2299
|
+
readonly name: "";
|
|
2300
|
+
readonly internalType: "uint256";
|
|
2301
|
+
readonly type: "uint256";
|
|
2302
|
+
}];
|
|
2303
|
+
readonly stateMutability: "pure";
|
|
2304
|
+
}, {
|
|
2305
|
+
readonly type: "function";
|
|
2306
|
+
readonly inputs: readonly [{
|
|
2307
|
+
readonly name: "";
|
|
2308
|
+
readonly internalType: "address";
|
|
2309
|
+
readonly type: "address";
|
|
2310
|
+
}];
|
|
2311
|
+
readonly name: "claimsOutstanding";
|
|
2312
|
+
readonly outputs: readonly [{
|
|
2313
|
+
readonly name: "";
|
|
2314
|
+
readonly internalType: "uint256";
|
|
2315
|
+
readonly type: "uint256";
|
|
2316
|
+
}];
|
|
2317
|
+
readonly stateMutability: "view";
|
|
2318
|
+
}, {
|
|
2319
|
+
readonly type: "function";
|
|
2320
|
+
readonly inputs: readonly [{
|
|
2321
|
+
readonly name: "poolId";
|
|
2322
|
+
readonly internalType: "bytes32";
|
|
2323
|
+
readonly type: "bytes32";
|
|
2324
|
+
}];
|
|
2325
|
+
readonly name: "compositeX";
|
|
2326
|
+
readonly outputs: readonly [{
|
|
2327
|
+
readonly name: "X";
|
|
2328
|
+
readonly internalType: "int256";
|
|
2329
|
+
readonly type: "int256";
|
|
2330
|
+
}];
|
|
2331
|
+
readonly stateMutability: "view";
|
|
2332
|
+
}, {
|
|
2333
|
+
readonly type: "function";
|
|
2334
|
+
readonly inputs: readonly [{
|
|
2335
|
+
readonly name: "id";
|
|
2336
|
+
readonly internalType: "uint256";
|
|
2337
|
+
readonly type: "uint256";
|
|
2338
|
+
}];
|
|
2339
|
+
readonly name: "decimals";
|
|
2340
|
+
readonly outputs: readonly [{
|
|
2341
|
+
readonly name: "";
|
|
2342
|
+
readonly internalType: "uint8";
|
|
2343
|
+
readonly type: "uint8";
|
|
2344
|
+
}];
|
|
2345
|
+
readonly stateMutability: "view";
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly type: "function";
|
|
2348
|
+
readonly inputs: readonly [{
|
|
2349
|
+
readonly name: "poolId";
|
|
2350
|
+
readonly internalType: "bytes32";
|
|
2351
|
+
readonly type: "bytes32";
|
|
2352
|
+
}, {
|
|
2353
|
+
readonly name: "amount";
|
|
2354
|
+
readonly internalType: "uint256";
|
|
2355
|
+
readonly type: "uint256";
|
|
2356
|
+
}];
|
|
2357
|
+
readonly name: "deepen";
|
|
2358
|
+
readonly outputs: readonly [];
|
|
2359
|
+
readonly stateMutability: "nonpayable";
|
|
2360
|
+
}, {
|
|
2361
|
+
readonly type: "function";
|
|
2362
|
+
readonly inputs: readonly [{
|
|
2363
|
+
readonly name: "token";
|
|
2364
|
+
readonly internalType: "address";
|
|
2365
|
+
readonly type: "address";
|
|
2366
|
+
}, {
|
|
2367
|
+
readonly name: "target";
|
|
2368
|
+
readonly internalType: "address";
|
|
2369
|
+
readonly type: "address";
|
|
2370
|
+
}];
|
|
2371
|
+
readonly name: "deltaOf";
|
|
2372
|
+
readonly outputs: readonly [{
|
|
2373
|
+
readonly name: "";
|
|
2374
|
+
readonly internalType: "int256";
|
|
2375
|
+
readonly type: "int256";
|
|
2376
|
+
}];
|
|
2377
|
+
readonly stateMutability: "view";
|
|
2378
|
+
}, {
|
|
2379
|
+
readonly type: "function";
|
|
2380
|
+
readonly inputs: readonly [{
|
|
2381
|
+
readonly name: "poolId";
|
|
2382
|
+
readonly internalType: "bytes32";
|
|
2383
|
+
readonly type: "bytes32";
|
|
2384
|
+
}];
|
|
2385
|
+
readonly name: "dissolve";
|
|
2386
|
+
readonly outputs: readonly [];
|
|
2387
|
+
readonly stateMutability: "nonpayable";
|
|
2388
|
+
}, {
|
|
2389
|
+
readonly type: "function";
|
|
2390
|
+
readonly inputs: readonly [{
|
|
2391
|
+
readonly name: "";
|
|
2392
|
+
readonly internalType: "uint256";
|
|
2393
|
+
readonly type: "uint256";
|
|
2394
|
+
}];
|
|
2395
|
+
readonly name: "dps";
|
|
2396
|
+
readonly outputs: readonly [{
|
|
2397
|
+
readonly name: "";
|
|
2398
|
+
readonly internalType: "uint256";
|
|
2399
|
+
readonly type: "uint256";
|
|
2400
|
+
}];
|
|
2401
|
+
readonly stateMutability: "view";
|
|
2402
|
+
}, {
|
|
2403
|
+
readonly type: "function";
|
|
2404
|
+
readonly inputs: readonly [];
|
|
2405
|
+
readonly name: "feeCollector";
|
|
2406
|
+
readonly outputs: readonly [{
|
|
2407
|
+
readonly name: "";
|
|
2408
|
+
readonly internalType: "address";
|
|
2409
|
+
readonly type: "address";
|
|
2410
|
+
}];
|
|
2411
|
+
readonly stateMutability: "view";
|
|
2412
|
+
}, {
|
|
2413
|
+
readonly type: "function";
|
|
2414
|
+
readonly inputs: readonly [{
|
|
2415
|
+
readonly name: "poolId";
|
|
2416
|
+
readonly internalType: "bytes32";
|
|
2417
|
+
readonly type: "bytes32";
|
|
2418
|
+
}];
|
|
2419
|
+
readonly name: "feePerL";
|
|
2420
|
+
readonly outputs: readonly [{
|
|
2421
|
+
readonly name: "";
|
|
2422
|
+
readonly internalType: "int256";
|
|
2423
|
+
readonly type: "int256";
|
|
2424
|
+
}];
|
|
2425
|
+
readonly stateMutability: "view";
|
|
2426
|
+
}, {
|
|
2427
|
+
readonly type: "function";
|
|
2428
|
+
readonly inputs: readonly [{
|
|
2429
|
+
readonly name: "poolId";
|
|
2430
|
+
readonly internalType: "bytes32";
|
|
2431
|
+
readonly type: "bytes32";
|
|
2432
|
+
}, {
|
|
2433
|
+
readonly name: "amount";
|
|
2434
|
+
readonly internalType: "uint256";
|
|
2435
|
+
readonly type: "uint256";
|
|
2436
|
+
}, {
|
|
2437
|
+
readonly name: "to";
|
|
2438
|
+
readonly internalType: "address";
|
|
2439
|
+
readonly type: "address";
|
|
2440
|
+
}];
|
|
2441
|
+
readonly name: "harvest";
|
|
2442
|
+
readonly outputs: readonly [];
|
|
2443
|
+
readonly stateMutability: "nonpayable";
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly type: "function";
|
|
2446
|
+
readonly inputs: readonly [{
|
|
2447
|
+
readonly name: "";
|
|
2448
|
+
readonly internalType: "bytes32";
|
|
2449
|
+
readonly type: "bytes32";
|
|
2450
|
+
}];
|
|
2451
|
+
readonly name: "harvestFeeExempt";
|
|
2452
|
+
readonly outputs: readonly [{
|
|
2453
|
+
readonly name: "";
|
|
2454
|
+
readonly internalType: "bool";
|
|
2455
|
+
readonly type: "bool";
|
|
2456
|
+
}];
|
|
2457
|
+
readonly stateMutability: "view";
|
|
2458
|
+
}, {
|
|
2459
|
+
readonly type: "function";
|
|
2460
|
+
readonly inputs: readonly [{
|
|
2461
|
+
readonly name: "owner";
|
|
2462
|
+
readonly internalType: "address";
|
|
2463
|
+
readonly type: "address";
|
|
2464
|
+
}, {
|
|
2465
|
+
readonly name: "spender";
|
|
2466
|
+
readonly internalType: "address";
|
|
2467
|
+
readonly type: "address";
|
|
2468
|
+
}];
|
|
2469
|
+
readonly name: "isOperator";
|
|
2470
|
+
readonly outputs: readonly [{
|
|
2471
|
+
readonly name: "status";
|
|
2472
|
+
readonly internalType: "bool";
|
|
2473
|
+
readonly type: "bool";
|
|
2474
|
+
}];
|
|
2475
|
+
readonly stateMutability: "view";
|
|
2476
|
+
}, {
|
|
2477
|
+
readonly type: "function";
|
|
2478
|
+
readonly inputs: readonly [];
|
|
2479
|
+
readonly name: "isUnlocked";
|
|
2480
|
+
readonly outputs: readonly [{
|
|
2481
|
+
readonly name: "";
|
|
2482
|
+
readonly internalType: "bool";
|
|
2483
|
+
readonly type: "bool";
|
|
2484
|
+
}];
|
|
2485
|
+
readonly stateMutability: "view";
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly type: "function";
|
|
2488
|
+
readonly inputs: readonly [{
|
|
2489
|
+
readonly name: "token";
|
|
2490
|
+
readonly internalType: "address";
|
|
2491
|
+
readonly type: "address";
|
|
2492
|
+
}, {
|
|
2493
|
+
readonly name: "to";
|
|
2494
|
+
readonly internalType: "address";
|
|
2495
|
+
readonly type: "address";
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly name: "amount";
|
|
2498
|
+
readonly internalType: "uint256";
|
|
2499
|
+
readonly type: "uint256";
|
|
2500
|
+
}];
|
|
2501
|
+
readonly name: "mintClaims";
|
|
2502
|
+
readonly outputs: readonly [];
|
|
2503
|
+
readonly stateMutability: "nonpayable";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly type: "function";
|
|
2506
|
+
readonly inputs: readonly [{
|
|
2507
|
+
readonly name: "";
|
|
2508
|
+
readonly internalType: "uint256";
|
|
2509
|
+
readonly type: "uint256";
|
|
2510
|
+
}];
|
|
2511
|
+
readonly name: "name";
|
|
2512
|
+
readonly outputs: readonly [{
|
|
2513
|
+
readonly name: "";
|
|
2514
|
+
readonly internalType: "string";
|
|
2515
|
+
readonly type: "string";
|
|
2516
|
+
}];
|
|
2517
|
+
readonly stateMutability: "pure";
|
|
2518
|
+
}, {
|
|
2519
|
+
readonly type: "function";
|
|
2520
|
+
readonly inputs: readonly [];
|
|
2521
|
+
readonly name: "nonzeroDeltaCount";
|
|
2522
|
+
readonly outputs: readonly [{
|
|
2523
|
+
readonly name: "";
|
|
2524
|
+
readonly internalType: "uint256";
|
|
2525
|
+
readonly type: "uint256";
|
|
2526
|
+
}];
|
|
2527
|
+
readonly stateMutability: "view";
|
|
2528
|
+
}, {
|
|
2529
|
+
readonly type: "function";
|
|
2530
|
+
readonly inputs: readonly [];
|
|
2531
|
+
readonly name: "pendingCollector";
|
|
2532
|
+
readonly outputs: readonly [{
|
|
2533
|
+
readonly name: "";
|
|
2534
|
+
readonly internalType: "address";
|
|
2535
|
+
readonly type: "address";
|
|
2536
|
+
}];
|
|
2537
|
+
readonly stateMutability: "view";
|
|
2538
|
+
}, {
|
|
2539
|
+
readonly type: "function";
|
|
2540
|
+
readonly inputs: readonly [{
|
|
2541
|
+
readonly name: "";
|
|
2542
|
+
readonly internalType: "uint256";
|
|
2543
|
+
readonly type: "uint256";
|
|
2544
|
+
}];
|
|
2545
|
+
readonly name: "pot";
|
|
2546
|
+
readonly outputs: readonly [{
|
|
2547
|
+
readonly name: "";
|
|
2548
|
+
readonly internalType: "uint256";
|
|
2549
|
+
readonly type: "uint256";
|
|
2550
|
+
}];
|
|
2551
|
+
readonly stateMutability: "view";
|
|
2552
|
+
}, {
|
|
2553
|
+
readonly type: "function";
|
|
2554
|
+
readonly inputs: readonly [{
|
|
2555
|
+
readonly name: "poolId";
|
|
2556
|
+
readonly internalType: "bytes32";
|
|
2557
|
+
readonly type: "bytes32";
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly name: "next";
|
|
2560
|
+
readonly internalType: "address";
|
|
2561
|
+
readonly type: "address";
|
|
2562
|
+
}];
|
|
2563
|
+
readonly name: "proposeAuthority";
|
|
2564
|
+
readonly outputs: readonly [];
|
|
2565
|
+
readonly stateMutability: "nonpayable";
|
|
2566
|
+
}, {
|
|
2567
|
+
readonly type: "function";
|
|
2568
|
+
readonly inputs: readonly [{
|
|
2569
|
+
readonly name: "next";
|
|
2570
|
+
readonly internalType: "address";
|
|
2571
|
+
readonly type: "address";
|
|
2572
|
+
}];
|
|
2573
|
+
readonly name: "proposeCollector";
|
|
2574
|
+
readonly outputs: readonly [];
|
|
2575
|
+
readonly stateMutability: "nonpayable";
|
|
2576
|
+
}, {
|
|
2577
|
+
readonly type: "function";
|
|
2578
|
+
readonly inputs: readonly [{
|
|
2579
|
+
readonly name: "poolId";
|
|
2580
|
+
readonly internalType: "bytes32";
|
|
2581
|
+
readonly type: "bytes32";
|
|
2582
|
+
}, {
|
|
2583
|
+
readonly name: "minBuffer";
|
|
2584
|
+
readonly internalType: "uint256";
|
|
2585
|
+
readonly type: "uint256";
|
|
2586
|
+
}];
|
|
2587
|
+
readonly name: "raiseMinBuffer";
|
|
2588
|
+
readonly outputs: readonly [];
|
|
2589
|
+
readonly stateMutability: "nonpayable";
|
|
2590
|
+
}, {
|
|
2591
|
+
readonly type: "function";
|
|
2592
|
+
readonly inputs: readonly [{
|
|
2593
|
+
readonly name: "poolId";
|
|
2594
|
+
readonly internalType: "bytes32";
|
|
2595
|
+
readonly type: "bytes32";
|
|
2596
|
+
}, {
|
|
2597
|
+
readonly name: "who";
|
|
2598
|
+
readonly internalType: "address[]";
|
|
2599
|
+
readonly type: "address[]";
|
|
2600
|
+
}, {
|
|
2601
|
+
readonly name: "yes";
|
|
2602
|
+
readonly internalType: "bool";
|
|
2603
|
+
readonly type: "bool";
|
|
2604
|
+
}];
|
|
2605
|
+
readonly name: "setAllowed";
|
|
2606
|
+
readonly outputs: readonly [];
|
|
2607
|
+
readonly stateMutability: "nonpayable";
|
|
2608
|
+
}, {
|
|
2609
|
+
readonly type: "function";
|
|
2610
|
+
readonly inputs: readonly [{
|
|
2611
|
+
readonly name: "mintFeeProtocolCut";
|
|
2612
|
+
readonly internalType: "uint256";
|
|
2613
|
+
readonly type: "uint256";
|
|
2614
|
+
}, {
|
|
2615
|
+
readonly name: "harvestFee";
|
|
2616
|
+
readonly internalType: "uint256";
|
|
2617
|
+
readonly type: "uint256";
|
|
2618
|
+
}];
|
|
2619
|
+
readonly name: "setFeeParams";
|
|
2620
|
+
readonly outputs: readonly [];
|
|
2621
|
+
readonly stateMutability: "nonpayable";
|
|
2622
|
+
}, {
|
|
2623
|
+
readonly type: "function";
|
|
2624
|
+
readonly inputs: readonly [{
|
|
2625
|
+
readonly name: "poolId";
|
|
2626
|
+
readonly internalType: "bytes32";
|
|
2627
|
+
readonly type: "bytes32";
|
|
2628
|
+
}, {
|
|
2629
|
+
readonly name: "gateMint";
|
|
2630
|
+
readonly internalType: "bool";
|
|
2631
|
+
readonly type: "bool";
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly name: "gateSwap";
|
|
2634
|
+
readonly internalType: "bool";
|
|
2635
|
+
readonly type: "bool";
|
|
2636
|
+
}];
|
|
2637
|
+
readonly name: "setGates";
|
|
2638
|
+
readonly outputs: readonly [];
|
|
2639
|
+
readonly stateMutability: "nonpayable";
|
|
2640
|
+
}, {
|
|
2641
|
+
readonly type: "function";
|
|
2642
|
+
readonly inputs: readonly [{
|
|
2643
|
+
readonly name: "poolId";
|
|
2644
|
+
readonly internalType: "bytes32";
|
|
2645
|
+
readonly type: "bytes32";
|
|
2646
|
+
}, {
|
|
2647
|
+
readonly name: "exempt";
|
|
2648
|
+
readonly internalType: "bool";
|
|
2649
|
+
readonly type: "bool";
|
|
2650
|
+
}];
|
|
2651
|
+
readonly name: "setHarvestFeeExempt";
|
|
2652
|
+
readonly outputs: readonly [];
|
|
2653
|
+
readonly stateMutability: "nonpayable";
|
|
2654
|
+
}, {
|
|
2655
|
+
readonly type: "function";
|
|
2656
|
+
readonly inputs: readonly [{
|
|
2657
|
+
readonly name: "poolId";
|
|
2658
|
+
readonly internalType: "bytes32";
|
|
2659
|
+
readonly type: "bytes32";
|
|
2660
|
+
}, {
|
|
2661
|
+
readonly name: "j";
|
|
2662
|
+
readonly internalType: "uint256";
|
|
2663
|
+
readonly type: "uint256";
|
|
2664
|
+
}, {
|
|
2665
|
+
readonly name: "newLj";
|
|
2666
|
+
readonly internalType: "uint256";
|
|
2667
|
+
readonly type: "uint256";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly name: "rIfNew";
|
|
2670
|
+
readonly internalType: "uint256";
|
|
2671
|
+
readonly type: "uint256";
|
|
2672
|
+
}];
|
|
2673
|
+
readonly name: "setLegL";
|
|
2674
|
+
readonly outputs: readonly [{
|
|
2675
|
+
readonly name: "dReserve";
|
|
2676
|
+
readonly internalType: "int256";
|
|
2677
|
+
readonly type: "int256";
|
|
2678
|
+
}, {
|
|
2679
|
+
readonly name: "dShares";
|
|
2680
|
+
readonly internalType: "int256";
|
|
2681
|
+
readonly type: "int256";
|
|
2682
|
+
}];
|
|
2683
|
+
readonly stateMutability: "nonpayable";
|
|
2684
|
+
}, {
|
|
2685
|
+
readonly type: "function";
|
|
2686
|
+
readonly inputs: readonly [{
|
|
2687
|
+
readonly name: "poolId";
|
|
2688
|
+
readonly internalType: "bytes32";
|
|
2689
|
+
readonly type: "bytes32";
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly name: "name_";
|
|
2692
|
+
readonly internalType: "bytes32";
|
|
2693
|
+
readonly type: "bytes32";
|
|
2694
|
+
}];
|
|
2695
|
+
readonly name: "setName";
|
|
2696
|
+
readonly outputs: readonly [];
|
|
2697
|
+
readonly stateMutability: "nonpayable";
|
|
2698
|
+
}, {
|
|
2699
|
+
readonly type: "function";
|
|
2700
|
+
readonly inputs: readonly [{
|
|
2701
|
+
readonly name: "operator";
|
|
2702
|
+
readonly internalType: "address";
|
|
2703
|
+
readonly type: "address";
|
|
2704
|
+
}, {
|
|
2705
|
+
readonly name: "approved";
|
|
2706
|
+
readonly internalType: "bool";
|
|
2707
|
+
readonly type: "bool";
|
|
2708
|
+
}];
|
|
2709
|
+
readonly name: "setOperator";
|
|
2710
|
+
readonly outputs: readonly [{
|
|
2711
|
+
readonly name: "";
|
|
2712
|
+
readonly internalType: "bool";
|
|
2713
|
+
readonly type: "bool";
|
|
2714
|
+
}];
|
|
2715
|
+
readonly stateMutability: "payable";
|
|
2716
|
+
}, {
|
|
2717
|
+
readonly type: "function";
|
|
2718
|
+
readonly inputs: readonly [{
|
|
2719
|
+
readonly name: "who";
|
|
2720
|
+
readonly internalType: "address";
|
|
2721
|
+
readonly type: "address";
|
|
2722
|
+
}, {
|
|
2723
|
+
readonly name: "name_";
|
|
2724
|
+
readonly internalType: "bytes32";
|
|
2725
|
+
readonly type: "bytes32";
|
|
2726
|
+
}];
|
|
2727
|
+
readonly name: "setSponsorName";
|
|
2728
|
+
readonly outputs: readonly [];
|
|
2729
|
+
readonly stateMutability: "nonpayable";
|
|
2730
|
+
}, {
|
|
2731
|
+
readonly type: "function";
|
|
2732
|
+
readonly inputs: readonly [];
|
|
2733
|
+
readonly name: "settle";
|
|
2734
|
+
readonly outputs: readonly [{
|
|
2735
|
+
readonly name: "paid";
|
|
2736
|
+
readonly internalType: "uint256";
|
|
2737
|
+
readonly type: "uint256";
|
|
2738
|
+
}];
|
|
2739
|
+
readonly stateMutability: "nonpayable";
|
|
2740
|
+
}, {
|
|
2741
|
+
readonly type: "function";
|
|
2742
|
+
readonly inputs: readonly [{
|
|
2743
|
+
readonly name: "poolId";
|
|
2744
|
+
readonly internalType: "bytes32";
|
|
2745
|
+
readonly type: "bytes32";
|
|
2746
|
+
}, {
|
|
2747
|
+
readonly name: "gen";
|
|
2748
|
+
readonly internalType: "uint256";
|
|
2749
|
+
readonly type: "uint256";
|
|
2750
|
+
}];
|
|
2751
|
+
readonly name: "shareIdOf";
|
|
2752
|
+
readonly outputs: readonly [{
|
|
2753
|
+
readonly name: "";
|
|
2754
|
+
readonly internalType: "uint256";
|
|
2755
|
+
readonly type: "uint256";
|
|
2756
|
+
}];
|
|
2757
|
+
readonly stateMutability: "pure";
|
|
2758
|
+
}, {
|
|
2759
|
+
readonly type: "function";
|
|
2760
|
+
readonly inputs: readonly [{
|
|
2761
|
+
readonly name: "";
|
|
2762
|
+
readonly internalType: "address";
|
|
2763
|
+
readonly type: "address";
|
|
2764
|
+
}];
|
|
2765
|
+
readonly name: "sponsorName";
|
|
2766
|
+
readonly outputs: readonly [{
|
|
2767
|
+
readonly name: "";
|
|
2768
|
+
readonly internalType: "bytes32";
|
|
2769
|
+
readonly type: "bytes32";
|
|
2770
|
+
}];
|
|
2771
|
+
readonly stateMutability: "view";
|
|
2772
|
+
}, {
|
|
2773
|
+
readonly type: "function";
|
|
2774
|
+
readonly inputs: readonly [{
|
|
2775
|
+
readonly name: "interfaceId";
|
|
2776
|
+
readonly internalType: "bytes4";
|
|
2777
|
+
readonly type: "bytes4";
|
|
2778
|
+
}];
|
|
2779
|
+
readonly name: "supportsInterface";
|
|
2780
|
+
readonly outputs: readonly [{
|
|
2781
|
+
readonly name: "result";
|
|
2782
|
+
readonly internalType: "bool";
|
|
2783
|
+
readonly type: "bool";
|
|
2784
|
+
}];
|
|
2785
|
+
readonly stateMutability: "view";
|
|
2786
|
+
}, {
|
|
2787
|
+
readonly type: "function";
|
|
2788
|
+
readonly inputs: readonly [{
|
|
2789
|
+
readonly name: "";
|
|
2790
|
+
readonly internalType: "uint256";
|
|
2791
|
+
readonly type: "uint256";
|
|
2792
|
+
}];
|
|
2793
|
+
readonly name: "symbol";
|
|
2794
|
+
readonly outputs: readonly [{
|
|
2795
|
+
readonly name: "";
|
|
2796
|
+
readonly internalType: "string";
|
|
2797
|
+
readonly type: "string";
|
|
2798
|
+
}];
|
|
2799
|
+
readonly stateMutability: "pure";
|
|
2800
|
+
}, {
|
|
2801
|
+
readonly type: "function";
|
|
2802
|
+
readonly inputs: readonly [{
|
|
2803
|
+
readonly name: "token";
|
|
2804
|
+
readonly internalType: "address";
|
|
2805
|
+
readonly type: "address";
|
|
2806
|
+
}];
|
|
2807
|
+
readonly name: "sync";
|
|
2808
|
+
readonly outputs: readonly [];
|
|
2809
|
+
readonly stateMutability: "nonpayable";
|
|
2810
|
+
}, {
|
|
2811
|
+
readonly type: "function";
|
|
2812
|
+
readonly inputs: readonly [{
|
|
2813
|
+
readonly name: "token";
|
|
2814
|
+
readonly internalType: "address";
|
|
2815
|
+
readonly type: "address";
|
|
2816
|
+
}, {
|
|
2817
|
+
readonly name: "to";
|
|
2818
|
+
readonly internalType: "address";
|
|
2819
|
+
readonly type: "address";
|
|
2820
|
+
}, {
|
|
2821
|
+
readonly name: "amount";
|
|
2822
|
+
readonly internalType: "uint256";
|
|
2823
|
+
readonly type: "uint256";
|
|
2824
|
+
}];
|
|
2825
|
+
readonly name: "take";
|
|
2826
|
+
readonly outputs: readonly [];
|
|
2827
|
+
readonly stateMutability: "nonpayable";
|
|
2828
|
+
}, {
|
|
2829
|
+
readonly type: "function";
|
|
2830
|
+
readonly inputs: readonly [{
|
|
2831
|
+
readonly name: "poolId";
|
|
2832
|
+
readonly internalType: "bytes32";
|
|
2833
|
+
readonly type: "bytes32";
|
|
2834
|
+
}];
|
|
2835
|
+
readonly name: "theta";
|
|
2836
|
+
readonly outputs: readonly [{
|
|
2837
|
+
readonly name: "";
|
|
2838
|
+
readonly internalType: "int256";
|
|
2839
|
+
readonly type: "int256";
|
|
2840
|
+
}];
|
|
2841
|
+
readonly stateMutability: "view";
|
|
2842
|
+
}, {
|
|
2843
|
+
readonly type: "function";
|
|
2844
|
+
readonly inputs: readonly [{
|
|
2845
|
+
readonly name: "";
|
|
2846
|
+
readonly internalType: "uint256";
|
|
2847
|
+
readonly type: "uint256";
|
|
2848
|
+
}];
|
|
2849
|
+
readonly name: "tokenURI";
|
|
2850
|
+
readonly outputs: readonly [{
|
|
2851
|
+
readonly name: "";
|
|
2852
|
+
readonly internalType: "string";
|
|
2853
|
+
readonly type: "string";
|
|
2854
|
+
}];
|
|
2855
|
+
readonly stateMutability: "pure";
|
|
2856
|
+
}, {
|
|
2857
|
+
readonly type: "function";
|
|
2858
|
+
readonly inputs: readonly [{
|
|
2859
|
+
readonly name: "to";
|
|
2860
|
+
readonly internalType: "address";
|
|
2861
|
+
readonly type: "address";
|
|
2862
|
+
}, {
|
|
2863
|
+
readonly name: "id";
|
|
2864
|
+
readonly internalType: "uint256";
|
|
2865
|
+
readonly type: "uint256";
|
|
2866
|
+
}, {
|
|
2867
|
+
readonly name: "amount";
|
|
2868
|
+
readonly internalType: "uint256";
|
|
2869
|
+
readonly type: "uint256";
|
|
2870
|
+
}];
|
|
2871
|
+
readonly name: "transfer";
|
|
2872
|
+
readonly outputs: readonly [{
|
|
2873
|
+
readonly name: "";
|
|
2874
|
+
readonly internalType: "bool";
|
|
2875
|
+
readonly type: "bool";
|
|
2876
|
+
}];
|
|
2877
|
+
readonly stateMutability: "payable";
|
|
2878
|
+
}, {
|
|
2879
|
+
readonly type: "function";
|
|
2880
|
+
readonly inputs: readonly [{
|
|
2881
|
+
readonly name: "from";
|
|
2882
|
+
readonly internalType: "address";
|
|
2883
|
+
readonly type: "address";
|
|
2884
|
+
}, {
|
|
2885
|
+
readonly name: "to";
|
|
2886
|
+
readonly internalType: "address";
|
|
2887
|
+
readonly type: "address";
|
|
2888
|
+
}, {
|
|
2889
|
+
readonly name: "id";
|
|
2890
|
+
readonly internalType: "uint256";
|
|
2891
|
+
readonly type: "uint256";
|
|
2892
|
+
}, {
|
|
2893
|
+
readonly name: "amount";
|
|
2894
|
+
readonly internalType: "uint256";
|
|
2895
|
+
readonly type: "uint256";
|
|
2896
|
+
}];
|
|
2897
|
+
readonly name: "transferFrom";
|
|
2898
|
+
readonly outputs: readonly [{
|
|
2899
|
+
readonly name: "";
|
|
2900
|
+
readonly internalType: "bool";
|
|
2901
|
+
readonly type: "bool";
|
|
2902
|
+
}];
|
|
2903
|
+
readonly stateMutability: "payable";
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly type: "function";
|
|
2906
|
+
readonly inputs: readonly [{
|
|
2907
|
+
readonly name: "data";
|
|
2908
|
+
readonly internalType: "bytes";
|
|
2909
|
+
readonly type: "bytes";
|
|
2910
|
+
}];
|
|
2911
|
+
readonly name: "unlock";
|
|
2912
|
+
readonly outputs: readonly [{
|
|
2913
|
+
readonly name: "result";
|
|
2914
|
+
readonly internalType: "bytes";
|
|
2915
|
+
readonly type: "bytes";
|
|
2916
|
+
}];
|
|
2917
|
+
readonly stateMutability: "nonpayable";
|
|
2918
|
+
}, {
|
|
2919
|
+
readonly type: "function";
|
|
2920
|
+
readonly inputs: readonly [];
|
|
2921
|
+
readonly name: "version";
|
|
2922
|
+
readonly outputs: readonly [{
|
|
2923
|
+
readonly name: "";
|
|
2924
|
+
readonly internalType: "uint256";
|
|
2925
|
+
readonly type: "uint256";
|
|
2926
|
+
}];
|
|
2927
|
+
readonly stateMutability: "pure";
|
|
2928
|
+
}, {
|
|
2929
|
+
readonly type: "event";
|
|
2930
|
+
readonly anonymous: false;
|
|
2931
|
+
readonly inputs: readonly [{
|
|
2932
|
+
readonly name: "poolId";
|
|
2933
|
+
readonly internalType: "bytes32";
|
|
2934
|
+
readonly type: "bytes32";
|
|
2935
|
+
readonly indexed: true;
|
|
2936
|
+
}, {
|
|
2937
|
+
readonly name: "who";
|
|
2938
|
+
readonly internalType: "address";
|
|
2939
|
+
readonly type: "address";
|
|
2940
|
+
readonly indexed: true;
|
|
2941
|
+
}, {
|
|
2942
|
+
readonly name: "allowed";
|
|
2943
|
+
readonly internalType: "bool";
|
|
2944
|
+
readonly type: "bool";
|
|
2945
|
+
readonly indexed: false;
|
|
2946
|
+
}];
|
|
2947
|
+
readonly name: "Allowed";
|
|
2948
|
+
}, {
|
|
2949
|
+
readonly type: "event";
|
|
2950
|
+
readonly anonymous: false;
|
|
2951
|
+
readonly inputs: readonly [{
|
|
2952
|
+
readonly name: "owner";
|
|
2953
|
+
readonly internalType: "address";
|
|
2954
|
+
readonly type: "address";
|
|
2955
|
+
readonly indexed: true;
|
|
2956
|
+
}, {
|
|
2957
|
+
readonly name: "spender";
|
|
2958
|
+
readonly internalType: "address";
|
|
2959
|
+
readonly type: "address";
|
|
2960
|
+
readonly indexed: true;
|
|
2961
|
+
}, {
|
|
2962
|
+
readonly name: "id";
|
|
2963
|
+
readonly internalType: "uint256";
|
|
2964
|
+
readonly type: "uint256";
|
|
2965
|
+
readonly indexed: true;
|
|
2966
|
+
}, {
|
|
2967
|
+
readonly name: "amount";
|
|
2968
|
+
readonly internalType: "uint256";
|
|
2969
|
+
readonly type: "uint256";
|
|
2970
|
+
readonly indexed: false;
|
|
2971
|
+
}];
|
|
2972
|
+
readonly name: "Approval";
|
|
2973
|
+
}, {
|
|
2974
|
+
readonly type: "event";
|
|
2975
|
+
readonly anonymous: false;
|
|
2976
|
+
readonly inputs: readonly [{
|
|
2977
|
+
readonly name: "poolId";
|
|
2978
|
+
readonly internalType: "bytes32";
|
|
2979
|
+
readonly type: "bytes32";
|
|
2980
|
+
readonly indexed: true;
|
|
2981
|
+
}, {
|
|
2982
|
+
readonly name: "current";
|
|
2983
|
+
readonly internalType: "address";
|
|
2984
|
+
readonly type: "address";
|
|
2985
|
+
readonly indexed: true;
|
|
2986
|
+
}, {
|
|
2987
|
+
readonly name: "proposed";
|
|
2988
|
+
readonly internalType: "address";
|
|
2989
|
+
readonly type: "address";
|
|
2990
|
+
readonly indexed: true;
|
|
2991
|
+
}];
|
|
2992
|
+
readonly name: "AuthorityProposed";
|
|
2993
|
+
}, {
|
|
2994
|
+
readonly type: "event";
|
|
2995
|
+
readonly anonymous: false;
|
|
2996
|
+
readonly inputs: readonly [{
|
|
2997
|
+
readonly name: "poolId";
|
|
2998
|
+
readonly internalType: "bytes32";
|
|
2999
|
+
readonly type: "bytes32";
|
|
3000
|
+
readonly indexed: true;
|
|
3001
|
+
}, {
|
|
3002
|
+
readonly name: "prev";
|
|
3003
|
+
readonly internalType: "address";
|
|
3004
|
+
readonly type: "address";
|
|
3005
|
+
readonly indexed: true;
|
|
3006
|
+
}, {
|
|
3007
|
+
readonly name: "next";
|
|
3008
|
+
readonly internalType: "address";
|
|
3009
|
+
readonly type: "address";
|
|
3010
|
+
readonly indexed: true;
|
|
3011
|
+
}];
|
|
3012
|
+
readonly name: "AuthoritySet";
|
|
3013
|
+
}, {
|
|
3014
|
+
readonly type: "event";
|
|
3015
|
+
readonly anonymous: false;
|
|
3016
|
+
readonly inputs: readonly [{
|
|
3017
|
+
readonly name: "poolId";
|
|
3018
|
+
readonly internalType: "bytes32";
|
|
3019
|
+
readonly type: "bytes32";
|
|
3020
|
+
readonly indexed: true;
|
|
3021
|
+
}, {
|
|
3022
|
+
readonly name: "sender";
|
|
3023
|
+
readonly internalType: "address";
|
|
3024
|
+
readonly type: "address";
|
|
3025
|
+
readonly indexed: true;
|
|
3026
|
+
}, {
|
|
3027
|
+
readonly name: "dL";
|
|
3028
|
+
readonly internalType: "uint256";
|
|
3029
|
+
readonly type: "uint256";
|
|
3030
|
+
readonly indexed: false;
|
|
3031
|
+
}, {
|
|
3032
|
+
readonly name: "shares";
|
|
3033
|
+
readonly internalType: "uint256";
|
|
3034
|
+
readonly type: "uint256";
|
|
3035
|
+
readonly indexed: false;
|
|
3036
|
+
}, {
|
|
3037
|
+
readonly name: "dQuote";
|
|
3038
|
+
readonly internalType: "uint256";
|
|
3039
|
+
readonly type: "uint256";
|
|
3040
|
+
readonly indexed: false;
|
|
3041
|
+
}];
|
|
3042
|
+
readonly name: "Burn";
|
|
3043
|
+
}, {
|
|
3044
|
+
readonly type: "event";
|
|
3045
|
+
readonly anonymous: false;
|
|
3046
|
+
readonly inputs: readonly [{
|
|
3047
|
+
readonly name: "previous";
|
|
3048
|
+
readonly internalType: "address";
|
|
3049
|
+
readonly type: "address";
|
|
3050
|
+
readonly indexed: true;
|
|
3051
|
+
}, {
|
|
3052
|
+
readonly name: "current";
|
|
3053
|
+
readonly internalType: "address";
|
|
3054
|
+
readonly type: "address";
|
|
3055
|
+
readonly indexed: true;
|
|
3056
|
+
}];
|
|
3057
|
+
readonly name: "CollectorAccepted";
|
|
3058
|
+
}, {
|
|
3059
|
+
readonly type: "event";
|
|
3060
|
+
readonly anonymous: false;
|
|
3061
|
+
readonly inputs: readonly [{
|
|
3062
|
+
readonly name: "current";
|
|
3063
|
+
readonly internalType: "address";
|
|
3064
|
+
readonly type: "address";
|
|
3065
|
+
readonly indexed: true;
|
|
3066
|
+
}, {
|
|
3067
|
+
readonly name: "proposed";
|
|
3068
|
+
readonly internalType: "address";
|
|
3069
|
+
readonly type: "address";
|
|
3070
|
+
readonly indexed: true;
|
|
3071
|
+
}];
|
|
3072
|
+
readonly name: "CollectorProposed";
|
|
3073
|
+
}, {
|
|
3074
|
+
readonly type: "event";
|
|
3075
|
+
readonly anonymous: false;
|
|
3076
|
+
readonly inputs: readonly [{
|
|
3077
|
+
readonly name: "poolId";
|
|
3078
|
+
readonly internalType: "bytes32";
|
|
3079
|
+
readonly type: "bytes32";
|
|
3080
|
+
readonly indexed: true;
|
|
3081
|
+
}, {
|
|
3082
|
+
readonly name: "from";
|
|
3083
|
+
readonly internalType: "address";
|
|
3084
|
+
readonly type: "address";
|
|
3085
|
+
readonly indexed: true;
|
|
3086
|
+
}, {
|
|
3087
|
+
readonly name: "amount";
|
|
3088
|
+
readonly internalType: "uint256";
|
|
3089
|
+
readonly type: "uint256";
|
|
3090
|
+
readonly indexed: false;
|
|
3091
|
+
}];
|
|
3092
|
+
readonly name: "Deepen";
|
|
3093
|
+
}, {
|
|
3094
|
+
readonly type: "event";
|
|
3095
|
+
readonly anonymous: false;
|
|
3096
|
+
readonly inputs: readonly [{
|
|
3097
|
+
readonly name: "poolId";
|
|
3098
|
+
readonly internalType: "bytes32";
|
|
3099
|
+
readonly type: "bytes32";
|
|
3100
|
+
readonly indexed: true;
|
|
3101
|
+
}, {
|
|
3102
|
+
readonly name: "gen";
|
|
3103
|
+
readonly internalType: "uint256";
|
|
3104
|
+
readonly type: "uint256";
|
|
3105
|
+
readonly indexed: true;
|
|
3106
|
+
}, {
|
|
3107
|
+
readonly name: "supply";
|
|
3108
|
+
readonly internalType: "uint256";
|
|
3109
|
+
readonly type: "uint256";
|
|
3110
|
+
readonly indexed: false;
|
|
3111
|
+
}, {
|
|
3112
|
+
readonly name: "quote";
|
|
3113
|
+
readonly internalType: "uint256";
|
|
3114
|
+
readonly type: "uint256";
|
|
3115
|
+
readonly indexed: false;
|
|
3116
|
+
}];
|
|
3117
|
+
readonly name: "Dissolve";
|
|
3118
|
+
}, {
|
|
3119
|
+
readonly type: "event";
|
|
3120
|
+
readonly anonymous: false;
|
|
3121
|
+
readonly inputs: readonly [{
|
|
3122
|
+
readonly name: "poolId";
|
|
3123
|
+
readonly internalType: "bytes32";
|
|
3124
|
+
readonly type: "bytes32";
|
|
3125
|
+
readonly indexed: true;
|
|
3126
|
+
}, {
|
|
3127
|
+
readonly name: "holder";
|
|
3128
|
+
readonly internalType: "address";
|
|
3129
|
+
readonly type: "address";
|
|
3130
|
+
readonly indexed: true;
|
|
3131
|
+
}, {
|
|
3132
|
+
readonly name: "to";
|
|
3133
|
+
readonly internalType: "address";
|
|
3134
|
+
readonly type: "address";
|
|
3135
|
+
readonly indexed: true;
|
|
3136
|
+
}, {
|
|
3137
|
+
readonly name: "amount";
|
|
3138
|
+
readonly internalType: "uint256";
|
|
3139
|
+
readonly type: "uint256";
|
|
3140
|
+
readonly indexed: false;
|
|
3141
|
+
}];
|
|
3142
|
+
readonly name: "DividendClaimed";
|
|
3143
|
+
}, {
|
|
3144
|
+
readonly type: "event";
|
|
3145
|
+
readonly anonymous: false;
|
|
3146
|
+
readonly inputs: readonly [{
|
|
3147
|
+
readonly name: "mintFeeProtocolCut";
|
|
3148
|
+
readonly internalType: "uint256";
|
|
3149
|
+
readonly type: "uint256";
|
|
3150
|
+
readonly indexed: false;
|
|
3151
|
+
}, {
|
|
3152
|
+
readonly name: "harvestFee";
|
|
3153
|
+
readonly internalType: "uint256";
|
|
3154
|
+
readonly type: "uint256";
|
|
3155
|
+
readonly indexed: false;
|
|
3156
|
+
}];
|
|
3157
|
+
readonly name: "FeeParamsSet";
|
|
3158
|
+
}, {
|
|
3159
|
+
readonly type: "event";
|
|
3160
|
+
readonly anonymous: false;
|
|
3161
|
+
readonly inputs: readonly [{
|
|
3162
|
+
readonly name: "poolId";
|
|
3163
|
+
readonly internalType: "bytes32";
|
|
3164
|
+
readonly type: "bytes32";
|
|
3165
|
+
readonly indexed: true;
|
|
3166
|
+
}, {
|
|
3167
|
+
readonly name: "gateMint";
|
|
3168
|
+
readonly internalType: "bool";
|
|
3169
|
+
readonly type: "bool";
|
|
3170
|
+
readonly indexed: false;
|
|
3171
|
+
}, {
|
|
3172
|
+
readonly name: "gateSwap";
|
|
3173
|
+
readonly internalType: "bool";
|
|
3174
|
+
readonly type: "bool";
|
|
3175
|
+
readonly indexed: false;
|
|
3176
|
+
}];
|
|
3177
|
+
readonly name: "GatesSet";
|
|
3178
|
+
}, {
|
|
3179
|
+
readonly type: "event";
|
|
3180
|
+
readonly anonymous: false;
|
|
3181
|
+
readonly inputs: readonly [{
|
|
3182
|
+
readonly name: "poolId";
|
|
3183
|
+
readonly internalType: "bytes32";
|
|
3184
|
+
readonly type: "bytes32";
|
|
3185
|
+
readonly indexed: true;
|
|
3186
|
+
}, {
|
|
3187
|
+
readonly name: "to";
|
|
3188
|
+
readonly internalType: "address";
|
|
3189
|
+
readonly type: "address";
|
|
3190
|
+
readonly indexed: true;
|
|
3191
|
+
}, {
|
|
3192
|
+
readonly name: "amount";
|
|
3193
|
+
readonly internalType: "uint256";
|
|
3194
|
+
readonly type: "uint256";
|
|
3195
|
+
readonly indexed: false;
|
|
3196
|
+
}, {
|
|
3197
|
+
readonly name: "toSponsor";
|
|
3198
|
+
readonly internalType: "uint256";
|
|
3199
|
+
readonly type: "uint256";
|
|
3200
|
+
readonly indexed: false;
|
|
3201
|
+
}];
|
|
3202
|
+
readonly name: "Harvest";
|
|
3203
|
+
}, {
|
|
3204
|
+
readonly type: "event";
|
|
3205
|
+
readonly anonymous: false;
|
|
3206
|
+
readonly inputs: readonly [{
|
|
3207
|
+
readonly name: "poolId";
|
|
3208
|
+
readonly internalType: "bytes32";
|
|
3209
|
+
readonly type: "bytes32";
|
|
3210
|
+
readonly indexed: true;
|
|
3211
|
+
}, {
|
|
3212
|
+
readonly name: "exempt";
|
|
3213
|
+
readonly internalType: "bool";
|
|
3214
|
+
readonly type: "bool";
|
|
3215
|
+
readonly indexed: false;
|
|
3216
|
+
}];
|
|
3217
|
+
readonly name: "HarvestFeeExemptSet";
|
|
3218
|
+
}, {
|
|
3219
|
+
readonly type: "event";
|
|
3220
|
+
readonly anonymous: false;
|
|
3221
|
+
readonly inputs: readonly [{
|
|
3222
|
+
readonly name: "poolId";
|
|
3223
|
+
readonly internalType: "bytes32";
|
|
3224
|
+
readonly type: "bytes32";
|
|
3225
|
+
readonly indexed: true;
|
|
3226
|
+
}, {
|
|
3227
|
+
readonly name: "quote";
|
|
3228
|
+
readonly internalType: "address";
|
|
3229
|
+
readonly type: "address";
|
|
3230
|
+
readonly indexed: true;
|
|
3231
|
+
}, {
|
|
3232
|
+
readonly name: "authority";
|
|
3233
|
+
readonly internalType: "address";
|
|
3234
|
+
readonly type: "address";
|
|
3235
|
+
readonly indexed: true;
|
|
3236
|
+
}, {
|
|
3237
|
+
readonly name: "bases";
|
|
3238
|
+
readonly internalType: "address[]";
|
|
3239
|
+
readonly type: "address[]";
|
|
3240
|
+
readonly indexed: false;
|
|
3241
|
+
}, {
|
|
3242
|
+
readonly name: "weights";
|
|
3243
|
+
readonly internalType: "uint256[]";
|
|
3244
|
+
readonly type: "uint256[]";
|
|
3245
|
+
readonly indexed: false;
|
|
3246
|
+
}, {
|
|
3247
|
+
readonly name: "phi";
|
|
3248
|
+
readonly internalType: "uint256";
|
|
3249
|
+
readonly type: "uint256";
|
|
3250
|
+
readonly indexed: false;
|
|
3251
|
+
}, {
|
|
3252
|
+
readonly name: "lockStrike";
|
|
3253
|
+
readonly internalType: "bool";
|
|
3254
|
+
readonly type: "bool";
|
|
3255
|
+
readonly indexed: false;
|
|
3256
|
+
}];
|
|
3257
|
+
readonly name: "Initialize";
|
|
3258
|
+
}, {
|
|
3259
|
+
readonly type: "event";
|
|
3260
|
+
readonly anonymous: false;
|
|
3261
|
+
readonly inputs: readonly [{
|
|
3262
|
+
readonly name: "poolId";
|
|
3263
|
+
readonly internalType: "bytes32";
|
|
3264
|
+
readonly type: "bytes32";
|
|
3265
|
+
readonly indexed: true;
|
|
3266
|
+
}, {
|
|
3267
|
+
readonly name: "j";
|
|
3268
|
+
readonly internalType: "uint256";
|
|
3269
|
+
readonly type: "uint256";
|
|
3270
|
+
readonly indexed: true;
|
|
3271
|
+
}, {
|
|
3272
|
+
readonly name: "base";
|
|
3273
|
+
readonly internalType: "address";
|
|
3274
|
+
readonly type: "address";
|
|
3275
|
+
readonly indexed: false;
|
|
3276
|
+
}, {
|
|
3277
|
+
readonly name: "newLj";
|
|
3278
|
+
readonly internalType: "uint256";
|
|
3279
|
+
readonly type: "uint256";
|
|
3280
|
+
readonly indexed: false;
|
|
3281
|
+
}, {
|
|
3282
|
+
readonly name: "reserve";
|
|
3283
|
+
readonly internalType: "uint256";
|
|
3284
|
+
readonly type: "uint256";
|
|
3285
|
+
readonly indexed: false;
|
|
3286
|
+
}, {
|
|
3287
|
+
readonly name: "L";
|
|
3288
|
+
readonly internalType: "uint256";
|
|
3289
|
+
readonly type: "uint256";
|
|
3290
|
+
readonly indexed: false;
|
|
3291
|
+
}, {
|
|
3292
|
+
readonly name: "theta0";
|
|
3293
|
+
readonly internalType: "int256";
|
|
3294
|
+
readonly type: "int256";
|
|
3295
|
+
readonly indexed: false;
|
|
3296
|
+
}, {
|
|
3297
|
+
readonly name: "dReserve";
|
|
3298
|
+
readonly internalType: "int256";
|
|
3299
|
+
readonly type: "int256";
|
|
3300
|
+
readonly indexed: false;
|
|
3301
|
+
}, {
|
|
3302
|
+
readonly name: "dShares";
|
|
3303
|
+
readonly internalType: "int256";
|
|
3304
|
+
readonly type: "int256";
|
|
3305
|
+
readonly indexed: false;
|
|
3306
|
+
}];
|
|
3307
|
+
readonly name: "LegSet";
|
|
3308
|
+
}, {
|
|
3309
|
+
readonly type: "event";
|
|
3310
|
+
readonly anonymous: false;
|
|
3311
|
+
readonly inputs: readonly [{
|
|
3312
|
+
readonly name: "poolId";
|
|
3313
|
+
readonly internalType: "bytes32";
|
|
3314
|
+
readonly type: "bytes32";
|
|
3315
|
+
readonly indexed: true;
|
|
3316
|
+
}, {
|
|
3317
|
+
readonly name: "minBuffer";
|
|
3318
|
+
readonly internalType: "uint256";
|
|
3319
|
+
readonly type: "uint256";
|
|
3320
|
+
readonly indexed: false;
|
|
3321
|
+
}];
|
|
3322
|
+
readonly name: "MinBufferRaised";
|
|
3323
|
+
}, {
|
|
3324
|
+
readonly type: "event";
|
|
3325
|
+
readonly anonymous: false;
|
|
3326
|
+
readonly inputs: readonly [{
|
|
3327
|
+
readonly name: "poolId";
|
|
3328
|
+
readonly internalType: "bytes32";
|
|
3329
|
+
readonly type: "bytes32";
|
|
3330
|
+
readonly indexed: true;
|
|
3331
|
+
}, {
|
|
3332
|
+
readonly name: "sender";
|
|
3333
|
+
readonly internalType: "address";
|
|
3334
|
+
readonly type: "address";
|
|
3335
|
+
readonly indexed: true;
|
|
3336
|
+
}, {
|
|
3337
|
+
readonly name: "dL";
|
|
3338
|
+
readonly internalType: "uint256";
|
|
3339
|
+
readonly type: "uint256";
|
|
3340
|
+
readonly indexed: false;
|
|
3341
|
+
}, {
|
|
3342
|
+
readonly name: "shares";
|
|
3343
|
+
readonly internalType: "uint256";
|
|
3344
|
+
readonly type: "uint256";
|
|
3345
|
+
readonly indexed: false;
|
|
3346
|
+
}, {
|
|
3347
|
+
readonly name: "dQuote";
|
|
3348
|
+
readonly internalType: "uint256";
|
|
3349
|
+
readonly type: "uint256";
|
|
3350
|
+
readonly indexed: false;
|
|
3351
|
+
}];
|
|
3352
|
+
readonly name: "Mint";
|
|
3353
|
+
}, {
|
|
3354
|
+
readonly type: "event";
|
|
3355
|
+
readonly anonymous: false;
|
|
3356
|
+
readonly inputs: readonly [{
|
|
3357
|
+
readonly name: "poolId";
|
|
3358
|
+
readonly internalType: "bytes32";
|
|
3359
|
+
readonly type: "bytes32";
|
|
3360
|
+
readonly indexed: true;
|
|
3361
|
+
}, {
|
|
3362
|
+
readonly name: "name";
|
|
3363
|
+
readonly internalType: "bytes32";
|
|
3364
|
+
readonly type: "bytes32";
|
|
3365
|
+
readonly indexed: false;
|
|
3366
|
+
}];
|
|
3367
|
+
readonly name: "NameSet";
|
|
3368
|
+
}, {
|
|
3369
|
+
readonly type: "event";
|
|
3370
|
+
readonly anonymous: false;
|
|
3371
|
+
readonly inputs: readonly [{
|
|
3372
|
+
readonly name: "owner";
|
|
3373
|
+
readonly internalType: "address";
|
|
3374
|
+
readonly type: "address";
|
|
3375
|
+
readonly indexed: true;
|
|
3376
|
+
}, {
|
|
3377
|
+
readonly name: "operator";
|
|
3378
|
+
readonly internalType: "address";
|
|
3379
|
+
readonly type: "address";
|
|
3380
|
+
readonly indexed: true;
|
|
3381
|
+
}, {
|
|
3382
|
+
readonly name: "approved";
|
|
3383
|
+
readonly internalType: "bool";
|
|
3384
|
+
readonly type: "bool";
|
|
3385
|
+
readonly indexed: false;
|
|
3386
|
+
}];
|
|
3387
|
+
readonly name: "OperatorSet";
|
|
3388
|
+
}, {
|
|
3389
|
+
readonly type: "event";
|
|
3390
|
+
readonly anonymous: false;
|
|
3391
|
+
readonly inputs: readonly [{
|
|
3392
|
+
readonly name: "poolId";
|
|
3393
|
+
readonly internalType: "bytes32";
|
|
3394
|
+
readonly type: "bytes32";
|
|
3395
|
+
readonly indexed: true;
|
|
3396
|
+
}, {
|
|
3397
|
+
readonly name: "prev";
|
|
3398
|
+
readonly internalType: "address";
|
|
3399
|
+
readonly type: "address";
|
|
3400
|
+
readonly indexed: true;
|
|
3401
|
+
}, {
|
|
3402
|
+
readonly name: "next";
|
|
3403
|
+
readonly internalType: "address";
|
|
3404
|
+
readonly type: "address";
|
|
3405
|
+
readonly indexed: true;
|
|
3406
|
+
}];
|
|
3407
|
+
readonly name: "OperatorSet";
|
|
3408
|
+
}, {
|
|
3409
|
+
readonly type: "event";
|
|
3410
|
+
readonly anonymous: false;
|
|
3411
|
+
readonly inputs: readonly [{
|
|
3412
|
+
readonly name: "poolId";
|
|
3413
|
+
readonly internalType: "bytes32";
|
|
3414
|
+
readonly type: "bytes32";
|
|
3415
|
+
readonly indexed: true;
|
|
3416
|
+
}, {
|
|
3417
|
+
readonly name: "inShares";
|
|
3418
|
+
readonly internalType: "bool";
|
|
3419
|
+
readonly type: "bool";
|
|
3420
|
+
readonly indexed: false;
|
|
3421
|
+
}, {
|
|
3422
|
+
readonly name: "amount";
|
|
3423
|
+
readonly internalType: "uint256";
|
|
3424
|
+
readonly type: "uint256";
|
|
3425
|
+
readonly indexed: false;
|
|
3426
|
+
}];
|
|
3427
|
+
readonly name: "ProtocolFee";
|
|
3428
|
+
}, {
|
|
3429
|
+
readonly type: "event";
|
|
3430
|
+
readonly anonymous: false;
|
|
3431
|
+
readonly inputs: readonly [{
|
|
3432
|
+
readonly name: "poolId";
|
|
3433
|
+
readonly internalType: "bytes32";
|
|
3434
|
+
readonly type: "bytes32";
|
|
3435
|
+
readonly indexed: true;
|
|
3436
|
+
}, {
|
|
3437
|
+
readonly name: "gen";
|
|
3438
|
+
readonly internalType: "uint256";
|
|
3439
|
+
readonly type: "uint256";
|
|
3440
|
+
readonly indexed: true;
|
|
3441
|
+
}, {
|
|
3442
|
+
readonly name: "owner";
|
|
3443
|
+
readonly internalType: "address";
|
|
3444
|
+
readonly type: "address";
|
|
3445
|
+
readonly indexed: true;
|
|
3446
|
+
}, {
|
|
3447
|
+
readonly name: "shares";
|
|
3448
|
+
readonly internalType: "uint256";
|
|
3449
|
+
readonly type: "uint256";
|
|
3450
|
+
readonly indexed: false;
|
|
3451
|
+
}, {
|
|
3452
|
+
readonly name: "quoteOut";
|
|
3453
|
+
readonly internalType: "uint256";
|
|
3454
|
+
readonly type: "uint256";
|
|
3455
|
+
readonly indexed: false;
|
|
3456
|
+
}];
|
|
3457
|
+
readonly name: "Redeem";
|
|
3458
|
+
}, {
|
|
3459
|
+
readonly type: "event";
|
|
3460
|
+
readonly anonymous: false;
|
|
3461
|
+
readonly inputs: readonly [{
|
|
3462
|
+
readonly name: "poolId";
|
|
3463
|
+
readonly internalType: "bytes32";
|
|
3464
|
+
readonly type: "bytes32";
|
|
3465
|
+
readonly indexed: true;
|
|
3466
|
+
}, {
|
|
3467
|
+
readonly name: "gen";
|
|
3468
|
+
readonly internalType: "uint256";
|
|
3469
|
+
readonly type: "uint256";
|
|
3470
|
+
readonly indexed: true;
|
|
3471
|
+
}, {
|
|
3472
|
+
readonly name: "L0";
|
|
3473
|
+
readonly internalType: "uint256";
|
|
3474
|
+
readonly type: "uint256";
|
|
3475
|
+
readonly indexed: false;
|
|
3476
|
+
}, {
|
|
3477
|
+
readonly name: "Q0";
|
|
3478
|
+
readonly internalType: "uint256";
|
|
3479
|
+
readonly type: "uint256";
|
|
3480
|
+
readonly indexed: false;
|
|
3481
|
+
}, {
|
|
3482
|
+
readonly name: "theta0";
|
|
3483
|
+
readonly internalType: "int256";
|
|
3484
|
+
readonly type: "int256";
|
|
3485
|
+
readonly indexed: false;
|
|
3486
|
+
}, {
|
|
3487
|
+
readonly name: "r0";
|
|
3488
|
+
readonly internalType: "uint256[]";
|
|
3489
|
+
readonly type: "uint256[]";
|
|
3490
|
+
readonly indexed: false;
|
|
3491
|
+
}];
|
|
3492
|
+
readonly name: "Seeded";
|
|
3493
|
+
}, {
|
|
3494
|
+
readonly type: "event";
|
|
3495
|
+
readonly anonymous: false;
|
|
3496
|
+
readonly inputs: readonly [{
|
|
3497
|
+
readonly name: "who";
|
|
3498
|
+
readonly internalType: "address";
|
|
3499
|
+
readonly type: "address";
|
|
3500
|
+
readonly indexed: true;
|
|
3501
|
+
}, {
|
|
3502
|
+
readonly name: "name";
|
|
3503
|
+
readonly internalType: "bytes32";
|
|
3504
|
+
readonly type: "bytes32";
|
|
3505
|
+
readonly indexed: false;
|
|
3506
|
+
}];
|
|
3507
|
+
readonly name: "SponsorNamed";
|
|
3508
|
+
}, {
|
|
3509
|
+
readonly type: "event";
|
|
3510
|
+
readonly anonymous: false;
|
|
3511
|
+
readonly inputs: readonly [{
|
|
3512
|
+
readonly name: "poolId";
|
|
3513
|
+
readonly internalType: "bytes32";
|
|
3514
|
+
readonly type: "bytes32";
|
|
3515
|
+
readonly indexed: true;
|
|
3516
|
+
}, {
|
|
3517
|
+
readonly name: "sender";
|
|
3518
|
+
readonly internalType: "address";
|
|
3519
|
+
readonly type: "address";
|
|
3520
|
+
readonly indexed: true;
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly name: "tokenIn";
|
|
3523
|
+
readonly internalType: "address";
|
|
3524
|
+
readonly type: "address";
|
|
3525
|
+
readonly indexed: false;
|
|
3526
|
+
}, {
|
|
3527
|
+
readonly name: "tokenOut";
|
|
3528
|
+
readonly internalType: "address";
|
|
3529
|
+
readonly type: "address";
|
|
3530
|
+
readonly indexed: false;
|
|
3531
|
+
}, {
|
|
3532
|
+
readonly name: "amountIn";
|
|
3533
|
+
readonly internalType: "uint256";
|
|
3534
|
+
readonly type: "uint256";
|
|
3535
|
+
readonly indexed: false;
|
|
3536
|
+
}, {
|
|
3537
|
+
readonly name: "amountOut";
|
|
3538
|
+
readonly internalType: "uint256";
|
|
3539
|
+
readonly type: "uint256";
|
|
3540
|
+
readonly indexed: false;
|
|
3541
|
+
}, {
|
|
3542
|
+
readonly name: "reserveIn";
|
|
3543
|
+
readonly internalType: "uint256";
|
|
3544
|
+
readonly type: "uint256";
|
|
3545
|
+
readonly indexed: false;
|
|
3546
|
+
}, {
|
|
3547
|
+
readonly name: "reserveOut";
|
|
3548
|
+
readonly internalType: "uint256";
|
|
3549
|
+
readonly type: "uint256";
|
|
3550
|
+
readonly indexed: false;
|
|
3551
|
+
}];
|
|
3552
|
+
readonly name: "Swap";
|
|
3553
|
+
}, {
|
|
3554
|
+
readonly type: "event";
|
|
3555
|
+
readonly anonymous: false;
|
|
3556
|
+
readonly inputs: readonly [{
|
|
3557
|
+
readonly name: "by";
|
|
3558
|
+
readonly internalType: "address";
|
|
3559
|
+
readonly type: "address";
|
|
3560
|
+
readonly indexed: false;
|
|
3561
|
+
}, {
|
|
3562
|
+
readonly name: "from";
|
|
3563
|
+
readonly internalType: "address";
|
|
3564
|
+
readonly type: "address";
|
|
3565
|
+
readonly indexed: true;
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly name: "to";
|
|
3568
|
+
readonly internalType: "address";
|
|
3569
|
+
readonly type: "address";
|
|
3570
|
+
readonly indexed: true;
|
|
3571
|
+
}, {
|
|
3572
|
+
readonly name: "id";
|
|
3573
|
+
readonly internalType: "uint256";
|
|
3574
|
+
readonly type: "uint256";
|
|
3575
|
+
readonly indexed: true;
|
|
3576
|
+
}, {
|
|
3577
|
+
readonly name: "amount";
|
|
3578
|
+
readonly internalType: "uint256";
|
|
3579
|
+
readonly type: "uint256";
|
|
3580
|
+
readonly indexed: false;
|
|
3581
|
+
}];
|
|
3582
|
+
readonly name: "Transfer";
|
|
3583
|
+
}, {
|
|
3584
|
+
readonly type: "error";
|
|
3585
|
+
readonly inputs: readonly [];
|
|
3586
|
+
readonly name: "AlreadySeeded";
|
|
3587
|
+
}, {
|
|
3588
|
+
readonly type: "error";
|
|
3589
|
+
readonly inputs: readonly [];
|
|
3590
|
+
readonly name: "AlreadyUnlocked";
|
|
3591
|
+
}, {
|
|
3592
|
+
readonly type: "error";
|
|
3593
|
+
readonly inputs: readonly [];
|
|
3594
|
+
readonly name: "BadLeg";
|
|
3595
|
+
}, {
|
|
3596
|
+
readonly type: "error";
|
|
3597
|
+
readonly inputs: readonly [];
|
|
3598
|
+
readonly name: "BadParam";
|
|
3599
|
+
}, {
|
|
3600
|
+
readonly type: "error";
|
|
3601
|
+
readonly inputs: readonly [];
|
|
3602
|
+
readonly name: "BalanceOverflow";
|
|
3603
|
+
}, {
|
|
3604
|
+
readonly type: "error";
|
|
3605
|
+
readonly inputs: readonly [];
|
|
3606
|
+
readonly name: "InsufficientBalance";
|
|
3607
|
+
}, {
|
|
3608
|
+
readonly type: "error";
|
|
3609
|
+
readonly inputs: readonly [];
|
|
3610
|
+
readonly name: "InsufficientPermission";
|
|
3611
|
+
}, {
|
|
3612
|
+
readonly type: "error";
|
|
3613
|
+
readonly inputs: readonly [];
|
|
3614
|
+
readonly name: "InsufficientQuote";
|
|
3615
|
+
}, {
|
|
3616
|
+
readonly type: "error";
|
|
3617
|
+
readonly inputs: readonly [];
|
|
3618
|
+
readonly name: "InvalidToken";
|
|
3619
|
+
}, {
|
|
3620
|
+
readonly type: "error";
|
|
3621
|
+
readonly inputs: readonly [];
|
|
3622
|
+
readonly name: "LegHeld";
|
|
3623
|
+
}, {
|
|
3624
|
+
readonly type: "error";
|
|
3625
|
+
readonly inputs: readonly [];
|
|
3626
|
+
readonly name: "LegLive";
|
|
3627
|
+
}, {
|
|
3628
|
+
readonly type: "error";
|
|
3629
|
+
readonly inputs: readonly [];
|
|
3630
|
+
readonly name: "MinBuffer";
|
|
3631
|
+
}, {
|
|
3632
|
+
readonly type: "error";
|
|
3633
|
+
readonly inputs: readonly [];
|
|
3634
|
+
readonly name: "NonstandardToken";
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly type: "error";
|
|
3637
|
+
readonly inputs: readonly [];
|
|
3638
|
+
readonly name: "NotAllowed";
|
|
3639
|
+
}, {
|
|
3640
|
+
readonly type: "error";
|
|
3641
|
+
readonly inputs: readonly [];
|
|
3642
|
+
readonly name: "NotAuthority";
|
|
3643
|
+
}, {
|
|
3644
|
+
readonly type: "error";
|
|
3645
|
+
readonly inputs: readonly [];
|
|
3646
|
+
readonly name: "NotAuthorized";
|
|
3647
|
+
}, {
|
|
3648
|
+
readonly type: "error";
|
|
3649
|
+
readonly inputs: readonly [];
|
|
3650
|
+
readonly name: "NotCollector";
|
|
3651
|
+
}, {
|
|
3652
|
+
readonly type: "error";
|
|
3653
|
+
readonly inputs: readonly [];
|
|
3654
|
+
readonly name: "NotDelegated";
|
|
3655
|
+
}, {
|
|
3656
|
+
readonly type: "error";
|
|
3657
|
+
readonly inputs: readonly [];
|
|
3658
|
+
readonly name: "NotDissolvable";
|
|
3659
|
+
}, {
|
|
3660
|
+
readonly type: "error";
|
|
3661
|
+
readonly inputs: readonly [];
|
|
3662
|
+
readonly name: "NotOperator";
|
|
3663
|
+
}, {
|
|
3664
|
+
readonly type: "error";
|
|
3665
|
+
readonly inputs: readonly [];
|
|
3666
|
+
readonly name: "NotRetired";
|
|
3667
|
+
}, {
|
|
3668
|
+
readonly type: "error";
|
|
3669
|
+
readonly inputs: readonly [];
|
|
3670
|
+
readonly name: "NotSeeded";
|
|
3671
|
+
}, {
|
|
3672
|
+
readonly type: "error";
|
|
3673
|
+
readonly inputs: readonly [];
|
|
3674
|
+
readonly name: "NotSoleLP";
|
|
3675
|
+
}, {
|
|
3676
|
+
readonly type: "error";
|
|
3677
|
+
readonly inputs: readonly [];
|
|
3678
|
+
readonly name: "PoolAlreadyInitialized";
|
|
3679
|
+
}, {
|
|
3680
|
+
readonly type: "error";
|
|
3681
|
+
readonly inputs: readonly [];
|
|
3682
|
+
readonly name: "PoolLocked";
|
|
3683
|
+
}, {
|
|
3684
|
+
readonly type: "error";
|
|
3685
|
+
readonly inputs: readonly [];
|
|
3686
|
+
readonly name: "PoolNotInitialized";
|
|
3687
|
+
}, {
|
|
3688
|
+
readonly type: "error";
|
|
3689
|
+
readonly inputs: readonly [];
|
|
3690
|
+
readonly name: "PriceOutOfRange";
|
|
3691
|
+
}, {
|
|
3692
|
+
readonly type: "error";
|
|
3693
|
+
readonly inputs: readonly [{
|
|
3694
|
+
readonly name: "amount";
|
|
3695
|
+
readonly internalType: "uint256";
|
|
3696
|
+
readonly type: "uint256";
|
|
3697
|
+
}];
|
|
3698
|
+
readonly name: "QuoteResult";
|
|
3699
|
+
}, {
|
|
3700
|
+
readonly type: "error";
|
|
3701
|
+
readonly inputs: readonly [];
|
|
3702
|
+
readonly name: "ReserveNotRepresentable";
|
|
3703
|
+
}, {
|
|
3704
|
+
readonly type: "error";
|
|
3705
|
+
readonly inputs: readonly [];
|
|
3706
|
+
readonly name: "Restructured";
|
|
3707
|
+
}, {
|
|
3708
|
+
readonly type: "error";
|
|
3709
|
+
readonly inputs: readonly [];
|
|
3710
|
+
readonly name: "SameAsset";
|
|
3711
|
+
}, {
|
|
3712
|
+
readonly type: "error";
|
|
3713
|
+
readonly inputs: readonly [];
|
|
3714
|
+
readonly name: "Slippage";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly type: "error";
|
|
3717
|
+
readonly inputs: readonly [];
|
|
3718
|
+
readonly name: "StrikeLocked";
|
|
3719
|
+
}, {
|
|
3720
|
+
readonly type: "error";
|
|
3721
|
+
readonly inputs: readonly [];
|
|
3722
|
+
readonly name: "SyncAlreadyOpen";
|
|
3723
|
+
}, {
|
|
3724
|
+
readonly type: "error";
|
|
3725
|
+
readonly inputs: readonly [];
|
|
3726
|
+
readonly name: "TokensNotSettled";
|
|
3727
|
+
}, {
|
|
3728
|
+
readonly type: "error";
|
|
3729
|
+
readonly inputs: readonly [];
|
|
3730
|
+
readonly name: "TooManyGenerations";
|
|
3731
|
+
}, {
|
|
3732
|
+
readonly type: "error";
|
|
3733
|
+
readonly inputs: readonly [];
|
|
3734
|
+
readonly name: "TooManyLegs";
|
|
3735
|
+
}, {
|
|
3736
|
+
readonly type: "error";
|
|
3737
|
+
readonly inputs: readonly [];
|
|
3738
|
+
readonly name: "TransferShortfall";
|
|
3739
|
+
}, {
|
|
3740
|
+
readonly type: "error";
|
|
3741
|
+
readonly inputs: readonly [];
|
|
3742
|
+
readonly name: "ZeroAmount";
|
|
3743
|
+
}];
|
|
26
3744
|
import type { LogswapClient } from "./client.js";
|
|
27
3745
|
/** Everything scalar about a basket pool, in one round trip's worth of reads. */
|
|
28
3746
|
export interface FPoolState {
|
|
@@ -64,12 +3782,22 @@ export interface FPoolState {
|
|
|
64
3782
|
gateSwap: boolean;
|
|
65
3783
|
/** The block of the last lever / composition action: no swap runs in it. */
|
|
66
3784
|
restructureBlock: number;
|
|
67
|
-
/**
|
|
68
|
-
|
|
3785
|
+
/**
|
|
3786
|
+
* The strike is locked (decisions 027, formerly `feesOnly`): `harvest` resets the floor to θ₀
|
|
3787
|
+
* and never past it, so only income can leave; and the pool cannot be dissolved while it bids.
|
|
3788
|
+
* The pad's promise. Pairs with a locked seed (shares at 0xdead) — the class is the two bits.
|
|
3789
|
+
*/
|
|
3790
|
+
lockStrike: boolean;
|
|
3791
|
+
/** False before the first seed — and between a dissolve and the next one (decisions 032). */
|
|
69
3792
|
seeded: boolean;
|
|
70
|
-
|
|
3793
|
+
/**
|
|
3794
|
+
* The live GENERATION (decisions 032). Every dissolve retires one into a frozen bundle its
|
|
3795
|
+
* shares redeem ({@link fPoolRedeem}) and opens the next; the share id carries it
|
|
3796
|
+
* ({@link fPoolShareId}), so generations `0 … gen-1` are retired claims and `gen` is the pool.
|
|
3797
|
+
*/
|
|
3798
|
+
gen: number;
|
|
71
3799
|
totalSupply: bigint;
|
|
72
|
-
/**
|
|
3800
|
+
/** What the pool holds of each base — the STATE since decisions 026; the mark `x` is derived from it. */
|
|
73
3801
|
reserves: bigint[];
|
|
74
3802
|
}
|
|
75
3803
|
/** Read a basket pool whole. Batched — viem multicalls these when the transport allows. */
|
|
@@ -174,8 +3902,45 @@ export declare function fPoolZapOut(c: LogswapClient, a: {
|
|
|
174
3902
|
deadline?: bigint;
|
|
175
3903
|
}): Promise<`0x${string}`>;
|
|
176
3904
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
3905
|
+
* Roll a retired generation's bundle into the pool's live one (decisions 025, 032), on the
|
|
3906
|
+
* router under one lock: redeem `shares` of generation `gen` in place — the legs, the quote and
|
|
3907
|
+
* any unpulled dividend come back — buy through the pool's own curve only what the live
|
|
3908
|
+
* generation's ratio lacks, mint `dL` of it to `to`, and refund the rest in kind. Quote the
|
|
3909
|
+
* bundle does not cover is pulled from the payer, at most `maxQuoteIn`; surplus base is
|
|
3910
|
+
* refunded, never sold. Size `dL` with {@link fPoolPreviewRollIn}. The router must be the
|
|
3911
|
+
* caller's ERC-6909 operator ({@link approveRouterForFPool}).
|
|
3912
|
+
*/
|
|
3913
|
+
export declare function fPoolRollIn(c: LogswapClient, a: {
|
|
3914
|
+
poolId: Hex;
|
|
3915
|
+
/** the retired generation whose shares roll */
|
|
3916
|
+
gen: bigint | number;
|
|
3917
|
+
shares: bigint;
|
|
3918
|
+
dL: bigint;
|
|
3919
|
+
maxQuoteIn?: bigint;
|
|
3920
|
+
minShares?: bigint;
|
|
3921
|
+
to?: Address;
|
|
3922
|
+
account: Address;
|
|
3923
|
+
deadline?: bigint;
|
|
3924
|
+
}): Promise<`0x${string}`>;
|
|
3925
|
+
/**
|
|
3926
|
+
* The roll `holder`'s `shares` of retired generation `gen` fund into the live one WITHOUT a
|
|
3927
|
+
* trade: the largest `dL` the bundle's base covers on every leg, and the quote the bundle is
|
|
3928
|
+
* short of (pass it as `maxQuoteIn`) or over (refunded — the up direction's distribution) at
|
|
3929
|
+
* that `dL`. A leg the live generation admitted since makes `dL` zero: such a roll must buy, so
|
|
3930
|
+
* size it below with `previewZapIn` in mind. Zero for the live generation, or before the next
|
|
3931
|
+
* seed.
|
|
3932
|
+
*/
|
|
3933
|
+
export declare function fPoolPreviewRollIn(c: LogswapClient, poolId: Hex, gen: bigint | number, holder: Address, shares: bigint): Promise<{
|
|
3934
|
+
dL: bigint;
|
|
3935
|
+
quoteShort: bigint;
|
|
3936
|
+
quoteExcess: bigint;
|
|
3937
|
+
}>;
|
|
3938
|
+
/**
|
|
3939
|
+
* Remove quote, lifting θ — price-neutral, no base moves, and since decisions 028 a DIVIDEND to
|
|
3940
|
+
* every share: the amount goes into the pool's pot and each holder's slice is settled lazily on
|
|
3941
|
+
* their next transfer, mint or burn, or pulled with {@link fPoolClaim}. The sponsor's own slice —
|
|
3942
|
+
* its shares' and the locked seed's at 0xdead — is pushed to `to` at once. Under `lockStrike`
|
|
3943
|
+
* the lift stops at θ₀ (income only); on every live pool it stops at `LEVER_FLOOR` (Q/L ≥ ln 1.25).
|
|
179
3944
|
*/
|
|
180
3945
|
export declare function fPoolHarvest(c: LogswapClient, a: {
|
|
181
3946
|
poolId: Hex;
|
|
@@ -183,6 +3948,21 @@ export declare function fPoolHarvest(c: LogswapClient, a: {
|
|
|
183
3948
|
to?: Address;
|
|
184
3949
|
account: Address;
|
|
185
3950
|
}): Promise<`0x${string}`>;
|
|
3951
|
+
/**
|
|
3952
|
+
* Pull one's settled dividend (decisions 028) on a generation's shares without moving them;
|
|
3953
|
+
* anyone with shares. `gen` defaults to the live generation; a retired generation's harvests
|
|
3954
|
+
* stay claimable under its own id (decisions 032).
|
|
3955
|
+
*/
|
|
3956
|
+
export declare function fPoolClaim(c: LogswapClient, a: {
|
|
3957
|
+
poolId: Hex;
|
|
3958
|
+
gen?: bigint | number;
|
|
3959
|
+
to?: Address;
|
|
3960
|
+
account: Address;
|
|
3961
|
+
}): Promise<`0x${string}`>;
|
|
3962
|
+
/** A holder's dividend as of now on generation `gen` (the live one by default) — banked plus pending on the current balance (decisions 028). */
|
|
3963
|
+
export declare function fPoolDividendOf(c: LogswapClient, poolId: Hex, holder: Address, gen?: bigint | number): Promise<bigint>;
|
|
3964
|
+
/** The lever's floor: `harvest` may not take Q/L under ln 1.25 — the floor stays ≥ 20% below the mark (decisions 025). */
|
|
3965
|
+
export declare const LEVER_FLOOR = 223143551314209755n;
|
|
186
3966
|
/** Commit quote, deepening θ — the other sign of `harvest`, the same word as the C floor edit (decisions 011). The mark does not move: governance may write θ, never x. */
|
|
187
3967
|
export declare function fPoolDeepen(c: LogswapClient, a: {
|
|
188
3968
|
poolId: Hex;
|
|
@@ -196,11 +3976,48 @@ export declare function fPoolManagerAllowanceOk(c: LogswapClient, token: Address
|
|
|
196
3976
|
export declare function isRouterOperatorForFPool(c: LogswapClient, owner: Address): Promise<boolean>;
|
|
197
3977
|
/** Approve the router to move this account's F-pool shares. Needed once, before any `fPoolZapOut`. */
|
|
198
3978
|
export declare function approveRouterForFPool(c: LogswapClient, account: Address): Promise<`0x${string}`>;
|
|
199
|
-
/**
|
|
200
|
-
|
|
3979
|
+
/**
|
|
3980
|
+
* The ERC-6909 id carrying generation `gen` of a pool's shares (decisions 032): bit 255 set (the
|
|
3981
|
+
* share flag), the pool id's top 239 bits, the generation in the low 16. Each generation's shares
|
|
3982
|
+
* are their own asset — a retired one is a claim on its bundle, the live one on the pool.
|
|
3983
|
+
*/
|
|
3984
|
+
export declare function fPoolShareId(poolId: Hex, gen?: bigint | number): bigint;
|
|
3985
|
+
/** The generation a share id carries — its low 16 bits. */
|
|
3986
|
+
export declare function fPoolGenOfShareId(id: bigint): number;
|
|
3987
|
+
/** The pool's live generation, one read. */
|
|
3988
|
+
export declare function fPoolGen(c: LogswapClient, poolId: Hex): Promise<number>;
|
|
201
3989
|
/** The ERC-6909 id carrying claims on a token. Bit 255 clear, so it can never meet a share id. */
|
|
202
3990
|
export declare function fPoolClaimId(token: Address): bigint;
|
|
203
|
-
|
|
3991
|
+
/** A holder's shares of generation `gen` — the live one by default. */
|
|
3992
|
+
export declare function fPoolShareBalance(c: LogswapClient, poolId: Hex, owner: Address, gen?: bigint | number): Promise<bigint>;
|
|
3993
|
+
/** A retired generation's bundle (decisions 032): what is left to redeem — supply, quote, base per leg index. */
|
|
3994
|
+
export declare function fPoolBundleOf(c: LogswapClient, poolId: Hex, gen: bigint | number): Promise<{
|
|
3995
|
+
supply: bigint;
|
|
3996
|
+
quote: bigint;
|
|
3997
|
+
base: bigint[];
|
|
3998
|
+
}>;
|
|
3999
|
+
/** A holder's claim on one retired generation, as the lens reports it: what `redeem` pays now. */
|
|
4000
|
+
export interface FPoolClaimRow {
|
|
4001
|
+
gen: number;
|
|
4002
|
+
shares: bigint;
|
|
4003
|
+
base: bigint[];
|
|
4004
|
+
quote: bigint;
|
|
4005
|
+
dividend: bigint;
|
|
4006
|
+
}
|
|
4007
|
+
/** A holder's claims on a pool's retired generations — one row per generation still held (decisions 032). */
|
|
4008
|
+
export declare function fPoolClaimsOf(c: LogswapClient, poolId: Hex, owner: Address): Promise<FPoolClaimRow[]>;
|
|
4009
|
+
/**
|
|
4010
|
+
* Redeem `shares` of a RETIRED generation (decisions 032): its bundle, pro rata — the base per
|
|
4011
|
+
* leg and the quote — plus the owner's settled dividend. Not `burn`: nothing can move a bundle's
|
|
4012
|
+
* ratio, so there is no slippage to bound. The owner, or an operator of theirs.
|
|
4013
|
+
*/
|
|
4014
|
+
export declare function fPoolRedeem(c: LogswapClient, a: {
|
|
4015
|
+
poolId: Hex;
|
|
4016
|
+
gen: bigint | number;
|
|
4017
|
+
shares: bigint;
|
|
4018
|
+
owner?: Address;
|
|
4019
|
+
account: Address;
|
|
4020
|
+
}): Promise<`0x${string}`>;
|
|
204
4021
|
export declare function fPoolClaimBalance(c: LogswapClient, token: Address, owner: Address): Promise<bigint>;
|
|
205
4022
|
export declare enum FPoolQuoteKind {
|
|
206
4023
|
QuoteIn = 0,
|
|
@@ -231,8 +4048,8 @@ export interface FPoolCreateArgs {
|
|
|
231
4048
|
weights: bigint[];
|
|
232
4049
|
/** Fixed fee, WAD. The base-for-base fee is pinned at 2φ on-chain. */
|
|
233
4050
|
phi: bigint;
|
|
234
|
-
/** true: the
|
|
235
|
-
|
|
4051
|
+
/** true: the strike is locked — harvest stops at θ₀ and the pool cannot be dissolved live (the pad's posture; decisions 027). */
|
|
4052
|
+
lockStrike: boolean;
|
|
236
4053
|
authority: Address;
|
|
237
4054
|
/**
|
|
238
4055
|
* The differentiator, and nothing else. Identity is the key's hash, so one sponsor cannot run
|
|
@@ -256,22 +4073,64 @@ export declare function fPoolInitialize(c: LogswapClient, a: FPoolCreateArgs): P
|
|
|
256
4073
|
/** The pool id is the key's hash — pure, so it can be read before or after creation. */
|
|
257
4074
|
export declare function fPoolIdOf(c: LogswapClient, a: Omit<FPoolCreateArgs, "account">): Promise<Hex>;
|
|
258
4075
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
4076
|
+
* The reserve a leg holds at a mark: `R = Lj·e^{−x}`, WAD math. The seed names RESERVES since
|
|
4077
|
+
* decisions 029 — the sponsor states holdings and the price follows, `p = Lj / R` — so this is
|
|
4078
|
+
* the one conversion from a price to what the pool will hold, done here, on the way in. Float
|
|
4079
|
+
* precision (~1e-16 relative) is what a seed needs: any reserve is a legal seed, and the mark
|
|
4080
|
+
* the pool derives from it is the one the sponsor meant to within that.
|
|
4081
|
+
*/
|
|
4082
|
+
export declare function fPoolReserveAt(Lj: bigint, x: bigint): bigint;
|
|
4083
|
+
/**
|
|
4084
|
+
* Arm the pool: deposit `r0[j]` of each base plus `Q0` of quote against exposure `L0`. Pass either
|
|
4085
|
+
* the reserves outright (`r0`) or the marks the pool should open at (`x0`, converted here with
|
|
4086
|
+
* {@link fPoolReserveAt} against the key's weights). Authority-only on-chain (an open seed lets
|
|
4087
|
+
* anyone front-run the creator for the strike). Arrays align with the SORTED bases — use
|
|
4088
|
+
* {@link sortFPoolLegs} on (bases, weights, x0) together when building forms.
|
|
262
4089
|
*/
|
|
263
4090
|
export declare function fPoolSeed(c: LogswapClient, a: {
|
|
264
4091
|
poolId: Hex;
|
|
265
4092
|
L0: bigint;
|
|
266
|
-
x0: bigint[];
|
|
267
4093
|
Q0: bigint;
|
|
268
4094
|
account: Address;
|
|
269
|
-
}
|
|
270
|
-
|
|
4095
|
+
} & ({
|
|
4096
|
+
r0: bigint[];
|
|
4097
|
+
} | {
|
|
4098
|
+
x0: bigint[];
|
|
4099
|
+
weights: bigint[];
|
|
4100
|
+
})): Promise<`0x${string}`>;
|
|
4101
|
+
/**
|
|
4102
|
+
* Retire the live generation (decisions 025, 032). Allowed at Q ≤ L/1e9 on every pool — the
|
|
4103
|
+
* market filled the ask — and on a pool that is not strike-locked at any Q. The live (S, Q, R_j)
|
|
4104
|
+
* become a frozen bundle every share of this generation redeems ({@link fPoolRedeem}) or rolls
|
|
4105
|
+
* ({@link fPoolRollIn}), forever; the pool is unseeded until the next {@link fPoolSeed}, which
|
|
4106
|
+
* opens generation `gen + 1` under the same id, gates, lists and promises.
|
|
4107
|
+
*/
|
|
271
4108
|
export declare function fPoolDissolve(c: LogswapClient, a: {
|
|
272
4109
|
poolId: Hex;
|
|
273
4110
|
account: Address;
|
|
274
4111
|
}): Promise<`0x${string}`>;
|
|
4112
|
+
/**
|
|
4113
|
+
* The sponsor's relaunch as ONE transaction (decisions 025, 032): `dissolve` the live generation,
|
|
4114
|
+
* `redeem` the sponsor's own shares of it (when `shares` > 0), `seed` the next generation with
|
|
4115
|
+
* what came back — the manager's `multicall`, the sponsor as sender throughout, the same pool.
|
|
4116
|
+
* Gates, allowlist, operator, `minBuffer` and names carry over; anything else goes in `extra`,
|
|
4117
|
+
* pre-encoded against {@link fPoolManagerAbi}. The seed names reserves (decisions 029): `r0`
|
|
4118
|
+
* outright, or `x0` marks against the key's `weights`.
|
|
4119
|
+
*/
|
|
4120
|
+
export declare function fPoolRelaunch(c: LogswapClient, a: {
|
|
4121
|
+
poolId: Hex;
|
|
4122
|
+
/** the sponsor's shares of the retiring generation to redeem inside the batch — its whole balance, usually; 0 to keep the claim */
|
|
4123
|
+
shares: bigint;
|
|
4124
|
+
L0: bigint;
|
|
4125
|
+
Q0: bigint;
|
|
4126
|
+
extra?: Hex[];
|
|
4127
|
+
account: Address;
|
|
4128
|
+
} & ({
|
|
4129
|
+
r0: bigint[];
|
|
4130
|
+
} | {
|
|
4131
|
+
x0: bigint[];
|
|
4132
|
+
weights: bigint[];
|
|
4133
|
+
})): Promise<`0x${string}`>;
|
|
275
4134
|
/**
|
|
276
4135
|
* Propose the next authority — step one of two (contracts `2aa6b7b`, decisions 020). Nothing moves
|
|
277
4136
|
* until `next` accepts; proposing again (the zero address included) cancels a pending proposal.
|
|
@@ -287,8 +4146,6 @@ export declare function fPoolAcceptAuthority(c: LogswapClient, a: {
|
|
|
287
4146
|
poolId: Hex;
|
|
288
4147
|
account: Address;
|
|
289
4148
|
}): Promise<`0x${string}`>;
|
|
290
|
-
/** `setLegL`'s "keep the stored mark" sentinel — the only legal `x` for a live leg. */
|
|
291
|
-
export declare const NO_X: bigint;
|
|
292
4149
|
/** Turn the mint / swap gates on or off (authority). `burn` is never gated. */
|
|
293
4150
|
export declare function fPoolSetGates(c: LogswapClient, a: {
|
|
294
4151
|
poolId: Hex;
|
|
@@ -339,22 +4196,24 @@ export declare function fPoolRaiseMinBuffer(c: LogswapClient, a: {
|
|
|
339
4196
|
}): Promise<`0x${string}`>;
|
|
340
4197
|
/**
|
|
341
4198
|
* Set leg `j`'s liquidity (operator, sole LP only): grow, shrink, retire (`newLj = 0`), or re-admit
|
|
342
|
-
* a retired leg
|
|
343
|
-
*
|
|
4199
|
+
* a retired leg holding `r` of the base (decisions 029 — the price follows, `p = newLj / r`; use
|
|
4200
|
+
* {@link fPoolReserveAt} from a mark). For a live leg leave `r` undefined — its price is the
|
|
4201
|
+
* market's, the reserve scales with the liquidity. Base moves single-sidedly through the lock;
|
|
4202
|
+
* shares adjust to hold the share value.
|
|
344
4203
|
*/
|
|
345
4204
|
export declare function fPoolSetLegL(c: LogswapClient, a: {
|
|
346
4205
|
poolId: Hex;
|
|
347
4206
|
j: number;
|
|
348
4207
|
newLj: bigint;
|
|
349
|
-
|
|
4208
|
+
r?: bigint;
|
|
350
4209
|
account: Address;
|
|
351
4210
|
}): Promise<`0x${string}`>;
|
|
352
|
-
/** Admit a base the pool has never held
|
|
4211
|
+
/** Admit a base the pool has never held: `R` of it against liquidity `Lj`, so at `p = Lj / R` (operator, sole LP only). */
|
|
353
4212
|
export declare function fPoolAdmitLeg(c: LogswapClient, a: {
|
|
354
4213
|
poolId: Hex;
|
|
355
4214
|
base: Address;
|
|
356
4215
|
Lj: bigint;
|
|
357
|
-
|
|
4216
|
+
R: bigint;
|
|
358
4217
|
account: Address;
|
|
359
4218
|
}): Promise<`0x${string}`>;
|
|
360
4219
|
/**
|
|
@@ -367,6 +4226,7 @@ export declare function fPoolTransferShares(c: LogswapClient, a: {
|
|
|
367
4226
|
to: Address;
|
|
368
4227
|
shares: bigint;
|
|
369
4228
|
account: Address;
|
|
4229
|
+
gen?: bigint | number;
|
|
370
4230
|
}): Promise<`0x${string}`>;
|
|
371
4231
|
export interface DiscoveredFPool {
|
|
372
4232
|
poolId: Hex;
|
|
@@ -374,7 +4234,7 @@ export interface DiscoveredFPool {
|
|
|
374
4234
|
bases: Address[];
|
|
375
4235
|
weights: bigint[];
|
|
376
4236
|
phi: bigint;
|
|
377
|
-
|
|
4237
|
+
lockStrike: boolean;
|
|
378
4238
|
authority: Address;
|
|
379
4239
|
/** The block the pool was initialized in — its age, for annualising realized income. */
|
|
380
4240
|
block: bigint;
|
|
@@ -392,7 +4252,7 @@ export interface DiscoveredFPool {
|
|
|
392
4252
|
}
|
|
393
4253
|
/**
|
|
394
4254
|
* Every F pool ever created, from `Initialize` logs alone. Possible only because the event
|
|
395
|
-
* carries the full key preimage (bases, weights, phi,
|
|
4255
|
+
* carries the full key preimage (bases, weights, phi, lockStrike) — the poolId is a hash and could
|
|
396
4256
|
* never be inverted; contracts PR #17 exists for exactly this call.
|
|
397
4257
|
*/
|
|
398
4258
|
export declare function discoverFPools(c: LogswapClient, opts?: {
|
|
@@ -406,11 +4266,12 @@ export declare function discoverFPools(c: LogswapClient, opts?: {
|
|
|
406
4266
|
*/
|
|
407
4267
|
export declare function fPoolShareHolders(c: LogswapClient, poolIdHex: Hex, opts?: {
|
|
408
4268
|
fromBlock?: bigint;
|
|
4269
|
+
gen?: bigint | number;
|
|
409
4270
|
}): Promise<Array<{
|
|
410
4271
|
holder: Address;
|
|
411
4272
|
shares: bigint;
|
|
412
4273
|
}>>;
|
|
413
|
-
/** Every F pool's state in one lens call (the raw manager struct: quote, phi, authority,
|
|
4274
|
+
/** Every F pool's state in one lens call (the raw manager struct: quote, phi, authority, lockStrike, seeded, gen, n, Q, L, shares, theta0, bigSigma, leverTheta). */
|
|
414
4275
|
export declare function getFPoolsRaw(c: LogswapClient, poolIds: Hex[]): Promise<readonly unknown[]>;
|
|
415
4276
|
/** Share value from the lens — (L + Q)/shares, WAD per share — the same figure as `fPoolShareValue`, from one source. */
|
|
416
4277
|
export declare function shareValueOnChain(c: LogswapClient, poolId: Hex): Promise<bigint>;
|