@gearbox-protocol/sdk 2.1.33 → 3.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/lib/apy/convexAPY.d.ts +4 -6
  2. package/lib/apy/convexAPY.js +15 -16
  3. package/lib/apy/curveAPY.d.ts +2 -2
  4. package/lib/apy/curveAPY.js +3 -4
  5. package/lib/apy/index.d.ts +1 -1
  6. package/lib/apy/index.js +2 -2
  7. package/lib/apy/lidoAPY.js +2 -2
  8. package/lib/apy/yearnAPY.d.ts +1 -1
  9. package/lib/apy/yearnAPY.js +3 -5
  10. package/lib/contracts/contractsRegister.d.ts +1 -1
  11. package/lib/contracts/contractsRegister.js +6 -7
  12. package/lib/core/creditAccount.js +20 -22
  13. package/lib/core/creditAccount.spec.js +32 -34
  14. package/lib/core/creditManager.d.ts +3 -0
  15. package/lib/core/creditManager.js +38 -17
  16. package/lib/core/creditSession.js +12 -13
  17. package/lib/core/events.js +34 -35
  18. package/lib/core/pool/data.js +22 -23
  19. package/lib/core/pool/index.d.ts +0 -1
  20. package/lib/core/pool/index.js +0 -1
  21. package/lib/core/priceOracle.js +3 -3
  22. package/lib/core/rewardClaimer.d.ts +1 -3
  23. package/lib/core/rewardConvex.d.ts +1 -4
  24. package/lib/core/rewardConvex.js +7 -10
  25. package/lib/core/rewardConvex.spec.js +15 -16
  26. package/lib/core/strategy.js +14 -16
  27. package/lib/core/strategy.spec.js +20 -22
  28. package/lib/core/trade.d.ts +29 -16
  29. package/lib/core/trade.js +76 -22
  30. package/lib/core/transactions.d.ts +1 -1
  31. package/lib/core/transactions.js +18 -20
  32. package/lib/index.d.ts +0 -31
  33. package/lib/index.js +1 -37
  34. package/lib/parsers/ERC20Parser.d.ts +1 -1
  35. package/lib/parsers/abstractParser.d.ts +1 -1
  36. package/lib/parsers/abstractParser.js +3 -4
  37. package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +1 -1
  38. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +2 -2
  39. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +4 -4
  40. package/lib/parsers/convexBoosterAdapterParser.d.ts +1 -1
  41. package/lib/parsers/convexBoosterAdapterParser.js +3 -3
  42. package/lib/parsers/convexBoosterAdapterParser.spec.js +3 -3
  43. package/lib/parsers/convextRewardPoolParser.d.ts +1 -1
  44. package/lib/parsers/creditFacadeParser.d.ts +1 -1
  45. package/lib/parsers/creditFacadeParser.spec.js +8 -9
  46. package/lib/parsers/curveAdapterParser.d.ts +1 -2
  47. package/lib/parsers/curveAdapterParser.js +5 -5
  48. package/lib/parsers/curveAdapterParser.spec.js +13 -13
  49. package/lib/parsers/lidoAdapterParser.d.ts +1 -1
  50. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  51. package/lib/parsers/lidoSTETHParser.d.ts +1 -1
  52. package/lib/parsers/txParser.d.ts +1 -3
  53. package/lib/parsers/txParser.js +13 -16
  54. package/lib/parsers/uniV2AdapterParser.d.ts +1 -1
  55. package/lib/parsers/uniV2AdapterParser.spec.js +15 -16
  56. package/lib/parsers/uniV3AdapterParser.d.ts +1 -1
  57. package/lib/parsers/uniV3AdapterParser.spec.js +15 -16
  58. package/lib/parsers/wstETHAdapterParser.d.ts +1 -1
  59. package/lib/parsers/wstETHAdapterParser.spec.js +3 -3
  60. package/lib/parsers/yearnAdapterParser.spec.js +12 -12
  61. package/lib/parsers/yearnV2AdapterParser.d.ts +1 -1
  62. package/lib/parsers/yearnV2AdapterParser.js +2 -2
  63. package/lib/pathfinder/pathOptions.d.ts +1 -2
  64. package/lib/pathfinder/pathOptions.js +12 -16
  65. package/lib/pathfinder/pathOptions.spec.js +36 -36
  66. package/lib/pathfinder/pathfinder.d.ts +1 -2
  67. package/lib/pathfinder/pathfinder.js +9 -10
  68. package/lib/pathfinder/pathfinder.spec.js +11 -12
  69. package/lib/payload/creditAccount.d.ts +1 -1
  70. package/lib/payload/creditManager.d.ts +1 -1
  71. package/lib/payload/pool.d.ts +1 -1
  72. package/lib/tokens/tokenData.d.ts +0 -4
  73. package/lib/tokens/tokenData.js +1 -16
  74. package/lib/utils/formatter.js +3 -3
  75. package/lib/utils/math.js +5 -5
  76. package/lib/utils/price.js +4 -4
  77. package/lib/watchers/creditAccountWatcher.js +2 -2
  78. package/lib/watchers/creditAccountWatcher.spec.js +18 -18
  79. package/lib/watchers/creditManagerWatcher.spec.js +19 -19
  80. package/package.json +2 -1
  81. package/lib/contracts/adapters.d.ts +0 -24
  82. package/lib/contracts/adapters.js +0 -28
  83. package/lib/contracts/contracts.d.ts +0 -112
  84. package/lib/contracts/contracts.js +0 -654
  85. package/lib/contracts/protocols.d.ts +0 -17
  86. package/lib/contracts/protocols.js +0 -58
  87. package/lib/contracts/utilsContracts.d.ts +0 -7
  88. package/lib/contracts/utilsContracts.js +0 -28
  89. package/lib/core/adapter.d.ts +0 -20
  90. package/lib/core/adapter.js +0 -20
  91. package/lib/core/chains.d.ts +0 -23
  92. package/lib/core/chains.js +0 -63
  93. package/lib/core/constants.d.ts +0 -21
  94. package/lib/core/constants.js +0 -31
  95. package/lib/core/creditOperation.d.ts +0 -9
  96. package/lib/core/creditOperation.js +0 -2
  97. package/lib/core/operations.d.ts +0 -22
  98. package/lib/core/operations.js +0 -26
  99. package/lib/core/pool/operation.d.ts +0 -28
  100. package/lib/core/pool/operation.js +0 -36
  101. package/lib/pathfinder/tradeTypes.d.ts +0 -113
  102. package/lib/pathfinder/tradeTypes.js +0 -28
  103. package/lib/strategies/convex.d.ts +0 -57
  104. package/lib/strategies/convex.js +0 -220
  105. package/lib/strategies/creditFacade.d.ts +0 -21
  106. package/lib/strategies/creditFacade.js +0 -71
  107. package/lib/strategies/curve.d.ts +0 -45
  108. package/lib/strategies/curve.js +0 -207
  109. package/lib/strategies/lido.d.ts +0 -18
  110. package/lib/strategies/lido.js +0 -51
  111. package/lib/strategies/uniswapV2.d.ts +0 -15
  112. package/lib/strategies/uniswapV2.js +0 -44
  113. package/lib/strategies/uniswapV3.d.ts +0 -21
  114. package/lib/strategies/uniswapV3.js +0 -71
  115. package/lib/strategies/yearn.d.ts +0 -20
  116. package/lib/strategies/yearn.js +0 -128
  117. package/lib/tokens/aave.d.ts +0 -23
  118. package/lib/tokens/aave.js +0 -119
  119. package/lib/tokens/balancer.d.ts +0 -22
  120. package/lib/tokens/balancer.js +0 -65
  121. package/lib/tokens/compound.d.ts +0 -13
  122. package/lib/tokens/compound.js +0 -74
  123. package/lib/tokens/convex.d.ts +0 -30
  124. package/lib/tokens/convex.js +0 -575
  125. package/lib/tokens/curveLP.d.ts +0 -28
  126. package/lib/tokens/curveLP.js +0 -364
  127. package/lib/tokens/decimals.d.ts +0 -2
  128. package/lib/tokens/decimals.js +0 -115
  129. package/lib/tokens/gear.d.ts +0 -16
  130. package/lib/tokens/gear.js +0 -47
  131. package/lib/tokens/normal.d.ts +0 -12
  132. package/lib/tokens/normal.js +0 -912
  133. package/lib/tokens/quoted.d.ts +0 -3
  134. package/lib/tokens/quoted.js +0 -7
  135. package/lib/tokens/token.d.ts +0 -25
  136. package/lib/tokens/token.js +0 -305
  137. package/lib/tokens/tokenType.d.ts +0 -15
  138. package/lib/tokens/tokenType.js +0 -19
  139. package/lib/tokens/tokens.spec.d.ts +0 -1
  140. package/lib/tokens/tokens.spec.js +0 -151
  141. package/lib/tokens/yearn.d.ts +0 -30
  142. package/lib/tokens/yearn.js +0 -95
  143. package/lib/utils/extracter.d.ts +0 -11
  144. package/lib/utils/extracter.js +0 -19
  145. package/lib/utils/mappers.d.ts +0 -8
  146. package/lib/utils/mappers.js +0 -13
  147. package/lib/utils/multicall.d.ts +0 -36
  148. package/lib/utils/multicall.js +0 -90
  149. package/lib/utils/safeEnum.d.ts +0 -1
  150. package/lib/utils/safeEnum.js +0 -10
  151. package/lib/utils/types.d.ts +0 -10
  152. package/lib/utils/types.js +0 -2
