@curvefi/api 2.69.11 → 2.69.13

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 (63) hide show
  1. package/lib/constants/abis/avaxcrypto/swap.json +1195 -0
  2. package/lib/constants/abis/avaxcrypto/zap.json +250 -0
  3. package/lib/constants/abis/factory-v2/MetaUSDGeist.json +932 -0
  4. package/lib/constants/chainIds.d.ts +1 -0
  5. package/lib/constants/chainIds.js +1 -0
  6. package/lib/constants/coins/aurora.d.ts +3 -0
  7. package/lib/constants/coins/aurora.js +9 -0
  8. package/lib/constants/coins/avalanche.d.ts +4 -0
  9. package/lib/constants/coins/avalanche.js +34 -0
  10. package/lib/constants/coins/celo.d.ts +3 -0
  11. package/lib/constants/coins/celo.js +9 -0
  12. package/lib/constants/coins/ethereum.js +2 -0
  13. package/lib/constants/coins/index.d.ts +10 -1
  14. package/lib/constants/coins/index.js +10 -1
  15. package/lib/constants/coins/kava.d.ts +3 -0
  16. package/lib/constants/coins/kava.js +9 -0
  17. package/lib/constants/coins/mantle.d.ts +2 -0
  18. package/lib/constants/coins/mantle.js +5 -0
  19. package/lib/constants/coins/moonbeam.d.ts +3 -0
  20. package/lib/constants/coins/moonbeam.js +9 -0
  21. package/lib/constants/coins/sonic.d.ts +2 -0
  22. package/lib/constants/coins/sonic.js +5 -0
  23. package/lib/constants/coins/xlayer.d.ts +2 -0
  24. package/lib/constants/coins/xlayer.js +5 -0
  25. package/lib/constants/coins/zksync.d.ts +2 -0
  26. package/lib/constants/coins/zksync.js +6 -0
  27. package/lib/constants/factory/crypto.d.ts +45 -0
  28. package/lib/constants/factory/crypto.js +72 -0
  29. package/lib/constants/factory/stable.d.ts +9 -0
  30. package/lib/constants/factory/stable.js +119 -0
  31. package/lib/constants/network_constants.js +258 -2
  32. package/lib/constants/pools/aurora.d.ts +2 -0
  33. package/lib/constants/pools/aurora.js +31 -0
  34. package/lib/constants/pools/avalanche.d.ts +2 -0
  35. package/lib/constants/pools/avalanche.js +166 -0
  36. package/lib/constants/pools/celo.d.ts +2 -0
  37. package/lib/constants/pools/celo.js +2 -0
  38. package/lib/constants/pools/index.d.ts +10 -1
  39. package/lib/constants/pools/index.js +10 -1
  40. package/lib/constants/pools/kava.d.ts +2 -0
  41. package/lib/constants/pools/kava.js +2 -0
  42. package/lib/constants/pools/mantle.d.ts +2 -0
  43. package/lib/constants/pools/mantle.js +2 -0
  44. package/lib/constants/pools/moonbeam.d.ts +2 -0
  45. package/lib/constants/pools/moonbeam.js +31 -0
  46. package/lib/constants/pools/sonic.d.ts +2 -0
  47. package/lib/constants/pools/sonic.js +2 -0
  48. package/lib/constants/pools/xlayer.d.ts +2 -0
  49. package/lib/constants/pools/xlayer.js +2 -0
  50. package/lib/constants/pools/zksync.d.ts +2 -0
  51. package/lib/constants/pools/zksync.js +2 -0
  52. package/lib/constants/rewardNetworks.js +1 -1
  53. package/lib/constants/volumeNetworks.d.ts +2 -0
  54. package/lib/constants/volumeNetworks.js +3 -1
  55. package/lib/curve.js +4 -1
  56. package/lib/external-api.d.ts +2 -0
  57. package/lib/external-api.js +41 -0
  58. package/lib/pools/PoolTemplate.js +2 -0
  59. package/lib/pools/subClasses/statsPool.js +2 -2
  60. package/lib/pools/utils.js +7 -2
  61. package/lib/route-graph.worker.js +34 -2
  62. package/lib/utils.js +55 -3
  63. package/package.json +1 -1
