@curvefi/api 2.46.3 → 2.46.5

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.
@@ -1 +1,879 @@
1
- [{ "name": "BridgerUpdated", "inputs": [{ "name": "_chain_id", "type": "uint256", "indexed": true }, { "name": "_old_bridger", "type": "address", "indexed": false }, { "name": "_new_bridger", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "DeployedGauge", "inputs": [{ "name": "_implementation", "type": "address", "indexed": true }, { "name": "_chain_id", "type": "uint256", "indexed": true }, { "name": "_deployer", "type": "address", "indexed": true }, { "name": "_salt", "type": "bytes32", "indexed": false }, { "name": "_gauge", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "TransferOwnership", "inputs": [{ "name": "_old_owner", "type": "address", "indexed": false }, { "name": "_new_owner", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "UpdateCallProxy", "inputs": [{ "name": "_old_call_proxy", "type": "address", "indexed": false }, { "name": "_new_call_proxy", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "UpdateImplementation", "inputs": [{ "name": "_old_implementation", "type": "address", "indexed": false }, { "name": "_new_implementation", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "stateMutability": "nonpayable", "type": "constructor", "inputs": [{ "name": "_call_proxy", "type": "address" }, { "name": "_owner", "type": "address" }], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "transmit_emissions", "inputs": [{ "name": "_gauge", "type": "address" }], "outputs": [], "gas": 10132 }, { "stateMutability": "payable", "type": "function", "name": "deploy_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_salt", "type": "bytes32" }], "outputs": [{ "name": "", "type": "address" }], "gas": 165352 }, { "stateMutability": "nonpayable", "type": "function", "name": "deploy_child_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_lp_token", "type": "address" }, { "name": "_salt", "type": "bytes32" }], "outputs": [], "gas": 18165 }, { "stateMutability": "nonpayable", "type": "function", "name": "deploy_child_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_lp_token", "type": "address" }, { "name": "_salt", "type": "bytes32" }, { "name": "_manager", "type": "address" }], "outputs": [], "gas": 18165 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_bridger", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_bridger", "type": "address" }], "outputs": [], "gas": 42889 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_implementation", "inputs": [{ "name": "_implementation", "type": "address" }], "outputs": [], "gas": 41933 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_call_proxy", "inputs": [{ "name": "_new_call_proxy", "type": "address" }], "outputs": [], "gas": 41963 }, { "stateMutability": "nonpayable", "type": "function", "name": "commit_transfer_ownership", "inputs": [{ "name": "_future_owner", "type": "address" }], "outputs": [], "gas": 37785 }, { "stateMutability": "nonpayable", "type": "function", "name": "accept_transfer_ownership", "inputs": [], "outputs": [], "gas": 41864 }, { "stateMutability": "view", "type": "function", "name": "call_proxy", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2700 }, { "stateMutability": "view", "type": "function", "name": "get_bridger", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }], "gas": 2845 }, { "stateMutability": "view", "type": "function", "name": "get_implementation", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2760 }, { "stateMutability": "view", "type": "function", "name": "get_gauge", "inputs": [{ "name": "arg0", "type": "uint256" }, { "name": "arg1", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }], "gas": 2950 }, { "stateMutability": "view", "type": "function", "name": "get_gauge_count", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }], "gas": 2935 }, { "stateMutability": "view", "type": "function", "name": "is_valid_gauge", "inputs": [{ "name": "arg0", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "gas": 3116 }, { "stateMutability": "view", "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2880 }, { "stateMutability": "view", "type": "function", "name": "future_owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2910 }]
1
+ [
2
+ {
3
+ "name": "Deposit",
4
+ "inputs": [
5
+ {
6
+ "name": "provider",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "value",
12
+ "type": "uint256",
13
+ "indexed": false
14
+ }
15
+ ],
16
+ "anonymous": false,
17
+ "type": "event"
18
+ },
19
+ {
20
+ "name": "Withdraw",
21
+ "inputs": [
22
+ {
23
+ "name": "provider",
24
+ "type": "address",
25
+ "indexed": true
26
+ },
27
+ {
28
+ "name": "value",
29
+ "type": "uint256",
30
+ "indexed": false
31
+ }
32
+ ],
33
+ "anonymous": false,
34
+ "type": "event"
35
+ },
36
+ {
37
+ "name": "UpdateLiquidityLimit",
38
+ "inputs": [
39
+ {
40
+ "name": "user",
41
+ "type": "address",
42
+ "indexed": false
43
+ },
44
+ {
45
+ "name": "original_balance",
46
+ "type": "uint256",
47
+ "indexed": false
48
+ },
49
+ {
50
+ "name": "original_supply",
51
+ "type": "uint256",
52
+ "indexed": false
53
+ },
54
+ {
55
+ "name": "working_balance",
56
+ "type": "uint256",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "name": "working_supply",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ }
64
+ ],
65
+ "anonymous": false,
66
+ "type": "event"
67
+ },
68
+ {
69
+ "name": "CommitOwnership",
70
+ "inputs": [
71
+ {
72
+ "name": "admin",
73
+ "type": "address",
74
+ "indexed": false
75
+ }
76
+ ],
77
+ "anonymous": false,
78
+ "type": "event"
79
+ },
80
+ {
81
+ "name": "ApplyOwnership",
82
+ "inputs": [
83
+ {
84
+ "name": "admin",
85
+ "type": "address",
86
+ "indexed": false
87
+ }
88
+ ],
89
+ "anonymous": false,
90
+ "type": "event"
91
+ },
92
+ {
93
+ "name": "Transfer",
94
+ "inputs": [
95
+ {
96
+ "name": "_from",
97
+ "type": "address",
98
+ "indexed": true
99
+ },
100
+ {
101
+ "name": "_to",
102
+ "type": "address",
103
+ "indexed": true
104
+ },
105
+ {
106
+ "name": "_value",
107
+ "type": "uint256",
108
+ "indexed": false
109
+ }
110
+ ],
111
+ "anonymous": false,
112
+ "type": "event"
113
+ },
114
+ {
115
+ "name": "Approval",
116
+ "inputs": [
117
+ {
118
+ "name": "_owner",
119
+ "type": "address",
120
+ "indexed": true
121
+ },
122
+ {
123
+ "name": "_spender",
124
+ "type": "address",
125
+ "indexed": true
126
+ },
127
+ {
128
+ "name": "_value",
129
+ "type": "uint256",
130
+ "indexed": false
131
+ }
132
+ ],
133
+ "anonymous": false,
134
+ "type": "event"
135
+ },
136
+ {
137
+ "stateMutability": "nonpayable",
138
+ "type": "constructor",
139
+ "inputs": [
140
+ {
141
+ "name": "_lp_token",
142
+ "type": "address"
143
+ },
144
+ {
145
+ "name": "_factory",
146
+ "type": "address"
147
+ }
148
+ ],
149
+ "outputs": []
150
+ },
151
+ {
152
+ "stateMutability": "view",
153
+ "type": "function",
154
+ "name": "decimals",
155
+ "inputs": [],
156
+ "outputs": [
157
+ {
158
+ "name": "",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "gas": "288"
163
+ },
164
+ {
165
+ "stateMutability": "view",
166
+ "type": "function",
167
+ "name": "integrate_checkpoint",
168
+ "inputs": [],
169
+ "outputs": [
170
+ {
171
+ "name": "",
172
+ "type": "uint256"
173
+ }
174
+ ],
175
+ "gas": "4560"
176
+ },
177
+ {
178
+ "stateMutability": "nonpayable",
179
+ "type": "function",
180
+ "name": "user_checkpoint",
181
+ "inputs": [
182
+ {
183
+ "name": "addr",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "outputs": [
188
+ {
189
+ "name": "",
190
+ "type": "bool"
191
+ }
192
+ ],
193
+ "gas": "3123796"
194
+ },
195
+ {
196
+ "stateMutability": "view",
197
+ "type": "function",
198
+ "name": "claimable_tokens",
199
+ "inputs": [
200
+ {
201
+ "name": "addr",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "outputs": [
206
+ {
207
+ "name": "",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "gas": "3038616"
212
+ },
213
+ {
214
+ "stateMutability": "view",
215
+ "type": "function",
216
+ "name": "claimed_reward",
217
+ "inputs": [
218
+ {
219
+ "name": "_addr",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "name": "_token",
224
+ "type": "address"
225
+ }
226
+ ],
227
+ "outputs": [
228
+ {
229
+ "name": "",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "gas": "3006"
234
+ },
235
+ {
236
+ "stateMutability": "view",
237
+ "type": "function",
238
+ "name": "claimable_reward",
239
+ "inputs": [
240
+ {
241
+ "name": "_user",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "name": "_reward_token",
246
+ "type": "address"
247
+ }
248
+ ],
249
+ "outputs": [
250
+ {
251
+ "name": "",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "gas": "20225"
256
+ },
257
+ {
258
+ "stateMutability": "nonpayable",
259
+ "type": "function",
260
+ "name": "set_rewards_receiver",
261
+ "inputs": [
262
+ {
263
+ "name": "_receiver",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "outputs": [],
268
+ "gas": "35643"
269
+ },
270
+ {
271
+ "stateMutability": "nonpayable",
272
+ "type": "function",
273
+ "name": "claim_rewards",
274
+ "inputs": [],
275
+ "outputs": []
276
+ },
277
+ {
278
+ "stateMutability": "nonpayable",
279
+ "type": "function",
280
+ "name": "kick",
281
+ "inputs": [
282
+ {
283
+ "name": "addr",
284
+ "type": "address"
285
+ }
286
+ ],
287
+ "outputs": [],
288
+ "gas": "3137887"
289
+ },
290
+ {
291
+ "stateMutability": "nonpayable",
292
+ "type": "function",
293
+ "name": "deposit",
294
+ "inputs": [
295
+ {
296
+ "name": "_value",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "outputs": []
301
+ },
302
+ {
303
+ "stateMutability": "nonpayable",
304
+ "type": "function",
305
+ "name": "withdraw",
306
+ "inputs": [
307
+ {
308
+ "name": "_value",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "outputs": []
313
+ },
314
+ {
315
+ "stateMutability": "nonpayable",
316
+ "type": "function",
317
+ "name": "transfer",
318
+ "inputs": [
319
+ {
320
+ "name": "_to",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "name": "_value",
325
+ "type": "uint256"
326
+ }
327
+ ],
328
+ "outputs": [
329
+ {
330
+ "name": "",
331
+ "type": "bool"
332
+ }
333
+ ],
334
+ "gas": "18062406"
335
+ },
336
+ {
337
+ "stateMutability": "nonpayable",
338
+ "type": "function",
339
+ "name": "transferFrom",
340
+ "inputs": [
341
+ {
342
+ "name": "_from",
343
+ "type": "address"
344
+ },
345
+ {
346
+ "name": "_to",
347
+ "type": "address"
348
+ },
349
+ {
350
+ "name": "_value",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "bool"
358
+ }
359
+ ],
360
+ "gas": "18100356"
361
+ },
362
+ {
363
+ "stateMutability": "nonpayable",
364
+ "type": "function",
365
+ "name": "approve",
366
+ "inputs": [
367
+ {
368
+ "name": "_spender",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "name": "_value",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "outputs": [
377
+ {
378
+ "name": "",
379
+ "type": "bool"
380
+ }
381
+ ],
382
+ "gas": "38121"
383
+ },
384
+ {
385
+ "stateMutability": "nonpayable",
386
+ "type": "function",
387
+ "name": "increaseAllowance",
388
+ "inputs": [
389
+ {
390
+ "name": "_spender",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "name": "_added_value",
395
+ "type": "uint256"
396
+ }
397
+ ],
398
+ "outputs": [
399
+ {
400
+ "name": "",
401
+ "type": "bool"
402
+ }
403
+ ],
404
+ "gas": "40665"
405
+ },
406
+ {
407
+ "stateMutability": "nonpayable",
408
+ "type": "function",
409
+ "name": "decreaseAllowance",
410
+ "inputs": [
411
+ {
412
+ "name": "_spender",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "name": "_subtracted_value",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "outputs": [
421
+ {
422
+ "name": "",
423
+ "type": "bool"
424
+ }
425
+ ],
426
+ "gas": "40689"
427
+ },
428
+ {
429
+ "stateMutability": "nonpayable",
430
+ "type": "function",
431
+ "name": "add_reward",
432
+ "inputs": [
433
+ {
434
+ "name": "_reward_token",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "name": "_distributor",
439
+ "type": "address"
440
+ }
441
+ ],
442
+ "outputs": [],
443
+ "gas": "115384"
444
+ },
445
+ {
446
+ "stateMutability": "nonpayable",
447
+ "type": "function",
448
+ "name": "set_reward_distributor",
449
+ "inputs": [
450
+ {
451
+ "name": "_reward_token",
452
+ "type": "address"
453
+ },
454
+ {
455
+ "name": "_distributor",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "outputs": [],
460
+ "gas": "43149"
461
+ },
462
+ {
463
+ "stateMutability": "nonpayable",
464
+ "type": "function",
465
+ "name": "deposit_reward_token",
466
+ "inputs": [
467
+ {
468
+ "name": "_reward_token",
469
+ "type": "address"
470
+ },
471
+ {
472
+ "name": "_amount",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "outputs": [],
477
+ "gas": "1540007"
478
+ },
479
+ {
480
+ "stateMutability": "nonpayable",
481
+ "type": "function",
482
+ "name": "set_killed",
483
+ "inputs": [
484
+ {
485
+ "name": "_is_killed",
486
+ "type": "bool"
487
+ }
488
+ ],
489
+ "outputs": [],
490
+ "gas": "40499"
491
+ },
492
+ {
493
+ "stateMutability": "view",
494
+ "type": "function",
495
+ "name": "lp_token",
496
+ "inputs": [],
497
+ "outputs": [
498
+ {
499
+ "name": "",
500
+ "type": "address"
501
+ }
502
+ ],
503
+ "gas": "2988"
504
+ },
505
+ {
506
+ "stateMutability": "view",
507
+ "type": "function",
508
+ "name": "future_epoch_time",
509
+ "inputs": [],
510
+ "outputs": [
511
+ {
512
+ "name": "",
513
+ "type": "uint256"
514
+ }
515
+ ],
516
+ "gas": "3018"
517
+ },
518
+ {
519
+ "stateMutability": "view",
520
+ "type": "function",
521
+ "name": "balanceOf",
522
+ "inputs": [
523
+ {
524
+ "name": "arg0",
525
+ "type": "address"
526
+ }
527
+ ],
528
+ "outputs": [
529
+ {
530
+ "name": "",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "gas": "3263"
535
+ },
536
+ {
537
+ "stateMutability": "view",
538
+ "type": "function",
539
+ "name": "totalSupply",
540
+ "inputs": [],
541
+ "outputs": [
542
+ {
543
+ "name": "",
544
+ "type": "uint256"
545
+ }
546
+ ],
547
+ "gas": "3078"
548
+ },
549
+ {
550
+ "stateMutability": "view",
551
+ "type": "function",
552
+ "name": "allowance",
553
+ "inputs": [
554
+ {
555
+ "name": "arg0",
556
+ "type": "address"
557
+ },
558
+ {
559
+ "name": "arg1",
560
+ "type": "address"
561
+ }
562
+ ],
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "gas": "3538"
570
+ },
571
+ {
572
+ "stateMutability": "view",
573
+ "type": "function",
574
+ "name": "name",
575
+ "inputs": [],
576
+ "outputs": [
577
+ {
578
+ "name": "",
579
+ "type": "string"
580
+ }
581
+ ],
582
+ "gas": "13368"
583
+ },
584
+ {
585
+ "stateMutability": "view",
586
+ "type": "function",
587
+ "name": "symbol",
588
+ "inputs": [],
589
+ "outputs": [
590
+ {
591
+ "name": "",
592
+ "type": "string"
593
+ }
594
+ ],
595
+ "gas": "11121"
596
+ },
597
+ {
598
+ "stateMutability": "view",
599
+ "type": "function",
600
+ "name": "working_balances",
601
+ "inputs": [
602
+ {
603
+ "name": "arg0",
604
+ "type": "address"
605
+ }
606
+ ],
607
+ "outputs": [
608
+ {
609
+ "name": "",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "gas": "3413"
614
+ },
615
+ {
616
+ "stateMutability": "view",
617
+ "type": "function",
618
+ "name": "working_supply",
619
+ "inputs": [],
620
+ "outputs": [
621
+ {
622
+ "name": "",
623
+ "type": "uint256"
624
+ }
625
+ ],
626
+ "gas": "3228"
627
+ },
628
+ {
629
+ "stateMutability": "view",
630
+ "type": "function",
631
+ "name": "period",
632
+ "inputs": [],
633
+ "outputs": [
634
+ {
635
+ "name": "",
636
+ "type": "int128"
637
+ }
638
+ ],
639
+ "gas": "3258"
640
+ },
641
+ {
642
+ "stateMutability": "view",
643
+ "type": "function",
644
+ "name": "period_timestamp",
645
+ "inputs": [
646
+ {
647
+ "name": "arg0",
648
+ "type": "uint256"
649
+ }
650
+ ],
651
+ "outputs": [
652
+ {
653
+ "name": "",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "gas": "3333"
658
+ },
659
+ {
660
+ "stateMutability": "view",
661
+ "type": "function",
662
+ "name": "integrate_inv_supply",
663
+ "inputs": [
664
+ {
665
+ "name": "arg0",
666
+ "type": "uint256"
667
+ }
668
+ ],
669
+ "outputs": [
670
+ {
671
+ "name": "",
672
+ "type": "uint256"
673
+ }
674
+ ],
675
+ "gas": "3363"
676
+ },
677
+ {
678
+ "stateMutability": "view",
679
+ "type": "function",
680
+ "name": "integrate_inv_supply_of",
681
+ "inputs": [
682
+ {
683
+ "name": "arg0",
684
+ "type": "address"
685
+ }
686
+ ],
687
+ "outputs": [
688
+ {
689
+ "name": "",
690
+ "type": "uint256"
691
+ }
692
+ ],
693
+ "gas": "3563"
694
+ },
695
+ {
696
+ "stateMutability": "view",
697
+ "type": "function",
698
+ "name": "integrate_checkpoint_of",
699
+ "inputs": [
700
+ {
701
+ "name": "arg0",
702
+ "type": "address"
703
+ }
704
+ ],
705
+ "outputs": [
706
+ {
707
+ "name": "",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "gas": "3593"
712
+ },
713
+ {
714
+ "stateMutability": "view",
715
+ "type": "function",
716
+ "name": "integrate_fraction",
717
+ "inputs": [
718
+ {
719
+ "name": "arg0",
720
+ "type": "address"
721
+ }
722
+ ],
723
+ "outputs": [
724
+ {
725
+ "name": "",
726
+ "type": "uint256"
727
+ }
728
+ ],
729
+ "gas": "3623"
730
+ },
731
+ {
732
+ "stateMutability": "view",
733
+ "type": "function",
734
+ "name": "inflation_rate",
735
+ "inputs": [],
736
+ "outputs": [
737
+ {
738
+ "name": "",
739
+ "type": "uint256"
740
+ }
741
+ ],
742
+ "gas": "3438"
743
+ },
744
+ {
745
+ "stateMutability": "view",
746
+ "type": "function",
747
+ "name": "reward_count",
748
+ "inputs": [],
749
+ "outputs": [
750
+ {
751
+ "name": "",
752
+ "type": "uint256"
753
+ }
754
+ ],
755
+ "gas": "3468"
756
+ },
757
+ {
758
+ "stateMutability": "view",
759
+ "type": "function",
760
+ "name": "reward_tokens",
761
+ "inputs": [
762
+ {
763
+ "name": "arg0",
764
+ "type": "uint256"
765
+ }
766
+ ],
767
+ "outputs": [
768
+ {
769
+ "name": "",
770
+ "type": "address"
771
+ }
772
+ ],
773
+ "gas": "3543"
774
+ },
775
+ {
776
+ "stateMutability": "view",
777
+ "type": "function",
778
+ "name": "reward_data",
779
+ "inputs": [
780
+ {
781
+ "name": "arg0",
782
+ "type": "address"
783
+ }
784
+ ],
785
+ "outputs": [
786
+ {
787
+ "name": "token",
788
+ "type": "address"
789
+ },
790
+ {
791
+ "name": "distributor",
792
+ "type": "address"
793
+ },
794
+ {
795
+ "name": "period_finish",
796
+ "type": "uint256"
797
+ },
798
+ {
799
+ "name": "rate",
800
+ "type": "uint256"
801
+ },
802
+ {
803
+ "name": "last_update",
804
+ "type": "uint256"
805
+ },
806
+ {
807
+ "name": "integral",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "gas": "14973"
812
+ },
813
+ {
814
+ "stateMutability": "view",
815
+ "type": "function",
816
+ "name": "rewards_receiver",
817
+ "inputs": [
818
+ {
819
+ "name": "arg0",
820
+ "type": "address"
821
+ }
822
+ ],
823
+ "outputs": [
824
+ {
825
+ "name": "",
826
+ "type": "address"
827
+ }
828
+ ],
829
+ "gas": "3773"
830
+ },
831
+ {
832
+ "stateMutability": "view",
833
+ "type": "function",
834
+ "name": "reward_integral_for",
835
+ "inputs": [
836
+ {
837
+ "name": "arg0",
838
+ "type": "address"
839
+ },
840
+ {
841
+ "name": "arg1",
842
+ "type": "address"
843
+ }
844
+ ],
845
+ "outputs": [
846
+ {
847
+ "name": "",
848
+ "type": "uint256"
849
+ }
850
+ ],
851
+ "gas": "4018"
852
+ },
853
+ {
854
+ "stateMutability": "view",
855
+ "type": "function",
856
+ "name": "is_killed",
857
+ "inputs": [],
858
+ "outputs": [
859
+ {
860
+ "name": "",
861
+ "type": "bool"
862
+ }
863
+ ],
864
+ "gas": "3618"
865
+ },
866
+ {
867
+ "stateMutability": "view",
868
+ "type": "function",
869
+ "name": "factory",
870
+ "inputs": [],
871
+ "outputs": [
872
+ {
873
+ "name": "",
874
+ "type": "address"
875
+ }
876
+ ],
877
+ "gas": "3648"
878
+ }
879
+ ]
@@ -0,0 +1 @@
1
+ [{ "name": "BridgerUpdated", "inputs": [{ "name": "_chain_id", "type": "uint256", "indexed": true }, { "name": "_old_bridger", "type": "address", "indexed": false }, { "name": "_new_bridger", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "DeployedGauge", "inputs": [{ "name": "_implementation", "type": "address", "indexed": true }, { "name": "_chain_id", "type": "uint256", "indexed": true }, { "name": "_deployer", "type": "address", "indexed": true }, { "name": "_salt", "type": "bytes32", "indexed": false }, { "name": "_gauge", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "TransferOwnership", "inputs": [{ "name": "_old_owner", "type": "address", "indexed": false }, { "name": "_new_owner", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "UpdateCallProxy", "inputs": [{ "name": "_old_call_proxy", "type": "address", "indexed": false }, { "name": "_new_call_proxy", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "name": "UpdateImplementation", "inputs": [{ "name": "_old_implementation", "type": "address", "indexed": false }, { "name": "_new_implementation", "type": "address", "indexed": false }], "anonymous": false, "type": "event" }, { "stateMutability": "nonpayable", "type": "constructor", "inputs": [{ "name": "_call_proxy", "type": "address" }, { "name": "_owner", "type": "address" }], "outputs": [] }, { "stateMutability": "nonpayable", "type": "function", "name": "transmit_emissions", "inputs": [{ "name": "_gauge", "type": "address" }], "outputs": [], "gas": 10132 }, { "stateMutability": "payable", "type": "function", "name": "deploy_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_salt", "type": "bytes32" }], "outputs": [{ "name": "", "type": "address" }], "gas": 165352 }, { "stateMutability": "nonpayable", "type": "function", "name": "deploy_child_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_lp_token", "type": "address" }, { "name": "_salt", "type": "bytes32" }], "outputs": [], "gas": 18165 }, { "stateMutability": "nonpayable", "type": "function", "name": "deploy_child_gauge", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_lp_token", "type": "address" }, { "name": "_salt", "type": "bytes32" }, { "name": "_manager", "type": "address" }], "outputs": [], "gas": 18165 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_bridger", "inputs": [{ "name": "_chain_id", "type": "uint256" }, { "name": "_bridger", "type": "address" }], "outputs": [], "gas": 42889 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_implementation", "inputs": [{ "name": "_implementation", "type": "address" }], "outputs": [], "gas": 41933 }, { "stateMutability": "nonpayable", "type": "function", "name": "set_call_proxy", "inputs": [{ "name": "_new_call_proxy", "type": "address" }], "outputs": [], "gas": 41963 }, { "stateMutability": "nonpayable", "type": "function", "name": "commit_transfer_ownership", "inputs": [{ "name": "_future_owner", "type": "address" }], "outputs": [], "gas": 37785 }, { "stateMutability": "nonpayable", "type": "function", "name": "accept_transfer_ownership", "inputs": [], "outputs": [], "gas": 41864 }, { "stateMutability": "view", "type": "function", "name": "call_proxy", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2700 }, { "stateMutability": "view", "type": "function", "name": "get_bridger", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }], "gas": 2845 }, { "stateMutability": "view", "type": "function", "name": "get_implementation", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2760 }, { "stateMutability": "view", "type": "function", "name": "get_gauge", "inputs": [{ "name": "arg0", "type": "uint256" }, { "name": "arg1", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }], "gas": 2950 }, { "stateMutability": "view", "type": "function", "name": "get_gauge_count", "inputs": [{ "name": "arg0", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }], "gas": 2935 }, { "stateMutability": "view", "type": "function", "name": "is_valid_gauge", "inputs": [{ "name": "arg0", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "gas": 3116 }, { "stateMutability": "view", "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2880 }, { "stateMutability": "view", "type": "function", "name": "future_owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "gas": 2910 }]
package/lib/curve.js CHANGED
@@ -63,7 +63,7 @@ import { getTricryptoFactoryPoolData } from "./factory/factory-tricrypto.js";
63
63
  import ERC20Abi from './constants/abis/ERC20.json' assert { type: 'json' };
64
64
  import cERC20Abi from './constants/abis/cERC20.json' assert { type: 'json' };
65
65
  import yERC20Abi from './constants/abis/yERC20.json' assert { type: 'json' };
66
- import gaugeFactoryABI from './constants/abis/gauge_factory.json' assert { type: 'json' };
66
+ import gaugeFactoryABI from './constants/abis/gauge_factory_mainnet.json' assert { type: 'json' };
67
67
  import gaugeFactorySidechainABI from './constants/abis/gauge_factory_sidechain.json' assert { type: 'json' };
68
68
  import votingEscrowABI from './constants/abis/votingescrow.json' assert { type: 'json' };
69
69
  import anycallABI from './constants/abis/anycall.json' assert { type: 'json' };
@@ -1745,7 +1745,7 @@ var PoolTemplate = /** @class */ (function () {
1745
1745
  if (this.rewardsOnly())
1746
1746
  throw Error("".concat(this.name, " has Rewards-Only Gauge. Use claimRewards instead"));
1747
1747
  _c = Number;
1748
- return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.minter].contract.mint.estimateGas(this.gauge, curve.constantOptions)];
1748
+ return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gauge_factory].contract.mint.estimateGas(this.gauge, curve.constantOptions)];
1749
1749
  case 1: return [2 /*return*/, _c.apply(void 0, [_d.sent()])];
1750
1750
  }
1751
1751
  });
@@ -1759,7 +1759,7 @@ var PoolTemplate = /** @class */ (function () {
1759
1759
  case 0:
1760
1760
  if (this.rewardsOnly())
1761
1761
  throw Error("".concat(this.name, " has Rewards-Only Gauge. Use claimRewards instead"));
1762
- contract = curve.contracts[curve.constants.ALIASES.minter].contract;
1762
+ contract = curve.contracts[curve.constants.ALIASES.gauge_factory].contract;
1763
1763
  _c = mulBy1_3;
1764
1764
  return [4 /*yield*/, contract.mint.estimateGas(this.gauge, curve.constantOptions)];
1765
1765
  case 1:
package/lib/utils.js CHANGED
@@ -472,20 +472,21 @@ export var _getCrvApyFromApi = function () { return __awaiter(void 0, void 0, vo
472
472
  }); };
473
473
  export var _getRewardsFromApi = function () { return __awaiter(void 0, void 0, void 0, function () {
474
474
  var network, allTypesExtendedPoolData, rewardsDict, _i, allTypesExtendedPoolData_3, extendedPoolData, _a, _b, pool;
475
- return __generator(this, function (_c) {
476
- switch (_c.label) {
475
+ var _c;
476
+ return __generator(this, function (_d) {
477
+ switch (_d.label) {
477
478
  case 0:
478
479
  network = curve.constants.NETWORK_NAME;
479
480
  return [4 /*yield*/, _getAllPoolsFromApi(network)];
480
481
  case 1:
481
- allTypesExtendedPoolData = _c.sent();
482
+ allTypesExtendedPoolData = _d.sent();
482
483
  rewardsDict = {};
483
484
  for (_i = 0, allTypesExtendedPoolData_3 = allTypesExtendedPoolData; _i < allTypesExtendedPoolData_3.length; _i++) {
484
485
  extendedPoolData = allTypesExtendedPoolData_3[_i];
485
486
  for (_a = 0, _b = extendedPoolData.poolData; _a < _b.length; _a++) {
486
487
  pool = _b[_a];
487
488
  if (pool.gaugeAddress) {
488
- rewardsDict[pool.gaugeAddress.toLowerCase()] = pool.gaugeRewards
489
+ rewardsDict[pool.gaugeAddress.toLowerCase()] = ((_c = pool.gaugeRewards) !== null && _c !== void 0 ? _c : [])
489
490
  .filter(function (r) { return curve.chainId === 1 || r.tokenAddress.toLowerCase() !== curve.constants.COINS.crv; });
490
491
  }
491
492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.46.3",
3
+ "version": "2.46.5",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",