@kasarlabs/opus-mcp 0.1.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 (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -0
  3. package/bin/opus-mcp.js +14 -0
  4. package/build/index.d.ts +2 -0
  5. package/build/index.js +106 -0
  6. package/build/index.js.map +1 -0
  7. package/build/interfaces/index.d.ts +49 -0
  8. package/build/interfaces/index.js +2 -0
  9. package/build/interfaces/index.js.map +1 -0
  10. package/build/lib/abis/abbotAbi.d.ts +283 -0
  11. package/build/lib/abis/abbotAbi.js +384 -0
  12. package/build/lib/abis/abbotAbi.js.map +1 -0
  13. package/build/lib/abis/erc20Abi.d.ts +197 -0
  14. package/build/lib/abis/erc20Abi.js +273 -0
  15. package/build/lib/abis/erc20Abi.js.map +1 -0
  16. package/build/lib/abis/sentinelAbi.d.ts +476 -0
  17. package/build/lib/abis/sentinelAbi.js +651 -0
  18. package/build/lib/abis/sentinelAbi.js.map +1 -0
  19. package/build/lib/abis/shrineAbi.d.ts +1426 -0
  20. package/build/lib/abis/shrineAbi.js +1937 -0
  21. package/build/lib/abis/shrineAbi.js.map +1 -0
  22. package/build/lib/constant/erc20.d.ts +3 -0
  23. package/build/lib/constant/erc20.js +34 -0
  24. package/build/lib/constant/erc20.js.map +1 -0
  25. package/build/lib/constant/index.d.ts +83 -0
  26. package/build/lib/constant/index.js +38 -0
  27. package/build/lib/constant/index.js.map +1 -0
  28. package/build/lib/dependances/types.d.ts +85 -0
  29. package/build/lib/dependances/types.js +51 -0
  30. package/build/lib/dependances/types.js.map +1 -0
  31. package/build/lib/types/index.d.ts +14 -0
  32. package/build/lib/types/index.js +2 -0
  33. package/build/lib/types/index.js.map +1 -0
  34. package/build/lib/utils/contracts.d.ts +2383 -0
  35. package/build/lib/utils/contracts.js +26 -0
  36. package/build/lib/utils/contracts.js.map +1 -0
  37. package/build/lib/utils/format.d.ts +5 -0
  38. package/build/lib/utils/format.js +11 -0
  39. package/build/lib/utils/format.js.map +1 -0
  40. package/build/lib/utils/troveManager.d.ts +27 -0
  41. package/build/lib/utils/troveManager.js +386 -0
  42. package/build/lib/utils/troveManager.js.map +1 -0
  43. package/build/schemas/index.d.ts +332 -0
  44. package/build/schemas/index.js +73 -0
  45. package/build/schemas/index.js.map +1 -0
  46. package/build/tools/borrowTrove.d.ts +11 -0
  47. package/build/tools/borrowTrove.js +19 -0
  48. package/build/tools/borrowTrove.js.map +1 -0
  49. package/build/tools/depositTrove.d.ts +11 -0
  50. package/build/tools/depositTrove.js +19 -0
  51. package/build/tools/depositTrove.js.map +1 -0
  52. package/build/tools/getters.d.ts +29 -0
  53. package/build/tools/getters.js +53 -0
  54. package/build/tools/getters.js.map +1 -0
  55. package/build/tools/openTrove.d.ts +11 -0
  56. package/build/tools/openTrove.js +19 -0
  57. package/build/tools/openTrove.js.map +1 -0
  58. package/build/tools/repayTrove.d.ts +11 -0
  59. package/build/tools/repayTrove.js +19 -0
  60. package/build/tools/repayTrove.js.map +1 -0
  61. package/build/tools/withdrawTrove.d.ts +11 -0
  62. package/build/tools/withdrawTrove.js +19 -0
  63. package/build/tools/withdrawTrove.js.map +1 -0
  64. package/package.json +44 -0
@@ -0,0 +1,1937 @@
1
+ export const shrineAbi = [
2
+ {
3
+ type: 'impl',
4
+ name: 'IShrineImpl',
5
+ interface_name: 'opus::interfaces::IShrine::IShrine',
6
+ },
7
+ {
8
+ type: 'struct',
9
+ name: 'wadray::wadray::Wad',
10
+ members: [
11
+ {
12
+ name: 'val',
13
+ type: 'core::integer::u128',
14
+ },
15
+ ],
16
+ },
17
+ {
18
+ type: 'enum',
19
+ name: 'core::bool',
20
+ variants: [
21
+ {
22
+ name: 'False',
23
+ type: '()',
24
+ },
25
+ {
26
+ name: 'True',
27
+ type: '()',
28
+ },
29
+ ],
30
+ },
31
+ {
32
+ type: 'struct',
33
+ name: 'wadray::wadray_signed::SignedWad',
34
+ members: [
35
+ {
36
+ name: 'val',
37
+ type: 'core::integer::u128',
38
+ },
39
+ {
40
+ name: 'sign',
41
+ type: 'core::bool',
42
+ },
43
+ ],
44
+ },
45
+ {
46
+ type: 'struct',
47
+ name: 'wadray::wadray::Ray',
48
+ members: [
49
+ {
50
+ name: 'val',
51
+ type: 'core::integer::u128',
52
+ },
53
+ ],
54
+ },
55
+ {
56
+ type: 'enum',
57
+ name: 'opus::types::YangSuspensionStatus',
58
+ variants: [
59
+ {
60
+ name: 'None',
61
+ type: '()',
62
+ },
63
+ {
64
+ name: 'Temporary',
65
+ type: '()',
66
+ },
67
+ {
68
+ name: 'Permanent',
69
+ type: '()',
70
+ },
71
+ ],
72
+ },
73
+ {
74
+ type: 'struct',
75
+ name: 'opus::types::YangRedistribution',
76
+ members: [
77
+ {
78
+ name: 'unit_debt',
79
+ type: 'wadray::wadray::Wad',
80
+ },
81
+ {
82
+ name: 'error',
83
+ type: 'wadray::wadray::Wad',
84
+ },
85
+ {
86
+ name: 'exception',
87
+ type: 'core::bool',
88
+ },
89
+ ],
90
+ },
91
+ {
92
+ type: 'struct',
93
+ name: 'opus::types::ExceptionalYangRedistribution',
94
+ members: [
95
+ {
96
+ name: 'unit_debt',
97
+ type: 'wadray::wadray::Wad',
98
+ },
99
+ {
100
+ name: 'unit_yang',
101
+ type: 'wadray::wadray::Wad',
102
+ },
103
+ ],
104
+ },
105
+ {
106
+ type: 'struct',
107
+ name: 'core::array::Span::<core::starknet::contract_address::ContractAddress>',
108
+ members: [
109
+ {
110
+ name: 'snapshot',
111
+ type: '@core::array::Array::<core::starknet::contract_address::ContractAddress>',
112
+ },
113
+ ],
114
+ },
115
+ {
116
+ type: 'struct',
117
+ name: 'core::array::Span::<wadray::wadray::Ray>',
118
+ members: [
119
+ {
120
+ name: 'snapshot',
121
+ type: '@core::array::Array::<wadray::wadray::Ray>',
122
+ },
123
+ ],
124
+ },
125
+ {
126
+ type: 'struct',
127
+ name: 'opus::types::Health',
128
+ members: [
129
+ {
130
+ name: 'threshold',
131
+ type: 'wadray::wadray::Ray',
132
+ },
133
+ {
134
+ name: 'ltv',
135
+ type: 'wadray::wadray::Ray',
136
+ },
137
+ {
138
+ name: 'value',
139
+ type: 'wadray::wadray::Wad',
140
+ },
141
+ {
142
+ name: 'debt',
143
+ type: 'wadray::wadray::Wad',
144
+ },
145
+ ],
146
+ },
147
+ {
148
+ type: 'struct',
149
+ name: 'opus::types::YangBalance',
150
+ members: [
151
+ {
152
+ name: 'yang_id',
153
+ type: 'core::integer::u32',
154
+ },
155
+ {
156
+ name: 'amount',
157
+ type: 'wadray::wadray::Wad',
158
+ },
159
+ ],
160
+ },
161
+ {
162
+ type: 'struct',
163
+ name: 'core::array::Span::<opus::types::YangBalance>',
164
+ members: [
165
+ {
166
+ name: 'snapshot',
167
+ type: '@core::array::Array::<opus::types::YangBalance>',
168
+ },
169
+ ],
170
+ },
171
+ {
172
+ type: 'interface',
173
+ name: 'opus::interfaces::IShrine::IShrine',
174
+ items: [
175
+ {
176
+ type: 'function',
177
+ name: 'get_yin',
178
+ inputs: [
179
+ {
180
+ name: 'user',
181
+ type: 'core::starknet::contract_address::ContractAddress',
182
+ },
183
+ ],
184
+ outputs: [
185
+ {
186
+ type: 'wadray::wadray::Wad',
187
+ },
188
+ ],
189
+ state_mutability: 'view',
190
+ },
191
+ {
192
+ type: 'function',
193
+ name: 'get_total_yin',
194
+ inputs: [],
195
+ outputs: [
196
+ {
197
+ type: 'wadray::wadray::Wad',
198
+ },
199
+ ],
200
+ state_mutability: 'view',
201
+ },
202
+ {
203
+ type: 'function',
204
+ name: 'get_yin_spot_price',
205
+ inputs: [],
206
+ outputs: [
207
+ {
208
+ type: 'wadray::wadray::Wad',
209
+ },
210
+ ],
211
+ state_mutability: 'view',
212
+ },
213
+ {
214
+ type: 'function',
215
+ name: 'get_yang_total',
216
+ inputs: [
217
+ {
218
+ name: 'yang',
219
+ type: 'core::starknet::contract_address::ContractAddress',
220
+ },
221
+ ],
222
+ outputs: [
223
+ {
224
+ type: 'wadray::wadray::Wad',
225
+ },
226
+ ],
227
+ state_mutability: 'view',
228
+ },
229
+ {
230
+ type: 'function',
231
+ name: 'get_initial_yang_amt',
232
+ inputs: [
233
+ {
234
+ name: 'yang',
235
+ type: 'core::starknet::contract_address::ContractAddress',
236
+ },
237
+ ],
238
+ outputs: [
239
+ {
240
+ type: 'wadray::wadray::Wad',
241
+ },
242
+ ],
243
+ state_mutability: 'view',
244
+ },
245
+ {
246
+ type: 'function',
247
+ name: 'get_yangs_count',
248
+ inputs: [],
249
+ outputs: [
250
+ {
251
+ type: 'core::integer::u32',
252
+ },
253
+ ],
254
+ state_mutability: 'view',
255
+ },
256
+ {
257
+ type: 'function',
258
+ name: 'get_deposit',
259
+ inputs: [
260
+ {
261
+ name: 'yang',
262
+ type: 'core::starknet::contract_address::ContractAddress',
263
+ },
264
+ {
265
+ name: 'trove_id',
266
+ type: 'core::integer::u64',
267
+ },
268
+ ],
269
+ outputs: [
270
+ {
271
+ type: 'wadray::wadray::Wad',
272
+ },
273
+ ],
274
+ state_mutability: 'view',
275
+ },
276
+ {
277
+ type: 'function',
278
+ name: 'get_budget',
279
+ inputs: [],
280
+ outputs: [
281
+ {
282
+ type: 'wadray::wadray_signed::SignedWad',
283
+ },
284
+ ],
285
+ state_mutability: 'view',
286
+ },
287
+ {
288
+ type: 'function',
289
+ name: 'get_yang_price',
290
+ inputs: [
291
+ {
292
+ name: 'yang',
293
+ type: 'core::starknet::contract_address::ContractAddress',
294
+ },
295
+ {
296
+ name: 'interval',
297
+ type: 'core::integer::u64',
298
+ },
299
+ ],
300
+ outputs: [
301
+ {
302
+ type: '(wadray::wadray::Wad, wadray::wadray::Wad)',
303
+ },
304
+ ],
305
+ state_mutability: 'view',
306
+ },
307
+ {
308
+ type: 'function',
309
+ name: 'get_yang_rate',
310
+ inputs: [
311
+ {
312
+ name: 'yang',
313
+ type: 'core::starknet::contract_address::ContractAddress',
314
+ },
315
+ {
316
+ name: 'rate_era',
317
+ type: 'core::integer::u64',
318
+ },
319
+ ],
320
+ outputs: [
321
+ {
322
+ type: 'wadray::wadray::Ray',
323
+ },
324
+ ],
325
+ state_mutability: 'view',
326
+ },
327
+ {
328
+ type: 'function',
329
+ name: 'get_current_rate_era',
330
+ inputs: [],
331
+ outputs: [
332
+ {
333
+ type: 'core::integer::u64',
334
+ },
335
+ ],
336
+ state_mutability: 'view',
337
+ },
338
+ {
339
+ type: 'function',
340
+ name: 'get_minimum_trove_value',
341
+ inputs: [],
342
+ outputs: [
343
+ {
344
+ type: 'wadray::wadray::Wad',
345
+ },
346
+ ],
347
+ state_mutability: 'view',
348
+ },
349
+ {
350
+ type: 'function',
351
+ name: 'get_debt_ceiling',
352
+ inputs: [],
353
+ outputs: [
354
+ {
355
+ type: 'wadray::wadray::Wad',
356
+ },
357
+ ],
358
+ state_mutability: 'view',
359
+ },
360
+ {
361
+ type: 'function',
362
+ name: 'get_multiplier',
363
+ inputs: [
364
+ {
365
+ name: 'interval',
366
+ type: 'core::integer::u64',
367
+ },
368
+ ],
369
+ outputs: [
370
+ {
371
+ type: '(wadray::wadray::Ray, wadray::wadray::Ray)',
372
+ },
373
+ ],
374
+ state_mutability: 'view',
375
+ },
376
+ {
377
+ type: 'function',
378
+ name: 'get_yang_suspension_status',
379
+ inputs: [
380
+ {
381
+ name: 'yang',
382
+ type: 'core::starknet::contract_address::ContractAddress',
383
+ },
384
+ ],
385
+ outputs: [
386
+ {
387
+ type: 'opus::types::YangSuspensionStatus',
388
+ },
389
+ ],
390
+ state_mutability: 'view',
391
+ },
392
+ {
393
+ type: 'function',
394
+ name: 'get_yang_threshold',
395
+ inputs: [
396
+ {
397
+ name: 'yang',
398
+ type: 'core::starknet::contract_address::ContractAddress',
399
+ },
400
+ ],
401
+ outputs: [
402
+ {
403
+ type: '(wadray::wadray::Ray, wadray::wadray::Ray)',
404
+ },
405
+ ],
406
+ state_mutability: 'view',
407
+ },
408
+ {
409
+ type: 'function',
410
+ name: 'get_redistributions_count',
411
+ inputs: [],
412
+ outputs: [
413
+ {
414
+ type: 'core::integer::u32',
415
+ },
416
+ ],
417
+ state_mutability: 'view',
418
+ },
419
+ {
420
+ type: 'function',
421
+ name: 'get_trove_redistribution_id',
422
+ inputs: [
423
+ {
424
+ name: 'trove_id',
425
+ type: 'core::integer::u64',
426
+ },
427
+ ],
428
+ outputs: [
429
+ {
430
+ type: 'core::integer::u32',
431
+ },
432
+ ],
433
+ state_mutability: 'view',
434
+ },
435
+ {
436
+ type: 'function',
437
+ name: 'get_redistribution_for_yang',
438
+ inputs: [
439
+ {
440
+ name: 'yang',
441
+ type: 'core::starknet::contract_address::ContractAddress',
442
+ },
443
+ {
444
+ name: 'redistribution_id',
445
+ type: 'core::integer::u32',
446
+ },
447
+ ],
448
+ outputs: [
449
+ {
450
+ type: 'opus::types::YangRedistribution',
451
+ },
452
+ ],
453
+ state_mutability: 'view',
454
+ },
455
+ {
456
+ type: 'function',
457
+ name: 'get_exceptional_redistribution_for_yang_to_yang',
458
+ inputs: [
459
+ {
460
+ name: 'recipient_yang',
461
+ type: 'core::starknet::contract_address::ContractAddress',
462
+ },
463
+ {
464
+ name: 'redistribution_id',
465
+ type: 'core::integer::u32',
466
+ },
467
+ {
468
+ name: 'redistributed_yang',
469
+ type: 'core::starknet::contract_address::ContractAddress',
470
+ },
471
+ ],
472
+ outputs: [
473
+ {
474
+ type: 'opus::types::ExceptionalYangRedistribution',
475
+ },
476
+ ],
477
+ state_mutability: 'view',
478
+ },
479
+ {
480
+ type: 'function',
481
+ name: 'is_recovery_mode',
482
+ inputs: [],
483
+ outputs: [
484
+ {
485
+ type: 'core::bool',
486
+ },
487
+ ],
488
+ state_mutability: 'view',
489
+ },
490
+ {
491
+ type: 'function',
492
+ name: 'get_live',
493
+ inputs: [],
494
+ outputs: [
495
+ {
496
+ type: 'core::bool',
497
+ },
498
+ ],
499
+ state_mutability: 'view',
500
+ },
501
+ {
502
+ type: 'function',
503
+ name: 'add_yang',
504
+ inputs: [
505
+ {
506
+ name: 'yang',
507
+ type: 'core::starknet::contract_address::ContractAddress',
508
+ },
509
+ {
510
+ name: 'threshold',
511
+ type: 'wadray::wadray::Ray',
512
+ },
513
+ {
514
+ name: 'start_price',
515
+ type: 'wadray::wadray::Wad',
516
+ },
517
+ {
518
+ name: 'initial_rate',
519
+ type: 'wadray::wadray::Ray',
520
+ },
521
+ {
522
+ name: 'initial_yang_amt',
523
+ type: 'wadray::wadray::Wad',
524
+ },
525
+ ],
526
+ outputs: [],
527
+ state_mutability: 'external',
528
+ },
529
+ {
530
+ type: 'function',
531
+ name: 'set_threshold',
532
+ inputs: [
533
+ {
534
+ name: 'yang',
535
+ type: 'core::starknet::contract_address::ContractAddress',
536
+ },
537
+ {
538
+ name: 'new_threshold',
539
+ type: 'wadray::wadray::Ray',
540
+ },
541
+ ],
542
+ outputs: [],
543
+ state_mutability: 'external',
544
+ },
545
+ {
546
+ type: 'function',
547
+ name: 'suspend_yang',
548
+ inputs: [
549
+ {
550
+ name: 'yang',
551
+ type: 'core::starknet::contract_address::ContractAddress',
552
+ },
553
+ ],
554
+ outputs: [],
555
+ state_mutability: 'external',
556
+ },
557
+ {
558
+ type: 'function',
559
+ name: 'unsuspend_yang',
560
+ inputs: [
561
+ {
562
+ name: 'yang',
563
+ type: 'core::starknet::contract_address::ContractAddress',
564
+ },
565
+ ],
566
+ outputs: [],
567
+ state_mutability: 'external',
568
+ },
569
+ {
570
+ type: 'function',
571
+ name: 'update_rates',
572
+ inputs: [
573
+ {
574
+ name: 'yangs',
575
+ type: 'core::array::Span::<core::starknet::contract_address::ContractAddress>',
576
+ },
577
+ {
578
+ name: 'new_rates',
579
+ type: 'core::array::Span::<wadray::wadray::Ray>',
580
+ },
581
+ ],
582
+ outputs: [],
583
+ state_mutability: 'external',
584
+ },
585
+ {
586
+ type: 'function',
587
+ name: 'advance',
588
+ inputs: [
589
+ {
590
+ name: 'yang',
591
+ type: 'core::starknet::contract_address::ContractAddress',
592
+ },
593
+ {
594
+ name: 'price',
595
+ type: 'wadray::wadray::Wad',
596
+ },
597
+ ],
598
+ outputs: [],
599
+ state_mutability: 'external',
600
+ },
601
+ {
602
+ type: 'function',
603
+ name: 'set_multiplier',
604
+ inputs: [
605
+ {
606
+ name: 'multiplier',
607
+ type: 'wadray::wadray::Ray',
608
+ },
609
+ ],
610
+ outputs: [],
611
+ state_mutability: 'external',
612
+ },
613
+ {
614
+ type: 'function',
615
+ name: 'set_minimum_trove_value',
616
+ inputs: [
617
+ {
618
+ name: 'value',
619
+ type: 'wadray::wadray::Wad',
620
+ },
621
+ ],
622
+ outputs: [],
623
+ state_mutability: 'external',
624
+ },
625
+ {
626
+ type: 'function',
627
+ name: 'set_debt_ceiling',
628
+ inputs: [
629
+ {
630
+ name: 'ceiling',
631
+ type: 'wadray::wadray::Wad',
632
+ },
633
+ ],
634
+ outputs: [],
635
+ state_mutability: 'external',
636
+ },
637
+ {
638
+ type: 'function',
639
+ name: 'adjust_budget',
640
+ inputs: [
641
+ {
642
+ name: 'amount',
643
+ type: 'wadray::wadray_signed::SignedWad',
644
+ },
645
+ ],
646
+ outputs: [],
647
+ state_mutability: 'external',
648
+ },
649
+ {
650
+ type: 'function',
651
+ name: 'update_yin_spot_price',
652
+ inputs: [
653
+ {
654
+ name: 'new_price',
655
+ type: 'wadray::wadray::Wad',
656
+ },
657
+ ],
658
+ outputs: [],
659
+ state_mutability: 'external',
660
+ },
661
+ {
662
+ type: 'function',
663
+ name: 'kill',
664
+ inputs: [],
665
+ outputs: [],
666
+ state_mutability: 'external',
667
+ },
668
+ {
669
+ type: 'function',
670
+ name: 'deposit',
671
+ inputs: [
672
+ {
673
+ name: 'yang',
674
+ type: 'core::starknet::contract_address::ContractAddress',
675
+ },
676
+ {
677
+ name: 'trove_id',
678
+ type: 'core::integer::u64',
679
+ },
680
+ {
681
+ name: 'amount',
682
+ type: 'wadray::wadray::Wad',
683
+ },
684
+ ],
685
+ outputs: [],
686
+ state_mutability: 'external',
687
+ },
688
+ {
689
+ type: 'function',
690
+ name: 'withdraw',
691
+ inputs: [
692
+ {
693
+ name: 'yang',
694
+ type: 'core::starknet::contract_address::ContractAddress',
695
+ },
696
+ {
697
+ name: 'trove_id',
698
+ type: 'core::integer::u64',
699
+ },
700
+ {
701
+ name: 'amount',
702
+ type: 'wadray::wadray::Wad',
703
+ },
704
+ ],
705
+ outputs: [],
706
+ state_mutability: 'external',
707
+ },
708
+ {
709
+ type: 'function',
710
+ name: 'forge',
711
+ inputs: [
712
+ {
713
+ name: 'user',
714
+ type: 'core::starknet::contract_address::ContractAddress',
715
+ },
716
+ {
717
+ name: 'trove_id',
718
+ type: 'core::integer::u64',
719
+ },
720
+ {
721
+ name: 'amount',
722
+ type: 'wadray::wadray::Wad',
723
+ },
724
+ {
725
+ name: 'max_forge_fee_pct',
726
+ type: 'wadray::wadray::Wad',
727
+ },
728
+ ],
729
+ outputs: [],
730
+ state_mutability: 'external',
731
+ },
732
+ {
733
+ type: 'function',
734
+ name: 'melt',
735
+ inputs: [
736
+ {
737
+ name: 'user',
738
+ type: 'core::starknet::contract_address::ContractAddress',
739
+ },
740
+ {
741
+ name: 'trove_id',
742
+ type: 'core::integer::u64',
743
+ },
744
+ {
745
+ name: 'amount',
746
+ type: 'wadray::wadray::Wad',
747
+ },
748
+ ],
749
+ outputs: [],
750
+ state_mutability: 'external',
751
+ },
752
+ {
753
+ type: 'function',
754
+ name: 'seize',
755
+ inputs: [
756
+ {
757
+ name: 'yang',
758
+ type: 'core::starknet::contract_address::ContractAddress',
759
+ },
760
+ {
761
+ name: 'trove_id',
762
+ type: 'core::integer::u64',
763
+ },
764
+ {
765
+ name: 'amount',
766
+ type: 'wadray::wadray::Wad',
767
+ },
768
+ ],
769
+ outputs: [],
770
+ state_mutability: 'external',
771
+ },
772
+ {
773
+ type: 'function',
774
+ name: 'redistribute',
775
+ inputs: [
776
+ {
777
+ name: 'trove_id',
778
+ type: 'core::integer::u64',
779
+ },
780
+ {
781
+ name: 'debt_to_redistribute',
782
+ type: 'wadray::wadray::Wad',
783
+ },
784
+ {
785
+ name: 'pct_value_to_redistribute',
786
+ type: 'wadray::wadray::Ray',
787
+ },
788
+ ],
789
+ outputs: [],
790
+ state_mutability: 'external',
791
+ },
792
+ {
793
+ type: 'function',
794
+ name: 'inject',
795
+ inputs: [
796
+ {
797
+ name: 'receiver',
798
+ type: 'core::starknet::contract_address::ContractAddress',
799
+ },
800
+ {
801
+ name: 'amount',
802
+ type: 'wadray::wadray::Wad',
803
+ },
804
+ ],
805
+ outputs: [],
806
+ state_mutability: 'external',
807
+ },
808
+ {
809
+ type: 'function',
810
+ name: 'eject',
811
+ inputs: [
812
+ {
813
+ name: 'burner',
814
+ type: 'core::starknet::contract_address::ContractAddress',
815
+ },
816
+ {
817
+ name: 'amount',
818
+ type: 'wadray::wadray::Wad',
819
+ },
820
+ ],
821
+ outputs: [],
822
+ state_mutability: 'external',
823
+ },
824
+ {
825
+ type: 'function',
826
+ name: 'get_shrine_health',
827
+ inputs: [],
828
+ outputs: [
829
+ {
830
+ type: 'opus::types::Health',
831
+ },
832
+ ],
833
+ state_mutability: 'view',
834
+ },
835
+ {
836
+ type: 'function',
837
+ name: 'get_current_yang_price',
838
+ inputs: [
839
+ {
840
+ name: 'yang',
841
+ type: 'core::starknet::contract_address::ContractAddress',
842
+ },
843
+ ],
844
+ outputs: [
845
+ {
846
+ type: '(wadray::wadray::Wad, wadray::wadray::Wad, core::integer::u64)',
847
+ },
848
+ ],
849
+ state_mutability: 'view',
850
+ },
851
+ {
852
+ type: 'function',
853
+ name: 'get_current_multiplier',
854
+ inputs: [],
855
+ outputs: [
856
+ {
857
+ type: '(wadray::wadray::Ray, wadray::wadray::Ray, core::integer::u64)',
858
+ },
859
+ ],
860
+ state_mutability: 'view',
861
+ },
862
+ {
863
+ type: 'function',
864
+ name: 'get_forge_fee_pct',
865
+ inputs: [],
866
+ outputs: [
867
+ {
868
+ type: 'wadray::wadray::Wad',
869
+ },
870
+ ],
871
+ state_mutability: 'view',
872
+ },
873
+ {
874
+ type: 'function',
875
+ name: 'is_healthy',
876
+ inputs: [
877
+ {
878
+ name: 'trove_id',
879
+ type: 'core::integer::u64',
880
+ },
881
+ ],
882
+ outputs: [
883
+ {
884
+ type: 'core::bool',
885
+ },
886
+ ],
887
+ state_mutability: 'view',
888
+ },
889
+ {
890
+ type: 'function',
891
+ name: 'get_max_forge',
892
+ inputs: [
893
+ {
894
+ name: 'trove_id',
895
+ type: 'core::integer::u64',
896
+ },
897
+ ],
898
+ outputs: [
899
+ {
900
+ type: 'wadray::wadray::Wad',
901
+ },
902
+ ],
903
+ state_mutability: 'view',
904
+ },
905
+ {
906
+ type: 'function',
907
+ name: 'get_trove_health',
908
+ inputs: [
909
+ {
910
+ name: 'trove_id',
911
+ type: 'core::integer::u64',
912
+ },
913
+ ],
914
+ outputs: [
915
+ {
916
+ type: 'opus::types::Health',
917
+ },
918
+ ],
919
+ state_mutability: 'view',
920
+ },
921
+ {
922
+ type: 'function',
923
+ name: 'get_redistributions_attributed_to_trove',
924
+ inputs: [
925
+ {
926
+ name: 'trove_id',
927
+ type: 'core::integer::u64',
928
+ },
929
+ ],
930
+ outputs: [
931
+ {
932
+ type: '(core::array::Span::<opus::types::YangBalance>, wadray::wadray::Wad)',
933
+ },
934
+ ],
935
+ state_mutability: 'view',
936
+ },
937
+ ],
938
+ },
939
+ {
940
+ type: 'impl',
941
+ name: 'IERC20Impl',
942
+ interface_name: 'opus::interfaces::IERC20::IERC20',
943
+ },
944
+ {
945
+ type: 'struct',
946
+ name: 'core::integer::u256',
947
+ members: [
948
+ {
949
+ name: 'low',
950
+ type: 'core::integer::u128',
951
+ },
952
+ {
953
+ name: 'high',
954
+ type: 'core::integer::u128',
955
+ },
956
+ ],
957
+ },
958
+ {
959
+ type: 'interface',
960
+ name: 'opus::interfaces::IERC20::IERC20',
961
+ items: [
962
+ {
963
+ type: 'function',
964
+ name: 'name',
965
+ inputs: [],
966
+ outputs: [
967
+ {
968
+ type: 'core::felt252',
969
+ },
970
+ ],
971
+ state_mutability: 'view',
972
+ },
973
+ {
974
+ type: 'function',
975
+ name: 'symbol',
976
+ inputs: [],
977
+ outputs: [
978
+ {
979
+ type: 'core::felt252',
980
+ },
981
+ ],
982
+ state_mutability: 'view',
983
+ },
984
+ {
985
+ type: 'function',
986
+ name: 'decimals',
987
+ inputs: [],
988
+ outputs: [
989
+ {
990
+ type: 'core::integer::u8',
991
+ },
992
+ ],
993
+ state_mutability: 'view',
994
+ },
995
+ {
996
+ type: 'function',
997
+ name: 'total_supply',
998
+ inputs: [],
999
+ outputs: [
1000
+ {
1001
+ type: 'core::integer::u256',
1002
+ },
1003
+ ],
1004
+ state_mutability: 'view',
1005
+ },
1006
+ {
1007
+ type: 'function',
1008
+ name: 'balance_of',
1009
+ inputs: [
1010
+ {
1011
+ name: 'account',
1012
+ type: 'core::starknet::contract_address::ContractAddress',
1013
+ },
1014
+ ],
1015
+ outputs: [
1016
+ {
1017
+ type: 'core::integer::u256',
1018
+ },
1019
+ ],
1020
+ state_mutability: 'view',
1021
+ },
1022
+ {
1023
+ type: 'function',
1024
+ name: 'allowance',
1025
+ inputs: [
1026
+ {
1027
+ name: 'owner',
1028
+ type: 'core::starknet::contract_address::ContractAddress',
1029
+ },
1030
+ {
1031
+ name: 'spender',
1032
+ type: 'core::starknet::contract_address::ContractAddress',
1033
+ },
1034
+ ],
1035
+ outputs: [
1036
+ {
1037
+ type: 'core::integer::u256',
1038
+ },
1039
+ ],
1040
+ state_mutability: 'view',
1041
+ },
1042
+ {
1043
+ type: 'function',
1044
+ name: 'transfer',
1045
+ inputs: [
1046
+ {
1047
+ name: 'recipient',
1048
+ type: 'core::starknet::contract_address::ContractAddress',
1049
+ },
1050
+ {
1051
+ name: 'amount',
1052
+ type: 'core::integer::u256',
1053
+ },
1054
+ ],
1055
+ outputs: [
1056
+ {
1057
+ type: 'core::bool',
1058
+ },
1059
+ ],
1060
+ state_mutability: 'external',
1061
+ },
1062
+ {
1063
+ type: 'function',
1064
+ name: 'transfer_from',
1065
+ inputs: [
1066
+ {
1067
+ name: 'sender',
1068
+ type: 'core::starknet::contract_address::ContractAddress',
1069
+ },
1070
+ {
1071
+ name: 'recipient',
1072
+ type: 'core::starknet::contract_address::ContractAddress',
1073
+ },
1074
+ {
1075
+ name: 'amount',
1076
+ type: 'core::integer::u256',
1077
+ },
1078
+ ],
1079
+ outputs: [
1080
+ {
1081
+ type: 'core::bool',
1082
+ },
1083
+ ],
1084
+ state_mutability: 'external',
1085
+ },
1086
+ {
1087
+ type: 'function',
1088
+ name: 'approve',
1089
+ inputs: [
1090
+ {
1091
+ name: 'spender',
1092
+ type: 'core::starknet::contract_address::ContractAddress',
1093
+ },
1094
+ {
1095
+ name: 'amount',
1096
+ type: 'core::integer::u256',
1097
+ },
1098
+ ],
1099
+ outputs: [
1100
+ {
1101
+ type: 'core::bool',
1102
+ },
1103
+ ],
1104
+ state_mutability: 'external',
1105
+ },
1106
+ ],
1107
+ },
1108
+ {
1109
+ type: 'impl',
1110
+ name: 'IERC20CamelImpl',
1111
+ interface_name: 'opus::interfaces::IERC20::IERC20CamelOnly',
1112
+ },
1113
+ {
1114
+ type: 'interface',
1115
+ name: 'opus::interfaces::IERC20::IERC20CamelOnly',
1116
+ items: [
1117
+ {
1118
+ type: 'function',
1119
+ name: 'totalSupply',
1120
+ inputs: [],
1121
+ outputs: [
1122
+ {
1123
+ type: 'core::integer::u256',
1124
+ },
1125
+ ],
1126
+ state_mutability: 'view',
1127
+ },
1128
+ {
1129
+ type: 'function',
1130
+ name: 'balanceOf',
1131
+ inputs: [
1132
+ {
1133
+ name: 'account',
1134
+ type: 'core::starknet::contract_address::ContractAddress',
1135
+ },
1136
+ ],
1137
+ outputs: [
1138
+ {
1139
+ type: 'core::integer::u256',
1140
+ },
1141
+ ],
1142
+ state_mutability: 'view',
1143
+ },
1144
+ {
1145
+ type: 'function',
1146
+ name: 'transferFrom',
1147
+ inputs: [
1148
+ {
1149
+ name: 'sender',
1150
+ type: 'core::starknet::contract_address::ContractAddress',
1151
+ },
1152
+ {
1153
+ name: 'recipient',
1154
+ type: 'core::starknet::contract_address::ContractAddress',
1155
+ },
1156
+ {
1157
+ name: 'amount',
1158
+ type: 'core::integer::u256',
1159
+ },
1160
+ ],
1161
+ outputs: [
1162
+ {
1163
+ type: 'core::bool',
1164
+ },
1165
+ ],
1166
+ state_mutability: 'external',
1167
+ },
1168
+ ],
1169
+ },
1170
+ {
1171
+ type: 'impl',
1172
+ name: 'ISRC5Impl',
1173
+ interface_name: 'opus::interfaces::ISRC5::ISRC5',
1174
+ },
1175
+ {
1176
+ type: 'interface',
1177
+ name: 'opus::interfaces::ISRC5::ISRC5',
1178
+ items: [
1179
+ {
1180
+ type: 'function',
1181
+ name: 'supports_interface',
1182
+ inputs: [
1183
+ {
1184
+ name: 'interface_id',
1185
+ type: 'core::felt252',
1186
+ },
1187
+ ],
1188
+ outputs: [
1189
+ {
1190
+ type: 'core::bool',
1191
+ },
1192
+ ],
1193
+ state_mutability: 'view',
1194
+ },
1195
+ ],
1196
+ },
1197
+ {
1198
+ type: 'impl',
1199
+ name: 'AccessControlPublic',
1200
+ interface_name: 'access_control::access_control::IAccessControl',
1201
+ },
1202
+ {
1203
+ type: 'interface',
1204
+ name: 'access_control::access_control::IAccessControl',
1205
+ items: [
1206
+ {
1207
+ type: 'function',
1208
+ name: 'get_roles',
1209
+ inputs: [
1210
+ {
1211
+ name: 'account',
1212
+ type: 'core::starknet::contract_address::ContractAddress',
1213
+ },
1214
+ ],
1215
+ outputs: [
1216
+ {
1217
+ type: 'core::integer::u128',
1218
+ },
1219
+ ],
1220
+ state_mutability: 'view',
1221
+ },
1222
+ {
1223
+ type: 'function',
1224
+ name: 'has_role',
1225
+ inputs: [
1226
+ {
1227
+ name: 'role',
1228
+ type: 'core::integer::u128',
1229
+ },
1230
+ {
1231
+ name: 'account',
1232
+ type: 'core::starknet::contract_address::ContractAddress',
1233
+ },
1234
+ ],
1235
+ outputs: [
1236
+ {
1237
+ type: 'core::bool',
1238
+ },
1239
+ ],
1240
+ state_mutability: 'view',
1241
+ },
1242
+ {
1243
+ type: 'function',
1244
+ name: 'get_admin',
1245
+ inputs: [],
1246
+ outputs: [
1247
+ {
1248
+ type: 'core::starknet::contract_address::ContractAddress',
1249
+ },
1250
+ ],
1251
+ state_mutability: 'view',
1252
+ },
1253
+ {
1254
+ type: 'function',
1255
+ name: 'get_pending_admin',
1256
+ inputs: [],
1257
+ outputs: [
1258
+ {
1259
+ type: 'core::starknet::contract_address::ContractAddress',
1260
+ },
1261
+ ],
1262
+ state_mutability: 'view',
1263
+ },
1264
+ {
1265
+ type: 'function',
1266
+ name: 'grant_role',
1267
+ inputs: [
1268
+ {
1269
+ name: 'role',
1270
+ type: 'core::integer::u128',
1271
+ },
1272
+ {
1273
+ name: 'account',
1274
+ type: 'core::starknet::contract_address::ContractAddress',
1275
+ },
1276
+ ],
1277
+ outputs: [],
1278
+ state_mutability: 'external',
1279
+ },
1280
+ {
1281
+ type: 'function',
1282
+ name: 'revoke_role',
1283
+ inputs: [
1284
+ {
1285
+ name: 'role',
1286
+ type: 'core::integer::u128',
1287
+ },
1288
+ {
1289
+ name: 'account',
1290
+ type: 'core::starknet::contract_address::ContractAddress',
1291
+ },
1292
+ ],
1293
+ outputs: [],
1294
+ state_mutability: 'external',
1295
+ },
1296
+ {
1297
+ type: 'function',
1298
+ name: 'renounce_role',
1299
+ inputs: [
1300
+ {
1301
+ name: 'role',
1302
+ type: 'core::integer::u128',
1303
+ },
1304
+ ],
1305
+ outputs: [],
1306
+ state_mutability: 'external',
1307
+ },
1308
+ {
1309
+ type: 'function',
1310
+ name: 'set_pending_admin',
1311
+ inputs: [
1312
+ {
1313
+ name: 'new_admin',
1314
+ type: 'core::starknet::contract_address::ContractAddress',
1315
+ },
1316
+ ],
1317
+ outputs: [],
1318
+ state_mutability: 'external',
1319
+ },
1320
+ {
1321
+ type: 'function',
1322
+ name: 'accept_admin',
1323
+ inputs: [],
1324
+ outputs: [],
1325
+ state_mutability: 'external',
1326
+ },
1327
+ ],
1328
+ },
1329
+ {
1330
+ type: 'constructor',
1331
+ name: 'constructor',
1332
+ inputs: [
1333
+ {
1334
+ name: 'admin',
1335
+ type: 'core::starknet::contract_address::ContractAddress',
1336
+ },
1337
+ {
1338
+ name: 'name',
1339
+ type: 'core::felt252',
1340
+ },
1341
+ {
1342
+ name: 'symbol',
1343
+ type: 'core::felt252',
1344
+ },
1345
+ ],
1346
+ },
1347
+ {
1348
+ type: 'event',
1349
+ name: 'access_control::access_control::access_control_component::AdminChanged',
1350
+ kind: 'struct',
1351
+ members: [
1352
+ {
1353
+ name: 'old_admin',
1354
+ type: 'core::starknet::contract_address::ContractAddress',
1355
+ kind: 'data',
1356
+ },
1357
+ {
1358
+ name: 'new_admin',
1359
+ type: 'core::starknet::contract_address::ContractAddress',
1360
+ kind: 'data',
1361
+ },
1362
+ ],
1363
+ },
1364
+ {
1365
+ type: 'event',
1366
+ name: 'access_control::access_control::access_control_component::NewPendingAdmin',
1367
+ kind: 'struct',
1368
+ members: [
1369
+ {
1370
+ name: 'new_admin',
1371
+ type: 'core::starknet::contract_address::ContractAddress',
1372
+ kind: 'data',
1373
+ },
1374
+ ],
1375
+ },
1376
+ {
1377
+ type: 'event',
1378
+ name: 'access_control::access_control::access_control_component::RoleGranted',
1379
+ kind: 'struct',
1380
+ members: [
1381
+ {
1382
+ name: 'user',
1383
+ type: 'core::starknet::contract_address::ContractAddress',
1384
+ kind: 'data',
1385
+ },
1386
+ {
1387
+ name: 'role_granted',
1388
+ type: 'core::integer::u128',
1389
+ kind: 'data',
1390
+ },
1391
+ ],
1392
+ },
1393
+ {
1394
+ type: 'event',
1395
+ name: 'access_control::access_control::access_control_component::RoleRevoked',
1396
+ kind: 'struct',
1397
+ members: [
1398
+ {
1399
+ name: 'user',
1400
+ type: 'core::starknet::contract_address::ContractAddress',
1401
+ kind: 'data',
1402
+ },
1403
+ {
1404
+ name: 'role_revoked',
1405
+ type: 'core::integer::u128',
1406
+ kind: 'data',
1407
+ },
1408
+ ],
1409
+ },
1410
+ {
1411
+ type: 'event',
1412
+ name: 'access_control::access_control::access_control_component::Event',
1413
+ kind: 'enum',
1414
+ variants: [
1415
+ {
1416
+ name: 'AdminChanged',
1417
+ type: 'access_control::access_control::access_control_component::AdminChanged',
1418
+ kind: 'nested',
1419
+ },
1420
+ {
1421
+ name: 'NewPendingAdmin',
1422
+ type: 'access_control::access_control::access_control_component::NewPendingAdmin',
1423
+ kind: 'nested',
1424
+ },
1425
+ {
1426
+ name: 'RoleGranted',
1427
+ type: 'access_control::access_control::access_control_component::RoleGranted',
1428
+ kind: 'nested',
1429
+ },
1430
+ {
1431
+ name: 'RoleRevoked',
1432
+ type: 'access_control::access_control::access_control_component::RoleRevoked',
1433
+ kind: 'nested',
1434
+ },
1435
+ ],
1436
+ },
1437
+ {
1438
+ type: 'event',
1439
+ name: 'opus::core::shrine::shrine::YangAdded',
1440
+ kind: 'struct',
1441
+ members: [
1442
+ {
1443
+ name: 'yang',
1444
+ type: 'core::starknet::contract_address::ContractAddress',
1445
+ kind: 'key',
1446
+ },
1447
+ {
1448
+ name: 'yang_id',
1449
+ type: 'core::integer::u32',
1450
+ kind: 'data',
1451
+ },
1452
+ {
1453
+ name: 'start_price',
1454
+ type: 'wadray::wadray::Wad',
1455
+ kind: 'data',
1456
+ },
1457
+ {
1458
+ name: 'initial_rate',
1459
+ type: 'wadray::wadray::Ray',
1460
+ kind: 'data',
1461
+ },
1462
+ ],
1463
+ },
1464
+ {
1465
+ type: 'event',
1466
+ name: 'opus::core::shrine::shrine::YangTotalUpdated',
1467
+ kind: 'struct',
1468
+ members: [
1469
+ {
1470
+ name: 'yang',
1471
+ type: 'core::starknet::contract_address::ContractAddress',
1472
+ kind: 'key',
1473
+ },
1474
+ {
1475
+ name: 'total',
1476
+ type: 'wadray::wadray::Wad',
1477
+ kind: 'data',
1478
+ },
1479
+ ],
1480
+ },
1481
+ {
1482
+ type: 'event',
1483
+ name: 'opus::core::shrine::shrine::TotalTrovesDebtUpdated',
1484
+ kind: 'struct',
1485
+ members: [
1486
+ {
1487
+ name: 'total',
1488
+ type: 'wadray::wadray::Wad',
1489
+ kind: 'data',
1490
+ },
1491
+ ],
1492
+ },
1493
+ {
1494
+ type: 'event',
1495
+ name: 'opus::core::shrine::shrine::BudgetAdjusted',
1496
+ kind: 'struct',
1497
+ members: [
1498
+ {
1499
+ name: 'amount',
1500
+ type: 'wadray::wadray_signed::SignedWad',
1501
+ kind: 'data',
1502
+ },
1503
+ ],
1504
+ },
1505
+ {
1506
+ type: 'event',
1507
+ name: 'opus::core::shrine::shrine::MultiplierUpdated',
1508
+ kind: 'struct',
1509
+ members: [
1510
+ {
1511
+ name: 'multiplier',
1512
+ type: 'wadray::wadray::Ray',
1513
+ kind: 'data',
1514
+ },
1515
+ {
1516
+ name: 'cumulative_multiplier',
1517
+ type: 'wadray::wadray::Ray',
1518
+ kind: 'data',
1519
+ },
1520
+ {
1521
+ name: 'interval',
1522
+ type: 'core::integer::u64',
1523
+ kind: 'key',
1524
+ },
1525
+ ],
1526
+ },
1527
+ {
1528
+ type: 'event',
1529
+ name: 'opus::core::shrine::shrine::YangRatesUpdated',
1530
+ kind: 'struct',
1531
+ members: [
1532
+ {
1533
+ name: 'rate_era',
1534
+ type: 'core::integer::u64',
1535
+ kind: 'key',
1536
+ },
1537
+ {
1538
+ name: 'current_interval',
1539
+ type: 'core::integer::u64',
1540
+ kind: 'data',
1541
+ },
1542
+ {
1543
+ name: 'yangs',
1544
+ type: 'core::array::Span::<core::starknet::contract_address::ContractAddress>',
1545
+ kind: 'data',
1546
+ },
1547
+ {
1548
+ name: 'new_rates',
1549
+ type: 'core::array::Span::<wadray::wadray::Ray>',
1550
+ kind: 'data',
1551
+ },
1552
+ ],
1553
+ },
1554
+ {
1555
+ type: 'event',
1556
+ name: 'opus::core::shrine::shrine::ThresholdUpdated',
1557
+ kind: 'struct',
1558
+ members: [
1559
+ {
1560
+ name: 'yang',
1561
+ type: 'core::starknet::contract_address::ContractAddress',
1562
+ kind: 'key',
1563
+ },
1564
+ {
1565
+ name: 'threshold',
1566
+ type: 'wadray::wadray::Ray',
1567
+ kind: 'data',
1568
+ },
1569
+ ],
1570
+ },
1571
+ {
1572
+ type: 'event',
1573
+ name: 'opus::core::shrine::shrine::ForgeFeePaid',
1574
+ kind: 'struct',
1575
+ members: [
1576
+ {
1577
+ name: 'trove_id',
1578
+ type: 'core::integer::u64',
1579
+ kind: 'key',
1580
+ },
1581
+ {
1582
+ name: 'fee',
1583
+ type: 'wadray::wadray::Wad',
1584
+ kind: 'data',
1585
+ },
1586
+ {
1587
+ name: 'fee_pct',
1588
+ type: 'wadray::wadray::Wad',
1589
+ kind: 'data',
1590
+ },
1591
+ ],
1592
+ },
1593
+ {
1594
+ type: 'struct',
1595
+ name: 'opus::types::Trove',
1596
+ members: [
1597
+ {
1598
+ name: 'charge_from',
1599
+ type: 'core::integer::u64',
1600
+ },
1601
+ {
1602
+ name: 'last_rate_era',
1603
+ type: 'core::integer::u64',
1604
+ },
1605
+ {
1606
+ name: 'debt',
1607
+ type: 'wadray::wadray::Wad',
1608
+ },
1609
+ ],
1610
+ },
1611
+ {
1612
+ type: 'event',
1613
+ name: 'opus::core::shrine::shrine::TroveUpdated',
1614
+ kind: 'struct',
1615
+ members: [
1616
+ {
1617
+ name: 'trove_id',
1618
+ type: 'core::integer::u64',
1619
+ kind: 'key',
1620
+ },
1621
+ {
1622
+ name: 'trove',
1623
+ type: 'opus::types::Trove',
1624
+ kind: 'data',
1625
+ },
1626
+ ],
1627
+ },
1628
+ {
1629
+ type: 'event',
1630
+ name: 'opus::core::shrine::shrine::TroveRedistributed',
1631
+ kind: 'struct',
1632
+ members: [
1633
+ {
1634
+ name: 'redistribution_id',
1635
+ type: 'core::integer::u32',
1636
+ kind: 'key',
1637
+ },
1638
+ {
1639
+ name: 'trove_id',
1640
+ type: 'core::integer::u64',
1641
+ kind: 'key',
1642
+ },
1643
+ {
1644
+ name: 'debt',
1645
+ type: 'wadray::wadray::Wad',
1646
+ kind: 'data',
1647
+ },
1648
+ ],
1649
+ },
1650
+ {
1651
+ type: 'event',
1652
+ name: 'opus::core::shrine::shrine::DepositUpdated',
1653
+ kind: 'struct',
1654
+ members: [
1655
+ {
1656
+ name: 'yang',
1657
+ type: 'core::starknet::contract_address::ContractAddress',
1658
+ kind: 'key',
1659
+ },
1660
+ {
1661
+ name: 'trove_id',
1662
+ type: 'core::integer::u64',
1663
+ kind: 'key',
1664
+ },
1665
+ {
1666
+ name: 'amount',
1667
+ type: 'wadray::wadray::Wad',
1668
+ kind: 'data',
1669
+ },
1670
+ ],
1671
+ },
1672
+ {
1673
+ type: 'event',
1674
+ name: 'opus::core::shrine::shrine::YangPriceUpdated',
1675
+ kind: 'struct',
1676
+ members: [
1677
+ {
1678
+ name: 'yang',
1679
+ type: 'core::starknet::contract_address::ContractAddress',
1680
+ kind: 'key',
1681
+ },
1682
+ {
1683
+ name: 'price',
1684
+ type: 'wadray::wadray::Wad',
1685
+ kind: 'data',
1686
+ },
1687
+ {
1688
+ name: 'cumulative_price',
1689
+ type: 'wadray::wadray::Wad',
1690
+ kind: 'data',
1691
+ },
1692
+ {
1693
+ name: 'interval',
1694
+ type: 'core::integer::u64',
1695
+ kind: 'key',
1696
+ },
1697
+ ],
1698
+ },
1699
+ {
1700
+ type: 'event',
1701
+ name: 'opus::core::shrine::shrine::YinPriceUpdated',
1702
+ kind: 'struct',
1703
+ members: [
1704
+ {
1705
+ name: 'old_price',
1706
+ type: 'wadray::wadray::Wad',
1707
+ kind: 'data',
1708
+ },
1709
+ {
1710
+ name: 'new_price',
1711
+ type: 'wadray::wadray::Wad',
1712
+ kind: 'data',
1713
+ },
1714
+ ],
1715
+ },
1716
+ {
1717
+ type: 'event',
1718
+ name: 'opus::core::shrine::shrine::MinimumTroveValueUpdated',
1719
+ kind: 'struct',
1720
+ members: [
1721
+ {
1722
+ name: 'value',
1723
+ type: 'wadray::wadray::Wad',
1724
+ kind: 'data',
1725
+ },
1726
+ ],
1727
+ },
1728
+ {
1729
+ type: 'event',
1730
+ name: 'opus::core::shrine::shrine::DebtCeilingUpdated',
1731
+ kind: 'struct',
1732
+ members: [
1733
+ {
1734
+ name: 'ceiling',
1735
+ type: 'wadray::wadray::Wad',
1736
+ kind: 'data',
1737
+ },
1738
+ ],
1739
+ },
1740
+ {
1741
+ type: 'event',
1742
+ name: 'opus::core::shrine::shrine::YangSuspended',
1743
+ kind: 'struct',
1744
+ members: [
1745
+ {
1746
+ name: 'yang',
1747
+ type: 'core::starknet::contract_address::ContractAddress',
1748
+ kind: 'key',
1749
+ },
1750
+ {
1751
+ name: 'timestamp',
1752
+ type: 'core::integer::u64',
1753
+ kind: 'data',
1754
+ },
1755
+ ],
1756
+ },
1757
+ {
1758
+ type: 'event',
1759
+ name: 'opus::core::shrine::shrine::YangUnsuspended',
1760
+ kind: 'struct',
1761
+ members: [
1762
+ {
1763
+ name: 'yang',
1764
+ type: 'core::starknet::contract_address::ContractAddress',
1765
+ kind: 'key',
1766
+ },
1767
+ {
1768
+ name: 'timestamp',
1769
+ type: 'core::integer::u64',
1770
+ kind: 'data',
1771
+ },
1772
+ ],
1773
+ },
1774
+ {
1775
+ type: 'event',
1776
+ name: 'opus::core::shrine::shrine::Killed',
1777
+ kind: 'struct',
1778
+ members: [],
1779
+ },
1780
+ {
1781
+ type: 'event',
1782
+ name: 'opus::core::shrine::shrine::Transfer',
1783
+ kind: 'struct',
1784
+ members: [
1785
+ {
1786
+ name: 'from',
1787
+ type: 'core::starknet::contract_address::ContractAddress',
1788
+ kind: 'key',
1789
+ },
1790
+ {
1791
+ name: 'to',
1792
+ type: 'core::starknet::contract_address::ContractAddress',
1793
+ kind: 'key',
1794
+ },
1795
+ {
1796
+ name: 'value',
1797
+ type: 'core::integer::u256',
1798
+ kind: 'data',
1799
+ },
1800
+ ],
1801
+ },
1802
+ {
1803
+ type: 'event',
1804
+ name: 'opus::core::shrine::shrine::Approval',
1805
+ kind: 'struct',
1806
+ members: [
1807
+ {
1808
+ name: 'owner',
1809
+ type: 'core::starknet::contract_address::ContractAddress',
1810
+ kind: 'key',
1811
+ },
1812
+ {
1813
+ name: 'spender',
1814
+ type: 'core::starknet::contract_address::ContractAddress',
1815
+ kind: 'key',
1816
+ },
1817
+ {
1818
+ name: 'value',
1819
+ type: 'core::integer::u256',
1820
+ kind: 'data',
1821
+ },
1822
+ ],
1823
+ },
1824
+ {
1825
+ type: 'event',
1826
+ name: 'opus::core::shrine::shrine::Event',
1827
+ kind: 'enum',
1828
+ variants: [
1829
+ {
1830
+ name: 'AccessControlEvent',
1831
+ type: 'access_control::access_control::access_control_component::Event',
1832
+ kind: 'nested',
1833
+ },
1834
+ {
1835
+ name: 'YangAdded',
1836
+ type: 'opus::core::shrine::shrine::YangAdded',
1837
+ kind: 'nested',
1838
+ },
1839
+ {
1840
+ name: 'YangTotalUpdated',
1841
+ type: 'opus::core::shrine::shrine::YangTotalUpdated',
1842
+ kind: 'nested',
1843
+ },
1844
+ {
1845
+ name: 'TotalTrovesDebtUpdated',
1846
+ type: 'opus::core::shrine::shrine::TotalTrovesDebtUpdated',
1847
+ kind: 'nested',
1848
+ },
1849
+ {
1850
+ name: 'BudgetAdjusted',
1851
+ type: 'opus::core::shrine::shrine::BudgetAdjusted',
1852
+ kind: 'nested',
1853
+ },
1854
+ {
1855
+ name: 'MultiplierUpdated',
1856
+ type: 'opus::core::shrine::shrine::MultiplierUpdated',
1857
+ kind: 'nested',
1858
+ },
1859
+ {
1860
+ name: 'YangRatesUpdated',
1861
+ type: 'opus::core::shrine::shrine::YangRatesUpdated',
1862
+ kind: 'nested',
1863
+ },
1864
+ {
1865
+ name: 'ThresholdUpdated',
1866
+ type: 'opus::core::shrine::shrine::ThresholdUpdated',
1867
+ kind: 'nested',
1868
+ },
1869
+ {
1870
+ name: 'ForgeFeePaid',
1871
+ type: 'opus::core::shrine::shrine::ForgeFeePaid',
1872
+ kind: 'nested',
1873
+ },
1874
+ {
1875
+ name: 'TroveUpdated',
1876
+ type: 'opus::core::shrine::shrine::TroveUpdated',
1877
+ kind: 'nested',
1878
+ },
1879
+ {
1880
+ name: 'TroveRedistributed',
1881
+ type: 'opus::core::shrine::shrine::TroveRedistributed',
1882
+ kind: 'nested',
1883
+ },
1884
+ {
1885
+ name: 'DepositUpdated',
1886
+ type: 'opus::core::shrine::shrine::DepositUpdated',
1887
+ kind: 'nested',
1888
+ },
1889
+ {
1890
+ name: 'YangPriceUpdated',
1891
+ type: 'opus::core::shrine::shrine::YangPriceUpdated',
1892
+ kind: 'nested',
1893
+ },
1894
+ {
1895
+ name: 'YinPriceUpdated',
1896
+ type: 'opus::core::shrine::shrine::YinPriceUpdated',
1897
+ kind: 'nested',
1898
+ },
1899
+ {
1900
+ name: 'MinimumTroveValueUpdated',
1901
+ type: 'opus::core::shrine::shrine::MinimumTroveValueUpdated',
1902
+ kind: 'nested',
1903
+ },
1904
+ {
1905
+ name: 'DebtCeilingUpdated',
1906
+ type: 'opus::core::shrine::shrine::DebtCeilingUpdated',
1907
+ kind: 'nested',
1908
+ },
1909
+ {
1910
+ name: 'YangSuspended',
1911
+ type: 'opus::core::shrine::shrine::YangSuspended',
1912
+ kind: 'nested',
1913
+ },
1914
+ {
1915
+ name: 'YangUnsuspended',
1916
+ type: 'opus::core::shrine::shrine::YangUnsuspended',
1917
+ kind: 'nested',
1918
+ },
1919
+ {
1920
+ name: 'Killed',
1921
+ type: 'opus::core::shrine::shrine::Killed',
1922
+ kind: 'nested',
1923
+ },
1924
+ {
1925
+ name: 'Transfer',
1926
+ type: 'opus::core::shrine::shrine::Transfer',
1927
+ kind: 'nested',
1928
+ },
1929
+ {
1930
+ name: 'Approval',
1931
+ type: 'opus::core::shrine::shrine::Approval',
1932
+ kind: 'nested',
1933
+ },
1934
+ ],
1935
+ },
1936
+ ];
1937
+ //# sourceMappingURL=shrineAbi.js.map