@curvefi/api 1.14.0 → 1.15.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.
Files changed (31) hide show
  1. package/README.md +30 -0
  2. package/lib/constants/abis/abis-ethereum.js +78 -16
  3. package/lib/constants/abis/abis-polygon.js +13 -5
  4. package/lib/constants/abis/json/aave/rewards.json +107 -0
  5. package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
  6. package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
  7. package/lib/constants/abis/json/crveth/swap.json +61 -61
  8. package/lib/constants/abis/json/eurt/swap.json +29 -29
  9. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  10. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  11. package/lib/constants/abis/json/gauge.json +1 -1
  12. package/lib/constants/abis/json/gauge_factory.json +879 -0
  13. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  14. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  15. package/lib/constants/abis/json/gauge_v2.json +942 -0
  16. package/lib/constants/abis/json/gauge_v3.json +954 -0
  17. package/lib/constants/abis/json/gauge_v4.json +913 -0
  18. package/lib/constants/abis/json/minter.json +165 -0
  19. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  20. package/lib/constants/abis/json/reth/swap.json +38 -38
  21. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  22. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  23. package/lib/constants/aliases.d.ts +2 -0
  24. package/lib/constants/aliases.js +2 -0
  25. package/lib/constants/coins-polygon.js +3 -2
  26. package/lib/curve.d.ts +1 -0
  27. package/lib/curve.js +43 -23
  28. package/lib/interfaces.d.ts +7 -1
  29. package/lib/pools.d.ts +13 -2
  30. package/lib/pools.js +187 -25
  31. package/package.json +1 -1
