@curvefi/api 2.4.3 → 2.6.0
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/lib/constants/abis/eursusd2/swap.json +1199 -0
- package/lib/constants/abis/eursusd2/zap.json +270 -0
- package/lib/constants/abis/factory-v2/DepositZapFantom.json +164 -0
- package/lib/constants/abis/factory-v2/DepositZapMetaUsd2Fantom.json +197 -0
- package/lib/constants/abis/factory-v2/MetaUSDGeist.json +932 -0
- package/lib/constants/abis/fusdt/swap.json +1221 -0
- package/lib/constants/abis/fusdt/zap.json +215 -0
- package/lib/constants/abis/gauge_child.json +0 -100
- package/lib/constants/abis/gauge_rewards_only.json +649 -0
- package/lib/constants/abis/ren-arbitrum/swap.json +1069 -0
- package/lib/constants/abis/ren-fantom/swap.json +868 -0
- package/lib/constants/abis/tricrypto/swapNoZap.json +1250 -0
- package/lib/constants/aliases.d.ts +2 -0
- package/lib/constants/aliases.js +25 -1
- package/lib/constants/coins/arbitrum.d.ts +7 -0
- package/lib/constants/coins/arbitrum.js +23 -0
- package/lib/constants/coins/fantom.d.ts +7 -0
- package/lib/constants/coins/fantom.js +36 -0
- package/lib/constants/pools/arbitrum.d.ts +4 -0
- package/lib/constants/pools/arbitrum.js +125 -0
- package/lib/constants/pools/fantom.d.ts +4 -0
- package/lib/constants/pools/fantom.js +191 -0
- package/lib/constants/pools/index.d.ts +3 -1
- package/lib/constants/pools/index.js +5 -1
- package/lib/constants/pools/polygon.js +30 -0
- package/lib/curve.js +42 -10
- package/lib/factory/common.js +31 -0
- package/lib/factory/constants.d.ts +6 -0
- package/lib/factory/constants.js +85 -3
- package/lib/factory/factory-crypto.js +4 -0
- package/lib/factory/factory.js +6 -0
- package/lib/pools/PoolTemplate.d.ts +2 -1
- package/lib/pools/PoolTemplate.js +30 -25
- package/lib/pools/poolConstructor.js +3 -3
- package/lib/router.js +6 -6
- package/lib/utils.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,215 @@
|
|
|
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": "nonpayable",
|
|
19
|
+
"type": "function",
|
|
20
|
+
"name": "add_liquidity",
|
|
21
|
+
"inputs": [
|
|
22
|
+
{
|
|
23
|
+
"name": "_amounts",
|
|
24
|
+
"type": "uint256[3]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "_min_mint_amount",
|
|
28
|
+
"type": "uint256"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"outputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"gas": 25605
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"stateMutability": "nonpayable",
|
|
41
|
+
"type": "function",
|
|
42
|
+
"name": "remove_liquidity",
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"name": "_amount",
|
|
46
|
+
"type": "uint256"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "_min_amounts",
|
|
50
|
+
"type": "uint256[3]"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"name": "",
|
|
56
|
+
"type": "uint256[3]"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"gas": 26803
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"stateMutability": "nonpayable",
|
|
63
|
+
"type": "function",
|
|
64
|
+
"name": "remove_liquidity_one_coin",
|
|
65
|
+
"inputs": [
|
|
66
|
+
{
|
|
67
|
+
"name": "_token_amount",
|
|
68
|
+
"type": "uint256"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "i",
|
|
72
|
+
"type": "int128"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "_min_amount",
|
|
76
|
+
"type": "uint256"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"name": "",
|
|
82
|
+
"type": "uint256"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"gas": 14494
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"stateMutability": "nonpayable",
|
|
89
|
+
"type": "function",
|
|
90
|
+
"name": "remove_liquidity_imbalance",
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"name": "_amounts",
|
|
94
|
+
"type": "uint256[3]"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "_max_burn_amount",
|
|
98
|
+
"type": "uint256"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"outputs": [
|
|
102
|
+
{
|
|
103
|
+
"name": "",
|
|
104
|
+
"type": "uint256"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"gas": 32024
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"stateMutability": "view",
|
|
111
|
+
"type": "function",
|
|
112
|
+
"name": "calc_withdraw_one_coin",
|
|
113
|
+
"inputs": [
|
|
114
|
+
{
|
|
115
|
+
"name": "_token_amount",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "i",
|
|
120
|
+
"type": "int128"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"outputs": [
|
|
124
|
+
{
|
|
125
|
+
"name": "",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"gas": 3174
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"stateMutability": "view",
|
|
133
|
+
"type": "function",
|
|
134
|
+
"name": "calc_token_amount",
|
|
135
|
+
"inputs": [
|
|
136
|
+
{
|
|
137
|
+
"name": "_amounts",
|
|
138
|
+
"type": "uint256[3]"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "_is_deposit",
|
|
142
|
+
"type": "bool"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"outputs": [
|
|
146
|
+
{
|
|
147
|
+
"name": "",
|
|
148
|
+
"type": "uint256"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"gas": 3998
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"stateMutability": "view",
|
|
155
|
+
"type": "function",
|
|
156
|
+
"name": "pool",
|
|
157
|
+
"inputs": [],
|
|
158
|
+
"outputs": [
|
|
159
|
+
{
|
|
160
|
+
"name": "",
|
|
161
|
+
"type": "address"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"gas": 1268
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"stateMutability": "view",
|
|
168
|
+
"type": "function",
|
|
169
|
+
"name": "base_pool",
|
|
170
|
+
"inputs": [],
|
|
171
|
+
"outputs": [
|
|
172
|
+
{
|
|
173
|
+
"name": "",
|
|
174
|
+
"type": "address"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"gas": 1298
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"stateMutability": "view",
|
|
181
|
+
"type": "function",
|
|
182
|
+
"name": "coins",
|
|
183
|
+
"inputs": [
|
|
184
|
+
{
|
|
185
|
+
"name": "arg0",
|
|
186
|
+
"type": "uint256"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"outputs": [
|
|
190
|
+
{
|
|
191
|
+
"name": "",
|
|
192
|
+
"type": "address"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"gas": 1437
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"stateMutability": "view",
|
|
199
|
+
"type": "function",
|
|
200
|
+
"name": "base_coins",
|
|
201
|
+
"inputs": [
|
|
202
|
+
{
|
|
203
|
+
"name": "arg0",
|
|
204
|
+
"type": "uint256"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"outputs": [
|
|
208
|
+
{
|
|
209
|
+
"name": "",
|
|
210
|
+
"type": "address"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"gas": 1467
|
|
214
|
+
}
|
|
215
|
+
]
|
|
@@ -136,70 +136,6 @@
|
|
|
136
136
|
],
|
|
137
137
|
"outputs": []
|
|
138
138
|
},
|
|
139
|
-
{
|
|
140
|
-
"stateMutability": "nonpayable",
|
|
141
|
-
"type": "function",
|
|
142
|
-
"name": "deposit",
|
|
143
|
-
"inputs": [
|
|
144
|
-
{
|
|
145
|
-
"name": "_value",
|
|
146
|
-
"type": "uint256"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "_user",
|
|
150
|
-
"type": "address"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"outputs": []
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"stateMutability": "nonpayable",
|
|
157
|
-
"type": "function",
|
|
158
|
-
"name": "deposit",
|
|
159
|
-
"inputs": [
|
|
160
|
-
{
|
|
161
|
-
"name": "_value",
|
|
162
|
-
"type": "uint256"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"name": "_user",
|
|
166
|
-
"type": "address"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "_claim_rewards",
|
|
170
|
-
"type": "bool"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"outputs": []
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"stateMutability": "nonpayable",
|
|
177
|
-
"type": "function",
|
|
178
|
-
"name": "withdraw",
|
|
179
|
-
"inputs": [
|
|
180
|
-
{
|
|
181
|
-
"name": "_value",
|
|
182
|
-
"type": "uint256"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"outputs": []
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"stateMutability": "nonpayable",
|
|
189
|
-
"type": "function",
|
|
190
|
-
"name": "withdraw",
|
|
191
|
-
"inputs": [
|
|
192
|
-
{
|
|
193
|
-
"name": "_value",
|
|
194
|
-
"type": "uint256"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "_user",
|
|
198
|
-
"type": "address"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"outputs": []
|
|
202
|
-
},
|
|
203
139
|
{
|
|
204
140
|
"stateMutability": "nonpayable",
|
|
205
141
|
"type": "function",
|
|
@@ -208,14 +144,6 @@
|
|
|
208
144
|
{
|
|
209
145
|
"name": "_value",
|
|
210
146
|
"type": "uint256"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "_user",
|
|
214
|
-
"type": "address"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "_claim_rewards",
|
|
218
|
-
"type": "bool"
|
|
219
147
|
}
|
|
220
148
|
],
|
|
221
149
|
"outputs": []
|
|
@@ -465,34 +393,6 @@
|
|
|
465
393
|
"inputs": [],
|
|
466
394
|
"outputs": []
|
|
467
395
|
},
|
|
468
|
-
{
|
|
469
|
-
"stateMutability": "nonpayable",
|
|
470
|
-
"type": "function",
|
|
471
|
-
"name": "claim_rewards",
|
|
472
|
-
"inputs": [
|
|
473
|
-
{
|
|
474
|
-
"name": "_addr",
|
|
475
|
-
"type": "address"
|
|
476
|
-
}
|
|
477
|
-
],
|
|
478
|
-
"outputs": []
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"stateMutability": "nonpayable",
|
|
482
|
-
"type": "function",
|
|
483
|
-
"name": "claim_rewards",
|
|
484
|
-
"inputs": [
|
|
485
|
-
{
|
|
486
|
-
"name": "_addr",
|
|
487
|
-
"type": "address"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"name": "_receiver",
|
|
491
|
-
"type": "address"
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"outputs": []
|
|
495
|
-
},
|
|
496
396
|
{
|
|
497
397
|
"stateMutability": "nonpayable",
|
|
498
398
|
"type": "function",
|