@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,939 @@
1
+ [
2
+ {
3
+ "name": "Approval",
4
+ "inputs": [
5
+ {
6
+ "name": "_owner",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "_spender",
12
+ "type": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "name": "_value",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ }
20
+ ],
21
+ "anonymous": false,
22
+ "type": "event"
23
+ },
24
+ {
25
+ "name": "Transfer",
26
+ "inputs": [
27
+ {
28
+ "name": "_from",
29
+ "type": "address",
30
+ "indexed": true
31
+ },
32
+ {
33
+ "name": "_to",
34
+ "type": "address",
35
+ "indexed": true
36
+ },
37
+ {
38
+ "name": "_value",
39
+ "type": "uint256",
40
+ "indexed": false
41
+ }
42
+ ],
43
+ "anonymous": false,
44
+ "type": "event"
45
+ },
46
+ {
47
+ "name": "Deposit",
48
+ "inputs": [
49
+ {
50
+ "name": "_user",
51
+ "type": "address",
52
+ "indexed": true
53
+ },
54
+ {
55
+ "name": "_value",
56
+ "type": "uint256",
57
+ "indexed": false
58
+ }
59
+ ],
60
+ "anonymous": false,
61
+ "type": "event"
62
+ },
63
+ {
64
+ "name": "Withdraw",
65
+ "inputs": [
66
+ {
67
+ "name": "_user",
68
+ "type": "address",
69
+ "indexed": true
70
+ },
71
+ {
72
+ "name": "_value",
73
+ "type": "uint256",
74
+ "indexed": false
75
+ }
76
+ ],
77
+ "anonymous": false,
78
+ "type": "event"
79
+ },
80
+ {
81
+ "name": "UpdateLiquidityLimit",
82
+ "inputs": [
83
+ {
84
+ "name": "_user",
85
+ "type": "address",
86
+ "indexed": true
87
+ },
88
+ {
89
+ "name": "_original_balance",
90
+ "type": "uint256",
91
+ "indexed": false
92
+ },
93
+ {
94
+ "name": "_original_supply",
95
+ "type": "uint256",
96
+ "indexed": false
97
+ },
98
+ {
99
+ "name": "_working_balance",
100
+ "type": "uint256",
101
+ "indexed": false
102
+ },
103
+ {
104
+ "name": "_working_supply",
105
+ "type": "uint256",
106
+ "indexed": false
107
+ }
108
+ ],
109
+ "anonymous": false,
110
+ "type": "event"
111
+ },
112
+ {
113
+ "stateMutability": "nonpayable",
114
+ "type": "constructor",
115
+ "inputs": [
116
+ {
117
+ "name": "_crv_token",
118
+ "type": "address"
119
+ },
120
+ {
121
+ "name": "_factory",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "outputs": []
126
+ },
127
+ {
128
+ "stateMutability": "nonpayable",
129
+ "type": "function",
130
+ "name": "deposit",
131
+ "inputs": [
132
+ {
133
+ "name": "_value",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "outputs": []
138
+ },
139
+ {
140
+ "stateMutability": "nonpayable",
141
+ "type": "function",
142
+ "name": "withdraw",
143
+ "inputs": [
144
+ {
145
+ "name": "_value",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "outputs": []
150
+ },
151
+ {
152
+ "stateMutability": "nonpayable",
153
+ "type": "function",
154
+ "name": "transferFrom",
155
+ "inputs": [
156
+ {
157
+ "name": "_from",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "name": "_to",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "name": "_value",
166
+ "type": "uint256"
167
+ }
168
+ ],
169
+ "outputs": [
170
+ {
171
+ "name": "",
172
+ "type": "bool"
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "stateMutability": "nonpayable",
178
+ "type": "function",
179
+ "name": "approve",
180
+ "inputs": [
181
+ {
182
+ "name": "_spender",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "name": "_value",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "outputs": [
191
+ {
192
+ "name": "",
193
+ "type": "bool"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "stateMutability": "nonpayable",
199
+ "type": "function",
200
+ "name": "permit",
201
+ "inputs": [
202
+ {
203
+ "name": "_owner",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "name": "_spender",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "name": "_value",
212
+ "type": "uint256"
213
+ },
214
+ {
215
+ "name": "_deadline",
216
+ "type": "uint256"
217
+ },
218
+ {
219
+ "name": "_v",
220
+ "type": "uint8"
221
+ },
222
+ {
223
+ "name": "_r",
224
+ "type": "bytes32"
225
+ },
226
+ {
227
+ "name": "_s",
228
+ "type": "bytes32"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "name": "",
234
+ "type": "bool"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "stateMutability": "nonpayable",
240
+ "type": "function",
241
+ "name": "transfer",
242
+ "inputs": [
243
+ {
244
+ "name": "_to",
245
+ "type": "address"
246
+ },
247
+ {
248
+ "name": "_value",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "outputs": [
253
+ {
254
+ "name": "",
255
+ "type": "bool"
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "stateMutability": "nonpayable",
261
+ "type": "function",
262
+ "name": "increaseAllowance",
263
+ "inputs": [
264
+ {
265
+ "name": "_spender",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "name": "_added_value",
270
+ "type": "uint256"
271
+ }
272
+ ],
273
+ "outputs": [
274
+ {
275
+ "name": "",
276
+ "type": "bool"
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "stateMutability": "nonpayable",
282
+ "type": "function",
283
+ "name": "decreaseAllowance",
284
+ "inputs": [
285
+ {
286
+ "name": "_spender",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "name": "_subtracted_value",
291
+ "type": "uint256"
292
+ }
293
+ ],
294
+ "outputs": [
295
+ {
296
+ "name": "",
297
+ "type": "bool"
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "stateMutability": "nonpayable",
303
+ "type": "function",
304
+ "name": "user_checkpoint",
305
+ "inputs": [
306
+ {
307
+ "name": "addr",
308
+ "type": "address"
309
+ }
310
+ ],
311
+ "outputs": [
312
+ {
313
+ "name": "",
314
+ "type": "bool"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "stateMutability": "view",
320
+ "type": "function",
321
+ "name": "claimable_tokens",
322
+ "inputs": [
323
+ {
324
+ "name": "addr",
325
+ "type": "address"
326
+ }
327
+ ],
328
+ "outputs": [
329
+ {
330
+ "name": "",
331
+ "type": "uint256"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "stateMutability": "view",
337
+ "type": "function",
338
+ "name": "claimed_reward",
339
+ "inputs": [
340
+ {
341
+ "name": "_addr",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "name": "_token",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "outputs": [
350
+ {
351
+ "name": "",
352
+ "type": "uint256"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "stateMutability": "view",
358
+ "type": "function",
359
+ "name": "claimable_reward",
360
+ "inputs": [
361
+ {
362
+ "name": "_user",
363
+ "type": "address"
364
+ },
365
+ {
366
+ "name": "_reward_token",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "outputs": [
371
+ {
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ "stateMutability": "nonpayable",
379
+ "type": "function",
380
+ "name": "set_rewards_receiver",
381
+ "inputs": [
382
+ {
383
+ "name": "_receiver",
384
+ "type": "address"
385
+ }
386
+ ],
387
+ "outputs": []
388
+ },
389
+ {
390
+ "stateMutability": "nonpayable",
391
+ "type": "function",
392
+ "name": "claim_rewards",
393
+ "inputs": [],
394
+ "outputs": []
395
+ },
396
+ {
397
+ "stateMutability": "nonpayable",
398
+ "type": "function",
399
+ "name": "add_reward",
400
+ "inputs": [
401
+ {
402
+ "name": "_reward_token",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "name": "_distributor",
407
+ "type": "address"
408
+ }
409
+ ],
410
+ "outputs": []
411
+ },
412
+ {
413
+ "stateMutability": "nonpayable",
414
+ "type": "function",
415
+ "name": "set_reward_distributor",
416
+ "inputs": [
417
+ {
418
+ "name": "_reward_token",
419
+ "type": "address"
420
+ },
421
+ {
422
+ "name": "_distributor",
423
+ "type": "address"
424
+ }
425
+ ],
426
+ "outputs": []
427
+ },
428
+ {
429
+ "stateMutability": "nonpayable",
430
+ "type": "function",
431
+ "name": "deposit_reward_token",
432
+ "inputs": [
433
+ {
434
+ "name": "_reward_token",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "name": "_amount",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "outputs": []
443
+ },
444
+ {
445
+ "stateMutability": "nonpayable",
446
+ "type": "function",
447
+ "name": "set_manager",
448
+ "inputs": [
449
+ {
450
+ "name": "_manager",
451
+ "type": "address"
452
+ }
453
+ ],
454
+ "outputs": []
455
+ },
456
+ {
457
+ "stateMutability": "nonpayable",
458
+ "type": "function",
459
+ "name": "update_voting_escrow",
460
+ "inputs": [],
461
+ "outputs": []
462
+ },
463
+ {
464
+ "stateMutability": "nonpayable",
465
+ "type": "function",
466
+ "name": "set_killed",
467
+ "inputs": [
468
+ {
469
+ "name": "_is_killed",
470
+ "type": "bool"
471
+ }
472
+ ],
473
+ "outputs": []
474
+ },
475
+ {
476
+ "stateMutability": "view",
477
+ "type": "function",
478
+ "name": "decimals",
479
+ "inputs": [],
480
+ "outputs": [
481
+ {
482
+ "name": "",
483
+ "type": "uint256"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "stateMutability": "view",
489
+ "type": "function",
490
+ "name": "integrate_checkpoint",
491
+ "inputs": [],
492
+ "outputs": [
493
+ {
494
+ "name": "",
495
+ "type": "uint256"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "stateMutability": "view",
501
+ "type": "function",
502
+ "name": "version",
503
+ "inputs": [],
504
+ "outputs": [
505
+ {
506
+ "name": "",
507
+ "type": "string"
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ "stateMutability": "view",
513
+ "type": "function",
514
+ "name": "factory",
515
+ "inputs": [],
516
+ "outputs": [
517
+ {
518
+ "name": "",
519
+ "type": "address"
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "stateMutability": "nonpayable",
525
+ "type": "function",
526
+ "name": "initialize",
527
+ "inputs": [
528
+ {
529
+ "name": "_lp_token",
530
+ "type": "address"
531
+ },
532
+ {
533
+ "name": "_manager",
534
+ "type": "address"
535
+ }
536
+ ],
537
+ "outputs": []
538
+ },
539
+ {
540
+ "stateMutability": "view",
541
+ "type": "function",
542
+ "name": "DOMAIN_SEPARATOR",
543
+ "inputs": [],
544
+ "outputs": [
545
+ {
546
+ "name": "",
547
+ "type": "bytes32"
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "stateMutability": "view",
553
+ "type": "function",
554
+ "name": "nonces",
555
+ "inputs": [
556
+ {
557
+ "name": "arg0",
558
+ "type": "address"
559
+ }
560
+ ],
561
+ "outputs": [
562
+ {
563
+ "name": "",
564
+ "type": "uint256"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "stateMutability": "view",
570
+ "type": "function",
571
+ "name": "name",
572
+ "inputs": [],
573
+ "outputs": [
574
+ {
575
+ "name": "",
576
+ "type": "string"
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "stateMutability": "view",
582
+ "type": "function",
583
+ "name": "symbol",
584
+ "inputs": [],
585
+ "outputs": [
586
+ {
587
+ "name": "",
588
+ "type": "string"
589
+ }
590
+ ]
591
+ },
592
+ {
593
+ "stateMutability": "view",
594
+ "type": "function",
595
+ "name": "allowance",
596
+ "inputs": [
597
+ {
598
+ "name": "arg0",
599
+ "type": "address"
600
+ },
601
+ {
602
+ "name": "arg1",
603
+ "type": "address"
604
+ }
605
+ ],
606
+ "outputs": [
607
+ {
608
+ "name": "",
609
+ "type": "uint256"
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "stateMutability": "view",
615
+ "type": "function",
616
+ "name": "balanceOf",
617
+ "inputs": [
618
+ {
619
+ "name": "arg0",
620
+ "type": "address"
621
+ }
622
+ ],
623
+ "outputs": [
624
+ {
625
+ "name": "",
626
+ "type": "uint256"
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "stateMutability": "view",
632
+ "type": "function",
633
+ "name": "totalSupply",
634
+ "inputs": [],
635
+ "outputs": [
636
+ {
637
+ "name": "",
638
+ "type": "uint256"
639
+ }
640
+ ]
641
+ },
642
+ {
643
+ "stateMutability": "view",
644
+ "type": "function",
645
+ "name": "lp_token",
646
+ "inputs": [],
647
+ "outputs": [
648
+ {
649
+ "name": "",
650
+ "type": "address"
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ "stateMutability": "view",
656
+ "type": "function",
657
+ "name": "manager",
658
+ "inputs": [],
659
+ "outputs": [
660
+ {
661
+ "name": "",
662
+ "type": "address"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "stateMutability": "view",
668
+ "type": "function",
669
+ "name": "voting_escrow",
670
+ "inputs": [],
671
+ "outputs": [
672
+ {
673
+ "name": "",
674
+ "type": "address"
675
+ }
676
+ ]
677
+ },
678
+ {
679
+ "stateMutability": "view",
680
+ "type": "function",
681
+ "name": "working_balances",
682
+ "inputs": [
683
+ {
684
+ "name": "arg0",
685
+ "type": "address"
686
+ }
687
+ ],
688
+ "outputs": [
689
+ {
690
+ "name": "",
691
+ "type": "uint256"
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ "stateMutability": "view",
697
+ "type": "function",
698
+ "name": "working_supply",
699
+ "inputs": [],
700
+ "outputs": [
701
+ {
702
+ "name": "",
703
+ "type": "uint256"
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "stateMutability": "view",
709
+ "type": "function",
710
+ "name": "period",
711
+ "inputs": [],
712
+ "outputs": [
713
+ {
714
+ "name": "",
715
+ "type": "uint256"
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "stateMutability": "view",
721
+ "type": "function",
722
+ "name": "period_timestamp",
723
+ "inputs": [
724
+ {
725
+ "name": "arg0",
726
+ "type": "uint256"
727
+ }
728
+ ],
729
+ "outputs": [
730
+ {
731
+ "name": "",
732
+ "type": "uint256"
733
+ }
734
+ ]
735
+ },
736
+ {
737
+ "stateMutability": "view",
738
+ "type": "function",
739
+ "name": "integrate_checkpoint_of",
740
+ "inputs": [
741
+ {
742
+ "name": "arg0",
743
+ "type": "address"
744
+ }
745
+ ],
746
+ "outputs": [
747
+ {
748
+ "name": "",
749
+ "type": "uint256"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "stateMutability": "view",
755
+ "type": "function",
756
+ "name": "integrate_fraction",
757
+ "inputs": [
758
+ {
759
+ "name": "arg0",
760
+ "type": "address"
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "name": "",
766
+ "type": "uint256"
767
+ }
768
+ ]
769
+ },
770
+ {
771
+ "stateMutability": "view",
772
+ "type": "function",
773
+ "name": "integrate_inv_supply",
774
+ "inputs": [
775
+ {
776
+ "name": "arg0",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "outputs": [
781
+ {
782
+ "name": "",
783
+ "type": "uint256"
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "stateMutability": "view",
789
+ "type": "function",
790
+ "name": "integrate_inv_supply_of",
791
+ "inputs": [
792
+ {
793
+ "name": "arg0",
794
+ "type": "address"
795
+ }
796
+ ],
797
+ "outputs": [
798
+ {
799
+ "name": "",
800
+ "type": "uint256"
801
+ }
802
+ ]
803
+ },
804
+ {
805
+ "stateMutability": "view",
806
+ "type": "function",
807
+ "name": "reward_count",
808
+ "inputs": [],
809
+ "outputs": [
810
+ {
811
+ "name": "",
812
+ "type": "uint256"
813
+ }
814
+ ]
815
+ },
816
+ {
817
+ "stateMutability": "view",
818
+ "type": "function",
819
+ "name": "reward_tokens",
820
+ "inputs": [
821
+ {
822
+ "name": "arg0",
823
+ "type": "uint256"
824
+ }
825
+ ],
826
+ "outputs": [
827
+ {
828
+ "name": "",
829
+ "type": "address"
830
+ }
831
+ ]
832
+ },
833
+ {
834
+ "stateMutability": "view",
835
+ "type": "function",
836
+ "name": "reward_data",
837
+ "inputs": [
838
+ {
839
+ "name": "arg0",
840
+ "type": "address"
841
+ }
842
+ ],
843
+ "outputs": [
844
+ {
845
+ "name": "",
846
+ "type": "tuple",
847
+ "components": [
848
+ {
849
+ "name": "distributor",
850
+ "type": "address"
851
+ },
852
+ {
853
+ "name": "period_finish",
854
+ "type": "uint256"
855
+ },
856
+ {
857
+ "name": "rate",
858
+ "type": "uint256"
859
+ },
860
+ {
861
+ "name": "last_update",
862
+ "type": "uint256"
863
+ },
864
+ {
865
+ "name": "integral",
866
+ "type": "uint256"
867
+ }
868
+ ]
869
+ }
870
+ ]
871
+ },
872
+ {
873
+ "stateMutability": "view",
874
+ "type": "function",
875
+ "name": "rewards_receiver",
876
+ "inputs": [
877
+ {
878
+ "name": "arg0",
879
+ "type": "address"
880
+ }
881
+ ],
882
+ "outputs": [
883
+ {
884
+ "name": "",
885
+ "type": "address"
886
+ }
887
+ ]
888
+ },
889
+ {
890
+ "stateMutability": "view",
891
+ "type": "function",
892
+ "name": "reward_integral_for",
893
+ "inputs": [
894
+ {
895
+ "name": "arg0",
896
+ "type": "address"
897
+ },
898
+ {
899
+ "name": "arg1",
900
+ "type": "address"
901
+ }
902
+ ],
903
+ "outputs": [
904
+ {
905
+ "name": "",
906
+ "type": "uint256"
907
+ }
908
+ ]
909
+ },
910
+ {
911
+ "stateMutability": "view",
912
+ "type": "function",
913
+ "name": "is_killed",
914
+ "inputs": [],
915
+ "outputs": [
916
+ {
917
+ "name": "",
918
+ "type": "bool"
919
+ }
920
+ ]
921
+ },
922
+ {
923
+ "stateMutability": "view",
924
+ "type": "function",
925
+ "name": "inflation_rate",
926
+ "inputs": [
927
+ {
928
+ "name": "arg0",
929
+ "type": "uint256"
930
+ }
931
+ ],
932
+ "outputs": [
933
+ {
934
+ "name": "",
935
+ "type": "uint256"
936
+ }
937
+ ]
938
+ }
939
+ ]