@kleo-protocol/kleo-sdk 0.1.0 → 0.1.1

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 (40) hide show
  1. package/README.md +4 -4
  2. package/dist/src/client.d.ts +1 -3
  3. package/dist/src/client.d.ts.map +1 -1
  4. package/dist/src/client.js +14 -44
  5. package/dist/src/client.js.map +1 -1
  6. package/dist/src/dedot.client.d.ts.map +1 -1
  7. package/dist/src/dedot.client.js +2 -1
  8. package/dist/src/dedot.client.js.map +1 -1
  9. package/dist/src/metadata/config.json +1080 -0
  10. package/dist/src/metadata/index.d.ts +1260 -0
  11. package/dist/src/metadata/index.d.ts.map +1 -0
  12. package/dist/src/metadata/index.js +21 -0
  13. package/dist/src/metadata/index.js.map +1 -0
  14. package/dist/src/metadata/lending_pool.json +1307 -0
  15. package/dist/src/metadata/reputation.json +1041 -0
  16. package/dist/src/metadata/vouch.json +1387 -0
  17. package/dist/src/services/lending.service.d.ts.map +1 -1
  18. package/dist/src/services/lending.service.js +2 -6
  19. package/dist/src/services/lending.service.js.map +1 -1
  20. package/dist/src/services/pool.service.d.ts.map +1 -1
  21. package/dist/src/services/pool.service.js +0 -3
  22. package/dist/src/services/pool.service.js.map +1 -1
  23. package/dist/src/services/profile.service.js +1 -1
  24. package/dist/src/services/profile.service.js.map +1 -1
  25. package/dist/src/services/reputation.service.d.ts.map +1 -1
  26. package/dist/src/services/reputation.service.js +6 -17
  27. package/dist/src/services/reputation.service.js.map +1 -1
  28. package/dist/src/services/vouch.service.d.ts.map +1 -1
  29. package/dist/src/services/vouch.service.js +2 -8
  30. package/dist/src/services/vouch.service.js.map +1 -1
  31. package/dist/src/supabase.client.d.ts +2 -2
  32. package/dist/src/supabase.client.d.ts.map +1 -1
  33. package/dist/src/supabase.client.js +8 -2
  34. package/dist/src/supabase.client.js.map +1 -1
  35. package/dist/src/utils/contract-helpers.d.ts +0 -6
  36. package/dist/src/utils/contract-helpers.d.ts.map +1 -1
  37. package/dist/src/utils/contract-helpers.js.map +1 -1
  38. package/dist/types/types.d.ts +2 -0
  39. package/dist/types/types.d.ts.map +1 -1
  40. package/package.json +10 -4
