@curvefi/api 2.69.8 → 2.69.10

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 (71) hide show
  1. package/lib/constants/chainIds.d.ts +0 -1
  2. package/lib/constants/chainIds.js +0 -1
  3. package/lib/constants/coins/index.d.ts +1 -11
  4. package/lib/constants/coins/index.js +1 -11
  5. package/lib/constants/factory/crypto.d.ts +0 -50
  6. package/lib/constants/factory/crypto.js +0 -80
  7. package/lib/constants/factory/stable.d.ts +0 -13
  8. package/lib/constants/factory/stable.js +0 -139
  9. package/lib/constants/network_constants.js +2 -292
  10. package/lib/constants/pools/index.d.ts +1 -11
  11. package/lib/constants/pools/index.js +1 -11
  12. package/lib/constants/rewardNetworks.js +1 -1
  13. package/lib/constants/volumeNetworks.d.ts +0 -2
  14. package/lib/constants/volumeNetworks.js +1 -3
  15. package/lib/curve.js +1 -4
  16. package/lib/external-api.d.ts +0 -2
  17. package/lib/external-api.js +0 -41
  18. package/lib/pools/PoolTemplate.js +0 -2
  19. package/lib/pools/subClasses/statsPool.js +2 -2
  20. package/lib/pools/utils.js +2 -12
  21. package/lib/route-graph.worker.js +2 -4
  22. package/lib/utils.js +3 -57
  23. package/package.json +1 -1
  24. package/lib/constants/abis/avaxcrypto/swap.json +0 -1195
  25. package/lib/constants/abis/avaxcrypto/zap.json +0 -250
  26. package/lib/constants/abis/factory-v2/DepositZapMetaUsd2Fantom.json +0 -197
  27. package/lib/constants/abis/factory-v2/MetaUSDGeist.json +0 -932
  28. package/lib/constants/abis/fusdt/swap.json +0 -1221
  29. package/lib/constants/abis/fusdt/zap.json +0 -215
  30. package/lib/constants/abis/ren-fantom/swap.json +0 -868
  31. package/lib/constants/abis/tricrypto/swapNoZap.json +0 -1250
  32. package/lib/constants/coins/aurora.d.ts +0 -3
  33. package/lib/constants/coins/aurora.js +0 -9
  34. package/lib/constants/coins/avalanche.d.ts +0 -4
  35. package/lib/constants/coins/avalanche.js +0 -34
  36. package/lib/constants/coins/celo.d.ts +0 -3
  37. package/lib/constants/coins/celo.js +0 -9
  38. package/lib/constants/coins/fantom.d.ts +0 -5
  39. package/lib/constants/coins/fantom.js +0 -31
  40. package/lib/constants/coins/kava.d.ts +0 -3
  41. package/lib/constants/coins/kava.js +0 -9
  42. package/lib/constants/coins/mantle.d.ts +0 -2
  43. package/lib/constants/coins/mantle.js +0 -5
  44. package/lib/constants/coins/moonbeam.d.ts +0 -3
  45. package/lib/constants/coins/moonbeam.js +0 -9
  46. package/lib/constants/coins/sonic.d.ts +0 -2
  47. package/lib/constants/coins/sonic.js +0 -5
  48. package/lib/constants/coins/xlayer.d.ts +0 -2
  49. package/lib/constants/coins/xlayer.js +0 -5
  50. package/lib/constants/coins/zksync.d.ts +0 -2
  51. package/lib/constants/coins/zksync.js +0 -6
  52. package/lib/constants/pools/aurora.d.ts +0 -2
  53. package/lib/constants/pools/aurora.js +0 -31
  54. package/lib/constants/pools/avalanche.d.ts +0 -2
  55. package/lib/constants/pools/avalanche.js +0 -166
  56. package/lib/constants/pools/celo.d.ts +0 -2
  57. package/lib/constants/pools/celo.js +0 -2
  58. package/lib/constants/pools/fantom.d.ts +0 -2
  59. package/lib/constants/pools/fantom.js +0 -185
  60. package/lib/constants/pools/kava.d.ts +0 -2
  61. package/lib/constants/pools/kava.js +0 -2
  62. package/lib/constants/pools/mantle.d.ts +0 -2
  63. package/lib/constants/pools/mantle.js +0 -2
  64. package/lib/constants/pools/moonbeam.d.ts +0 -2
  65. package/lib/constants/pools/moonbeam.js +0 -31
  66. package/lib/constants/pools/sonic.d.ts +0 -2
  67. package/lib/constants/pools/sonic.js +0 -2
  68. package/lib/constants/pools/xlayer.d.ts +0 -2
  69. package/lib/constants/pools/xlayer.js +0 -2
  70. package/lib/constants/pools/zksync.d.ts +0 -2
  71. package/lib/constants/pools/zksync.js +0 -2