@@ -0,0 +1,590 @@
1
+ [
2
+ {
3
+ "name": "Deposit",
4
+ "inputs": [
5
+ {
6
+ "type": "address",
7
+ "name": "provider",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "type": "uint256",
12
+ "name": "value",
13
+ "indexed": false
14
+ }
15
+ ],
16
+ "anonymous": false,
17
+ "type": "event"
18
+ },
19
+ {
20
+ "name": "Withdraw",
21
+ "inputs": [
22
+ {
23
+ "type": "address",
24
+ "name": "provider",
25
+ "indexed": true
26
+ },
27
+ {
28
+ "type": "uint256",
29
+ "name": "value",
30
+ "indexed": false
31
+ }
32
+ ],
33
+ "anonymous": false,
34
+ "type": "event"
35
+ },
36
+ {
37
+ "name": "UpdateLiquidityLimit",
38
+ "inputs": [
39
+ {
40
+ "type": "address",
41
+ "name": "user",
42
+ "indexed": false
43
+ },
44
+ {
45
+ "type": "uint256",
46
+ "name": "original_balance",
47
+ "indexed": false
48
+ },
49
+ {
50
+ "type": "uint256",
51
+ "name": "original_supply",
52
+ "indexed": false
53
+ },
54
+ {
55
+ "type": "uint256",
56
+ "name": "working_balance",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "type": "uint256",
61
+ "name": "working_supply",
62
+ "indexed": false
63
+ }
64
+ ],
65
+ "anonymous": false,
66
+ "type": "event"
67
+ },
68
+ {
69
+ "outputs": [],
70
+ "inputs": [
71
+ {
72
+ "type": "address",
73
+ "name": "lp_addr"
74
+ },
75
+ {
76
+ "type": "address",
77
+ "name": "_minter"
78
+ },
79
+ {
80
+ "type": "address",
81
+ "name": "_reward_contract"
82
+ },
83
+ {
84
+ "type": "address",
85
+ "name": "_rewarded_token"
86
+ }
87
+ ],
88
+ "stateMutability": "nonpayable",
89
+ "type": "constructor"
90
+ },
91
+ {
92
+ "name": "user_checkpoint",
93
+ "outputs": [
94
+ {
95
+ "type": "bool",
96
+ "name": ""
97
+ }
98
+ ],
99
+ "inputs": [
100
+ {
101
+ "type": "address",
102
+ "name": "addr"
103
+ }
104
+ ],
105
+ "stateMutability": "nonpayable",
106
+ "type": "function",
107
+ "gas": "2311984"
108
+ },
109
+ {
110
+ "name": "claimable_tokens",
111
+ "outputs": [
112
+ {
113
+ "type": "uint256",
114
+ "name": ""
115
+ }
116
+ ],
117
+ "inputs": [
118
+ {
119
+ "type": "address",
120
+ "name": "addr"
121
+ }
122
+ ],
123
+ "stateMutability": "view",
124
+ "type": "function",
125
+ "gas": "2231138"
126
+ },
127
+ {
128
+ "name": "claimable_reward",
129
+ "outputs": [
130
+ {
131
+ "type": "uint256",
132
+ "name": ""
133
+ }
134
+ ],
135
+ "inputs": [
136
+ {
137
+ "type": "address",
138
+ "name": "addr"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function",
143
+ "gas": "7300"
144
+ },
145
+ {
146
+ "name": "kick",
147
+ "outputs": [],
148
+ "inputs": [
149
+ {
150
+ "type": "address",
151
+ "name": "addr"
152
+ }
153
+ ],
154
+ "stateMutability": "nonpayable",
155
+ "type": "function",
156
+ "gas": "2317383"
157
+ },
158
+ {
159
+ "name": "set_approve_deposit",
160
+ "outputs": [],
161
+ "inputs": [
162
+ {
163
+ "type": "address",
164
+ "name": "addr"
165
+ },
166
+ {
167
+ "type": "bool",
168
+ "name": "can_deposit"
169
+ }
170
+ ],
171
+ "stateMutability": "nonpayable",
172
+ "type": "function",
173
+ "gas": "35826"
174
+ },
175
+ {
176
+ "name": "deposit",
177
+ "outputs": [],
178
+ "inputs": [
179
+ {
180
+ "type": "uint256",
181
+ "name": "_value"
182
+ }
183
+ ],
184
+ "stateMutability": "nonpayable",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "name": "withdraw",
189
+ "outputs": [],
190
+ "inputs": [
191
+ {
192
+ "type": "uint256",
193
+ "name": "_value"
194
+ }
195
+ ],
196
+ "stateMutability": "nonpayable",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "name": "claim_rewards",
201
+ "outputs": [],
202
+ "inputs": [],
203
+ "stateMutability": "nonpayable",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "name": "integrate_checkpoint",
208
+ "outputs": [
209
+ {
210
+ "type": "uint256",
211
+ "name": ""
212
+ }
213
+ ],
214
+ "inputs": [],
215
+ "stateMutability": "view",
216
+ "type": "function",
217
+ "gas": "2387"
218
+ },
219
+ {
220
+ "name": "minter",
221
+ "outputs": [
222
+ {
223
+ "type": "address",
224
+ "name": ""
225
+ }
226
+ ],
227
+ "inputs": [],
228
+ "stateMutability": "view",
229
+ "type": "function",
230
+ "gas": "1511"
231
+ },
232
+ {
233
+ "name": "crv_token",
234
+ "outputs": [
235
+ {
236
+ "type": "address",
237
+ "name": ""
238
+ }
239
+ ],
240
+ "inputs": [],
241
+ "stateMutability": "view",
242
+ "type": "function",
243
+ "gas": "1541"
244
+ },
245
+ {
246
+ "name": "lp_token",
247
+ "outputs": [
248
+ {
249
+ "type": "address",
250
+ "name": ""
251
+ }
252
+ ],
253
+ "inputs": [],
254
+ "stateMutability": "view",
255
+ "type": "function",
256
+ "gas": "1571"
257
+ },
258
+ {
259
+ "name": "controller",
260
+ "outputs": [
261
+ {
262
+ "type": "address",
263
+ "name": ""
264
+ }
265
+ ],
266
+ "inputs": [],
267
+ "stateMutability": "view",
268
+ "type": "function",
269
+ "gas": "1601"
270
+ },
271
+ {
272
+ "name": "voting_escrow",
273
+ "outputs": [
274
+ {
275
+ "type": "address",
276
+ "name": ""
277
+ }
278
+ ],
279
+ "inputs": [],
280
+ "stateMutability": "view",
281
+ "type": "function",
282
+ "gas": "1631"
283
+ },
284
+ {
285
+ "name": "balanceOf",
286
+ "outputs": [
287
+ {
288
+ "type": "uint256",
289
+ "name": ""
290
+ }
291
+ ],
292
+ "inputs": [
293
+ {
294
+ "type": "address",
295
+ "name": "arg0"
296
+ }
297
+ ],
298
+ "stateMutability": "view",
299
+ "type": "function",
300
+ "gas": "1815"
301
+ },
302
+ {
303
+ "name": "totalSupply",
304
+ "outputs": [
305
+ {
306
+ "type": "uint256",
307
+ "name": ""
308
+ }
309
+ ],
310
+ "inputs": [],
311
+ "stateMutability": "view",
312
+ "type": "function",
313
+ "gas": "1691"
314
+ },
315
+ {
316
+ "name": "future_epoch_time",
317
+ "outputs": [
318
+ {
319
+ "type": "uint256",
320
+ "name": ""
321
+ }
322
+ ],
323
+ "inputs": [],
324
+ "stateMutability": "view",
325
+ "type": "function",
326
+ "gas": "1721"
327
+ },
328
+ {
329
+ "name": "approved_to_deposit",
330
+ "outputs": [
331
+ {
332
+ "type": "bool",
333
+ "name": ""
334
+ }
335
+ ],
336
+ "inputs": [
337
+ {
338
+ "type": "address",
339
+ "name": "arg0"
340
+ },
341
+ {
342
+ "type": "address",
343
+ "name": "arg1"
344
+ }
345
+ ],
346
+ "stateMutability": "view",
347
+ "type": "function",
348
+ "gas": "2059"
349
+ },
350
+ {
351
+ "name": "working_balances",
352
+ "outputs": [
353
+ {
354
+ "type": "uint256",
355
+ "name": ""
356
+ }
357
+ ],
358
+ "inputs": [
359
+ {
360
+ "type": "address",
361
+ "name": "arg0"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function",
366
+ "gas": "1935"
367
+ },
368
+ {
369
+ "name": "working_supply",
370
+ "outputs": [
371
+ {
372
+ "type": "uint256",
373
+ "name": ""
374
+ }
375
+ ],
376
+ "inputs": [],
377
+ "stateMutability": "view",
378
+ "type": "function",
379
+ "gas": "1811"
380
+ },
381
+ {
382
+ "name": "period",
383
+ "outputs": [
384
+ {
385
+ "type": "int128",
386
+ "name": ""
387
+ }
388
+ ],
389
+ "inputs": [],
390
+ "stateMutability": "view",
391
+ "type": "function",
392
+ "gas": "1841"
393
+ },
394
+ {
395
+ "name": "period_timestamp",
396
+ "outputs": [
397
+ {
398
+ "type": "uint256",
399
+ "name": ""
400
+ }
401
+ ],
402
+ "inputs": [
403
+ {
404
+ "type": "uint256",
405
+ "name": "arg0"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function",
410
+ "gas": "1980"
411
+ },
412
+ {
413
+ "name": "integrate_inv_supply",
414
+ "outputs": [
415
+ {
416
+ "type": "uint256",
417
+ "name": ""
418
+ }
419
+ ],
420
+ "inputs": [
421
+ {
422
+ "type": "uint256",
423
+ "name": "arg0"
424
+ }
425
+ ],
426
+ "stateMutability": "view",
427
+ "type": "function",
428
+ "gas": "2010"
429
+ },
430
+ {
431
+ "name": "integrate_inv_supply_of",
432
+ "outputs": [
433
+ {
434
+ "type": "uint256",
435
+ "name": ""
436
+ }
437
+ ],
438
+ "inputs": [
439
+ {
440
+ "type": "address",
441
+ "name": "arg0"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function",
446
+ "gas": "2085"
447
+ },
448
+ {
449
+ "name": "integrate_checkpoint_of",
450
+ "outputs": [
451
+ {
452
+ "type": "uint256",
453
+ "name": ""
454
+ }
455
+ ],
456
+ "inputs": [
457
+ {
458
+ "type": "address",
459
+ "name": "arg0"
460
+ }
461
+ ],
462
+ "stateMutability": "view",
463
+ "type": "function",
464
+ "gas": "2115"
465
+ },
466
+ {
467
+ "name": "integrate_fraction",
468
+ "outputs": [
469
+ {
470
+ "type": "uint256",
471
+ "name": ""
472
+ }
473
+ ],
474
+ "inputs": [
475
+ {
476
+ "type": "address",
477
+ "name": "arg0"
478
+ }
479
+ ],
480
+ "stateMutability": "view",
481
+ "type": "function",
482
+ "gas": "2145"
483
+ },
484
+ {
485
+ "name": "inflation_rate",
486
+ "outputs": [
487
+ {
488
+ "type": "uint256",
489
+ "name": ""
490
+ }
491
+ ],
492
+ "inputs": [],
493
+ "stateMutability": "view",
494
+ "type": "function",
495
+ "gas": "2021"
496
+ },
497
+ {
498
+ "name": "reward_contract",
499
+ "outputs": [
500
+ {
501
+ "type": "address",
502
+ "name": ""
503
+ }
504
+ ],
505
+ "inputs": [],
506
+ "stateMutability": "view",
507
+ "type": "function",
508
+ "gas": "2051"
509
+ },
510
+ {
511
+ "name": "rewarded_token",
512
+ "outputs": [
513
+ {
514
+ "type": "address",
515
+ "name": ""
516
+ }
517
+ ],
518
+ "inputs": [],
519
+ "stateMutability": "view",
520
+ "type": "function",
521
+ "gas": "2081"
522
+ },
523
+ {
524
+ "name": "reward_integral",
525
+ "outputs": [
526
+ {
527
+ "type": "uint256",
528
+ "name": ""
529
+ }
530
+ ],
531
+ "inputs": [],
532
+ "stateMutability": "view",
533
+ "type": "function",
534
+ "gas": "2111"
535
+ },
536
+ {
537
+ "name": "reward_integral_for",
538
+ "outputs": [
539
+ {
540
+ "type": "uint256",
541
+ "name": ""
542
+ }
543
+ ],
544
+ "inputs": [
545
+ {
546
+ "type": "address",
547
+ "name": "arg0"
548
+ }
549
+ ],
550
+ "stateMutability": "view",
551
+ "type": "function",
552
+ "gas": "2295"
553
+ },
554
+ {
555
+ "name": "rewards_for",
556
+ "outputs": [
557
+ {
558
+ "type": "uint256",
559
+ "name": ""
560
+ }
561
+ ],
562
+ "inputs": [
563
+ {
564
+ "type": "address",
565
+ "name": "arg0"
566
+ }
567
+ ],
568
+ "stateMutability": "view",
569
+ "type": "function",
570
+ "gas": "2325"
571
+ },
572
+ {
573
+ "name": "claimed_rewards_for",
574
+ "outputs": [
575
+ {
576
+ "type": "uint256",
577
+ "name": ""
578
+ }
579
+ ],
580
+ "inputs": [
581
+ {
582
+ "type": "address",
583
+ "name": "arg0"
584
+ }
585
+ ],
586
+ "stateMutability": "view",
587
+ "type": "function",
588
+ "gas": "2355"
589
+ }
590
+ ]