@curvefi/api 1.9.1 → 1.13.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.
@@ -0,0 +1,257 @@
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
+ "name": "constructor"
17
+ },
18
+ {
19
+ "stateMutability": "view",
20
+ "type": "function",
21
+ "name": "price_oracle",
22
+ "inputs": [],
23
+ "outputs": [
24
+ {
25
+ "name": "",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "gas": 4244
30
+ },
31
+ {
32
+ "stateMutability": "nonpayable",
33
+ "type": "function",
34
+ "name": "add_liquidity",
35
+ "inputs": [
36
+ {
37
+ "name": "_amounts",
38
+ "type": "uint256[4]"
39
+ },
40
+ {
41
+ "name": "_min_mint_amount",
42
+ "type": "uint256"
43
+ }
44
+ ],
45
+ "outputs": [],
46
+ "gas": 26265
47
+ },
48
+ {
49
+ "stateMutability": "nonpayable",
50
+ "type": "function",
51
+ "name": "exchange_underlying",
52
+ "inputs": [
53
+ {
54
+ "name": "i",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "name": "j",
59
+ "type": "uint256"
60
+ },
61
+ {
62
+ "name": "_dx",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "name": "_min_dy",
67
+ "type": "uint256"
68
+ }
69
+ ],
70
+ "outputs": [
71
+ {
72
+ "name": "",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "gas": 20845
77
+ },
78
+ {
79
+ "stateMutability": "nonpayable",
80
+ "type": "function",
81
+ "name": "remove_liquidity",
82
+ "inputs": [
83
+ {
84
+ "name": "_amount",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "name": "_min_amounts",
89
+ "type": "uint256[4]"
90
+ }
91
+ ],
92
+ "outputs": [],
93
+ "gas": 37086
94
+ },
95
+ {
96
+ "stateMutability": "nonpayable",
97
+ "type": "function",
98
+ "name": "remove_liquidity_one_coin",
99
+ "inputs": [
100
+ {
101
+ "name": "_token_amount",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "name": "i",
106
+ "type": "uint256"
107
+ },
108
+ {
109
+ "name": "_min_amount",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "outputs": [],
114
+ "gas": 13300
115
+ },
116
+ {
117
+ "stateMutability": "view",
118
+ "type": "function",
119
+ "name": "get_dy_underlying",
120
+ "inputs": [
121
+ {
122
+ "name": "i",
123
+ "type": "uint256"
124
+ },
125
+ {
126
+ "name": "j",
127
+ "type": "uint256"
128
+ },
129
+ {
130
+ "name": "_dx",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "outputs": [
135
+ {
136
+ "name": "",
137
+ "type": "uint256"
138
+ }
139
+ ],
140
+ "gas": 9447
141
+ },
142
+ {
143
+ "stateMutability": "view",
144
+ "type": "function",
145
+ "name": "calc_token_amount",
146
+ "inputs": [
147
+ {
148
+ "name": "_amounts",
149
+ "type": "uint256[4]"
150
+ }
151
+ ],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "gas": 4967
159
+ },
160
+ {
161
+ "stateMutability": "view",
162
+ "type": "function",
163
+ "name": "calc_withdraw_one_coin",
164
+ "inputs": [
165
+ {
166
+ "name": "token_amount",
167
+ "type": "uint256"
168
+ },
169
+ {
170
+ "name": "i",
171
+ "type": "uint256"
172
+ }
173
+ ],
174
+ "outputs": [
175
+ {
176
+ "name": "",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "gas": 6555
181
+ },
182
+ {
183
+ "stateMutability": "view",
184
+ "type": "function",
185
+ "name": "coins",
186
+ "inputs": [
187
+ {
188
+ "name": "arg0",
189
+ "type": "uint256"
190
+ }
191
+ ],
192
+ "outputs": [
193
+ {
194
+ "name": "",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "gas": 1505
199
+ },
200
+ {
201
+ "stateMutability": "view",
202
+ "type": "function",
203
+ "name": "underlying_coins",
204
+ "inputs": [
205
+ {
206
+ "name": "arg0",
207
+ "type": "uint256"
208
+ }
209
+ ],
210
+ "outputs": [
211
+ {
212
+ "name": "",
213
+ "type": "address"
214
+ }
215
+ ],
216
+ "gas": 1541
217
+ },
218
+ {
219
+ "stateMutability": "view",
220
+ "type": "function",
221
+ "name": "pool",
222
+ "inputs": [],
223
+ "outputs": [
224
+ {
225
+ "name": "",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "gas": 1526
230
+ },
231
+ {
232
+ "stateMutability": "view",
233
+ "type": "function",
234
+ "name": "base_pool",
235
+ "inputs": [],
236
+ "outputs": [
237
+ {
238
+ "name": "",
239
+ "type": "address"
240
+ }
241
+ ],
242
+ "gas": 1556
243
+ },
244
+ {
245
+ "stateMutability": "view",
246
+ "type": "function",
247
+ "name": "token",
248
+ "inputs": [],
249
+ "outputs": [
250
+ {
251
+ "name": "",
252
+ "type": "address"
253
+ }
254
+ ],
255
+ "gas": 1586
256
+ }
257
+ ]