@paraswap/dex-lib 4.7.6 → 4.7.8

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.
Files changed (157) hide show
  1. package/build/dex/bebop/bebop.d.ts +4 -2
  2. package/build/dex/bebop/bebop.js +42 -12
  3. package/build/dex/bebop/bebop.js.map +1 -1
  4. package/build/dex/bebop/constants.d.ts +5 -0
  5. package/build/dex/bebop/constants.js +7 -1
  6. package/build/dex/bebop/constants.js.map +1 -1
  7. package/build/dex/cables/cables.d.ts +6 -3
  8. package/build/dex/cables/cables.js +51 -7
  9. package/build/dex/cables/cables.js.map +1 -1
  10. package/build/dex/cables/constants.d.ts +5 -0
  11. package/build/dex/cables/constants.js +6 -1
  12. package/build/dex/cables/constants.js.map +1 -1
  13. package/build/dex/cables/rate-fetcher.d.ts +3 -1
  14. package/build/dex/cables/rate-fetcher.js +8 -6
  15. package/build/dex/cables/rate-fetcher.js.map +1 -1
  16. package/build/dex/cables/types.d.ts +6 -1
  17. package/build/dex/dexalot/constants.d.ts +2 -0
  18. package/build/dex/dexalot/constants.js +3 -1
  19. package/build/dex/dexalot/constants.js.map +1 -1
  20. package/build/dex/dexalot/dexalot.d.ts +8 -2
  21. package/build/dex/dexalot/dexalot.js +43 -5
  22. package/build/dex/dexalot/dexalot.js.map +1 -1
  23. package/build/dex/dexalot/rate-fetcher.d.ts +3 -1
  24. package/build/dex/dexalot/rate-fetcher.js +8 -6
  25. package/build/dex/dexalot/rate-fetcher.js.map +1 -1
  26. package/build/dex/dexalot/types.d.ts +2 -1
  27. package/build/dex/generic-rfq/generic-rfq.d.ts +2 -0
  28. package/build/dex/generic-rfq/generic-rfq.js +8 -1
  29. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  30. package/build/dex/generic-rfq/rate-fetcher.d.ts +10 -8
  31. package/build/dex/generic-rfq/rate-fetcher.js +12 -7
  32. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  33. package/build/dex/generic-rfq/types.d.ts +0 -6
  34. package/build/dex/generic-rfq/types.js +1 -12
  35. package/build/dex/generic-rfq/types.js.map +1 -1
  36. package/build/dex/hashflow/hashflow.d.ts +5 -2
  37. package/build/dex/hashflow/hashflow.js +15 -4
  38. package/build/dex/hashflow/hashflow.js.map +1 -1
  39. package/build/dex/idex.d.ts +2 -12
  40. package/build/dex/idle-dao/idle-dao.d.ts +1 -0
  41. package/build/dex/idle-dao/idle-dao.js +23 -11
  42. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  43. package/build/dex/limit-order-exchange.d.ts +2 -2
  44. package/build/dex/limit-order-exchange.js +2 -2
  45. package/build/dex/limit-order-exchange.js.map +1 -1
  46. package/build/dex/{se-vlr/se-vlr-pool.d.ts → maker-psm/maker-psm-event-pool.d.ts} +15 -11
  47. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  48. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  49. package/build/dex/maker-psm/maker-psm.d.ts +4 -41
  50. package/build/dex/maker-psm/maker-psm.js +40 -143
  51. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  52. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.d.ts +1 -0
  53. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +8 -0
  54. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js.map +1 -1
  55. package/build/dex/simple-exchange-with-restrictions.js +2 -2
  56. package/build/dex/simple-exchange-with-restrictions.js.map +1 -1
  57. package/build/dex/swaap-v2/swaap-v2.d.ts +5 -2
  58. package/build/dex/swaap-v2/swaap-v2.js +16 -4
  59. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  60. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  61. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  62. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  63. package/build/dex-helper/dummy-dex-helper.js +1 -14
  64. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  65. package/build/dex-helper/icache.d.ts +0 -2
  66. package/build/pricing-helper.d.ts +0 -1
  67. package/build/pricing-helper.js +0 -34
  68. package/build/pricing-helper.js.map +1 -1
  69. package/package.json +1 -1
  70. package/build/abi/BProtocol.json +0 -1155
  71. package/build/abi/Jarvis.json +0 -1172
  72. package/build/abi/MStableAsset.json +0 -1545
  73. package/build/abi/OneInchLp.json +0 -1304
  74. package/build/abi/Onebit.json +0 -736
  75. package/build/abi/Shell.json +0 -1294
  76. package/build/abi/TraderJoeV2Router.json +0 -50
  77. package/build/abi/wUSDM.json +0 -757
  78. package/build/abi/zrx.v2.json +0 -1967
  79. package/build/abi/zrx.v3.json +0 -3454
  80. package/build/abi/zrx.v4.json +0 -2193
  81. package/build/dex/OneInchLp.d.ts +0 -24
  82. package/build/dex/OneInchLp.js +0 -43
  83. package/build/dex/OneInchLp.js.map +0 -1
  84. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  85. package/build/dex/bProtocol/bProtocol.js +0 -56
  86. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  87. package/build/dex/bProtocol/types.d.ts +0 -11
  88. package/build/dex/bProtocol/types.js +0 -8
  89. package/build/dex/bProtocol/types.js.map +0 -1
  90. package/build/dex/jarvis.d.ts +0 -56
  91. package/build/dex/jarvis.js +0 -163
  92. package/build/dex/jarvis.js.map +0 -1
  93. package/build/dex/mStable.d.ts +0 -44
  94. package/build/dex/mStable.js +0 -75
  95. package/build/dex/mStable.js.map +0 -1
  96. package/build/dex/onebit/onebit.d.ts +0 -16
  97. package/build/dex/onebit/onebit.js +0 -61
  98. package/build/dex/onebit/onebit.js.map +0 -1
  99. package/build/dex/onebit/types.d.ts +0 -14
  100. package/build/dex/onebit/types.js +0 -8
  101. package/build/dex/onebit/types.js.map +0 -1
  102. package/build/dex/se-vlr/config.d.ts +0 -3
  103. package/build/dex/se-vlr/config.js +0 -24
  104. package/build/dex/se-vlr/config.js.map +0 -1
  105. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  106. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  107. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  108. package/build/dex/se-vlr/se-vlr.js +0 -131
  109. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  110. package/build/dex/se-vlr/types.d.ts +0 -6
  111. package/build/dex/se-vlr/types.js +0 -3
  112. package/build/dex/se-vlr/types.js.map +0 -1
  113. package/build/dex/shell.d.ts +0 -25
  114. package/build/dex/shell.js +0 -41
  115. package/build/dex/shell.js.map +0 -1
  116. package/build/dex/trader-joe-v2.d.ts +0 -40
  117. package/build/dex/trader-joe-v2.js +0 -74
  118. package/build/dex/trader-joe-v2.js.map +0 -1
  119. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  120. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  121. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  122. package/build/dex/usual-bond/config.d.ts +0 -3
  123. package/build/dex/usual-bond/config.js +0 -13
  124. package/build/dex/usual-bond/config.js.map +0 -1
  125. package/build/dex/usual-bond/types.d.ts +0 -7
  126. package/build/dex/usual-bond/types.js +0 -3
  127. package/build/dex/usual-bond/types.js.map +0 -1
  128. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  129. package/build/dex/usual-bond/usual-bond.js +0 -176
  130. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  131. package/build/dex/wusdm/config.d.ts +0 -3
  132. package/build/dex/wusdm/config.js +0 -43
  133. package/build/dex/wusdm/config.js.map +0 -1
  134. package/build/dex/wusdm/constants.d.ts +0 -2
  135. package/build/dex/wusdm/constants.js +0 -6
  136. package/build/dex/wusdm/constants.js.map +0 -1
  137. package/build/dex/wusdm/types.d.ts +0 -18
  138. package/build/dex/wusdm/types.js +0 -11
  139. package/build/dex/wusdm/types.js.map +0 -1
  140. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  141. package/build/dex/wusdm/wusdm-pool.js +0 -74
  142. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  143. package/build/dex/wusdm/wusdm.d.ts +0 -46
  144. package/build/dex/wusdm/wusdm.js +0 -243
  145. package/build/dex/wusdm/wusdm.js.map +0 -1
  146. package/build/dex/zerox/config.d.ts +0 -2
  147. package/build/dex/zerox/config.js +0 -33
  148. package/build/dex/zerox/config.js.map +0 -1
  149. package/build/dex/zerox/index.d.ts +0 -22
  150. package/build/dex/zerox/index.js +0 -225
  151. package/build/dex/zerox/index.js.map +0 -1
  152. package/build/dex/zerox/order.d.ts +0 -88
  153. package/build/dex/zerox/order.js +0 -53
  154. package/build/dex/zerox/order.js.map +0 -1
  155. package/build/dex/zerox/types.d.ts +0 -73
  156. package/build/dex/zerox/types.js +0 -21
  157. package/build/dex/zerox/types.js.map +0 -1