@@ -0,0 +1,250 @@
1
+ [
2
+ {
3
+ "stateMutability": "nonpayable",
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "_pool",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "name": "_base_pool",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "outputs": []
16
+ },
17
+ {
18
+ "stateMutability": "payable",
19
+ "type": "fallback"
20
+ },
21
+ {
22
+ "stateMutability": "payable",
23
+ "type": "function",
24
+ "name": "add_liquidity",
25
+ "inputs": [
26
+ {
27
+ "name": "_amounts",
28
+ "type": "uint256[4]"
29
+ },
30
+ {
31
+ "name": "_min_mint_amount",
32
+ "type": "uint256"
33
+ },
34
+ {
35
+ "name": "use_eth",
36
+ "type": "bool"
37
+ }
38
+ ],
39
+ "outputs": []
40
+ },
41
+ {
42
+ "stateMutability": "payable",
43
+ "type": "function",
44
+ "name": "exchange_underlying",
45
+ "inputs": [
46
+ {
47
+ "name": "i",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "name": "j",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "name": "_dx",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "name": "_min_dy",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "name": "use_eth",
64
+ "type": "bool"
65
+ }
66
+ ],
67
+ "outputs": []
68
+ },
69
+ {
70
+ "stateMutability": "nonpayable",
71
+ "type": "function",
72
+ "name": "remove_liquidity",
73
+ "inputs": [
74
+ {
75
+ "name": "_amount",
76
+ "type": "uint256"
77
+ },
78
+ {
79
+ "name": "_min_amounts",
80
+ "type": "uint256[4]"
81
+ },
82
+ {
83
+ "name": "use_eth",
84
+ "type": "bool"
85
+ }
86
+ ],
87
+ "outputs": []
88
+ },
89
+ {
90
+ "stateMutability": "nonpayable",
91
+ "type": "function",
92
+ "name": "remove_liquidity_one_coin",
93
+ "inputs": [
94
+ {
95
+ "name": "_token_amount",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "name": "i",
100
+ "type": "uint256"
101
+ },
102
+ {
103
+ "name": "_min_amount",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "name": "use_eth",
108
+ "type": "bool"
109
+ }
110
+ ],
111
+ "outputs": []
112
+ },
113
+ {
114
+ "stateMutability": "view",
115
+ "type": "function",
116
+ "name": "get_dy_underlying",
117
+ "inputs": [
118
+ {
119
+ "name": "i",
120
+ "type": "uint256"
121
+ },
122
+ {
123
+ "name": "j",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "name": "_dx",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "outputs": [
132
+ {
133
+ "name": "",
134
+ "type": "uint256"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "stateMutability": "view",
140
+ "type": "function",
141
+ "name": "calc_token_amount",
142
+ "inputs": [
143
+ {
144
+ "name": "_amounts",
145
+ "type": "uint256[4]"
146
+ },
147
+ {
148
+ "name": "_is_deposit",
149
+ "type": "bool"
150
+ }
151
+ ],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "uint256"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "stateMutability": "view",
161
+ "type": "function",
162
+ "name": "calc_withdraw_one_coin",
163
+ "inputs": [
164
+ {
165
+ "name": "token_amount",
166
+ "type": "uint256"
167
+ },
168
+ {
169
+ "name": "i",
170
+ "type": "uint256"
171
+ }
172
+ ],
173
+ "outputs": [
174
+ {
175
+ "name": "",
176
+ "type": "uint256"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "stateMutability": "view",
182
+ "type": "function",
183
+ "name": "coins",
184
+ "inputs": [
185
+ {
186
+ "name": "arg0",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "outputs": [
191
+ {
192
+ "name": "",
193
+ "type": "address"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "stateMutability": "view",
199
+ "type": "function",
200
+ "name": "underlying_coins",
201
+ "inputs": [
202
+ {
203
+ "name": "arg0",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "outputs": [
208
+ {
209
+ "name": "",
210
+ "type": "address"
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ "stateMutability": "view",
216
+ "type": "function",
217
+ "name": "pool",
218
+ "inputs": [],
219
+ "outputs": [
220
+ {
221
+ "name": "",
222
+ "type": "address"
223
+ }
224
+ ]
225
+ },
226
+ {
227
+ "stateMutability": "view",
228
+ "type": "function",
229
+ "name": "base_pool",
230
+ "inputs": [],
231
+ "outputs": [
232
+ {
233
+ "name": "",
234
+ "type": "address"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "stateMutability": "view",
240
+ "type": "function",
241
+ "name": "token",
242
+ "inputs": [],
243
+ "outputs": [
244
+ {
245
+ "name": "",
246
+ "type": "address"
247
+ }
248
+ ]
249
+ }
250
+ ]