@curvefi/llamalend-api 1.0.2

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 (125) hide show
  1. package/.eslintrc.json +40 -0
  2. package/.github/workflows/lint.yml +15 -0
  3. package/.github/workflows/publish.yml +55 -0
  4. package/LICENSE +21 -0
  5. package/README.md +1976 -0
  6. package/lib/cache/index.d.ts +14 -0
  7. package/lib/cache/index.js +31 -0
  8. package/lib/constants/L2Networks.d.ts +1 -0
  9. package/lib/constants/L2Networks.js +1 -0
  10. package/lib/constants/abis/Controller.json +1027 -0
  11. package/lib/constants/abis/ERC20.json +222 -0
  12. package/lib/constants/abis/ERC4626.json +1674 -0
  13. package/lib/constants/abis/GaugeController.json +794 -0
  14. package/lib/constants/abis/GaugeFactoryMainnet.json +1 -0
  15. package/lib/constants/abis/GaugeFactorySidechain.json +475 -0
  16. package/lib/constants/abis/GaugeV5.json +958 -0
  17. package/lib/constants/abis/LeverageZap.json +35 -0
  18. package/lib/constants/abis/Llamma.json +984 -0
  19. package/lib/constants/abis/Minter.json +1 -0
  20. package/lib/constants/abis/MonetaryPolicy.json +221 -0
  21. package/lib/constants/abis/OneWayLendingFactoryABI.json +899 -0
  22. package/lib/constants/abis/SidechainGauge.json +939 -0
  23. package/lib/constants/abis/Vault.json +721 -0
  24. package/lib/constants/abis/crvUSD/DeleverageZap.json +248 -0
  25. package/lib/constants/abis/crvUSD/Factory.json +514 -0
  26. package/lib/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  27. package/lib/constants/abis/crvUSD/LeverageZap.json +312 -0
  28. package/lib/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  29. package/lib/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  30. package/lib/constants/abis/crvUSD/PegKeeper.json +411 -0
  31. package/lib/constants/abis/crvUSD/controller.json +991 -0
  32. package/lib/constants/abis/crvUSD/llamma.json +984 -0
  33. package/lib/constants/abis/gas_oracle_optimism.json +149 -0
  34. package/lib/constants/abis/gas_oracle_optimism_blob.json +203 -0
  35. package/lib/constants/aliases.d.ts +16 -0
  36. package/lib/constants/aliases.js +124 -0
  37. package/lib/constants/coins.d.ts +16 -0
  38. package/lib/constants/coins.js +24 -0
  39. package/lib/constants/llammas.d.ts +2 -0
  40. package/lib/constants/llammas.js +96 -0
  41. package/lib/constants/utils.d.ts +4 -0
  42. package/lib/constants/utils.js +27 -0
  43. package/lib/external-api.d.ts +13 -0
  44. package/lib/external-api.js +436 -0
  45. package/lib/index.d.ts +104 -0
  46. package/lib/index.js +123 -0
  47. package/lib/interfaces.d.ts +228 -0
  48. package/lib/interfaces.js +1 -0
  49. package/lib/lendMarkets/LendMarketTemplate.d.ts +510 -0
  50. package/lib/lendMarkets/LendMarketTemplate.js +4682 -0
  51. package/lib/lendMarkets/index.d.ts +3 -0
  52. package/lib/lendMarkets/index.js +3 -0
  53. package/lib/lendMarkets/lendMarketConstructor.d.ts +2 -0
  54. package/lib/lendMarkets/lendMarketConstructor.js +6 -0
  55. package/lib/llamalend.d.ts +80 -0
  56. package/lib/llamalend.js +878 -0
  57. package/lib/mintMarkets/MintMarketTemplate.d.ts +308 -0
  58. package/lib/mintMarkets/MintMarketTemplate.js +2998 -0
  59. package/lib/mintMarkets/index.d.ts +3 -0
  60. package/lib/mintMarkets/index.js +3 -0
  61. package/lib/mintMarkets/mintMarketConstructor.d.ts +2 -0
  62. package/lib/mintMarkets/mintMarketConstructor.js +4 -0
  63. package/lib/st-crvUSD.d.ts +35 -0
  64. package/lib/st-crvUSD.js +505 -0
  65. package/lib/utils.d.ts +58 -0
  66. package/lib/utils.js +661 -0
  67. package/package.json +42 -0
  68. package/src/cache/index.ts +41 -0
  69. package/src/constants/L2Networks.ts +1 -0
  70. package/src/constants/abis/Controller.json +1027 -0
  71. package/src/constants/abis/ERC20.json +222 -0
  72. package/src/constants/abis/ERC4626.json +1674 -0
  73. package/src/constants/abis/GaugeController.json +794 -0
  74. package/src/constants/abis/GaugeFactoryMainnet.json +1 -0
  75. package/src/constants/abis/GaugeFactorySidechain.json +475 -0
  76. package/src/constants/abis/GaugeV5.json +958 -0
  77. package/src/constants/abis/LeverageZap.json +35 -0
  78. package/src/constants/abis/Llamma.json +984 -0
  79. package/src/constants/abis/Minter.json +1 -0
  80. package/src/constants/abis/MonetaryPolicy.json +221 -0
  81. package/src/constants/abis/OneWayLendingFactoryABI.json +899 -0
  82. package/src/constants/abis/SidechainGauge.json +939 -0
  83. package/src/constants/abis/Vault.json +721 -0
  84. package/src/constants/abis/crvUSD/DeleverageZap.json +248 -0
  85. package/src/constants/abis/crvUSD/ERC20.json +222 -0
  86. package/src/constants/abis/crvUSD/Factory.json +514 -0
  87. package/src/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  88. package/src/constants/abis/crvUSD/LeverageZap.json +312 -0
  89. package/src/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  90. package/src/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  91. package/src/constants/abis/crvUSD/PegKeeper.json +411 -0
  92. package/src/constants/abis/crvUSD/controller.json +991 -0
  93. package/src/constants/abis/crvUSD/llamma.json +984 -0
  94. package/src/constants/abis/gas_oracle_optimism.json +149 -0
  95. package/src/constants/abis/gas_oracle_optimism_blob.json +203 -0
  96. package/src/constants/aliases.ts +141 -0
  97. package/src/constants/coins.ts +41 -0
  98. package/src/constants/llammas.ts +99 -0
  99. package/src/constants/utils.ts +33 -0
  100. package/src/external-api.ts +325 -0
  101. package/src/index.ts +128 -0
  102. package/src/interfaces.ts +237 -0
  103. package/src/lendMarkets/LendMarketTemplate.ts +3022 -0
  104. package/src/lendMarkets/index.ts +7 -0
  105. package/src/lendMarkets/lendMarketConstructor.ts +7 -0
  106. package/src/llamalend.ts +785 -0
  107. package/src/mintMarkets/MintMarketTemplate.ts +1781 -0
  108. package/src/mintMarkets/index.ts +7 -0
  109. package/src/mintMarkets/mintMarketConstructor.ts +5 -0
  110. package/src/st-crvUSD.ts +244 -0
  111. package/src/utils.ts +497 -0
  112. package/test/fetch.test.ts +152 -0
  113. package/test/general.test.ts +216 -0
  114. package/test/leverageBorrowMore.test.ts +245 -0
  115. package/test/leverageCreateLoan.test.ts +236 -0
  116. package/test/leverageRepay.test.ts +240 -0
  117. package/test/readme.test.ts +475 -0
  118. package/test/selfLiquidate.test.ts +57 -0
  119. package/test/selfLiquidateCrvUSD.test.ts +54 -0
  120. package/test/st_crvUSD.test.ts +68 -0
  121. package/test/swap.test.ts +62 -0
  122. package/test/swapCrvUSD.test.ts +56 -0
  123. package/test/vault.test.ts +112 -0
  124. package/tsconfig.build.json +10 -0
  125. package/tsconfig.json +72 -0