@@ -0,0 +1,1041 @@
1
+ {
2
+ "source": {
3
+ "hash": "0x325c2a68c618b29609f0eeeb698deff854a84c6a5bb3a7ef375dc1f1a8adf588",
4
+ "language": "ink! 6.0.0-beta.1",
5
+ "compiler": "rustc 1.91.1",
6
+ "build_info": {
7
+ "rust_toolchain": "stable-aarch64-apple-darwin",
8
+ "cargo_contract_version": "6.0.0-beta.1",
9
+ "build_mode": "Release"
10
+ }
11
+ },
12
+ "contract": {
13
+ "name": "reputation",
14
+ "version": "0.1.0",
15
+ "authors": [
16
+ "Fabian Sanchez <fabiansanchezd@outlook.com>"
17
+ ]
18
+ },
19
+ "image": null,
20
+ "version": 6,
21
+ "types": [
22
+ {
23
+ "id": 0,
24
+ "type": {
25
+ "path": [
26
+ "primitive_types",
27
+ "H160"
28
+ ],
29
+ "def": {
30
+ "composite": {
31
+ "fields": [
32
+ {
33
+ "type": 1,
34
+ "typeName": "[u8; 20]"
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ }
40
+ },
41
+ {
42
+ "id": 1,
43
+ "type": {
44
+ "def": {
45
+ "array": {
46
+ "len": 20,
47
+ "type": 2
48
+ }
49
+ }
50
+ }
51
+ },
52
+ {
53
+ "id": 2,
54
+ "type": {
55
+ "def": {
56
+ "primitive": "u8"
57
+ }
58
+ }
59
+ },
60
+ {
61
+ "id": 3,
62
+ "type": {
63
+ "def": {
64
+ "primitive": "u32"
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "id": 4,
70
+ "type": {
71
+ "def": {
72
+ "sequence": {
73
+ "type": 5
74
+ }
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "id": 5,
80
+ "type": {
81
+ "path": [
82
+ "reputation",
83
+ "reputation",
84
+ "LoanStat"
85
+ ],
86
+ "def": {
87
+ "composite": {
88
+ "fields": [
89
+ {
90
+ "name": "amount",
91
+ "type": 6,
92
+ "typeName": "Balance"
93
+ },
94
+ {
95
+ "name": "repaid",
96
+ "type": 7,
97
+ "typeName": "bool"
98
+ }
99
+ ]
100
+ }
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "id": 6,
106
+ "type": {
107
+ "def": {
108
+ "primitive": "u128"
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "id": 7,
114
+ "type": {
115
+ "def": {
116
+ "primitive": "bool"
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "id": 8,
122
+ "type": {
123
+ "def": {
124
+ "sequence": {
125
+ "type": 9
126
+ }
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "id": 9,
132
+ "type": {
133
+ "path": [
134
+ "reputation",
135
+ "reputation",
136
+ "VouchStat"
137
+ ],
138
+ "def": {
139
+ "composite": {
140
+ "fields": [
141
+ {
142
+ "name": "borrower",
143
+ "type": 10,
144
+ "typeName": "AccountId"
145
+ },
146
+ {
147
+ "name": "successful",
148
+ "type": 7,
149
+ "typeName": "bool"
150
+ }
151
+ ]
152
+ }
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "id": 10,
158
+ "type": {
159
+ "path": [
160
+ "ink_primitives",
161
+ "types",
162
+ "AccountId"
163
+ ],
164
+ "def": {
165
+ "composite": {
166
+ "fields": [
167
+ {
168
+ "type": 11,
169
+ "typeName": "[u8; 32]"
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "id": 11,
178
+ "type": {
179
+ "def": {
180
+ "array": {
181
+ "len": 32,
182
+ "type": 2
183
+ }
184
+ }
185
+ }
186
+ },
187
+ {
188
+ "id": 12,
189
+ "type": {
190
+ "def": {
191
+ "primitive": "u64"
192
+ }
193
+ }
194
+ },
195
+ {
196
+ "id": 13,
197
+ "type": {
198
+ "path": [
199
+ "ink_storage",
200
+ "lazy",
201
+ "mapping",
202
+ "Mapping"
203
+ ],
204
+ "params": [
205
+ {
206
+ "name": "K",
207
+ "type": 10
208
+ },
209
+ {
210
+ "name": "V",
211
+ "type": 14
212
+ },
213
+ {
214
+ "name": "KeyType",
215
+ "type": 15
216
+ }
217
+ ],
218
+ "def": {
219
+ "composite": {}
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "id": 14,
225
+ "type": {
226
+ "path": [
227
+ "reputation",
228
+ "reputation",
229
+ "UserReputation"
230
+ ],
231
+ "def": {
232
+ "composite": {
233
+ "fields": [
234
+ {
235
+ "name": "stars",
236
+ "type": 3,
237
+ "typeName": "u32"
238
+ },
239
+ {
240
+ "name": "stars_at_stake",
241
+ "type": 3,
242
+ "typeName": "u32"
243
+ },
244
+ {
245
+ "name": "loan_history",
246
+ "type": 4,
247
+ "typeName": "Vec<LoanStat>"
248
+ },
249
+ {
250
+ "name": "vouch_history",
251
+ "type": 8,
252
+ "typeName": "Vec<VouchStat>"
253
+ },
254
+ {
255
+ "name": "creation_time",
256
+ "type": 12,
257
+ "typeName": "Timestamp"
258
+ },
259
+ {
260
+ "name": "banned",
261
+ "type": 7,
262
+ "typeName": "bool"
263
+ }
264
+ ]
265
+ }
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "id": 15,
271
+ "type": {
272
+ "path": [
273
+ "ink_storage_traits",
274
+ "impls",
275
+ "ResolverKey"
276
+ ],
277
+ "params": [
278
+ {
279
+ "name": "L",
280
+ "type": 16
281
+ },
282
+ {
283
+ "name": "R",
284
+ "type": 17
285
+ }
286
+ ],
287
+ "def": {
288
+ "composite": {}
289
+ }
290
+ }
291
+ },
292
+ {
293
+ "id": 16,
294
+ "type": {
295
+ "path": [
296
+ "ink_storage_traits",
297
+ "impls",
298
+ "AutoKey"
299
+ ],
300
+ "def": {
301
+ "composite": {}
302
+ }
303
+ }
304
+ },
305
+ {
306
+ "id": 17,
307
+ "type": {
308
+ "path": [
309
+ "ink_storage_traits",
310
+ "impls",
311
+ "ManualKey"
312
+ ],
313
+ "params": [
314
+ {
315
+ "name": "ParentKey",
316
+ "type": 18
317
+ }
318
+ ],
319
+ "def": {
320
+ "composite": {}
321
+ }
322
+ }
323
+ },
324
+ {
325
+ "id": 18,
326
+ "type": {
327
+ "def": {
328
+ "tuple": []
329
+ }
330
+ }
331
+ },
332
+ {
333
+ "id": 19,
334
+ "type": {
335
+ "path": [
336
+ "reputation",
337
+ "reputation",
338
+ "Reputation"
339
+ ],
340
+ "def": {
341
+ "composite": {
342
+ "fields": [
343
+ {
344
+ "name": "config",
345
+ "type": 0,
346
+ "typeName": "<ConfigRef as::ink::storage::traits::AutoStorableHint<::ink::\nstorage::traits::ManualKey<1009249828u32, ()>,>>::Type"
347
+ },
348
+ {
349
+ "name": "user_reps",
350
+ "type": 13,
351
+ "typeName": "<Mapping<AccountId, UserReputation> as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<1648395457u32,\n()>,>>::Type"
352
+ }
353
+ ]
354
+ }
355
+ }
356
+ }
357
+ },
358
+ {
359
+ "id": 20,
360
+ "type": {
361
+ "path": [
362
+ "Result"
363
+ ],
364
+ "params": [
365
+ {
366
+ "name": "T",
367
+ "type": 18
368
+ },
369
+ {
370
+ "name": "E",
371
+ "type": 21
372
+ }
373
+ ],
374
+ "def": {
375
+ "variant": {
376
+ "variants": [
377
+ {
378
+ "name": "Ok",
379
+ "fields": [
380
+ {
381
+ "type": 18
382
+ }
383
+ ],
384
+ "index": 0
385
+ },
386
+ {
387
+ "name": "Err",
388
+ "fields": [
389
+ {
390
+ "type": 21
391
+ }
392
+ ],
393
+ "index": 1
394
+ }
395
+ ]
396
+ }
397
+ }
398
+ }
399
+ },
400
+ {
401
+ "id": 21,
402
+ "type": {
403
+ "path": [
404
+ "ink_primitives",
405
+ "LangError"
406
+ ],
407
+ "def": {
408
+ "variant": {
409
+ "variants": [
410
+ {
411
+ "name": "CouldNotReadInput",
412
+ "index": 1
413
+ }
414
+ ]
415
+ }
416
+ }
417
+ }
418
+ },
419
+ {
420
+ "id": 22,
421
+ "type": {
422
+ "path": [
423
+ "Result"
424
+ ],
425
+ "params": [
426
+ {
427
+ "name": "T",
428
+ "type": 3
429
+ },
430
+ {
431
+ "name": "E",
432
+ "type": 21
433
+ }
434
+ ],
435
+ "def": {
436
+ "variant": {
437
+ "variants": [
438
+ {
439
+ "name": "Ok",
440
+ "fields": [
441
+ {
442
+ "type": 3
443
+ }
444
+ ],
445
+ "index": 0
446
+ },
447
+ {
448
+ "name": "Err",
449
+ "fields": [
450
+ {
451
+ "type": 21
452
+ }
453
+ ],
454
+ "index": 1
455
+ }
456
+ ]
457
+ }
458
+ }
459
+ }
460
+ },
461
+ {
462
+ "id": 23,
463
+ "type": {
464
+ "path": [
465
+ "Result"
466
+ ],
467
+ "params": [
468
+ {
469
+ "name": "T",
470
+ "type": 24
471
+ },
472
+ {
473
+ "name": "E",
474
+ "type": 21
475
+ }
476
+ ],
477
+ "def": {
478
+ "variant": {
479
+ "variants": [
480
+ {
481
+ "name": "Ok",
482
+ "fields": [
483
+ {
484
+ "type": 24
485
+ }
486
+ ],
487
+ "index": 0
488
+ },
489
+ {
490
+ "name": "Err",
491
+ "fields": [
492
+ {
493
+ "type": 21
494
+ }
495
+ ],
496
+ "index": 1
497
+ }
498
+ ]
499
+ }
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "id": 24,
505
+ "type": {
506
+ "path": [
507
+ "Result"
508
+ ],
509
+ "params": [
510
+ {
511
+ "name": "T",
512
+ "type": 18
513
+ },
514
+ {
515
+ "name": "E",
516
+ "type": 25
517
+ }
518
+ ],
519
+ "def": {
520
+ "variant": {
521
+ "variants": [
522
+ {
523
+ "name": "Ok",
524
+ "fields": [
525
+ {
526
+ "type": 18
527
+ }
528
+ ],
529
+ "index": 0
530
+ },
531
+ {
532
+ "name": "Err",
533
+ "fields": [
534
+ {
535
+ "type": 25
536
+ }
537
+ ],
538
+ "index": 1
539
+ }
540
+ ]
541
+ }
542
+ }
543
+ }
544
+ },
545
+ {
546
+ "id": 25,
547
+ "type": {
548
+ "path": [
549
+ "reputation",
550
+ "reputation",
551
+ "Error"
552
+ ],
553
+ "def": {
554
+ "variant": {
555
+ "variants": [
556
+ {
557
+ "name": "UserNotFound",
558
+ "index": 0
559
+ },
560
+ {
561
+ "name": "InsufficientStars",
562
+ "index": 1
563
+ },
564
+ {
565
+ "name": "InsufficientStakedStars",
566
+ "index": 2
567
+ },
568
+ {
569
+ "name": "UserBanned",
570
+ "index": 3
571
+ }
572
+ ]
573
+ }
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "id": 26,
579
+ "type": {
580
+ "path": [
581
+ "Result"
582
+ ],
583
+ "params": [
584
+ {
585
+ "name": "T",
586
+ "type": 7
587
+ },
588
+ {
589
+ "name": "E",
590
+ "type": 21
591
+ }
592
+ ],
593
+ "def": {
594
+ "variant": {
595
+ "variants": [
596
+ {
597
+ "name": "Ok",
598
+ "fields": [
599
+ {
600
+ "type": 7
601
+ }
602
+ ],
603
+ "index": 0
604
+ },
605
+ {
606
+ "name": "Err",
607
+ "fields": [
608
+ {
609
+ "type": 21
610
+ }
611
+ ],
612
+ "index": 1
613
+ }
614
+ ]
615
+ }
616
+ }
617
+ }
618
+ },
619
+ {
620
+ "id": 27,
621
+ "type": {
622
+ "path": [
623
+ "ink_primitives",
624
+ "types",
625
+ "Hash"
626
+ ],
627
+ "def": {
628
+ "composite": {
629
+ "fields": [
630
+ {
631
+ "type": 11,
632
+ "typeName": "[u8; 32]"
633
+ }
634
+ ]
635
+ }
636
+ }
637
+ }
638
+ }
639
+ ],
640
+ "storage": {
641
+ "root": {
642
+ "root_key": "0x00000000",
643
+ "layout": {
644
+ "struct": {
645
+ "name": "Reputation",
646
+ "fields": [
647
+ {
648
+ "name": "config",
649
+ "layout": {
650
+ "struct": {
651
+ "name": "ConfigRefFor",
652
+ "fields": [
653
+ {
654
+ "name": "inner",
655
+ "layout": {
656
+ "struct": {
657
+ "name": "CallBuilder",
658
+ "fields": [
659
+ {
660
+ "name": "addr",
661
+ "layout": {
662
+ "leaf": {
663
+ "key": "0x00000000",
664
+ "ty": 0
665
+ }
666
+ }
667
+ }
668
+ ]
669
+ }
670
+ }
671
+ }
672
+ ]
673
+ }
674
+ }
675
+ },
676
+ {
677
+ "name": "user_reps",
678
+ "layout": {
679
+ "root": {
680
+ "root_key": "0xc1844062",
681
+ "layout": {
682
+ "struct": {
683
+ "name": "UserReputation",
684
+ "fields": [
685
+ {
686
+ "name": "stars",
687
+ "layout": {
688
+ "leaf": {
689
+ "key": "0xc1844062",
690
+ "ty": 3
691
+ }
692
+ }
693
+ },
694
+ {
695
+ "name": "stars_at_stake",
696
+ "layout": {
697
+ "leaf": {
698
+ "key": "0xc1844062",
699
+ "ty": 3
700
+ }
701
+ }
702
+ },
703
+ {
704
+ "name": "loan_history",
705
+ "layout": {
706
+ "leaf": {
707
+ "key": "0xc1844062",
708
+ "ty": 4
709
+ }
710
+ }
711
+ },
712
+ {
713
+ "name": "vouch_history",
714
+ "layout": {
715
+ "leaf": {
716
+ "key": "0xc1844062",
717
+ "ty": 8
718
+ }
719
+ }
720
+ },
721
+ {
722
+ "name": "creation_time",
723
+ "layout": {
724
+ "leaf": {
725
+ "key": "0xc1844062",
726
+ "ty": 12
727
+ }
728
+ }
729
+ },
730
+ {
731
+ "name": "banned",
732
+ "layout": {
733
+ "leaf": {
734
+ "key": "0xc1844062",
735
+ "ty": 7
736
+ }
737
+ }
738
+ }
739
+ ]
740
+ }
741
+ },
742
+ "ty": 13
743
+ }
744
+ }
745
+ }
746
+ ]
747
+ }
748
+ },
749
+ "ty": 19
750
+ }
751
+ },
752
+ "spec": {
753
+ "constructors": [
754
+ {
755
+ "label": "new",
756
+ "selector": "0x9bae9d5e",
757
+ "payable": false,
758
+ "args": [
759
+ {
760
+ "label": "config_address",
761
+ "type": {
762
+ "type": 0,
763
+ "displayName": [
764
+ "Address"
765
+ ]
766
+ }
767
+ }
768
+ ],
769
+ "returnType": {
770
+ "type": 20,
771
+ "displayName": [
772
+ "ink_primitives",
773
+ "ConstructorResult"
774
+ ]
775
+ },
776
+ "docs": [],
777
+ "default": false
778
+ }
779
+ ],
780
+ "messages": [
781
+ {
782
+ "label": "get_stars",
783
+ "selector": "0x44bf36de",
784
+ "mutates": false,
785
+ "payable": false,
786
+ "args": [
787
+ {
788
+ "label": "user",
789
+ "type": {
790
+ "type": 10,
791
+ "displayName": [
792
+ "AccountId"
793
+ ]
794
+ }
795
+ }
796
+ ],
797
+ "returnType": {
798
+ "type": 22,
799
+ "displayName": [
800
+ "ink",
801
+ "MessageResult"
802
+ ]
803
+ },
804
+ "docs": [
805
+ " Function to get stars of a user"
806
+ ],
807
+ "default": false
808
+ },
809
+ {
810
+ "label": "add_stars",
811
+ "selector": "0x6e66303d",
812
+ "mutates": true,
813
+ "payable": false,
814
+ "args": [
815
+ {
816
+ "label": "user",
817
+ "type": {
818
+ "type": 10,
819
+ "displayName": [
820
+ "AccountId"
821
+ ]
822
+ }
823
+ },
824
+ {
825
+ "label": "amount",
826
+ "type": {
827
+ "type": 3,
828
+ "displayName": [
829
+ "u32"
830
+ ]
831
+ }
832
+ }
833
+ ],
834
+ "returnType": {
835
+ "type": 23,
836
+ "displayName": [
837
+ "ink",
838
+ "MessageResult"
839
+ ]
840
+ },
841
+ "docs": [
842
+ " Function to add stars to a user"
843
+ ],
844
+ "default": false
845
+ },
846
+ {
847
+ "label": "can_vouch",
848
+ "selector": "0x0ad5e3fa",
849
+ "mutates": false,
850
+ "payable": false,
851
+ "args": [
852
+ {
853
+ "label": "user",
854
+ "type": {
855
+ "type": 10,
856
+ "displayName": [
857
+ "AccountId"
858
+ ]
859
+ }
860
+ }
861
+ ],
862
+ "returnType": {
863
+ "type": 26,
864
+ "displayName": [
865
+ "ink",
866
+ "MessageResult"
867
+ ]
868
+ },
869
+ "docs": [
870
+ " Function to check if a user can vouch based on their stars"
871
+ ],
872
+ "default": false
873
+ },
874
+ {
875
+ "label": "slash_stars",
876
+ "selector": "0xf7ed7340",
877
+ "mutates": true,
878
+ "payable": false,
879
+ "args": [
880
+ {
881
+ "label": "user",
882
+ "type": {
883
+ "type": 10,
884
+ "displayName": [
885
+ "AccountId"
886
+ ]
887
+ }
888
+ },
889
+ {
890
+ "label": "amount",
891
+ "type": {
892
+ "type": 3,
893
+ "displayName": [
894
+ "u32"
895
+ ]
896
+ }
897
+ }
898
+ ],
899
+ "returnType": {
900
+ "type": 23,
901
+ "displayName": [
902
+ "ink",
903
+ "MessageResult"
904
+ ]
905
+ },
906
+ "docs": [],
907
+ "default": false
908
+ },
909
+ {
910
+ "label": "stake_stars",
911
+ "selector": "0xbe3be7b0",
912
+ "mutates": true,
913
+ "payable": false,
914
+ "args": [
915
+ {
916
+ "label": "user",
917
+ "type": {
918
+ "type": 10,
919
+ "displayName": [
920
+ "AccountId"
921
+ ]
922
+ }
923
+ },
924
+ {
925
+ "label": "amount",
926
+ "type": {
927
+ "type": 3,
928
+ "displayName": [
929
+ "u32"
930
+ ]
931
+ }
932
+ }
933
+ ],
934
+ "returnType": {
935
+ "type": 23,
936
+ "displayName": [
937
+ "ink",
938
+ "MessageResult"
939
+ ]
940
+ },
941
+ "docs": [
942
+ " Function to stake stars for a user"
943
+ ],
944
+ "default": false
945
+ },
946
+ {
947
+ "label": "unstake_stars",
948
+ "selector": "0xd2519ab6",
949
+ "mutates": true,
950
+ "payable": false,
951
+ "args": [
952
+ {
953
+ "label": "user",
954
+ "type": {
955
+ "type": 10,
956
+ "displayName": [
957
+ "AccountId"
958
+ ]
959
+ }
960
+ },
961
+ {
962
+ "label": "amount",
963
+ "type": {
964
+ "type": 3,
965
+ "displayName": [
966
+ "u32"
967
+ ]
968
+ }
969
+ },
970
+ {
971
+ "label": "success",
972
+ "type": {
973
+ "type": 7,
974
+ "displayName": [
975
+ "bool"
976
+ ]
977
+ }
978
+ }
979
+ ],
980
+ "returnType": {
981
+ "type": 23,
982
+ "displayName": [
983
+ "ink",
984
+ "MessageResult"
985
+ ]
986
+ },
987
+ "docs": [
988
+ " Function to unstake stars for a user after vouching and loan is repaid successfully"
989
+ ],
990
+ "default": false
991
+ }
992
+ ],
993
+ "events": [],
994
+ "docs": [
995
+ " This contract manages reputation or star system across the application"
996
+ ],
997
+ "lang_error": {
998
+ "type": 21,
999
+ "displayName": [
1000
+ "ink",
1001
+ "LangError"
1002
+ ]
1003
+ },
1004
+ "environment": {
1005
+ "accountId": {
1006
+ "type": 10,
1007
+ "displayName": [
1008
+ "AccountId"
1009
+ ]
1010
+ },
1011
+ "balance": {
1012
+ "type": 6,
1013
+ "displayName": [
1014
+ "Balance"
1015
+ ]
1016
+ },
1017
+ "hash": {
1018
+ "type": 27,
1019
+ "displayName": [
1020
+ "Hash"
1021
+ ]
1022
+ },
1023
+ "timestamp": {
1024
+ "type": 12,
1025
+ "displayName": [
1026
+ "Timestamp"
1027
+ ]
1028
+ },
1029
+ "blockNumber": {
1030
+ "type": 3,
1031
+ "displayName": [
1032
+ "BlockNumber"
1033
+ ]
1034
+ },
1035
+ "nativeToEthRatio": 100000000,
1036
+ "trustBackedAssetsPrecompileIndex": 288,
1037
+ "poolAssetsPrecompileIndex": 800,
1038
+ "staticBufferSize": 16384
1039
+ }
1040
+ }
1041
+ }