@@ -1,1545 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "_nexus",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "anonymous": false,
15
- "inputs": [
16
- {
17
- "indexed": true,
18
- "internalType": "address",
19
- "name": "owner",
20
- "type": "address"
21
- },
22
- {
23
- "indexed": true,
24
- "internalType": "address",
25
- "name": "spender",
26
- "type": "address"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint256",
31
- "name": "value",
32
- "type": "uint256"
33
- }
34
- ],
35
- "name": "Approval",
36
- "type": "event"
37
- },
38
- {
39
- "anonymous": false,
40
- "inputs": [
41
- {
42
- "indexed": false,
43
- "internalType": "uint256",
44
- "name": "cacheSize",
45
- "type": "uint256"
46
- }
47
- ],
48
- "name": "CacheSizeChanged",
49
- "type": "event"
50
- },
51
- {
52
- "anonymous": false,
53
- "inputs": [
54
- {
55
- "indexed": false,
56
- "internalType": "uint256",
57
- "name": "swapFee",
58
- "type": "uint256"
59
- },
60
- {
61
- "indexed": false,
62
- "internalType": "uint256",
63
- "name": "redemptionFee",
64
- "type": "uint256"
65
- }
66
- ],
67
- "name": "FeesChanged",
68
- "type": "event"
69
- },
70
- {
71
- "anonymous": false,
72
- "inputs": [
73
- {
74
- "indexed": false,
75
- "internalType": "address",
76
- "name": "forgeValidator",
77
- "type": "address"
78
- }
79
- ],
80
- "name": "ForgeValidatorChanged",
81
- "type": "event"
82
- },
83
- {
84
- "anonymous": false,
85
- "inputs": [
86
- {
87
- "indexed": true,
88
- "internalType": "address",
89
- "name": "minter",
90
- "type": "address"
91
- },
92
- {
93
- "indexed": false,
94
- "internalType": "address",
95
- "name": "recipient",
96
- "type": "address"
97
- },
98
- {
99
- "indexed": false,
100
- "internalType": "uint256",
101
- "name": "mAssetQuantity",
102
- "type": "uint256"
103
- },
104
- {
105
- "indexed": false,
106
- "internalType": "address",
107
- "name": "input",
108
- "type": "address"
109
- },
110
- {
111
- "indexed": false,
112
- "internalType": "uint256",
113
- "name": "inputQuantity",
114
- "type": "uint256"
115
- }
116
- ],
117
- "name": "Minted",
118
- "type": "event"
119
- },
120
- {
121
- "anonymous": false,
122
- "inputs": [
123
- {
124
- "indexed": true,
125
- "internalType": "address",
126
- "name": "minter",
127
- "type": "address"
128
- },
129
- {
130
- "indexed": false,
131
- "internalType": "address",
132
- "name": "recipient",
133
- "type": "address"
134
- },
135
- {
136
- "indexed": false,
137
- "internalType": "uint256",
138
- "name": "mAssetQuantity",
139
- "type": "uint256"
140
- },
141
- {
142
- "indexed": false,
143
- "internalType": "address[]",
144
- "name": "inputs",
145
- "type": "address[]"
146
- },
147
- {
148
- "indexed": false,
149
- "internalType": "uint256[]",
150
- "name": "inputQuantities",
151
- "type": "uint256[]"
152
- }
153
- ],
154
- "name": "MintedMulti",
155
- "type": "event"
156
- },
157
- {
158
- "anonymous": false,
159
- "inputs": [
160
- {
161
- "indexed": true,
162
- "internalType": "address",
163
- "name": "redeemer",
164
- "type": "address"
165
- },
166
- {
167
- "indexed": false,
168
- "internalType": "address",
169
- "name": "recipient",
170
- "type": "address"
171
- },
172
- {
173
- "indexed": false,
174
- "internalType": "uint256",
175
- "name": "mAssetQuantity",
176
- "type": "uint256"
177
- },
178
- {
179
- "indexed": false,
180
- "internalType": "address",
181
- "name": "output",
182
- "type": "address"
183
- },
184
- {
185
- "indexed": false,
186
- "internalType": "uint256",
187
- "name": "outputQuantity",
188
- "type": "uint256"
189
- },
190
- {
191
- "indexed": false,
192
- "internalType": "uint256",
193
- "name": "scaledFee",
194
- "type": "uint256"
195
- }
196
- ],
197
- "name": "Redeemed",
198
- "type": "event"
199
- },
200
- {
201
- "anonymous": false,
202
- "inputs": [
203
- {
204
- "indexed": true,
205
- "internalType": "address",
206
- "name": "redeemer",
207
- "type": "address"
208
- },
209
- {
210
- "indexed": false,
211
- "internalType": "address",
212
- "name": "recipient",
213
- "type": "address"
214
- },
215
- {
216
- "indexed": false,
217
- "internalType": "uint256",
218
- "name": "mAssetQuantity",
219
- "type": "uint256"
220
- },
221
- {
222
- "indexed": false,
223
- "internalType": "address[]",
224
- "name": "outputs",
225
- "type": "address[]"
226
- },
227
- {
228
- "indexed": false,
229
- "internalType": "uint256[]",
230
- "name": "outputQuantity",
231
- "type": "uint256[]"
232
- },
233
- {
234
- "indexed": false,
235
- "internalType": "uint256",
236
- "name": "scaledFee",
237
- "type": "uint256"
238
- }
239
- ],
240
- "name": "RedeemedMulti",
241
- "type": "event"
242
- },
243
- {
244
- "anonymous": false,
245
- "inputs": [
246
- {
247
- "indexed": true,
248
- "internalType": "address",
249
- "name": "swapper",
250
- "type": "address"
251
- },
252
- {
253
- "indexed": false,
254
- "internalType": "address",
255
- "name": "input",
256
- "type": "address"
257
- },
258
- {
259
- "indexed": false,
260
- "internalType": "address",
261
- "name": "output",
262
- "type": "address"
263
- },
264
- {
265
- "indexed": false,
266
- "internalType": "uint256",
267
- "name": "outputAmount",
268
- "type": "uint256"
269
- },
270
- {
271
- "indexed": false,
272
- "internalType": "uint256",
273
- "name": "scaledFee",
274
- "type": "uint256"
275
- },
276
- {
277
- "indexed": false,
278
- "internalType": "address",
279
- "name": "recipient",
280
- "type": "address"
281
- }
282
- ],
283
- "name": "Swapped",
284
- "type": "event"
285
- },
286
- {
287
- "anonymous": false,
288
- "inputs": [
289
- {
290
- "indexed": true,
291
- "internalType": "address",
292
- "name": "from",
293
- "type": "address"
294
- },
295
- {
296
- "indexed": true,
297
- "internalType": "address",
298
- "name": "to",
299
- "type": "address"
300
- },
301
- {
302
- "indexed": false,
303
- "internalType": "uint256",
304
- "name": "value",
305
- "type": "uint256"
306
- }
307
- ],
308
- "name": "Transfer",
309
- "type": "event"
310
- },
311
- {
312
- "anonymous": false,
313
- "inputs": [
314
- {
315
- "indexed": false,
316
- "internalType": "uint128",
317
- "name": "min",
318
- "type": "uint128"
319
- },
320
- {
321
- "indexed": false,
322
- "internalType": "uint128",
323
- "name": "max",
324
- "type": "uint128"
325
- }
326
- ],
327
- "name": "WeightLimitsChanged",
328
- "type": "event"
329
- },
330
- {
331
- "inputs": [
332
- {
333
- "internalType": "address",
334
- "name": "owner",
335
- "type": "address"
336
- },
337
- {
338
- "internalType": "address",
339
- "name": "spender",
340
- "type": "address"
341
- }
342
- ],
343
- "name": "allowance",
344
- "outputs": [
345
- {
346
- "internalType": "uint256",
347
- "name": "",
348
- "type": "uint256"
349
- }
350
- ],
351
- "stateMutability": "view",
352
- "type": "function"
353
- },
354
- {
355
- "inputs": [],
356
- "name": "ampData",
357
- "outputs": [
358
- {
359
- "internalType": "uint64",
360
- "name": "initialA",
361
- "type": "uint64"
362
- },
363
- {
364
- "internalType": "uint64",
365
- "name": "targetA",
366
- "type": "uint64"
367
- },
368
- {
369
- "internalType": "uint64",
370
- "name": "rampStartTime",
371
- "type": "uint64"
372
- },
373
- {
374
- "internalType": "uint64",
375
- "name": "rampEndTime",
376
- "type": "uint64"
377
- }
378
- ],
379
- "stateMutability": "view",
380
- "type": "function"
381
- },
382
- {
383
- "inputs": [
384
- {
385
- "internalType": "address",
386
- "name": "spender",
387
- "type": "address"
388
- },
389
- {
390
- "internalType": "uint256",
391
- "name": "amount",
392
- "type": "uint256"
393
- }
394
- ],
395
- "name": "approve",
396
- "outputs": [
397
- {
398
- "internalType": "bool",
399
- "name": "",
400
- "type": "bool"
401
- }
402
- ],
403
- "stateMutability": "nonpayable",
404
- "type": "function"
405
- },
406
- {
407
- "inputs": [
408
- {
409
- "internalType": "uint256",
410
- "name": "",
411
- "type": "uint256"
412
- }
413
- ],
414
- "name": "bAssetData",
415
- "outputs": [
416
- {
417
- "internalType": "uint128",
418
- "name": "ratio",
419
- "type": "uint128"
420
- },
421
- {
422
- "internalType": "uint128",
423
- "name": "vaultBalance",
424
- "type": "uint128"
425
- }
426
- ],
427
- "stateMutability": "view",
428
- "type": "function"
429
- },
430
- {
431
- "inputs": [
432
- {
433
- "internalType": "address",
434
- "name": "",
435
- "type": "address"
436
- }
437
- ],
438
- "name": "bAssetIndexes",
439
- "outputs": [
440
- {
441
- "internalType": "uint8",
442
- "name": "",
443
- "type": "uint8"
444
- }
445
- ],
446
- "stateMutability": "view",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [
451
- {
452
- "internalType": "uint256",
453
- "name": "",
454
- "type": "uint256"
455
- }
456
- ],
457
- "name": "bAssetPersonal",
458
- "outputs": [
459
- {
460
- "internalType": "address",
461
- "name": "addr",
462
- "type": "address"
463
- },
464
- {
465
- "internalType": "address",
466
- "name": "integrator",
467
- "type": "address"
468
- },
469
- {
470
- "internalType": "bool",
471
- "name": "hasTxFee",
472
- "type": "bool"
473
- },
474
- {
475
- "internalType": "enum BassetStatus",
476
- "name": "status",
477
- "type": "uint8"
478
- }
479
- ],
480
- "stateMutability": "view",
481
- "type": "function"
482
- },
483
- {
484
- "inputs": [
485
- {
486
- "internalType": "address",
487
- "name": "account",
488
- "type": "address"
489
- }
490
- ],
491
- "name": "balanceOf",
492
- "outputs": [
493
- {
494
- "internalType": "uint256",
495
- "name": "",
496
- "type": "uint256"
497
- }
498
- ],
499
- "stateMutability": "view",
500
- "type": "function"
501
- },
502
- {
503
- "inputs": [],
504
- "name": "basket",
505
- "outputs": [
506
- {
507
- "internalType": "bool",
508
- "name": "undergoingRecol",
509
- "type": "bool"
510
- },
511
- {
512
- "internalType": "bool",
513
- "name": "failed",
514
- "type": "bool"
515
- }
516
- ],
517
- "stateMutability": "view",
518
- "type": "function"
519
- },
520
- {
521
- "inputs": [],
522
- "name": "cacheSize",
523
- "outputs": [
524
- {
525
- "internalType": "uint256",
526
- "name": "",
527
- "type": "uint256"
528
- }
529
- ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
- {
534
- "inputs": [],
535
- "name": "collectInterest",
536
- "outputs": [
537
- {
538
- "internalType": "uint256",
539
- "name": "mintAmount",
540
- "type": "uint256"
541
- },
542
- {
543
- "internalType": "uint256",
544
- "name": "newSupply",
545
- "type": "uint256"
546
- }
547
- ],
548
- "stateMutability": "nonpayable",
549
- "type": "function"
550
- },
551
- {
552
- "inputs": [],
553
- "name": "collectPlatformInterest",
554
- "outputs": [
555
- {
556
- "internalType": "uint256",
557
- "name": "mintAmount",
558
- "type": "uint256"
559
- },
560
- {
561
- "internalType": "uint256",
562
- "name": "newSupply",
563
- "type": "uint256"
564
- }
565
- ],
566
- "stateMutability": "nonpayable",
567
- "type": "function"
568
- },
569
- {
570
- "inputs": [],
571
- "name": "decimals",
572
- "outputs": [
573
- {
574
- "internalType": "uint8",
575
- "name": "",
576
- "type": "uint8"
577
- }
578
- ],
579
- "stateMutability": "view",
580
- "type": "function"
581
- },
582
- {
583
- "inputs": [
584
- {
585
- "internalType": "address",
586
- "name": "spender",
587
- "type": "address"
588
- },
589
- {
590
- "internalType": "uint256",
591
- "name": "subtractedValue",
592
- "type": "uint256"
593
- }
594
- ],
595
- "name": "decreaseAllowance",
596
- "outputs": [
597
- {
598
- "internalType": "bool",
599
- "name": "",
600
- "type": "bool"
601
- }
602
- ],
603
- "stateMutability": "nonpayable",
604
- "type": "function"
605
- },
606
- {
607
- "inputs": [],
608
- "name": "forgeValidator",
609
- "outputs": [
610
- {
611
- "internalType": "contract IInvariantValidator",
612
- "name": "",
613
- "type": "address"
614
- }
615
- ],
616
- "stateMutability": "view",
617
- "type": "function"
618
- },
619
- {
620
- "inputs": [],
621
- "name": "getBasket",
622
- "outputs": [
623
- {
624
- "internalType": "bool",
625
- "name": "",
626
- "type": "bool"
627
- },
628
- {
629
- "internalType": "bool",
630
- "name": "",
631
- "type": "bool"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [
639
- {
640
- "internalType": "address",
641
- "name": "_bAsset",
642
- "type": "address"
643
- }
644
- ],
645
- "name": "getBasset",
646
- "outputs": [
647
- {
648
- "components": [
649
- {
650
- "internalType": "address",
651
- "name": "addr",
652
- "type": "address"
653
- },
654
- {
655
- "internalType": "address",
656
- "name": "integrator",
657
- "type": "address"
658
- },
659
- {
660
- "internalType": "bool",
661
- "name": "hasTxFee",
662
- "type": "bool"
663
- },
664
- {
665
- "internalType": "enum BassetStatus",
666
- "name": "status",
667
- "type": "uint8"
668
- }
669
- ],
670
- "internalType": "struct BassetPersonal",
671
- "name": "personal",
672
- "type": "tuple"
673
- },
674
- {
675
- "components": [
676
- {
677
- "internalType": "uint128",
678
- "name": "ratio",
679
- "type": "uint128"
680
- },
681
- {
682
- "internalType": "uint128",
683
- "name": "vaultBalance",
684
- "type": "uint128"
685
- }
686
- ],
687
- "internalType": "struct BassetData",
688
- "name": "data",
689
- "type": "tuple"
690
- }
691
- ],
692
- "stateMutability": "view",
693
- "type": "function"
694
- },
695
- {
696
- "inputs": [],
697
- "name": "getBassets",
698
- "outputs": [
699
- {
700
- "components": [
701
- {
702
- "internalType": "address",
703
- "name": "addr",
704
- "type": "address"
705
- },
706
- {
707
- "internalType": "address",
708
- "name": "integrator",
709
- "type": "address"
710
- },
711
- {
712
- "internalType": "bool",
713
- "name": "hasTxFee",
714
- "type": "bool"
715
- },
716
- {
717
- "internalType": "enum BassetStatus",
718
- "name": "status",
719
- "type": "uint8"
720
- }
721
- ],
722
- "internalType": "struct BassetPersonal[]",
723
- "name": "personal",
724
- "type": "tuple[]"
725
- },
726
- {
727
- "components": [
728
- {
729
- "internalType": "uint128",
730
- "name": "ratio",
731
- "type": "uint128"
732
- },
733
- {
734
- "internalType": "uint128",
735
- "name": "vaultBalance",
736
- "type": "uint128"
737
- }
738
- ],
739
- "internalType": "struct BassetData[]",
740
- "name": "data",
741
- "type": "tuple[]"
742
- }
743
- ],
744
- "stateMutability": "view",
745
- "type": "function"
746
- },
747
- {
748
- "inputs": [],
749
- "name": "getConfig",
750
- "outputs": [
751
- {
752
- "components": [
753
- {
754
- "internalType": "uint256",
755
- "name": "a",
756
- "type": "uint256"
757
- },
758
- {
759
- "components": [
760
- {
761
- "internalType": "uint128",
762
- "name": "min",
763
- "type": "uint128"
764
- },
765
- {
766
- "internalType": "uint128",
767
- "name": "max",
768
- "type": "uint128"
769
- }
770
- ],
771
- "internalType": "struct WeightLimits",
772
- "name": "limits",
773
- "type": "tuple"
774
- }
775
- ],
776
- "internalType": "struct InvariantConfig",
777
- "name": "config",
778
- "type": "tuple"
779
- }
780
- ],
781
- "stateMutability": "view",
782
- "type": "function"
783
- },
784
- {
785
- "inputs": [
786
- {
787
- "internalType": "address[]",
788
- "name": "_inputs",
789
- "type": "address[]"
790
- },
791
- {
792
- "internalType": "uint256[]",
793
- "name": "_inputQuantities",
794
- "type": "uint256[]"
795
- }
796
- ],
797
- "name": "getMintMultiOutput",
798
- "outputs": [
799
- {
800
- "internalType": "uint256",
801
- "name": "mintOutput",
802
- "type": "uint256"
803
- }
804
- ],
805
- "stateMutability": "view",
806
- "type": "function"
807
- },
808
- {
809
- "inputs": [
810
- {
811
- "internalType": "address",
812
- "name": "_input",
813
- "type": "address"
814
- },
815
- {
816
- "internalType": "uint256",
817
- "name": "_inputQuantity",
818
- "type": "uint256"
819
- }
820
- ],
821
- "name": "getMintOutput",
822
- "outputs": [
823
- {
824
- "internalType": "uint256",
825
- "name": "mintOutput",
826
- "type": "uint256"
827
- }
828
- ],
829
- "stateMutability": "view",
830
- "type": "function"
831
- },
832
- {
833
- "inputs": [
834
- {
835
- "internalType": "address[]",
836
- "name": "_outputs",
837
- "type": "address[]"
838
- },
839
- {
840
- "internalType": "uint256[]",
841
- "name": "_outputQuantities",
842
- "type": "uint256[]"
843
- }
844
- ],
845
- "name": "getRedeemExactBassetsOutput",
846
- "outputs": [
847
- {
848
- "internalType": "uint256",
849
- "name": "mAssetQuantity",
850
- "type": "uint256"
851
- }
852
- ],
853
- "stateMutability": "view",
854
- "type": "function"
855
- },
856
- {
857
- "inputs": [
858
- {
859
- "internalType": "address",
860
- "name": "_output",
861
- "type": "address"
862
- },
863
- {
864
- "internalType": "uint256",
865
- "name": "_mAssetQuantity",
866
- "type": "uint256"
867
- }
868
- ],
869
- "name": "getRedeemOutput",
870
- "outputs": [
871
- {
872
- "internalType": "uint256",
873
- "name": "bAssetOutput",
874
- "type": "uint256"
875
- }
876
- ],
877
- "stateMutability": "view",
878
- "type": "function"
879
- },
880
- {
881
- "inputs": [
882
- {
883
- "internalType": "address",
884
- "name": "_input",
885
- "type": "address"
886
- },
887
- {
888
- "internalType": "address",
889
- "name": "_output",
890
- "type": "address"
891
- },
892
- {
893
- "internalType": "uint256",
894
- "name": "_inputQuantity",
895
- "type": "uint256"
896
- }
897
- ],
898
- "name": "getSwapOutput",
899
- "outputs": [
900
- {
901
- "internalType": "uint256",
902
- "name": "swapOutput",
903
- "type": "uint256"
904
- }
905
- ],
906
- "stateMutability": "view",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [
911
- {
912
- "internalType": "address",
913
- "name": "_bAsset",
914
- "type": "address"
915
- },
916
- {
917
- "internalType": "bool",
918
- "name": "_belowPeg",
919
- "type": "bool"
920
- }
921
- ],
922
- "name": "handlePegLoss",
923
- "outputs": [],
924
- "stateMutability": "nonpayable",
925
- "type": "function"
926
- },
927
- {
928
- "inputs": [
929
- {
930
- "internalType": "address",
931
- "name": "spender",
932
- "type": "address"
933
- },
934
- {
935
- "internalType": "uint256",
936
- "name": "addedValue",
937
- "type": "uint256"
938
- }
939
- ],
940
- "name": "increaseAllowance",
941
- "outputs": [
942
- {
943
- "internalType": "bool",
944
- "name": "",
945
- "type": "bool"
946
- }
947
- ],
948
- "stateMutability": "nonpayable",
949
- "type": "function"
950
- },
951
- {
952
- "inputs": [
953
- {
954
- "internalType": "string",
955
- "name": "_nameArg",
956
- "type": "string"
957
- },
958
- {
959
- "internalType": "string",
960
- "name": "_symbolArg",
961
- "type": "string"
962
- },
963
- {
964
- "internalType": "address",
965
- "name": "_forgeValidator",
966
- "type": "address"
967
- },
968
- {
969
- "components": [
970
- {
971
- "internalType": "address",
972
- "name": "addr",
973
- "type": "address"
974
- },
975
- {
976
- "internalType": "address",
977
- "name": "integrator",
978
- "type": "address"
979
- },
980
- {
981
- "internalType": "bool",
982
- "name": "hasTxFee",
983
- "type": "bool"
984
- },
985
- {
986
- "internalType": "enum BassetStatus",
987
- "name": "status",
988
- "type": "uint8"
989
- }
990
- ],
991
- "internalType": "struct BassetPersonal[]",
992
- "name": "_bAssets",
993
- "type": "tuple[]"
994
- },
995
- {
996
- "components": [
997
- {
998
- "internalType": "uint256",
999
- "name": "a",
1000
- "type": "uint256"
1001
- },
1002
- {
1003
- "components": [
1004
- {
1005
- "internalType": "uint128",
1006
- "name": "min",
1007
- "type": "uint128"
1008
- },
1009
- {
1010
- "internalType": "uint128",
1011
- "name": "max",
1012
- "type": "uint128"
1013
- }
1014
- ],
1015
- "internalType": "struct WeightLimits",
1016
- "name": "limits",
1017
- "type": "tuple"
1018
- }
1019
- ],
1020
- "internalType": "struct InvariantConfig",
1021
- "name": "_config",
1022
- "type": "tuple"
1023
- }
1024
- ],
1025
- "name": "initialize",
1026
- "outputs": [],
1027
- "stateMutability": "nonpayable",
1028
- "type": "function"
1029
- },
1030
- {
1031
- "inputs": [],
1032
- "name": "maxBassets",
1033
- "outputs": [
1034
- {
1035
- "internalType": "uint8",
1036
- "name": "",
1037
- "type": "uint8"
1038
- }
1039
- ],
1040
- "stateMutability": "view",
1041
- "type": "function"
1042
- },
1043
- {
1044
- "inputs": [
1045
- {
1046
- "internalType": "address[]",
1047
- "name": "_bAssets",
1048
- "type": "address[]"
1049
- },
1050
- {
1051
- "internalType": "address",
1052
- "name": "_newIntegration",
1053
- "type": "address"
1054
- }
1055
- ],
1056
- "name": "migrateBassets",
1057
- "outputs": [],
1058
- "stateMutability": "nonpayable",
1059
- "type": "function"
1060
- },
1061
- {
1062
- "inputs": [
1063
- {
1064
- "internalType": "address",
1065
- "name": "_input",
1066
- "type": "address"
1067
- },
1068
- {
1069
- "internalType": "uint256",
1070
- "name": "_inputQuantity",
1071
- "type": "uint256"
1072
- },
1073
- {
1074
- "internalType": "uint256",
1075
- "name": "_minOutputQuantity",
1076
- "type": "uint256"
1077
- },
1078
- {
1079
- "internalType": "address",
1080
- "name": "_recipient",
1081
- "type": "address"
1082
- }
1083
- ],
1084
- "name": "mint",
1085
- "outputs": [
1086
- {
1087
- "internalType": "uint256",
1088
- "name": "mintOutput",
1089
- "type": "uint256"
1090
- }
1091
- ],
1092
- "stateMutability": "nonpayable",
1093
- "type": "function"
1094
- },
1095
- {
1096
- "inputs": [
1097
- {
1098
- "internalType": "address[]",
1099
- "name": "_inputs",
1100
- "type": "address[]"
1101
- },
1102
- {
1103
- "internalType": "uint256[]",
1104
- "name": "_inputQuantities",
1105
- "type": "uint256[]"
1106
- },
1107
- {
1108
- "internalType": "uint256",
1109
- "name": "_minOutputQuantity",
1110
- "type": "uint256"
1111
- },
1112
- {
1113
- "internalType": "address",
1114
- "name": "_recipient",
1115
- "type": "address"
1116
- }
1117
- ],
1118
- "name": "mintMulti",
1119
- "outputs": [
1120
- {
1121
- "internalType": "uint256",
1122
- "name": "mintOutput",
1123
- "type": "uint256"
1124
- }
1125
- ],
1126
- "stateMutability": "nonpayable",
1127
- "type": "function"
1128
- },
1129
- {
1130
- "inputs": [],
1131
- "name": "name",
1132
- "outputs": [
1133
- {
1134
- "internalType": "string",
1135
- "name": "",
1136
- "type": "string"
1137
- }
1138
- ],
1139
- "stateMutability": "view",
1140
- "type": "function"
1141
- },
1142
- {
1143
- "inputs": [
1144
- {
1145
- "internalType": "address",
1146
- "name": "_bAsset",
1147
- "type": "address"
1148
- }
1149
- ],
1150
- "name": "negateIsolation",
1151
- "outputs": [],
1152
- "stateMutability": "nonpayable",
1153
- "type": "function"
1154
- },
1155
- {
1156
- "inputs": [],
1157
- "name": "nexus",
1158
- "outputs": [
1159
- {
1160
- "internalType": "contract INexus",
1161
- "name": "",
1162
- "type": "address"
1163
- }
1164
- ],
1165
- "stateMutability": "view",
1166
- "type": "function"
1167
- },
1168
- {
1169
- "inputs": [
1170
- {
1171
- "internalType": "address",
1172
- "name": "_output",
1173
- "type": "address"
1174
- },
1175
- {
1176
- "internalType": "uint256",
1177
- "name": "_mAssetQuantity",
1178
- "type": "uint256"
1179
- },
1180
- {
1181
- "internalType": "uint256",
1182
- "name": "_minOutputQuantity",
1183
- "type": "uint256"
1184
- },
1185
- {
1186
- "internalType": "address",
1187
- "name": "_recipient",
1188
- "type": "address"
1189
- }
1190
- ],
1191
- "name": "redeem",
1192
- "outputs": [
1193
- {
1194
- "internalType": "uint256",
1195
- "name": "outputQuantity",
1196
- "type": "uint256"
1197
- }
1198
- ],
1199
- "stateMutability": "nonpayable",
1200
- "type": "function"
1201
- },
1202
- {
1203
- "inputs": [
1204
- {
1205
- "internalType": "address[]",
1206
- "name": "_outputs",
1207
- "type": "address[]"
1208
- },
1209
- {
1210
- "internalType": "uint256[]",
1211
- "name": "_outputQuantities",
1212
- "type": "uint256[]"
1213
- },
1214
- {
1215
- "internalType": "uint256",
1216
- "name": "_maxMassetQuantity",
1217
- "type": "uint256"
1218
- },
1219
- {
1220
- "internalType": "address",
1221
- "name": "_recipient",
1222
- "type": "address"
1223
- }
1224
- ],
1225
- "name": "redeemExactBassets",
1226
- "outputs": [
1227
- {
1228
- "internalType": "uint256",
1229
- "name": "mAssetQuantity",
1230
- "type": "uint256"
1231
- }
1232
- ],
1233
- "stateMutability": "nonpayable",
1234
- "type": "function"
1235
- },
1236
- {
1237
- "inputs": [
1238
- {
1239
- "internalType": "uint256",
1240
- "name": "_mAssetQuantity",
1241
- "type": "uint256"
1242
- },
1243
- {
1244
- "internalType": "uint256[]",
1245
- "name": "_minOutputQuantities",
1246
- "type": "uint256[]"
1247
- },
1248
- {
1249
- "internalType": "address",
1250
- "name": "_recipient",
1251
- "type": "address"
1252
- }
1253
- ],
1254
- "name": "redeemMasset",
1255
- "outputs": [
1256
- {
1257
- "internalType": "uint256[]",
1258
- "name": "outputQuantities",
1259
- "type": "uint256[]"
1260
- }
1261
- ],
1262
- "stateMutability": "nonpayable",
1263
- "type": "function"
1264
- },
1265
- {
1266
- "inputs": [],
1267
- "name": "redemptionFee",
1268
- "outputs": [
1269
- {
1270
- "internalType": "uint256",
1271
- "name": "",
1272
- "type": "uint256"
1273
- }
1274
- ],
1275
- "stateMutability": "view",
1276
- "type": "function"
1277
- },
1278
- {
1279
- "inputs": [
1280
- {
1281
- "internalType": "uint256",
1282
- "name": "_cacheSize",
1283
- "type": "uint256"
1284
- }
1285
- ],
1286
- "name": "setCacheSize",
1287
- "outputs": [],
1288
- "stateMutability": "nonpayable",
1289
- "type": "function"
1290
- },
1291
- {
1292
- "inputs": [
1293
- {
1294
- "internalType": "uint256",
1295
- "name": "_swapFee",
1296
- "type": "uint256"
1297
- },
1298
- {
1299
- "internalType": "uint256",
1300
- "name": "_redemptionFee",
1301
- "type": "uint256"
1302
- }
1303
- ],
1304
- "name": "setFees",
1305
- "outputs": [],
1306
- "stateMutability": "nonpayable",
1307
- "type": "function"
1308
- },
1309
- {
1310
- "inputs": [
1311
- {
1312
- "internalType": "address",
1313
- "name": "_bAsset",
1314
- "type": "address"
1315
- },
1316
- {
1317
- "internalType": "bool",
1318
- "name": "_flag",
1319
- "type": "bool"
1320
- }
1321
- ],
1322
- "name": "setTransferFeesFlag",
1323
- "outputs": [],
1324
- "stateMutability": "nonpayable",
1325
- "type": "function"
1326
- },
1327
- {
1328
- "inputs": [
1329
- {
1330
- "internalType": "uint128",
1331
- "name": "_min",
1332
- "type": "uint128"
1333
- },
1334
- {
1335
- "internalType": "uint128",
1336
- "name": "_max",
1337
- "type": "uint128"
1338
- }
1339
- ],
1340
- "name": "setWeightLimits",
1341
- "outputs": [],
1342
- "stateMutability": "nonpayable",
1343
- "type": "function"
1344
- },
1345
- {
1346
- "inputs": [
1347
- {
1348
- "internalType": "uint256",
1349
- "name": "_targetA",
1350
- "type": "uint256"
1351
- },
1352
- {
1353
- "internalType": "uint256",
1354
- "name": "_rampEndTime",
1355
- "type": "uint256"
1356
- }
1357
- ],
1358
- "name": "startRampA",
1359
- "outputs": [],
1360
- "stateMutability": "nonpayable",
1361
- "type": "function"
1362
- },
1363
- {
1364
- "inputs": [],
1365
- "name": "stopRampA",
1366
- "outputs": [],
1367
- "stateMutability": "nonpayable",
1368
- "type": "function"
1369
- },
1370
- {
1371
- "inputs": [],
1372
- "name": "surplus",
1373
- "outputs": [
1374
- {
1375
- "internalType": "uint256",
1376
- "name": "",
1377
- "type": "uint256"
1378
- }
1379
- ],
1380
- "stateMutability": "view",
1381
- "type": "function"
1382
- },
1383
- {
1384
- "inputs": [
1385
- {
1386
- "internalType": "address",
1387
- "name": "_input",
1388
- "type": "address"
1389
- },
1390
- {
1391
- "internalType": "address",
1392
- "name": "_output",
1393
- "type": "address"
1394
- },
1395
- {
1396
- "internalType": "uint256",
1397
- "name": "_inputQuantity",
1398
- "type": "uint256"
1399
- },
1400
- {
1401
- "internalType": "uint256",
1402
- "name": "_minOutputQuantity",
1403
- "type": "uint256"
1404
- },
1405
- {
1406
- "internalType": "address",
1407
- "name": "_recipient",
1408
- "type": "address"
1409
- }
1410
- ],
1411
- "name": "swap",
1412
- "outputs": [
1413
- {
1414
- "internalType": "uint256",
1415
- "name": "swapOutput",
1416
- "type": "uint256"
1417
- }
1418
- ],
1419
- "stateMutability": "nonpayable",
1420
- "type": "function"
1421
- },
1422
- {
1423
- "inputs": [],
1424
- "name": "swapFee",
1425
- "outputs": [
1426
- {
1427
- "internalType": "uint256",
1428
- "name": "",
1429
- "type": "uint256"
1430
- }
1431
- ],
1432
- "stateMutability": "view",
1433
- "type": "function"
1434
- },
1435
- {
1436
- "inputs": [],
1437
- "name": "symbol",
1438
- "outputs": [
1439
- {
1440
- "internalType": "string",
1441
- "name": "",
1442
- "type": "string"
1443
- }
1444
- ],
1445
- "stateMutability": "view",
1446
- "type": "function"
1447
- },
1448
- {
1449
- "inputs": [],
1450
- "name": "totalSupply",
1451
- "outputs": [
1452
- {
1453
- "internalType": "uint256",
1454
- "name": "",
1455
- "type": "uint256"
1456
- }
1457
- ],
1458
- "stateMutability": "view",
1459
- "type": "function"
1460
- },
1461
- {
1462
- "inputs": [
1463
- {
1464
- "internalType": "address",
1465
- "name": "recipient",
1466
- "type": "address"
1467
- },
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "amount",
1471
- "type": "uint256"
1472
- }
1473
- ],
1474
- "name": "transfer",
1475
- "outputs": [
1476
- {
1477
- "internalType": "bool",
1478
- "name": "",
1479
- "type": "bool"
1480
- }
1481
- ],
1482
- "stateMutability": "nonpayable",
1483
- "type": "function"
1484
- },
1485
- {
1486
- "inputs": [
1487
- {
1488
- "internalType": "address",
1489
- "name": "sender",
1490
- "type": "address"
1491
- },
1492
- {
1493
- "internalType": "address",
1494
- "name": "recipient",
1495
- "type": "address"
1496
- },
1497
- {
1498
- "internalType": "uint256",
1499
- "name": "amount",
1500
- "type": "uint256"
1501
- }
1502
- ],
1503
- "name": "transferFrom",
1504
- "outputs": [
1505
- {
1506
- "internalType": "bool",
1507
- "name": "",
1508
- "type": "bool"
1509
- }
1510
- ],
1511
- "stateMutability": "nonpayable",
1512
- "type": "function"
1513
- },
1514
- {
1515
- "inputs": [
1516
- {
1517
- "internalType": "address",
1518
- "name": "_newForgeValidator",
1519
- "type": "address"
1520
- }
1521
- ],
1522
- "name": "upgradeForgeValidator",
1523
- "outputs": [],
1524
- "stateMutability": "nonpayable",
1525
- "type": "function"
1526
- },
1527
- {
1528
- "inputs": [],
1529
- "name": "weightLimits",
1530
- "outputs": [
1531
- {
1532
- "internalType": "uint128",
1533
- "name": "min",
1534
- "type": "uint128"
1535
- },
1536
- {
1537
- "internalType": "uint128",
1538
- "name": "max",
1539
- "type": "uint128"
1540
- }
1541
- ],
1542
- "stateMutability": "view",
1543
- "type": "function"
1544
- }
1545
- ]