@@ -1,364 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCurveMetaToken = exports.isCurveLPToken = exports.curveTokens = exports.curveMetaTokens = exports.Curve3CrvUnderlyingTokenIndex = void 0;
4
- const ethers_1 = require("ethers");
5
- const tradeTypes_1 = require("../pathfinder/tradeTypes");
6
- const tokenType_1 = require("./tokenType");
7
- exports.Curve3CrvUnderlyingTokenIndex = {
8
- DAI: ethers_1.BigNumber.from(0),
9
- USDC: ethers_1.BigNumber.from(1),
10
- USDT: ethers_1.BigNumber.from(2),
11
- };
12
- exports.curveMetaTokens = {
13
- // META CURVE LP TOKENS
14
- FRAX3CRV: {
15
- name: "Curve FRAX3CRV-f",
16
- symbol: "FRAX3CRV",
17
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
18
- pool: "CURVE_FRAX_POOL",
19
- lpActions: [
20
- {
21
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
22
- contract: "CURVE_FRAX_POOL",
23
- tokenOut: ["FRAX", "3Crv"],
24
- },
25
- {
26
- type: tradeTypes_1.TradeType.ConvexDepositLP,
27
- contract: "CONVEX_BOOSTER",
28
- tokenOut: "cvxFRAX3CRV",
29
- },
30
- {
31
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
32
- contract: "CONVEX_BOOSTER",
33
- tokenOut: "stkcvxFRAX3CRV",
34
- },
35
- ],
36
- },
37
- LUSD3CRV: {
38
- name: "Curve LUSD3CRV-f",
39
- symbol: "LUSD3CRV",
40
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
41
- pool: "CURVE_LUSD_POOL",
42
- lpActions: [
43
- {
44
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
45
- contract: "CURVE_LUSD_POOL",
46
- tokenOut: ["LUSD", "3Crv"],
47
- },
48
- ],
49
- },
50
- gusd3CRV: {
51
- name: "Curve gusd3CRV",
52
- symbol: "gusd3CRV",
53
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
54
- pool: "CURVE_GUSD_POOL",
55
- lpActions: [
56
- {
57
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
58
- contract: "CURVE_GUSD_POOL",
59
- tokenOut: ["GUSD", "3Crv"],
60
- },
61
- {
62
- type: tradeTypes_1.TradeType.ConvexDepositLP,
63
- contract: "CONVEX_BOOSTER",
64
- tokenOut: "cvxgusd3CRV",
65
- },
66
- {
67
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
68
- contract: "CONVEX_BOOSTER",
69
- tokenOut: "stkcvxgusd3CRV",
70
- },
71
- ],
72
- },
73
- MIM_3LP3CRV: {
74
- name: "Curve MIM_3LP3CRV",
75
- symbol: "MIM_3LP3CRV",
76
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
77
- pool: "CURVE_MIM_POOL",
78
- lpActions: [
79
- {
80
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
81
- contract: "CURVE_MIM_POOL",
82
- tokenOut: ["MIM", "3Crv"],
83
- },
84
- {
85
- type: tradeTypes_1.TradeType.ConvexDepositLP,
86
- contract: "CONVEX_BOOSTER",
87
- tokenOut: "cvxMIM_3LP3CRV",
88
- },
89
- {
90
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
91
- contract: "CONVEX_BOOSTER",
92
- tokenOut: "stkcvxMIM_3LP3CRV",
93
- },
94
- ],
95
- },
96
- OHMFRAXBP: {
97
- name: "Curve.fi Factory Crypto Pool: OHM/FRAXBP",
98
- symbol: "OHMFRAXBP",
99
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
100
- pool: "CURVE_OHMFRAXBP_POOL",
101
- lpActions: [
102
- {
103
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
104
- contract: "CURVE_OHMFRAXBP_POOL",
105
- tokenOut: ["OHM", "FRAX", "USDC"],
106
- },
107
- {
108
- type: tradeTypes_1.TradeType.ConvexDepositLP,
109
- contract: "CONVEX_BOOSTER",
110
- tokenOut: "cvxOHMFRAXBP",
111
- },
112
- {
113
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
114
- contract: "CONVEX_BOOSTER",
115
- tokenOut: "stkcvxOHMFRAXBP",
116
- },
117
- ],
118
- },
119
- };
120
- exports.curveTokens = {
121
- // CURVE LP TOKENS
122
- "3Crv": {
123
- name: "Curve 3Crv",
124
- symbol: "3Crv",
125
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
126
- pool: "CURVE_3CRV_POOL",
127
- lpActions: [
128
- {
129
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
130
- contract: "CURVE_3CRV_POOL",
131
- tokenOut: ["DAI", "USDC", "USDT"],
132
- },
133
- {
134
- type: tradeTypes_1.TradeType.ConvexDepositLP,
135
- contract: "CONVEX_BOOSTER",
136
- tokenOut: "cvx3Crv",
137
- },
138
- {
139
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
140
- contract: "CONVEX_BOOSTER",
141
- tokenOut: "stkcvx3Crv",
142
- },
143
- ],
144
- },
145
- crvFRAX: {
146
- name: "Curve.fi FRAX/USDC",
147
- symbol: "crvFRAX",
148
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
149
- pool: "CURVE_FRAX_USDC_POOL",
150
- lpActions: [
151
- {
152
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
153
- contract: "CURVE_3CRV_POOL",
154
- tokenOut: ["FRAX", "USDC"],
155
- },
156
- {
157
- type: tradeTypes_1.TradeType.ConvexDepositLP,
158
- contract: "CONVEX_BOOSTER",
159
- tokenOut: "cvxcrvFRAX",
160
- },
161
- {
162
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
163
- contract: "CONVEX_BOOSTER",
164
- tokenOut: "stkcvxcrvFRAX",
165
- },
166
- ],
167
- },
168
- steCRV: {
169
- name: "Curve steCRV",
170
- symbol: "steCRV",
171
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
172
- pool: "CURVE_STETH_GATEWAY",
173
- lpActions: [
174
- {
175
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
176
- contract: "CURVE_STETH_GATEWAY",
177
- tokenOut: ["STETH", "WETH"],
178
- },
179
- {
180
- type: tradeTypes_1.TradeType.ConvexDepositLP,
181
- contract: "CONVEX_BOOSTER",
182
- tokenOut: "cvxsteCRV",
183
- },
184
- {
185
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
186
- contract: "CONVEX_BOOSTER",
187
- tokenOut: "stkcvxsteCRV",
188
- },
189
- ],
190
- },
191
- crvPlain3andSUSD: {
192
- name: "Curve crvPlain3andSUSD",
193
- symbol: "crvPlain3andSUSD",
194
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
195
- pool: "CURVE_SUSD_POOL",
196
- wrapper: "CURVE_SUSD_DEPOSIT",
197
- lpActions: [
198
- {
199
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
200
- contract: "CURVE_SUSD_POOL",
201
- tokenOut: ["DAI", "USDC", "USDT", "sUSD"],
202
- },
203
- {
204
- type: tradeTypes_1.TradeType.ConvexDepositLP,
205
- contract: "CONVEX_BOOSTER",
206
- tokenOut: "cvxcrvPlain3andSUSD",
207
- },
208
- {
209
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
210
- contract: "CONVEX_BOOSTER",
211
- tokenOut: "stkcvxcrvPlain3andSUSD",
212
- },
213
- ],
214
- },
215
- crvCRVETH: {
216
- name: "Curve CRV-ETH",
217
- symbol: "crvCRVETH",
218
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
219
- pool: "CURVE_CRVETH_POOL",
220
- lpActions: [
221
- {
222
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
223
- contract: "CURVE_CRVETH_POOL",
224
- tokenOut: ["WETH", "CRV"],
225
- },
226
- {
227
- type: tradeTypes_1.TradeType.ConvexDepositLP,
228
- contract: "CONVEX_BOOSTER",
229
- tokenOut: "cvxcrvCRVETH",
230
- },
231
- {
232
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
233
- contract: "CONVEX_BOOSTER",
234
- tokenOut: "stkcvxcrvCRVETH",
235
- },
236
- ],
237
- },
238
- crvCVXETH: {
239
- name: "Curve CVX-ETH",
240
- symbol: "crvCVXETH",
241
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
242
- pool: "CURVE_CVXETH_POOL",
243
- lpActions: [
244
- {
245
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
246
- contract: "CURVE_CVXETH_POOL",
247
- tokenOut: ["WETH", "CVX"],
248
- },
249
- {
250
- type: tradeTypes_1.TradeType.ConvexDepositLP,
251
- contract: "CONVEX_BOOSTER",
252
- tokenOut: "cvxcrvCVXETH",
253
- },
254
- {
255
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
256
- contract: "CONVEX_BOOSTER",
257
- tokenOut: "stkcvxcrvCVXETH",
258
- },
259
- ],
260
- },
261
- crvUSDTWBTCWETH: {
262
- name: "Curve USDT/WBTC/WETH",
263
- symbol: "crvUSDTWBTCWETH",
264
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
265
- pool: "CURVE_3CRYPTO_POOL",
266
- lpActions: [
267
- {
268
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
269
- contract: "CURVE_3CRYPTO_POOL",
270
- tokenOut: ["USDT", "WBTC", "WETH"],
271
- },
272
- {
273
- type: tradeTypes_1.TradeType.ConvexDepositLP,
274
- contract: "CONVEX_BOOSTER",
275
- tokenOut: "cvxcrvUSDTWBTCWETH",
276
- },
277
- {
278
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
279
- contract: "CONVEX_BOOSTER",
280
- tokenOut: "stkcvxcrvUSDTWBTCWETH",
281
- },
282
- ],
283
- },
284
- LDOETH: {
285
- name: "Curve LDOETH",
286
- symbol: "LDOETH",
287
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
288
- pool: "CURVE_LDOETH_POOL",
289
- lpActions: [
290
- {
291
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
292
- contract: "CURVE_LDOETH_POOL",
293
- tokenOut: ["LDO", "WETH"],
294
- },
295
- {
296
- type: tradeTypes_1.TradeType.ConvexDepositLP,
297
- contract: "CONVEX_BOOSTER",
298
- tokenOut: "cvxLDOETH",
299
- },
300
- {
301
- type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
302
- contract: "CONVEX_BOOSTER",
303
- tokenOut: "stkcvxLDOETH",
304
- },
305
- ],
306
- },
307
- crvUSDUSDC: {
308
- name: "Curve crvUSDUSDC",
309
- symbol: "crvUSDUSDC",
310
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
311
- pool: "CURVE_CRVUSD_USDC_POOL",
312
- lpActions: [
313
- {
314
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
315
- contract: "CURVE_CRVUSD_USDC_POOL",
316
- tokenOut: ["crvUSD", "USDC"],
317
- },
318
- ],
319
- },
320
- crvUSDUSDT: {
321
- name: "Curve crvUSDUSDT",
322
- symbol: "crvUSDUSDT",
323
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
324
- pool: "CURVE_CRVUSD_USDT_POOL",
325
- lpActions: [
326
- {
327
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
328
- contract: "CURVE_CRVUSD_USDT_POOL",
329
- tokenOut: ["crvUSD", "USDT"],
330
- },
331
- ],
332
- },
333
- crvUSDFRAX: {
334
- name: "Curve crvUSDFRAX",
335
- symbol: "crvUSDFRAX",
336
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
337
- pool: "CURVE_CRVUSD_USDC_POOL",
338
- lpActions: [
339
- {
340
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
341
- contract: "CURVE_CRVUSD_FRAX_POOL",
342
- tokenOut: ["crvUSD", "FRAX"],
343
- },
344
- ],
345
- },
346
- crvUSDETHCRV: {
347
- name: "Curve crvUSDETHCRV",
348
- symbol: "crvUSDETHCRV",
349
- type: tokenType_1.TokenType.CURVE_LP_TOKEN,
350
- pool: "CURVE_TRI_CRV_POOL",
351
- lpActions: [
352
- {
353
- type: tradeTypes_1.TradeType.CurveWithdrawLP,
354
- contract: "CURVE_TRI_CRV_POOL",
355
- tokenOut: ["crvUSD", "WETH", "CRV"],
356
- },
357
- ],
358
- },
359
- ...exports.curveMetaTokens,
360
- };
361
- const isCurveLPToken = (t) => typeof t === "string" && !!exports.curveTokens[t];
362
- exports.isCurveLPToken = isCurveLPToken;
363
- const isCurveMetaToken = (t) => typeof t === "string" && !!exports.curveMetaTokens[t];
364
- exports.isCurveMetaToken = isCurveMetaToken;
@@ -1,2 +0,0 @@
1
- import { SupportedToken } from "./token";
2
- export declare const decimals: Record<SupportedToken, number>;
@@ -1,115 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decimals = void 0;
4
- exports.decimals = {
5
- "1INCH": 18,
6
- AAVE: 18,
7
- COMP: 18,
8
- CRV: 18,
9
- DAI: 18,
10
- DPI: 18,
11
- FEI: 18,
12
- LINK: 18,
13
- SNX: 18,
14
- UNI: 18,
15
- USDC: 6,
16
- USDT: 6,
17
- WBTC: 8,
18
- WETH: 18,
19
- YFI: 18,
20
- STETH: 18,
21
- wstETH: 18,
22
- CVX: 18,
23
- FRAX: 18,
24
- FXS: 18,
25
- LDO: 18,
26
- LUSD: 18,
27
- sUSD: 18,
28
- GUSD: 2,
29
- LQTY: 18,
30
- OHM: 9,
31
- MIM: 18,
32
- SPELL: 18,
33
- GMX: 18,
34
- ARB: 18,
35
- RDNT: 18,
36
- BAL: 18,
37
- MKR: 18,
38
- RPL: 18,
39
- APE: 18,
40
- "3Crv": 18,
41
- crvFRAX: 18,
42
- OHMFRAXBP: 18,
43
- steCRV: 18,
44
- crvPlain3andSUSD: 18,
45
- FRAX3CRV: 18,
46
- LUSD3CRV: 18,
47
- gusd3CRV: 18,
48
- MIM_3LP3CRV: 18,
49
- crvCRVETH: 18,
50
- crvCVXETH: 18,
51
- crvUSDTWBTCWETH: 18,
52
- LDOETH: 18,
53
- crvUSD: 18,
54
- crvUSDUSDC: 18,
55
- crvUSDUSDT: 18,
56
- crvUSDETHCRV: 18,
57
- crvUSDFRAX: 18,
58
- cvx3Crv: 18,
59
- cvxcrvFRAX: 18,
60
- cvxsteCRV: 18,
61
- cvxFRAX3CRV: 18,
62
- cvxLUSD3CRV: 18,
63
- cvxcrvPlain3andSUSD: 18,
64
- cvxgusd3CRV: 18,
65
- cvxOHMFRAXBP: 18,
66
- cvxMIM_3LP3CRV: 18,
67
- cvxcrvCRVETH: 18,
68
- cvxcrvCVXETH: 18,
69
- cvxcrvUSDTWBTCWETH: 18,
70
- cvxLDOETH: 18,
71
- stkcvx3Crv: 18,
72
- stkcvxcrvFRAX: 18,
73
- stkcvxsteCRV: 18,
74
- stkcvxFRAX3CRV: 18,
75
- stkcvxLUSD3CRV: 18,
76
- stkcvxcrvPlain3andSUSD: 18,
77
- stkcvxgusd3CRV: 18,
78
- stkcvxOHMFRAXBP: 18,
79
- stkcvxMIM_3LP3CRV: 18,
80
- stkcvxcrvCRVETH: 18,
81
- stkcvxcrvCVXETH: 18,
82
- stkcvxcrvUSDTWBTCWETH: 18,
83
- stkcvxLDOETH: 18,
84
- yvDAI: 18,
85
- yvUSDC: 6,
86
- yvWETH: 18,
87
- yvWBTC: 8,
88
- yvCurve_stETH: 18,
89
- yvCurve_FRAX: 18,
90
- dDAI: 18,
91
- dUSDC: 6,
92
- dWBTC: 8,
93
- dWETH: 18,
94
- dFRAX: 18,
95
- dwstETH: 18,
96
- GEAR: 18,
97
- "50OHM_50DAI": 18,
98
- "50OHM_50WETH": 18,
99
- OHM_wstETH: 18,
100
- USDC_DAI_USDT: 18,
101
- aDAI: 18,
102
- aUSDC: 6,
103
- aUSDT: 6,
104
- aWETH: 18,
105
- waDAI: 18,
106
- waUSDC: 6,
107
- waUSDT: 6,
108
- waWETH: 18,
109
- cDAI: 18,
110
- cUSDC: 6,
111
- cUSDT: 6,
112
- cLINK: 18,
113
- cETH: 18,
114
- SHIB: 18,
115
- };
@@ -1,16 +0,0 @@
1
- import type { TradeAction } from "../pathfinder/tradeTypes";
2
- import type { TokenBase } from "./token";
3
- import { TokenType } from "./tokenType";
4
- export type DieselTokenTypes = "dDAI" | "dUSDC" | "dWBTC" | "dWETH" | "dwstETH" | "dFRAX";
5
- export type GearboxToken = "GEAR";
6
- export type DieselTokenData = {
7
- symbol: DieselTokenTypes;
8
- type: TokenType.DIESEL_LP_TOKEN;
9
- } & TokenBase;
10
- export type GearboxTokenData = {
11
- symbol: GearboxToken;
12
- swapActions?: Array<TradeAction>;
13
- type: TokenType.GEAR_TOKEN;
14
- } & TokenBase;
15
- export declare const gearTokens: Record<DieselTokenTypes | GearboxToken, DieselTokenData | GearboxTokenData>;
16
- export declare const isDieselToken: (t: unknown) => t is DieselTokenTypes;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDieselToken = exports.gearTokens = void 0;
4
- const tokenType_1 = require("./tokenType");
5
- const dieselTokens = {
6
- // GEARBOX
7
- dDAI: {
8
- name: "dDAI",
9
- symbol: "dDAI",
10
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
11
- },
12
- dUSDC: {
13
- name: "dUSDC",
14
- symbol: "dUSDC",
15
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
16
- },
17
- dWBTC: {
18
- name: "dWBTC",
19
- symbol: "dWBTC",
20
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
21
- },
22
- dWETH: {
23
- name: "dWETH",
24
- symbol: "dWETH",
25
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
26
- },
27
- dwstETH: {
28
- name: "dwstETH",
29
- symbol: "dwstETH",
30
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
31
- },
32
- dFRAX: {
33
- name: "dFRAX",
34
- symbol: "dFRAX",
35
- type: tokenType_1.TokenType.DIESEL_LP_TOKEN,
36
- },
37
- };
38
- exports.gearTokens = {
39
- ...dieselTokens,
40
- GEAR: {
41
- name: "GEAR",
42
- symbol: "GEAR",
43
- type: tokenType_1.TokenType.GEAR_TOKEN,
44
- },
45
- };
46
- const isDieselToken = (t) => typeof t === "string" && !!dieselTokens[t];
47
- exports.isDieselToken = isDieselToken;
@@ -1,12 +0,0 @@
1
- import { TradeAction } from "../pathfinder/tradeTypes";
2
- import type { TokenBase } from "./token";
3
- import { TokenType } from "./tokenType";
4
- export type NormalToken = "1INCH" | "AAVE" | "COMP" | "CRV" | "DPI" | "FEI" | "LINK" | "SNX" | "UNI" | "USDT" | "USDC" | "DAI" | "WETH" | "WBTC" | "YFI" | "STETH" | "wstETH" | "CVX" | "FRAX" | "FXS" | "LDO" | "LUSD" | "sUSD" | "GUSD" | "LQTY" | "OHM" | "MIM" | "SPELL" | "GMX" | "ARB" | "RDNT" | "BAL" | "ARB" | "MKR" | "RPL" | "APE" | "SHIB" | "crvUSD";
5
- export type NormalTokenData = {
6
- symbol: NormalToken;
7
- type: TokenType.NORMAL_TOKEN;
8
- swapActions: Array<TradeAction>;
9
- lpActions?: Array<TradeAction>;
10
- } & TokenBase;
11
- export declare const normalTokens: Record<NormalToken, NormalTokenData>;
12
- export declare const isNormalToken: (t: unknown) => t is NormalToken;