@kleo-protocol/kleo-sdk 0.1.3 → 0.1.4
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.
- package/dist/src/metadata/config.json +315 -297
- package/dist/src/metadata/index.d.ts +20 -1
- package/dist/src/metadata/index.d.ts.map +1 -1
- package/dist/src/metadata/lending_pool.json +179 -29
- package/dist/src/metadata/reputation.json +282 -94
- package/dist/src/metadata/vouch.json +419 -166
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": {
|
|
3
|
-
"hash": "
|
|
3
|
+
"hash": "0xdf32865ff7a60b652591ccfb816d7bc8f13f070805c6579a98ed8cc4ce6f8028",
|
|
4
4
|
"language": "ink! 6.0.0-beta.1",
|
|
5
5
|
"compiler": "rustc 1.91.1",
|
|
6
6
|
"build_info": {
|
|
7
7
|
"rust_toolchain": "stable-aarch64-apple-darwin",
|
|
8
8
|
"cargo_contract_version": "6.0.0-beta.1",
|
|
9
|
-
"build_mode": "
|
|
9
|
+
"build_mode": "Release"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"contract": {
|
|
@@ -103,21 +103,6 @@
|
|
|
103
103
|
"type": 3,
|
|
104
104
|
"typeName": "<u64 as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<724415313u32, ()>,>>::Type"
|
|
105
105
|
},
|
|
106
|
-
{
|
|
107
|
-
"name": "optimal_utilization",
|
|
108
|
-
"type": 3,
|
|
109
|
-
"typeName": "<u64 as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<1939125798u32, ()>,>>::Type"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "slope1",
|
|
113
|
-
"type": 3,
|
|
114
|
-
"typeName": "<u64 as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<3313869118u32, ()>,>>::Type"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "slope2",
|
|
118
|
-
"type": 3,
|
|
119
|
-
"typeName": "<u64 as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<261018413u32, ()>,>>::Type"
|
|
120
|
-
},
|
|
121
106
|
{
|
|
122
107
|
"name": "boost",
|
|
123
108
|
"type": 3,
|
|
@@ -134,19 +119,9 @@
|
|
|
134
119
|
"typeName": "<Timestamp as::ink::storage::traits::AutoStorableHint<::ink::\nstorage::traits::ManualKey<1330102215u32, ()>,>>::Type"
|
|
135
120
|
},
|
|
136
121
|
{
|
|
137
|
-
"name": "
|
|
122
|
+
"name": "loan_term",
|
|
138
123
|
"type": 3,
|
|
139
|
-
"typeName": "<
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "reserve_factor",
|
|
143
|
-
"type": 2,
|
|
144
|
-
"typeName": "<u8 as::ink::storage::traits::AutoStorableHint<::ink::storage::\ntraits::ManualKey<2246022307u32, ()>,>>::Type"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "max_rate",
|
|
148
|
-
"type": 3,
|
|
149
|
-
"typeName": "<u64 as::ink::storage::traits::AutoStorableHint<::ink::storage\n::traits::ManualKey<1664758855u32, ()>,>>::Type"
|
|
124
|
+
"typeName": "<Timestamp as::ink::storage::traits::AutoStorableHint<::ink::\nstorage::traits::ManualKey<3607963117u32, ()>,>>::Type"
|
|
150
125
|
},
|
|
151
126
|
{
|
|
152
127
|
"name": "loan_tier_scaling_factor",
|
|
@@ -291,7 +266,7 @@
|
|
|
291
266
|
"params": [
|
|
292
267
|
{
|
|
293
268
|
"name": "T",
|
|
294
|
-
"type":
|
|
269
|
+
"type": 0
|
|
295
270
|
},
|
|
296
271
|
{
|
|
297
272
|
"name": "E",
|
|
@@ -305,7 +280,7 @@
|
|
|
305
280
|
"name": "Ok",
|
|
306
281
|
"fields": [
|
|
307
282
|
{
|
|
308
|
-
"type":
|
|
283
|
+
"type": 0
|
|
309
284
|
}
|
|
310
285
|
],
|
|
311
286
|
"index": 0
|
|
@@ -326,6 +301,48 @@
|
|
|
326
301
|
},
|
|
327
302
|
{
|
|
328
303
|
"id": 11,
|
|
304
|
+
"type": {
|
|
305
|
+
"path": [
|
|
306
|
+
"Result"
|
|
307
|
+
],
|
|
308
|
+
"params": [
|
|
309
|
+
{
|
|
310
|
+
"name": "T",
|
|
311
|
+
"type": 12
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "E",
|
|
315
|
+
"type": 9
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"def": {
|
|
319
|
+
"variant": {
|
|
320
|
+
"variants": [
|
|
321
|
+
{
|
|
322
|
+
"name": "Ok",
|
|
323
|
+
"fields": [
|
|
324
|
+
{
|
|
325
|
+
"type": 12
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"index": 0
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "Err",
|
|
332
|
+
"fields": [
|
|
333
|
+
{
|
|
334
|
+
"type": 9
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"index": 1
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": 12,
|
|
329
346
|
"type": {
|
|
330
347
|
"path": [
|
|
331
348
|
"Result"
|
|
@@ -337,7 +354,7 @@
|
|
|
337
354
|
},
|
|
338
355
|
{
|
|
339
356
|
"name": "E",
|
|
340
|
-
"type":
|
|
357
|
+
"type": 13
|
|
341
358
|
}
|
|
342
359
|
],
|
|
343
360
|
"def": {
|
|
@@ -356,7 +373,7 @@
|
|
|
356
373
|
"name": "Err",
|
|
357
374
|
"fields": [
|
|
358
375
|
{
|
|
359
|
-
"type":
|
|
376
|
+
"type": 13
|
|
360
377
|
}
|
|
361
378
|
],
|
|
362
379
|
"index": 1
|
|
@@ -367,7 +384,7 @@
|
|
|
367
384
|
}
|
|
368
385
|
},
|
|
369
386
|
{
|
|
370
|
-
"id":
|
|
387
|
+
"id": 13,
|
|
371
388
|
"type": {
|
|
372
389
|
"path": [
|
|
373
390
|
"config",
|
|
@@ -380,6 +397,14 @@
|
|
|
380
397
|
{
|
|
381
398
|
"name": "NotAdmin",
|
|
382
399
|
"index": 0
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "InvalidValue",
|
|
403
|
+
"index": 1
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "AlreadyAdmin",
|
|
407
|
+
"index": 2
|
|
383
408
|
}
|
|
384
409
|
]
|
|
385
410
|
}
|
|
@@ -387,7 +412,7 @@
|
|
|
387
412
|
}
|
|
388
413
|
},
|
|
389
414
|
{
|
|
390
|
-
"id":
|
|
415
|
+
"id": 14,
|
|
391
416
|
"type": {
|
|
392
417
|
"path": [
|
|
393
418
|
"Result"
|
|
@@ -429,7 +454,7 @@
|
|
|
429
454
|
}
|
|
430
455
|
},
|
|
431
456
|
{
|
|
432
|
-
"id":
|
|
457
|
+
"id": 15,
|
|
433
458
|
"type": {
|
|
434
459
|
"path": [
|
|
435
460
|
"Result"
|
|
@@ -437,7 +462,7 @@
|
|
|
437
462
|
"params": [
|
|
438
463
|
{
|
|
439
464
|
"name": "T",
|
|
440
|
-
"type":
|
|
465
|
+
"type": 2
|
|
441
466
|
},
|
|
442
467
|
{
|
|
443
468
|
"name": "E",
|
|
@@ -451,7 +476,7 @@
|
|
|
451
476
|
"name": "Ok",
|
|
452
477
|
"fields": [
|
|
453
478
|
{
|
|
454
|
-
"type":
|
|
479
|
+
"type": 2
|
|
455
480
|
}
|
|
456
481
|
],
|
|
457
482
|
"index": 0
|
|
@@ -471,7 +496,7 @@
|
|
|
471
496
|
}
|
|
472
497
|
},
|
|
473
498
|
{
|
|
474
|
-
"id":
|
|
499
|
+
"id": 16,
|
|
475
500
|
"type": {
|
|
476
501
|
"path": [
|
|
477
502
|
"Result"
|
|
@@ -479,7 +504,7 @@
|
|
|
479
504
|
"params": [
|
|
480
505
|
{
|
|
481
506
|
"name": "T",
|
|
482
|
-
"type":
|
|
507
|
+
"type": 4
|
|
483
508
|
},
|
|
484
509
|
{
|
|
485
510
|
"name": "E",
|
|
@@ -493,7 +518,7 @@
|
|
|
493
518
|
"name": "Ok",
|
|
494
519
|
"fields": [
|
|
495
520
|
{
|
|
496
|
-
"type":
|
|
521
|
+
"type": 4
|
|
497
522
|
}
|
|
498
523
|
],
|
|
499
524
|
"index": 0
|
|
@@ -513,7 +538,7 @@
|
|
|
513
538
|
}
|
|
514
539
|
},
|
|
515
540
|
{
|
|
516
|
-
"id":
|
|
541
|
+
"id": 17,
|
|
517
542
|
"type": {
|
|
518
543
|
"path": [
|
|
519
544
|
"Result"
|
|
@@ -555,7 +580,7 @@
|
|
|
555
580
|
}
|
|
556
581
|
},
|
|
557
582
|
{
|
|
558
|
-
"id":
|
|
583
|
+
"id": 18,
|
|
559
584
|
"type": {
|
|
560
585
|
"path": [
|
|
561
586
|
"Result"
|
|
@@ -563,7 +588,7 @@
|
|
|
563
588
|
"params": [
|
|
564
589
|
{
|
|
565
590
|
"name": "T",
|
|
566
|
-
"type":
|
|
591
|
+
"type": 19
|
|
567
592
|
},
|
|
568
593
|
{
|
|
569
594
|
"name": "E",
|
|
@@ -577,7 +602,7 @@
|
|
|
577
602
|
"name": "Ok",
|
|
578
603
|
"fields": [
|
|
579
604
|
{
|
|
580
|
-
"type":
|
|
605
|
+
"type": 19
|
|
581
606
|
}
|
|
582
607
|
],
|
|
583
608
|
"index": 0
|
|
@@ -597,7 +622,7 @@
|
|
|
597
622
|
}
|
|
598
623
|
},
|
|
599
624
|
{
|
|
600
|
-
"id":
|
|
625
|
+
"id": 19,
|
|
601
626
|
"type": {
|
|
602
627
|
"def": {
|
|
603
628
|
"tuple": [
|
|
@@ -608,7 +633,7 @@
|
|
|
608
633
|
}
|
|
609
634
|
},
|
|
610
635
|
{
|
|
611
|
-
"id":
|
|
636
|
+
"id": 20,
|
|
612
637
|
"type": {
|
|
613
638
|
"path": [
|
|
614
639
|
"ink_primitives",
|
|
@@ -653,33 +678,6 @@
|
|
|
653
678
|
}
|
|
654
679
|
}
|
|
655
680
|
},
|
|
656
|
-
{
|
|
657
|
-
"name": "optimal_utilization",
|
|
658
|
-
"layout": {
|
|
659
|
-
"leaf": {
|
|
660
|
-
"key": "0x00000000",
|
|
661
|
-
"ty": 3
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"name": "slope1",
|
|
667
|
-
"layout": {
|
|
668
|
-
"leaf": {
|
|
669
|
-
"key": "0x00000000",
|
|
670
|
-
"ty": 3
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
"name": "slope2",
|
|
676
|
-
"layout": {
|
|
677
|
-
"leaf": {
|
|
678
|
-
"key": "0x00000000",
|
|
679
|
-
"ty": 3
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
681
|
{
|
|
684
682
|
"name": "boost",
|
|
685
683
|
"layout": {
|
|
@@ -708,25 +706,7 @@
|
|
|
708
706
|
}
|
|
709
707
|
},
|
|
710
708
|
{
|
|
711
|
-
"name": "
|
|
712
|
-
"layout": {
|
|
713
|
-
"leaf": {
|
|
714
|
-
"key": "0x00000000",
|
|
715
|
-
"ty": 3
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"name": "reserve_factor",
|
|
721
|
-
"layout": {
|
|
722
|
-
"leaf": {
|
|
723
|
-
"key": "0x00000000",
|
|
724
|
-
"ty": 2
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "max_rate",
|
|
709
|
+
"name": "loan_term",
|
|
730
710
|
"layout": {
|
|
731
711
|
"leaf": {
|
|
732
712
|
"key": "0x00000000",
|
|
@@ -854,7 +834,17 @@
|
|
|
854
834
|
"label": "new",
|
|
855
835
|
"selector": "0x9bae9d5e",
|
|
856
836
|
"payable": false,
|
|
857
|
-
"args": [
|
|
837
|
+
"args": [
|
|
838
|
+
{
|
|
839
|
+
"label": "admin_account_id",
|
|
840
|
+
"type": {
|
|
841
|
+
"type": 0,
|
|
842
|
+
"displayName": [
|
|
843
|
+
"AccountId"
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
],
|
|
858
848
|
"returnType": {
|
|
859
849
|
"type": 7,
|
|
860
850
|
"displayName": [
|
|
@@ -869,6 +859,22 @@
|
|
|
869
859
|
}
|
|
870
860
|
],
|
|
871
861
|
"messages": [
|
|
862
|
+
{
|
|
863
|
+
"label": "get_admin",
|
|
864
|
+
"selector": "0x57b8a8a7",
|
|
865
|
+
"mutates": false,
|
|
866
|
+
"payable": false,
|
|
867
|
+
"args": [],
|
|
868
|
+
"returnType": {
|
|
869
|
+
"type": 10,
|
|
870
|
+
"displayName": [
|
|
871
|
+
"ink",
|
|
872
|
+
"MessageResult"
|
|
873
|
+
]
|
|
874
|
+
},
|
|
875
|
+
"docs": [],
|
|
876
|
+
"default": false
|
|
877
|
+
},
|
|
872
878
|
{
|
|
873
879
|
"label": "update_base_interest_rate",
|
|
874
880
|
"selector": "0x0a857f2e",
|
|
@@ -883,10 +889,19 @@
|
|
|
883
889
|
"u64"
|
|
884
890
|
]
|
|
885
891
|
}
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"label": "caller_account_id",
|
|
895
|
+
"type": {
|
|
896
|
+
"type": 0,
|
|
897
|
+
"displayName": [
|
|
898
|
+
"AccountId"
|
|
899
|
+
]
|
|
900
|
+
}
|
|
886
901
|
}
|
|
887
902
|
],
|
|
888
903
|
"returnType": {
|
|
889
|
-
"type":
|
|
904
|
+
"type": 11,
|
|
890
905
|
"displayName": [
|
|
891
906
|
"ink",
|
|
892
907
|
"MessageResult"
|
|
@@ -898,23 +913,13 @@
|
|
|
898
913
|
"default": false
|
|
899
914
|
},
|
|
900
915
|
{
|
|
901
|
-
"label": "
|
|
902
|
-
"selector": "
|
|
903
|
-
"mutates":
|
|
916
|
+
"label": "get_optimal_utilization",
|
|
917
|
+
"selector": "0x4ddf68a4",
|
|
918
|
+
"mutates": false,
|
|
904
919
|
"payable": false,
|
|
905
|
-
"args": [
|
|
906
|
-
{
|
|
907
|
-
"label": "new_optimal",
|
|
908
|
-
"type": {
|
|
909
|
-
"type": 3,
|
|
910
|
-
"displayName": [
|
|
911
|
-
"u64"
|
|
912
|
-
]
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
],
|
|
920
|
+
"args": [],
|
|
916
921
|
"returnType": {
|
|
917
|
-
"type":
|
|
922
|
+
"type": 14,
|
|
918
923
|
"displayName": [
|
|
919
924
|
"ink",
|
|
920
925
|
"MessageResult"
|
|
@@ -924,23 +929,13 @@
|
|
|
924
929
|
"default": false
|
|
925
930
|
},
|
|
926
931
|
{
|
|
927
|
-
"label": "
|
|
928
|
-
"selector": "
|
|
929
|
-
"mutates":
|
|
932
|
+
"label": "get_slope1",
|
|
933
|
+
"selector": "0x9505b812",
|
|
934
|
+
"mutates": false,
|
|
930
935
|
"payable": false,
|
|
931
|
-
"args": [
|
|
932
|
-
{
|
|
933
|
-
"label": "new_slope",
|
|
934
|
-
"type": {
|
|
935
|
-
"type": 3,
|
|
936
|
-
"displayName": [
|
|
937
|
-
"u64"
|
|
938
|
-
]
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
],
|
|
936
|
+
"args": [],
|
|
942
937
|
"returnType": {
|
|
943
|
-
"type":
|
|
938
|
+
"type": 14,
|
|
944
939
|
"displayName": [
|
|
945
940
|
"ink",
|
|
946
941
|
"MessageResult"
|
|
@@ -950,23 +945,61 @@
|
|
|
950
945
|
"default": false
|
|
951
946
|
},
|
|
952
947
|
{
|
|
953
|
-
"label": "
|
|
954
|
-
"selector": "
|
|
955
|
-
"mutates":
|
|
948
|
+
"label": "get_slope2",
|
|
949
|
+
"selector": "0xcf931887",
|
|
950
|
+
"mutates": false,
|
|
956
951
|
"payable": false,
|
|
957
|
-
"args": [
|
|
958
|
-
{
|
|
959
|
-
"label": "new_slope",
|
|
960
|
-
"type": {
|
|
961
|
-
"type": 3,
|
|
962
|
-
"displayName": [
|
|
963
|
-
"u64"
|
|
964
|
-
]
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
],
|
|
952
|
+
"args": [],
|
|
968
953
|
"returnType": {
|
|
969
|
-
"type":
|
|
954
|
+
"type": 14,
|
|
955
|
+
"displayName": [
|
|
956
|
+
"ink",
|
|
957
|
+
"MessageResult"
|
|
958
|
+
]
|
|
959
|
+
},
|
|
960
|
+
"docs": [],
|
|
961
|
+
"default": false
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"label": "get_exposure_cap",
|
|
965
|
+
"selector": "0x0eea1ead",
|
|
966
|
+
"mutates": false,
|
|
967
|
+
"payable": false,
|
|
968
|
+
"args": [],
|
|
969
|
+
"returnType": {
|
|
970
|
+
"type": 14,
|
|
971
|
+
"displayName": [
|
|
972
|
+
"ink",
|
|
973
|
+
"MessageResult"
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
"docs": [],
|
|
977
|
+
"default": false
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"label": "get_reserve_factor",
|
|
981
|
+
"selector": "0x7dbf85cf",
|
|
982
|
+
"mutates": false,
|
|
983
|
+
"payable": false,
|
|
984
|
+
"args": [],
|
|
985
|
+
"returnType": {
|
|
986
|
+
"type": 15,
|
|
987
|
+
"displayName": [
|
|
988
|
+
"ink",
|
|
989
|
+
"MessageResult"
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
"docs": [],
|
|
993
|
+
"default": false
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"label": "get_max_rate",
|
|
997
|
+
"selector": "0xfd33a0f6",
|
|
998
|
+
"mutates": false,
|
|
999
|
+
"payable": false,
|
|
1000
|
+
"args": [],
|
|
1001
|
+
"returnType": {
|
|
1002
|
+
"type": 14,
|
|
970
1003
|
"displayName": [
|
|
971
1004
|
"ink",
|
|
972
1005
|
"MessageResult"
|
|
@@ -989,10 +1022,19 @@
|
|
|
989
1022
|
"u64"
|
|
990
1023
|
]
|
|
991
1024
|
}
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"label": "caller_account_id",
|
|
1028
|
+
"type": {
|
|
1029
|
+
"type": 0,
|
|
1030
|
+
"displayName": [
|
|
1031
|
+
"AccountId"
|
|
1032
|
+
]
|
|
1033
|
+
}
|
|
992
1034
|
}
|
|
993
1035
|
],
|
|
994
1036
|
"returnType": {
|
|
995
|
-
"type":
|
|
1037
|
+
"type": 11,
|
|
996
1038
|
"displayName": [
|
|
997
1039
|
"ink",
|
|
998
1040
|
"MessageResult"
|
|
@@ -1015,10 +1057,19 @@
|
|
|
1015
1057
|
"u32"
|
|
1016
1058
|
]
|
|
1017
1059
|
}
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"label": "caller_account_id",
|
|
1063
|
+
"type": {
|
|
1064
|
+
"type": 0,
|
|
1065
|
+
"displayName": [
|
|
1066
|
+
"AccountId"
|
|
1067
|
+
]
|
|
1068
|
+
}
|
|
1018
1069
|
}
|
|
1019
1070
|
],
|
|
1020
1071
|
"returnType": {
|
|
1021
|
-
"type":
|
|
1072
|
+
"type": 11,
|
|
1022
1073
|
"displayName": [
|
|
1023
1074
|
"ink",
|
|
1024
1075
|
"MessageResult"
|
|
@@ -1041,36 +1092,19 @@
|
|
|
1041
1092
|
"Timestamp"
|
|
1042
1093
|
]
|
|
1043
1094
|
}
|
|
1044
|
-
}
|
|
1045
|
-
],
|
|
1046
|
-
"returnType": {
|
|
1047
|
-
"type": 10,
|
|
1048
|
-
"displayName": [
|
|
1049
|
-
"ink",
|
|
1050
|
-
"MessageResult"
|
|
1051
|
-
]
|
|
1052
|
-
},
|
|
1053
|
-
"docs": [],
|
|
1054
|
-
"default": false
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"label": "update_exposure_cap",
|
|
1058
|
-
"selector": "0xef1525c5",
|
|
1059
|
-
"mutates": true,
|
|
1060
|
-
"payable": false,
|
|
1061
|
-
"args": [
|
|
1095
|
+
},
|
|
1062
1096
|
{
|
|
1063
|
-
"label": "
|
|
1097
|
+
"label": "caller_account_id",
|
|
1064
1098
|
"type": {
|
|
1065
|
-
"type":
|
|
1099
|
+
"type": 0,
|
|
1066
1100
|
"displayName": [
|
|
1067
|
-
"
|
|
1101
|
+
"AccountId"
|
|
1068
1102
|
]
|
|
1069
1103
|
}
|
|
1070
1104
|
}
|
|
1071
1105
|
],
|
|
1072
1106
|
"returnType": {
|
|
1073
|
-
"type":
|
|
1107
|
+
"type": 11,
|
|
1074
1108
|
"displayName": [
|
|
1075
1109
|
"ink",
|
|
1076
1110
|
"MessageResult"
|
|
@@ -1080,49 +1114,32 @@
|
|
|
1080
1114
|
"default": false
|
|
1081
1115
|
},
|
|
1082
1116
|
{
|
|
1083
|
-
"label": "
|
|
1084
|
-
"selector": "
|
|
1117
|
+
"label": "update_loan_term",
|
|
1118
|
+
"selector": "0xc12b7115",
|
|
1085
1119
|
"mutates": true,
|
|
1086
1120
|
"payable": false,
|
|
1087
1121
|
"args": [
|
|
1088
1122
|
{
|
|
1089
|
-
"label": "
|
|
1123
|
+
"label": "new_term",
|
|
1090
1124
|
"type": {
|
|
1091
|
-
"type":
|
|
1125
|
+
"type": 3,
|
|
1092
1126
|
"displayName": [
|
|
1093
|
-
"
|
|
1127
|
+
"Timestamp"
|
|
1094
1128
|
]
|
|
1095
1129
|
}
|
|
1096
|
-
}
|
|
1097
|
-
],
|
|
1098
|
-
"returnType": {
|
|
1099
|
-
"type": 10,
|
|
1100
|
-
"displayName": [
|
|
1101
|
-
"ink",
|
|
1102
|
-
"MessageResult"
|
|
1103
|
-
]
|
|
1104
|
-
},
|
|
1105
|
-
"docs": [],
|
|
1106
|
-
"default": false
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"label": "update_max_rate",
|
|
1110
|
-
"selector": "0x79262ca5",
|
|
1111
|
-
"mutates": true,
|
|
1112
|
-
"payable": false,
|
|
1113
|
-
"args": [
|
|
1130
|
+
},
|
|
1114
1131
|
{
|
|
1115
|
-
"label": "
|
|
1132
|
+
"label": "caller_account_id",
|
|
1116
1133
|
"type": {
|
|
1117
|
-
"type":
|
|
1134
|
+
"type": 0,
|
|
1118
1135
|
"displayName": [
|
|
1119
|
-
"
|
|
1136
|
+
"AccountId"
|
|
1120
1137
|
]
|
|
1121
1138
|
}
|
|
1122
1139
|
}
|
|
1123
1140
|
],
|
|
1124
1141
|
"returnType": {
|
|
1125
|
-
"type":
|
|
1142
|
+
"type": 11,
|
|
1126
1143
|
"displayName": [
|
|
1127
1144
|
"ink",
|
|
1128
1145
|
"MessageResult"
|
|
@@ -1145,10 +1162,19 @@
|
|
|
1145
1162
|
"Balance"
|
|
1146
1163
|
]
|
|
1147
1164
|
}
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"label": "caller_account_id",
|
|
1168
|
+
"type": {
|
|
1169
|
+
"type": 0,
|
|
1170
|
+
"displayName": [
|
|
1171
|
+
"AccountId"
|
|
1172
|
+
]
|
|
1173
|
+
}
|
|
1148
1174
|
}
|
|
1149
1175
|
],
|
|
1150
1176
|
"returnType": {
|
|
1151
|
-
"type":
|
|
1177
|
+
"type": 11,
|
|
1152
1178
|
"displayName": [
|
|
1153
1179
|
"ink",
|
|
1154
1180
|
"MessageResult"
|
|
@@ -1171,10 +1197,19 @@
|
|
|
1171
1197
|
"Balance"
|
|
1172
1198
|
]
|
|
1173
1199
|
}
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"label": "caller_account_id",
|
|
1203
|
+
"type": {
|
|
1204
|
+
"type": 0,
|
|
1205
|
+
"displayName": [
|
|
1206
|
+
"AccountId"
|
|
1207
|
+
]
|
|
1208
|
+
}
|
|
1174
1209
|
}
|
|
1175
1210
|
],
|
|
1176
1211
|
"returnType": {
|
|
1177
|
-
"type":
|
|
1212
|
+
"type": 11,
|
|
1178
1213
|
"displayName": [
|
|
1179
1214
|
"ink",
|
|
1180
1215
|
"MessageResult"
|
|
@@ -1197,10 +1232,19 @@
|
|
|
1197
1232
|
"Balance"
|
|
1198
1233
|
]
|
|
1199
1234
|
}
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"label": "caller_account_id",
|
|
1238
|
+
"type": {
|
|
1239
|
+
"type": 0,
|
|
1240
|
+
"displayName": [
|
|
1241
|
+
"AccountId"
|
|
1242
|
+
]
|
|
1243
|
+
}
|
|
1200
1244
|
}
|
|
1201
1245
|
],
|
|
1202
1246
|
"returnType": {
|
|
1203
|
-
"type":
|
|
1247
|
+
"type": 11,
|
|
1204
1248
|
"displayName": [
|
|
1205
1249
|
"ink",
|
|
1206
1250
|
"MessageResult"
|
|
@@ -1232,10 +1276,19 @@
|
|
|
1232
1276
|
"u32"
|
|
1233
1277
|
]
|
|
1234
1278
|
}
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"label": "caller_account_id",
|
|
1282
|
+
"type": {
|
|
1283
|
+
"type": 0,
|
|
1284
|
+
"displayName": [
|
|
1285
|
+
"AccountId"
|
|
1286
|
+
]
|
|
1287
|
+
}
|
|
1235
1288
|
}
|
|
1236
1289
|
],
|
|
1237
1290
|
"returnType": {
|
|
1238
|
-
"type":
|
|
1291
|
+
"type": 11,
|
|
1239
1292
|
"displayName": [
|
|
1240
1293
|
"ink",
|
|
1241
1294
|
"MessageResult"
|
|
@@ -1267,10 +1320,19 @@
|
|
|
1267
1320
|
"u32"
|
|
1268
1321
|
]
|
|
1269
1322
|
}
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"label": "caller_account_id",
|
|
1326
|
+
"type": {
|
|
1327
|
+
"type": 0,
|
|
1328
|
+
"displayName": [
|
|
1329
|
+
"AccountId"
|
|
1330
|
+
]
|
|
1331
|
+
}
|
|
1270
1332
|
}
|
|
1271
1333
|
],
|
|
1272
1334
|
"returnType": {
|
|
1273
|
-
"type":
|
|
1335
|
+
"type": 11,
|
|
1274
1336
|
"displayName": [
|
|
1275
1337
|
"ink",
|
|
1276
1338
|
"MessageResult"
|
|
@@ -1302,10 +1364,19 @@
|
|
|
1302
1364
|
"u32"
|
|
1303
1365
|
]
|
|
1304
1366
|
}
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"label": "caller_account_id",
|
|
1370
|
+
"type": {
|
|
1371
|
+
"type": 0,
|
|
1372
|
+
"displayName": [
|
|
1373
|
+
"AccountId"
|
|
1374
|
+
]
|
|
1375
|
+
}
|
|
1305
1376
|
}
|
|
1306
1377
|
],
|
|
1307
1378
|
"returnType": {
|
|
1308
|
-
"type":
|
|
1379
|
+
"type": 11,
|
|
1309
1380
|
"displayName": [
|
|
1310
1381
|
"ink",
|
|
1311
1382
|
"MessageResult"
|
|
@@ -1328,10 +1399,19 @@
|
|
|
1328
1399
|
"Timestamp"
|
|
1329
1400
|
]
|
|
1330
1401
|
}
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"label": "caller_account_id",
|
|
1405
|
+
"type": {
|
|
1406
|
+
"type": 0,
|
|
1407
|
+
"displayName": [
|
|
1408
|
+
"AccountId"
|
|
1409
|
+
]
|
|
1410
|
+
}
|
|
1331
1411
|
}
|
|
1332
1412
|
],
|
|
1333
1413
|
"returnType": {
|
|
1334
|
-
"type":
|
|
1414
|
+
"type": 11,
|
|
1335
1415
|
"displayName": [
|
|
1336
1416
|
"ink",
|
|
1337
1417
|
"MessageResult"
|
|
@@ -1354,10 +1434,19 @@
|
|
|
1354
1434
|
"u64"
|
|
1355
1435
|
]
|
|
1356
1436
|
}
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"label": "caller_account_id",
|
|
1440
|
+
"type": {
|
|
1441
|
+
"type": 0,
|
|
1442
|
+
"displayName": [
|
|
1443
|
+
"AccountId"
|
|
1444
|
+
]
|
|
1445
|
+
}
|
|
1357
1446
|
}
|
|
1358
1447
|
],
|
|
1359
1448
|
"returnType": {
|
|
1360
|
-
"type":
|
|
1449
|
+
"type": 11,
|
|
1361
1450
|
"displayName": [
|
|
1362
1451
|
"ink",
|
|
1363
1452
|
"MessageResult"
|
|
@@ -1380,10 +1469,19 @@
|
|
|
1380
1469
|
"u64"
|
|
1381
1470
|
]
|
|
1382
1471
|
}
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"label": "caller_account_id",
|
|
1475
|
+
"type": {
|
|
1476
|
+
"type": 0,
|
|
1477
|
+
"displayName": [
|
|
1478
|
+
"AccountId"
|
|
1479
|
+
]
|
|
1480
|
+
}
|
|
1383
1481
|
}
|
|
1384
1482
|
],
|
|
1385
1483
|
"returnType": {
|
|
1386
|
-
"type":
|
|
1484
|
+
"type": 11,
|
|
1387
1485
|
"displayName": [
|
|
1388
1486
|
"ink",
|
|
1389
1487
|
"MessageResult"
|
|
@@ -1399,7 +1497,7 @@
|
|
|
1399
1497
|
"payable": false,
|
|
1400
1498
|
"args": [],
|
|
1401
1499
|
"returnType": {
|
|
1402
|
-
"type":
|
|
1500
|
+
"type": 14,
|
|
1403
1501
|
"displayName": [
|
|
1404
1502
|
"ink",
|
|
1405
1503
|
"MessageResult"
|
|
@@ -1410,54 +1508,6 @@
|
|
|
1410
1508
|
],
|
|
1411
1509
|
"default": false
|
|
1412
1510
|
},
|
|
1413
|
-
{
|
|
1414
|
-
"label": "get_optimal_utilization",
|
|
1415
|
-
"selector": "0x4ddf68a4",
|
|
1416
|
-
"mutates": false,
|
|
1417
|
-
"payable": false,
|
|
1418
|
-
"args": [],
|
|
1419
|
-
"returnType": {
|
|
1420
|
-
"type": 13,
|
|
1421
|
-
"displayName": [
|
|
1422
|
-
"ink",
|
|
1423
|
-
"MessageResult"
|
|
1424
|
-
]
|
|
1425
|
-
},
|
|
1426
|
-
"docs": [],
|
|
1427
|
-
"default": false
|
|
1428
|
-
},
|
|
1429
|
-
{
|
|
1430
|
-
"label": "get_slope1",
|
|
1431
|
-
"selector": "0x9505b812",
|
|
1432
|
-
"mutates": false,
|
|
1433
|
-
"payable": false,
|
|
1434
|
-
"args": [],
|
|
1435
|
-
"returnType": {
|
|
1436
|
-
"type": 13,
|
|
1437
|
-
"displayName": [
|
|
1438
|
-
"ink",
|
|
1439
|
-
"MessageResult"
|
|
1440
|
-
]
|
|
1441
|
-
},
|
|
1442
|
-
"docs": [],
|
|
1443
|
-
"default": false
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
"label": "get_slope2",
|
|
1447
|
-
"selector": "0xcf931887",
|
|
1448
|
-
"mutates": false,
|
|
1449
|
-
"payable": false,
|
|
1450
|
-
"args": [],
|
|
1451
|
-
"returnType": {
|
|
1452
|
-
"type": 13,
|
|
1453
|
-
"displayName": [
|
|
1454
|
-
"ink",
|
|
1455
|
-
"MessageResult"
|
|
1456
|
-
]
|
|
1457
|
-
},
|
|
1458
|
-
"docs": [],
|
|
1459
|
-
"default": false
|
|
1460
|
-
},
|
|
1461
1511
|
{
|
|
1462
1512
|
"label": "get_boost",
|
|
1463
1513
|
"selector": "0xf5aa3bfa",
|
|
@@ -1465,7 +1515,7 @@
|
|
|
1465
1515
|
"payable": false,
|
|
1466
1516
|
"args": [],
|
|
1467
1517
|
"returnType": {
|
|
1468
|
-
"type":
|
|
1518
|
+
"type": 14,
|
|
1469
1519
|
"displayName": [
|
|
1470
1520
|
"ink",
|
|
1471
1521
|
"MessageResult"
|
|
@@ -1481,7 +1531,7 @@
|
|
|
1481
1531
|
"payable": false,
|
|
1482
1532
|
"args": [],
|
|
1483
1533
|
"returnType": {
|
|
1484
|
-
"type":
|
|
1534
|
+
"type": 16,
|
|
1485
1535
|
"displayName": [
|
|
1486
1536
|
"ink",
|
|
1487
1537
|
"MessageResult"
|
|
@@ -1497,39 +1547,7 @@
|
|
|
1497
1547
|
"payable": false,
|
|
1498
1548
|
"args": [],
|
|
1499
1549
|
"returnType": {
|
|
1500
|
-
"type":
|
|
1501
|
-
"displayName": [
|
|
1502
|
-
"ink",
|
|
1503
|
-
"MessageResult"
|
|
1504
|
-
]
|
|
1505
|
-
},
|
|
1506
|
-
"docs": [],
|
|
1507
|
-
"default": false
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
"label": "get_exposure_cap",
|
|
1511
|
-
"selector": "0x0eea1ead",
|
|
1512
|
-
"mutates": false,
|
|
1513
|
-
"payable": false,
|
|
1514
|
-
"args": [],
|
|
1515
|
-
"returnType": {
|
|
1516
|
-
"type": 13,
|
|
1517
|
-
"displayName": [
|
|
1518
|
-
"ink",
|
|
1519
|
-
"MessageResult"
|
|
1520
|
-
]
|
|
1521
|
-
},
|
|
1522
|
-
"docs": [],
|
|
1523
|
-
"default": false
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
"label": "get_reserve_factor",
|
|
1527
|
-
"selector": "0x7dbf85cf",
|
|
1528
|
-
"mutates": false,
|
|
1529
|
-
"payable": false,
|
|
1530
|
-
"args": [],
|
|
1531
|
-
"returnType": {
|
|
1532
|
-
"type": 15,
|
|
1550
|
+
"type": 14,
|
|
1533
1551
|
"displayName": [
|
|
1534
1552
|
"ink",
|
|
1535
1553
|
"MessageResult"
|
|
@@ -1539,13 +1557,13 @@
|
|
|
1539
1557
|
"default": false
|
|
1540
1558
|
},
|
|
1541
1559
|
{
|
|
1542
|
-
"label": "
|
|
1543
|
-
"selector": "
|
|
1560
|
+
"label": "get_loan_term",
|
|
1561
|
+
"selector": "0x4ff736c1",
|
|
1544
1562
|
"mutates": false,
|
|
1545
1563
|
"payable": false,
|
|
1546
1564
|
"args": [],
|
|
1547
1565
|
"returnType": {
|
|
1548
|
-
"type":
|
|
1566
|
+
"type": 14,
|
|
1549
1567
|
"displayName": [
|
|
1550
1568
|
"ink",
|
|
1551
1569
|
"MessageResult"
|
|
@@ -1561,7 +1579,7 @@
|
|
|
1561
1579
|
"payable": false,
|
|
1562
1580
|
"args": [],
|
|
1563
1581
|
"returnType": {
|
|
1564
|
-
"type":
|
|
1582
|
+
"type": 17,
|
|
1565
1583
|
"displayName": [
|
|
1566
1584
|
"ink",
|
|
1567
1585
|
"MessageResult"
|
|
@@ -1579,7 +1597,7 @@
|
|
|
1579
1597
|
"payable": false,
|
|
1580
1598
|
"args": [],
|
|
1581
1599
|
"returnType": {
|
|
1582
|
-
"type":
|
|
1600
|
+
"type": 17,
|
|
1583
1601
|
"displayName": [
|
|
1584
1602
|
"ink",
|
|
1585
1603
|
"MessageResult"
|
|
@@ -1597,7 +1615,7 @@
|
|
|
1597
1615
|
"payable": false,
|
|
1598
1616
|
"args": [],
|
|
1599
1617
|
"returnType": {
|
|
1600
|
-
"type":
|
|
1618
|
+
"type": 17,
|
|
1601
1619
|
"displayName": [
|
|
1602
1620
|
"ink",
|
|
1603
1621
|
"MessageResult"
|
|
@@ -1615,7 +1633,7 @@
|
|
|
1615
1633
|
"payable": false,
|
|
1616
1634
|
"args": [],
|
|
1617
1635
|
"returnType": {
|
|
1618
|
-
"type":
|
|
1636
|
+
"type": 18,
|
|
1619
1637
|
"displayName": [
|
|
1620
1638
|
"ink",
|
|
1621
1639
|
"MessageResult"
|
|
@@ -1633,7 +1651,7 @@
|
|
|
1633
1651
|
"payable": false,
|
|
1634
1652
|
"args": [],
|
|
1635
1653
|
"returnType": {
|
|
1636
|
-
"type":
|
|
1654
|
+
"type": 18,
|
|
1637
1655
|
"displayName": [
|
|
1638
1656
|
"ink",
|
|
1639
1657
|
"MessageResult"
|
|
@@ -1651,7 +1669,7 @@
|
|
|
1651
1669
|
"payable": false,
|
|
1652
1670
|
"args": [],
|
|
1653
1671
|
"returnType": {
|
|
1654
|
-
"type":
|
|
1672
|
+
"type": 18,
|
|
1655
1673
|
"displayName": [
|
|
1656
1674
|
"ink",
|
|
1657
1675
|
"MessageResult"
|
|
@@ -1669,7 +1687,7 @@
|
|
|
1669
1687
|
"payable": false,
|
|
1670
1688
|
"args": [],
|
|
1671
1689
|
"returnType": {
|
|
1672
|
-
"type":
|
|
1690
|
+
"type": 14,
|
|
1673
1691
|
"displayName": [
|
|
1674
1692
|
"ink",
|
|
1675
1693
|
"MessageResult"
|
|
@@ -1687,7 +1705,7 @@
|
|
|
1687
1705
|
"payable": false,
|
|
1688
1706
|
"args": [],
|
|
1689
1707
|
"returnType": {
|
|
1690
|
-
"type":
|
|
1708
|
+
"type": 14,
|
|
1691
1709
|
"displayName": [
|
|
1692
1710
|
"ink",
|
|
1693
1711
|
"MessageResult"
|
|
@@ -1705,7 +1723,7 @@
|
|
|
1705
1723
|
"payable": false,
|
|
1706
1724
|
"args": [],
|
|
1707
1725
|
"returnType": {
|
|
1708
|
-
"type":
|
|
1726
|
+
"type": 14,
|
|
1709
1727
|
"displayName": [
|
|
1710
1728
|
"ink",
|
|
1711
1729
|
"MessageResult"
|
|
@@ -1740,7 +1758,7 @@
|
|
|
1740
1758
|
]
|
|
1741
1759
|
},
|
|
1742
1760
|
"hash": {
|
|
1743
|
-
"type":
|
|
1761
|
+
"type": 20,
|
|
1744
1762
|
"displayName": [
|
|
1745
1763
|
"Hash"
|
|
1746
1764
|
]
|