@@ -1,250 +0,0 @@
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
- ]
@@ -1,197 +0,0 @@
1
- [
2
- {
3
- "stateMutability": "nonpayable",
4
- "type": "constructor",
5
- "inputs": [],
6
- "outputs": []
7
- },
8
- {
9
- "stateMutability": "nonpayable",
10
- "type": "function",
11
- "name": "add_liquidity",
12
- "inputs": [
13
- {
14
- "name": "_pool",
15
- "type": "address"
16
- },
17
- {
18
- "name": "_deposit_amounts",
19
- "type": "uint256[4]"
20
- },
21
- {
22
- "name": "_min_mint_amount",
23
- "type": "uint256"
24
- }
25
- ],
26
- "outputs": [
27
- {
28
- "name": "",
29
- "type": "uint256"
30
- }
31
- ]
32
- },
33
- {
34
- "stateMutability": "nonpayable",
35
- "type": "function",
36
- "name": "remove_liquidity",
37
- "inputs": [
38
- {
39
- "name": "_pool",
40
- "type": "address"
41
- },
42
- {
43
- "name": "_burn_amount",
44
- "type": "uint256"
45
- },
46
- {
47
- "name": "_min_amounts",
48
- "type": "uint256[4]"
49
- }
50
- ],
51
- "outputs": [
52
- {
53
- "name": "",
54
- "type": "uint256[4]"
55
- }
56
- ]
57
- },
58
- {
59
- "stateMutability": "nonpayable",
60
- "type": "function",
61
- "name": "remove_liquidity_one_coin",
62
- "inputs": [
63
- {
64
- "name": "_pool",
65
- "type": "address"
66
- },
67
- {
68
- "name": "_burn_amount",
69
- "type": "uint256"
70
- },
71
- {
72
- "name": "i",
73
- "type": "int128"
74
- },
75
- {
76
- "name": "_min_amount",
77
- "type": "uint256"
78
- }
79
- ],
80
- "outputs": [
81
- {
82
- "name": "",
83
- "type": "uint256"
84
- }
85
- ]
86
- },
87
- {
88
- "stateMutability": "nonpayable",
89
- "type": "function",
90
- "name": "remove_liquidity_imbalance",
91
- "inputs": [
92
- {
93
- "name": "_pool",
94
- "type": "address"
95
- },
96
- {
97
- "name": "_amounts",
98
- "type": "uint256[4]"
99
- },
100
- {
101
- "name": "_max_burn_amount",
102
- "type": "uint256"
103
- }
104
- ],
105
- "outputs": [
106
- {
107
- "name": "",
108
- "type": "uint256"
109
- }
110
- ]
111
- },
112
- {
113
- "stateMutability": "view",
114
- "type": "function",
115
- "name": "calc_withdraw_one_coin",
116
- "inputs": [
117
- {
118
- "name": "_pool",
119
- "type": "address"
120
- },
121
- {
122
- "name": "_token_amount",
123
- "type": "uint256"
124
- },
125
- {
126
- "name": "i",
127
- "type": "int128"
128
- }
129
- ],
130
- "outputs": [
131
- {
132
- "name": "",
133
- "type": "uint256"
134
- }
135
- ],
136
- "gas": "5753"
137
- },
138
- {
139
- "stateMutability": "view",
140
- "type": "function",
141
- "name": "calc_token_amount",
142
- "inputs": [
143
- {
144
- "name": "_pool",
145
- "type": "address"
146
- },
147
- {
148
- "name": "_amounts",
149
- "type": "uint256[4]"
150
- },
151
- {
152
- "name": "_is_deposit",
153
- "type": "bool"
154
- }
155
- ],
156
- "outputs": [
157
- {
158
- "name": "",
159
- "type": "uint256"
160
- }
161
- ],
162
- "gas": "6666"
163
- },
164
- {
165
- "stateMutability": "nonpayable",
166
- "type": "function",
167
- "name": "exchange_underlying",
168
- "inputs": [
169
- {
170
- "name": "_pool",
171
- "type": "address"
172
- },
173
- {
174
- "name": "_i",
175
- "type": "int128"
176
- },
177
- {
178
- "name": "_j",
179
- "type": "int128"
180
- },
181
- {
182
- "name": "_dx",
183
- "type": "uint256"
184
- },
185
- {
186
- "name": "_min_dy",
187
- "type": "uint256"
188
- }
189
- ],
190
- "outputs": [
191
- {
192
- "name": "",
193
- "type": "uint256"
194
- }
195
- ]
196
- }
197
- ]