@@ -0,0 +1,794 @@
1
+ [
2
+ {
3
+ "name":"CommitOwnership",
4
+ "inputs":[
5
+ {
6
+ "type":"address",
7
+ "name":"admin",
8
+ "indexed":false
9
+ }
10
+ ],
11
+ "anonymous":false,
12
+ "type":"event"
13
+ },
14
+ {
15
+ "name":"ApplyOwnership",
16
+ "inputs":[
17
+ {
18
+ "type":"address",
19
+ "name":"admin",
20
+ "indexed":false
21
+ }
22
+ ],
23
+ "anonymous":false,
24
+ "type":"event"
25
+ },
26
+ {
27
+ "name":"AddType",
28
+ "inputs":[
29
+ {
30
+ "type":"string",
31
+ "name":"name",
32
+ "indexed":false
33
+ },
34
+ {
35
+ "type":"int128",
36
+ "name":"type_id",
37
+ "indexed":false
38
+ }
39
+ ],
40
+ "anonymous":false,
41
+ "type":"event"
42
+ },
43
+ {
44
+ "name":"NewTypeWeight",
45
+ "inputs":[
46
+ {
47
+ "type":"int128",
48
+ "name":"type_id",
49
+ "indexed":false
50
+ },
51
+ {
52
+ "type":"uint256",
53
+ "name":"time",
54
+ "indexed":false
55
+ },
56
+ {
57
+ "type":"uint256",
58
+ "name":"weight",
59
+ "indexed":false
60
+ },
61
+ {
62
+ "type":"uint256",
63
+ "name":"total_weight",
64
+ "indexed":false
65
+ }
66
+ ],
67
+ "anonymous":false,
68
+ "type":"event"
69
+ },
70
+ {
71
+ "name":"NewGaugeWeight",
72
+ "inputs":[
73
+ {
74
+ "type":"address",
75
+ "name":"gauge_address",
76
+ "indexed":false
77
+ },
78
+ {
79
+ "type":"uint256",
80
+ "name":"time",
81
+ "indexed":false
82
+ },
83
+ {
84
+ "type":"uint256",
85
+ "name":"weight",
86
+ "indexed":false
87
+ },
88
+ {
89
+ "type":"uint256",
90
+ "name":"total_weight",
91
+ "indexed":false
92
+ }
93
+ ],
94
+ "anonymous":false,
95
+ "type":"event"
96
+ },
97
+ {
98
+ "name":"VoteForGauge",
99
+ "inputs":[
100
+ {
101
+ "type":"uint256",
102
+ "name":"time",
103
+ "indexed":false
104
+ },
105
+ {
106
+ "type":"address",
107
+ "name":"user",
108
+ "indexed":false
109
+ },
110
+ {
111
+ "type":"address",
112
+ "name":"gauge_addr",
113
+ "indexed":false
114
+ },
115
+ {
116
+ "type":"uint256",
117
+ "name":"weight",
118
+ "indexed":false
119
+ }
120
+ ],
121
+ "anonymous":false,
122
+ "type":"event"
123
+ },
124
+ {
125
+ "name":"NewGauge",
126
+ "inputs":[
127
+ {
128
+ "type":"address",
129
+ "name":"addr",
130
+ "indexed":false
131
+ },
132
+ {
133
+ "type":"int128",
134
+ "name":"gauge_type",
135
+ "indexed":false
136
+ },
137
+ {
138
+ "type":"uint256",
139
+ "name":"weight",
140
+ "indexed":false
141
+ }
142
+ ],
143
+ "anonymous":false,
144
+ "type":"event"
145
+ },
146
+ {
147
+ "outputs":[],
148
+ "inputs":[
149
+ {
150
+ "type":"address",
151
+ "name":"_token"
152
+ },
153
+ {
154
+ "type":"address",
155
+ "name":"_voting_escrow"
156
+ }
157
+ ],
158
+ "stateMutability":"nonpayable",
159
+ "type":"constructor"
160
+ },
161
+ {
162
+ "name":"commit_transfer_ownership",
163
+ "outputs":[],
164
+ "inputs":[
165
+ {
166
+ "type":"address",
167
+ "name":"addr"
168
+ }
169
+ ],
170
+ "stateMutability":"nonpayable",
171
+ "type":"function",
172
+ "gas":"37597"
173
+ },
174
+ {
175
+ "name":"apply_transfer_ownership",
176
+ "outputs":[],
177
+ "inputs":[],
178
+ "stateMutability":"nonpayable",
179
+ "type":"function",
180
+ "gas":"38497"
181
+ },
182
+ {
183
+ "name":"gauge_types",
184
+ "outputs":[
185
+ {
186
+ "type":"int128",
187
+ "name":""
188
+ }
189
+ ],
190
+ "inputs":[
191
+ {
192
+ "type":"address",
193
+ "name":"_addr"
194
+ }
195
+ ],
196
+ "stateMutability":"view",
197
+ "type":"function",
198
+ "gas":"1625"
199
+ },
200
+ {
201
+ "name":"add_gauge",
202
+ "outputs":[],
203
+ "inputs":[
204
+ {
205
+ "type":"address",
206
+ "name":"addr"
207
+ },
208
+ {
209
+ "type":"int128",
210
+ "name":"gauge_type"
211
+ },
212
+ {
213
+ "type":"uint256",
214
+ "name":"weight"
215
+ }
216
+ ],
217
+ "stateMutability":"nonpayable",
218
+ "type":"function"
219
+ },
220
+ {
221
+ "name":"checkpoint",
222
+ "outputs":[],
223
+ "inputs":[],
224
+ "stateMutability":"nonpayable",
225
+ "type":"function",
226
+ "gas":"18033784416"
227
+ },
228
+ {
229
+ "name":"checkpoint_gauge",
230
+ "outputs":[],
231
+ "inputs":[
232
+ {
233
+ "type":"address",
234
+ "name":"addr"
235
+ }
236
+ ],
237
+ "stateMutability":"nonpayable",
238
+ "type":"function",
239
+ "gas":"18087678795"
240
+ },
241
+ {
242
+ "name":"gauge_relative_weight_write",
243
+ "outputs":[
244
+ {
245
+ "type":"uint256",
246
+ "name":""
247
+ }
248
+ ],
249
+ "inputs":[
250
+ {
251
+ "type":"address",
252
+ "name":"addr"
253
+ }
254
+ ],
255
+ "stateMutability":"nonpayable",
256
+ "type":"function"
257
+ },
258
+ {
259
+ "name":"gauge_relative_weight_write",
260
+ "outputs":[
261
+ {
262
+ "type":"uint256",
263
+ "name":""
264
+ }
265
+ ],
266
+ "inputs":[
267
+ {
268
+ "type":"address",
269
+ "name":"addr"
270
+ },
271
+ {
272
+ "type":"uint256",
273
+ "name":"time"
274
+ }
275
+ ],
276
+ "stateMutability":"nonpayable",
277
+ "type":"function"
278
+ },
279
+ {
280
+ "name":"gauge_relative_weight",
281
+ "outputs":[
282
+ {
283
+ "type":"uint256",
284
+ "name":""
285
+ }
286
+ ],
287
+ "inputs":[
288
+ {
289
+ "type":"address",
290
+ "name":"addr"
291
+ }
292
+ ],
293
+ "stateMutability":"view",
294
+ "type":"function"
295
+ },
296
+ {
297
+ "name":"gauge_relative_weight",
298
+ "outputs":[
299
+ {
300
+ "type":"uint256",
301
+ "name":""
302
+ }
303
+ ],
304
+ "inputs":[
305
+ {
306
+ "type":"address",
307
+ "name":"addr"
308
+ },
309
+ {
310
+ "type":"uint256",
311
+ "name":"time"
312
+ }
313
+ ],
314
+ "stateMutability":"view",
315
+ "type":"function"
316
+ },
317
+ {
318
+ "name":"add_type",
319
+ "outputs":[],
320
+ "inputs":[
321
+ {
322
+ "type":"string",
323
+ "name":"_name"
324
+ },
325
+ {
326
+ "type":"uint256",
327
+ "name":"weight"
328
+ }
329
+ ],
330
+ "stateMutability":"nonpayable",
331
+ "type":"function"
332
+ },
333
+ {
334
+ "name":"change_type_weight",
335
+ "outputs":[],
336
+ "inputs":[
337
+ {
338
+ "type":"int128",
339
+ "name":"type_id"
340
+ },
341
+ {
342
+ "type":"uint256",
343
+ "name":"weight"
344
+ }
345
+ ],
346
+ "stateMutability":"nonpayable",
347
+ "type":"function",
348
+ "gas":"36246310050"
349
+ },
350
+ {
351
+ "name":"change_gauge_weight",
352
+ "outputs":[],
353
+ "inputs":[
354
+ {
355
+ "type":"address",
356
+ "name":"addr"
357
+ },
358
+ {
359
+ "type":"uint256",
360
+ "name":"weight"
361
+ }
362
+ ],
363
+ "stateMutability":"nonpayable",
364
+ "type":"function",
365
+ "gas":"36354170809"
366
+ },
367
+ {
368
+ "name":"vote_for_gauge_weights",
369
+ "outputs":[],
370
+ "inputs":[
371
+ {
372
+ "type":"address",
373
+ "name":"_gauge_addr"
374
+ },
375
+ {
376
+ "type":"uint256",
377
+ "name":"_user_weight"
378
+ }
379
+ ],
380
+ "stateMutability":"nonpayable",
381
+ "type":"function",
382
+ "gas":"18142052127"
383
+ },
384
+ {
385
+ "name":"get_gauge_weight",
386
+ "outputs":[
387
+ {
388
+ "type":"uint256",
389
+ "name":""
390
+ }
391
+ ],
392
+ "inputs":[
393
+ {
394
+ "type":"address",
395
+ "name":"addr"
396
+ }
397
+ ],
398
+ "stateMutability":"view",
399
+ "type":"function",
400
+ "gas":"2974"
401
+ },
402
+ {
403
+ "name":"get_type_weight",
404
+ "outputs":[
405
+ {
406
+ "type":"uint256",
407
+ "name":""
408
+ }
409
+ ],
410
+ "inputs":[
411
+ {
412
+ "type":"int128",
413
+ "name":"type_id"
414
+ }
415
+ ],
416
+ "stateMutability":"view",
417
+ "type":"function",
418
+ "gas":"2977"
419
+ },
420
+ {
421
+ "name":"get_total_weight",
422
+ "outputs":[
423
+ {
424
+ "type":"uint256",
425
+ "name":""
426
+ }
427
+ ],
428
+ "inputs":[],
429
+ "stateMutability":"view",
430
+ "type":"function",
431
+ "gas":"2693"
432
+ },
433
+ {
434
+ "name":"get_weights_sum_per_type",
435
+ "outputs":[
436
+ {
437
+ "type":"uint256",
438
+ "name":""
439
+ }
440
+ ],
441
+ "inputs":[
442
+ {
443
+ "type":"int128",
444
+ "name":"type_id"
445
+ }
446
+ ],
447
+ "stateMutability":"view",
448
+ "type":"function",
449
+ "gas":"3109"
450
+ },
451
+ {
452
+ "name":"admin",
453
+ "outputs":[
454
+ {
455
+ "type":"address",
456
+ "name":""
457
+ }
458
+ ],
459
+ "inputs":[],
460
+ "stateMutability":"view",
461
+ "type":"function",
462
+ "gas":"1841"
463
+ },
464
+ {
465
+ "name":"future_admin",
466
+ "outputs":[
467
+ {
468
+ "type":"address",
469
+ "name":""
470
+ }
471
+ ],
472
+ "inputs":[],
473
+ "stateMutability":"view",
474
+ "type":"function",
475
+ "gas":"1871"
476
+ },
477
+ {
478
+ "name":"token",
479
+ "outputs":[
480
+ {
481
+ "type":"address",
482
+ "name":""
483
+ }
484
+ ],
485
+ "inputs":[],
486
+ "stateMutability":"view",
487
+ "type":"function",
488
+ "gas":"1901"
489
+ },
490
+ {
491
+ "name":"voting_escrow",
492
+ "outputs":[
493
+ {
494
+ "type":"address",
495
+ "name":""
496
+ }
497
+ ],
498
+ "inputs":[],
499
+ "stateMutability":"view",
500
+ "type":"function",
501
+ "gas":"1931"
502
+ },
503
+ {
504
+ "name":"n_gauge_types",
505
+ "outputs":[
506
+ {
507
+ "type":"int128",
508
+ "name":""
509
+ }
510
+ ],
511
+ "inputs":[],
512
+ "stateMutability":"view",
513
+ "type":"function",
514
+ "gas":"1961"
515
+ },
516
+ {
517
+ "name":"n_gauges",
518
+ "outputs":[
519
+ {
520
+ "type":"int128",
521
+ "name":""
522
+ }
523
+ ],
524
+ "inputs":[],
525
+ "stateMutability":"view",
526
+ "type":"function",
527
+ "gas":"1991"
528
+ },
529
+ {
530
+ "name":"gauge_type_names",
531
+ "outputs":[
532
+ {
533
+ "type":"string",
534
+ "name":""
535
+ }
536
+ ],
537
+ "inputs":[
538
+ {
539
+ "type":"int128",
540
+ "name":"arg0"
541
+ }
542
+ ],
543
+ "stateMutability":"view",
544
+ "type":"function",
545
+ "gas":"8628"
546
+ },
547
+ {
548
+ "name":"gauges",
549
+ "outputs":[
550
+ {
551
+ "type":"address",
552
+ "name":""
553
+ }
554
+ ],
555
+ "inputs":[
556
+ {
557
+ "type":"uint256",
558
+ "name":"arg0"
559
+ }
560
+ ],
561
+ "stateMutability":"view",
562
+ "type":"function",
563
+ "gas":"2160"
564
+ },
565
+ {
566
+ "name":"vote_user_slopes",
567
+ "outputs":[
568
+ {
569
+ "type":"uint256",
570
+ "name":"slope"
571
+ },
572
+ {
573
+ "type":"uint256",
574
+ "name":"power"
575
+ },
576
+ {
577
+ "type":"uint256",
578
+ "name":"end"
579
+ }
580
+ ],
581
+ "inputs":[
582
+ {
583
+ "type":"address",
584
+ "name":"arg0"
585
+ },
586
+ {
587
+ "type":"address",
588
+ "name":"arg1"
589
+ }
590
+ ],
591
+ "stateMutability":"view",
592
+ "type":"function",
593
+ "gas":"5020"
594
+ },
595
+ {
596
+ "name":"vote_user_power",
597
+ "outputs":[
598
+ {
599
+ "type":"uint256",
600
+ "name":""
601
+ }
602
+ ],
603
+ "inputs":[
604
+ {
605
+ "type":"address",
606
+ "name":"arg0"
607
+ }
608
+ ],
609
+ "stateMutability":"view",
610
+ "type":"function",
611
+ "gas":"2265"
612
+ },
613
+ {
614
+ "name":"last_user_vote",
615
+ "outputs":[
616
+ {
617
+ "type":"uint256",
618
+ "name":""
619
+ }
620
+ ],
621
+ "inputs":[
622
+ {
623
+ "type":"address",
624
+ "name":"arg0"
625
+ },
626
+ {
627
+ "type":"address",
628
+ "name":"arg1"
629
+ }
630
+ ],
631
+ "stateMutability":"view",
632
+ "type":"function",
633
+ "gas":"2449"
634
+ },
635
+ {
636
+ "name":"points_weight",
637
+ "outputs":[
638
+ {
639
+ "type":"uint256",
640
+ "name":"bias"
641
+ },
642
+ {
643
+ "type":"uint256",
644
+ "name":"slope"
645
+ }
646
+ ],
647
+ "inputs":[
648
+ {
649
+ "type":"address",
650
+ "name":"arg0"
651
+ },
652
+ {
653
+ "type":"uint256",
654
+ "name":"arg1"
655
+ }
656
+ ],
657
+ "stateMutability":"view",
658
+ "type":"function",
659
+ "gas":"3859"
660
+ },
661
+ {
662
+ "name":"time_weight",
663
+ "outputs":[
664
+ {
665
+ "type":"uint256",
666
+ "name":""
667
+ }
668
+ ],
669
+ "inputs":[
670
+ {
671
+ "type":"address",
672
+ "name":"arg0"
673
+ }
674
+ ],
675
+ "stateMutability":"view",
676
+ "type":"function",
677
+ "gas":"2355"
678
+ },
679
+ {
680
+ "name":"points_sum",
681
+ "outputs":[
682
+ {
683
+ "type":"uint256",
684
+ "name":"bias"
685
+ },
686
+ {
687
+ "type":"uint256",
688
+ "name":"slope"
689
+ }
690
+ ],
691
+ "inputs":[
692
+ {
693
+ "type":"int128",
694
+ "name":"arg0"
695
+ },
696
+ {
697
+ "type":"uint256",
698
+ "name":"arg1"
699
+ }
700
+ ],
701
+ "stateMutability":"view",
702
+ "type":"function",
703
+ "gas":"3970"
704
+ },
705
+ {
706
+ "name":"time_sum",
707
+ "outputs":[
708
+ {
709
+ "type":"uint256",
710
+ "name":""
711
+ }
712
+ ],
713
+ "inputs":[
714
+ {
715
+ "type":"uint256",
716
+ "name":"arg0"
717
+ }
718
+ ],
719
+ "stateMutability":"view",
720
+ "type":"function",
721
+ "gas":"2370"
722
+ },
723
+ {
724
+ "name":"points_total",
725
+ "outputs":[
726
+ {
727
+ "type":"uint256",
728
+ "name":""
729
+ }
730
+ ],
731
+ "inputs":[
732
+ {
733
+ "type":"uint256",
734
+ "name":"arg0"
735
+ }
736
+ ],
737
+ "stateMutability":"view",
738
+ "type":"function",
739
+ "gas":"2406"
740
+ },
741
+ {
742
+ "name":"time_total",
743
+ "outputs":[
744
+ {
745
+ "type":"uint256",
746
+ "name":""
747
+ }
748
+ ],
749
+ "inputs":[],
750
+ "stateMutability":"view",
751
+ "type":"function",
752
+ "gas":"2321"
753
+ },
754
+ {
755
+ "name":"points_type_weight",
756
+ "outputs":[
757
+ {
758
+ "type":"uint256",
759
+ "name":""
760
+ }
761
+ ],
762
+ "inputs":[
763
+ {
764
+ "type":"int128",
765
+ "name":"arg0"
766
+ },
767
+ {
768
+ "type":"uint256",
769
+ "name":"arg1"
770
+ }
771
+ ],
772
+ "stateMutability":"view",
773
+ "type":"function",
774
+ "gas":"2671"
775
+ },
776
+ {
777
+ "name":"time_type_weight",
778
+ "outputs":[
779
+ {
780
+ "type":"uint256",
781
+ "name":""
782
+ }
783
+ ],
784
+ "inputs":[
785
+ {
786
+ "type":"uint256",
787
+ "name":"arg0"
788
+ }
789
+ ],
790
+ "stateMutability":"view",
791
+ "type":"function",
792
+ "gas":"2490"
793
+ }
794
+ ]