@fepvenancio/stela-sdk 0.2.2 → 0.3.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.
@@ -0,0 +1,1381 @@
1
+ [
2
+ {
3
+ "type": "impl",
4
+ "name": "StelaProtocolImpl",
5
+ "interface_name": "stela::interfaces::istela::IStelaProtocol"
6
+ },
7
+ {
8
+ "type": "enum",
9
+ "name": "core::bool",
10
+ "variants": [
11
+ {
12
+ "name": "False",
13
+ "type": "()"
14
+ },
15
+ {
16
+ "name": "True",
17
+ "type": "()"
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "type": "enum",
23
+ "name": "stela::types::asset::AssetType",
24
+ "variants": [
25
+ {
26
+ "name": "ERC20",
27
+ "type": "()"
28
+ },
29
+ {
30
+ "name": "ERC721",
31
+ "type": "()"
32
+ },
33
+ {
34
+ "name": "ERC1155",
35
+ "type": "()"
36
+ },
37
+ {
38
+ "name": "ERC4626",
39
+ "type": "()"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "type": "struct",
45
+ "name": "core::integer::u256",
46
+ "members": [
47
+ {
48
+ "name": "low",
49
+ "type": "core::integer::u128"
50
+ },
51
+ {
52
+ "name": "high",
53
+ "type": "core::integer::u128"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "struct",
59
+ "name": "stela::types::asset::Asset",
60
+ "members": [
61
+ {
62
+ "name": "asset",
63
+ "type": "core::starknet::contract_address::ContractAddress"
64
+ },
65
+ {
66
+ "name": "asset_type",
67
+ "type": "stela::types::asset::AssetType"
68
+ },
69
+ {
70
+ "name": "value",
71
+ "type": "core::integer::u256"
72
+ },
73
+ {
74
+ "name": "token_id",
75
+ "type": "core::integer::u256"
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "type": "struct",
81
+ "name": "stela::types::inscription::InscriptionParams",
82
+ "members": [
83
+ {
84
+ "name": "is_borrow",
85
+ "type": "core::bool"
86
+ },
87
+ {
88
+ "name": "debt_assets",
89
+ "type": "core::array::Array::<stela::types::asset::Asset>"
90
+ },
91
+ {
92
+ "name": "interest_assets",
93
+ "type": "core::array::Array::<stela::types::asset::Asset>"
94
+ },
95
+ {
96
+ "name": "collateral_assets",
97
+ "type": "core::array::Array::<stela::types::asset::Asset>"
98
+ },
99
+ {
100
+ "name": "duration",
101
+ "type": "core::integer::u64"
102
+ },
103
+ {
104
+ "name": "deadline",
105
+ "type": "core::integer::u64"
106
+ },
107
+ {
108
+ "name": "multi_lender",
109
+ "type": "core::bool"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "type": "struct",
115
+ "name": "stela::snip12::InscriptionOrder",
116
+ "members": [
117
+ {
118
+ "name": "borrower",
119
+ "type": "core::starknet::contract_address::ContractAddress"
120
+ },
121
+ {
122
+ "name": "debt_hash",
123
+ "type": "core::felt252"
124
+ },
125
+ {
126
+ "name": "interest_hash",
127
+ "type": "core::felt252"
128
+ },
129
+ {
130
+ "name": "collateral_hash",
131
+ "type": "core::felt252"
132
+ },
133
+ {
134
+ "name": "debt_count",
135
+ "type": "core::integer::u32"
136
+ },
137
+ {
138
+ "name": "interest_count",
139
+ "type": "core::integer::u32"
140
+ },
141
+ {
142
+ "name": "collateral_count",
143
+ "type": "core::integer::u32"
144
+ },
145
+ {
146
+ "name": "duration",
147
+ "type": "core::integer::u64"
148
+ },
149
+ {
150
+ "name": "deadline",
151
+ "type": "core::integer::u64"
152
+ },
153
+ {
154
+ "name": "multi_lender",
155
+ "type": "core::bool"
156
+ },
157
+ {
158
+ "name": "nonce",
159
+ "type": "core::felt252"
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "type": "struct",
165
+ "name": "stela::snip12::LendOffer",
166
+ "members": [
167
+ {
168
+ "name": "order_hash",
169
+ "type": "core::felt252"
170
+ },
171
+ {
172
+ "name": "lender",
173
+ "type": "core::starknet::contract_address::ContractAddress"
174
+ },
175
+ {
176
+ "name": "issued_debt_percentage",
177
+ "type": "core::integer::u256"
178
+ },
179
+ {
180
+ "name": "nonce",
181
+ "type": "core::felt252"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "type": "struct",
187
+ "name": "stela::types::inscription::StoredInscription",
188
+ "members": [
189
+ {
190
+ "name": "borrower",
191
+ "type": "core::starknet::contract_address::ContractAddress"
192
+ },
193
+ {
194
+ "name": "lender",
195
+ "type": "core::starknet::contract_address::ContractAddress"
196
+ },
197
+ {
198
+ "name": "duration",
199
+ "type": "core::integer::u64"
200
+ },
201
+ {
202
+ "name": "deadline",
203
+ "type": "core::integer::u64"
204
+ },
205
+ {
206
+ "name": "signed_at",
207
+ "type": "core::integer::u64"
208
+ },
209
+ {
210
+ "name": "issued_debt_percentage",
211
+ "type": "core::integer::u256"
212
+ },
213
+ {
214
+ "name": "is_repaid",
215
+ "type": "core::bool"
216
+ },
217
+ {
218
+ "name": "liquidated",
219
+ "type": "core::bool"
220
+ },
221
+ {
222
+ "name": "multi_lender",
223
+ "type": "core::bool"
224
+ },
225
+ {
226
+ "name": "debt_asset_count",
227
+ "type": "core::integer::u32"
228
+ },
229
+ {
230
+ "name": "interest_asset_count",
231
+ "type": "core::integer::u32"
232
+ },
233
+ {
234
+ "name": "collateral_asset_count",
235
+ "type": "core::integer::u32"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "type": "interface",
241
+ "name": "stela::interfaces::istela::IStelaProtocol",
242
+ "items": [
243
+ {
244
+ "type": "function",
245
+ "name": "create_inscription",
246
+ "inputs": [
247
+ {
248
+ "name": "params",
249
+ "type": "stela::types::inscription::InscriptionParams"
250
+ }
251
+ ],
252
+ "outputs": [
253
+ {
254
+ "type": "core::integer::u256"
255
+ }
256
+ ],
257
+ "state_mutability": "external"
258
+ },
259
+ {
260
+ "type": "function",
261
+ "name": "sign_inscription",
262
+ "inputs": [
263
+ {
264
+ "name": "inscription_id",
265
+ "type": "core::integer::u256"
266
+ },
267
+ {
268
+ "name": "issued_debt_percentage",
269
+ "type": "core::integer::u256"
270
+ }
271
+ ],
272
+ "outputs": [],
273
+ "state_mutability": "external"
274
+ },
275
+ {
276
+ "type": "function",
277
+ "name": "cancel_inscription",
278
+ "inputs": [
279
+ {
280
+ "name": "inscription_id",
281
+ "type": "core::integer::u256"
282
+ }
283
+ ],
284
+ "outputs": [],
285
+ "state_mutability": "external"
286
+ },
287
+ {
288
+ "type": "function",
289
+ "name": "repay",
290
+ "inputs": [
291
+ {
292
+ "name": "inscription_id",
293
+ "type": "core::integer::u256"
294
+ }
295
+ ],
296
+ "outputs": [],
297
+ "state_mutability": "external"
298
+ },
299
+ {
300
+ "type": "function",
301
+ "name": "liquidate",
302
+ "inputs": [
303
+ {
304
+ "name": "inscription_id",
305
+ "type": "core::integer::u256"
306
+ }
307
+ ],
308
+ "outputs": [],
309
+ "state_mutability": "external"
310
+ },
311
+ {
312
+ "type": "function",
313
+ "name": "redeem",
314
+ "inputs": [
315
+ {
316
+ "name": "inscription_id",
317
+ "type": "core::integer::u256"
318
+ },
319
+ {
320
+ "name": "shares",
321
+ "type": "core::integer::u256"
322
+ }
323
+ ],
324
+ "outputs": [],
325
+ "state_mutability": "external"
326
+ },
327
+ {
328
+ "type": "function",
329
+ "name": "settle",
330
+ "inputs": [
331
+ {
332
+ "name": "order",
333
+ "type": "stela::snip12::InscriptionOrder"
334
+ },
335
+ {
336
+ "name": "debt_assets",
337
+ "type": "core::array::Array::<stela::types::asset::Asset>"
338
+ },
339
+ {
340
+ "name": "interest_assets",
341
+ "type": "core::array::Array::<stela::types::asset::Asset>"
342
+ },
343
+ {
344
+ "name": "collateral_assets",
345
+ "type": "core::array::Array::<stela::types::asset::Asset>"
346
+ },
347
+ {
348
+ "name": "borrower_sig",
349
+ "type": "core::array::Array::<core::felt252>"
350
+ },
351
+ {
352
+ "name": "offer",
353
+ "type": "stela::snip12::LendOffer"
354
+ },
355
+ {
356
+ "name": "lender_sig",
357
+ "type": "core::array::Array::<core::felt252>"
358
+ }
359
+ ],
360
+ "outputs": [],
361
+ "state_mutability": "external"
362
+ },
363
+ {
364
+ "type": "function",
365
+ "name": "get_inscription",
366
+ "inputs": [
367
+ {
368
+ "name": "inscription_id",
369
+ "type": "core::integer::u256"
370
+ }
371
+ ],
372
+ "outputs": [
373
+ {
374
+ "type": "stela::types::inscription::StoredInscription"
375
+ }
376
+ ],
377
+ "state_mutability": "view"
378
+ },
379
+ {
380
+ "type": "function",
381
+ "name": "get_locker",
382
+ "inputs": [
383
+ {
384
+ "name": "inscription_id",
385
+ "type": "core::integer::u256"
386
+ }
387
+ ],
388
+ "outputs": [
389
+ {
390
+ "type": "core::starknet::contract_address::ContractAddress"
391
+ }
392
+ ],
393
+ "state_mutability": "view"
394
+ },
395
+ {
396
+ "type": "function",
397
+ "name": "convert_to_shares",
398
+ "inputs": [
399
+ {
400
+ "name": "inscription_id",
401
+ "type": "core::integer::u256"
402
+ },
403
+ {
404
+ "name": "issued_debt_percentage",
405
+ "type": "core::integer::u256"
406
+ }
407
+ ],
408
+ "outputs": [
409
+ {
410
+ "type": "core::integer::u256"
411
+ }
412
+ ],
413
+ "state_mutability": "view"
414
+ },
415
+ {
416
+ "type": "function",
417
+ "name": "get_inscription_fee",
418
+ "inputs": [],
419
+ "outputs": [
420
+ {
421
+ "type": "core::integer::u256"
422
+ }
423
+ ],
424
+ "state_mutability": "view"
425
+ },
426
+ {
427
+ "type": "function",
428
+ "name": "nonces",
429
+ "inputs": [
430
+ {
431
+ "name": "owner",
432
+ "type": "core::starknet::contract_address::ContractAddress"
433
+ }
434
+ ],
435
+ "outputs": [
436
+ {
437
+ "type": "core::felt252"
438
+ }
439
+ ],
440
+ "state_mutability": "view"
441
+ },
442
+ {
443
+ "type": "function",
444
+ "name": "get_relayer_fee",
445
+ "inputs": [],
446
+ "outputs": [
447
+ {
448
+ "type": "core::integer::u256"
449
+ }
450
+ ],
451
+ "state_mutability": "view"
452
+ },
453
+ {
454
+ "type": "function",
455
+ "name": "set_inscription_fee",
456
+ "inputs": [
457
+ {
458
+ "name": "fee",
459
+ "type": "core::integer::u256"
460
+ }
461
+ ],
462
+ "outputs": [],
463
+ "state_mutability": "external"
464
+ },
465
+ {
466
+ "type": "function",
467
+ "name": "set_treasury",
468
+ "inputs": [
469
+ {
470
+ "name": "treasury",
471
+ "type": "core::starknet::contract_address::ContractAddress"
472
+ }
473
+ ],
474
+ "outputs": [],
475
+ "state_mutability": "external"
476
+ },
477
+ {
478
+ "type": "function",
479
+ "name": "set_registry",
480
+ "inputs": [
481
+ {
482
+ "name": "registry",
483
+ "type": "core::starknet::contract_address::ContractAddress"
484
+ }
485
+ ],
486
+ "outputs": [],
487
+ "state_mutability": "external"
488
+ },
489
+ {
490
+ "type": "function",
491
+ "name": "set_inscriptions_nft",
492
+ "inputs": [
493
+ {
494
+ "name": "inscriptions_nft",
495
+ "type": "core::starknet::contract_address::ContractAddress"
496
+ }
497
+ ],
498
+ "outputs": [],
499
+ "state_mutability": "external"
500
+ },
501
+ {
502
+ "type": "function",
503
+ "name": "set_relayer_fee",
504
+ "inputs": [
505
+ {
506
+ "name": "fee",
507
+ "type": "core::integer::u256"
508
+ }
509
+ ],
510
+ "outputs": [],
511
+ "state_mutability": "external"
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "type": "impl",
517
+ "name": "ERC1155MixinImpl",
518
+ "interface_name": "openzeppelin_interfaces::token::erc1155::ERC1155ABI"
519
+ },
520
+ {
521
+ "type": "struct",
522
+ "name": "core::array::Span::<core::starknet::contract_address::ContractAddress>",
523
+ "members": [
524
+ {
525
+ "name": "snapshot",
526
+ "type": "@core::array::Array::<core::starknet::contract_address::ContractAddress>"
527
+ }
528
+ ]
529
+ },
530
+ {
531
+ "type": "struct",
532
+ "name": "core::array::Span::<core::integer::u256>",
533
+ "members": [
534
+ {
535
+ "name": "snapshot",
536
+ "type": "@core::array::Array::<core::integer::u256>"
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "type": "struct",
542
+ "name": "core::array::Span::<core::felt252>",
543
+ "members": [
544
+ {
545
+ "name": "snapshot",
546
+ "type": "@core::array::Array::<core::felt252>"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "type": "struct",
552
+ "name": "core::byte_array::ByteArray",
553
+ "members": [
554
+ {
555
+ "name": "data",
556
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
557
+ },
558
+ {
559
+ "name": "pending_word",
560
+ "type": "core::felt252"
561
+ },
562
+ {
563
+ "name": "pending_word_len",
564
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "type": "interface",
570
+ "name": "openzeppelin_interfaces::token::erc1155::ERC1155ABI",
571
+ "items": [
572
+ {
573
+ "type": "function",
574
+ "name": "balance_of",
575
+ "inputs": [
576
+ {
577
+ "name": "account",
578
+ "type": "core::starknet::contract_address::ContractAddress"
579
+ },
580
+ {
581
+ "name": "token_id",
582
+ "type": "core::integer::u256"
583
+ }
584
+ ],
585
+ "outputs": [
586
+ {
587
+ "type": "core::integer::u256"
588
+ }
589
+ ],
590
+ "state_mutability": "view"
591
+ },
592
+ {
593
+ "type": "function",
594
+ "name": "balance_of_batch",
595
+ "inputs": [
596
+ {
597
+ "name": "accounts",
598
+ "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
599
+ },
600
+ {
601
+ "name": "token_ids",
602
+ "type": "core::array::Span::<core::integer::u256>"
603
+ }
604
+ ],
605
+ "outputs": [
606
+ {
607
+ "type": "core::array::Span::<core::integer::u256>"
608
+ }
609
+ ],
610
+ "state_mutability": "view"
611
+ },
612
+ {
613
+ "type": "function",
614
+ "name": "safe_transfer_from",
615
+ "inputs": [
616
+ {
617
+ "name": "from",
618
+ "type": "core::starknet::contract_address::ContractAddress"
619
+ },
620
+ {
621
+ "name": "to",
622
+ "type": "core::starknet::contract_address::ContractAddress"
623
+ },
624
+ {
625
+ "name": "token_id",
626
+ "type": "core::integer::u256"
627
+ },
628
+ {
629
+ "name": "value",
630
+ "type": "core::integer::u256"
631
+ },
632
+ {
633
+ "name": "data",
634
+ "type": "core::array::Span::<core::felt252>"
635
+ }
636
+ ],
637
+ "outputs": [],
638
+ "state_mutability": "external"
639
+ },
640
+ {
641
+ "type": "function",
642
+ "name": "safe_batch_transfer_from",
643
+ "inputs": [
644
+ {
645
+ "name": "from",
646
+ "type": "core::starknet::contract_address::ContractAddress"
647
+ },
648
+ {
649
+ "name": "to",
650
+ "type": "core::starknet::contract_address::ContractAddress"
651
+ },
652
+ {
653
+ "name": "token_ids",
654
+ "type": "core::array::Span::<core::integer::u256>"
655
+ },
656
+ {
657
+ "name": "values",
658
+ "type": "core::array::Span::<core::integer::u256>"
659
+ },
660
+ {
661
+ "name": "data",
662
+ "type": "core::array::Span::<core::felt252>"
663
+ }
664
+ ],
665
+ "outputs": [],
666
+ "state_mutability": "external"
667
+ },
668
+ {
669
+ "type": "function",
670
+ "name": "is_approved_for_all",
671
+ "inputs": [
672
+ {
673
+ "name": "owner",
674
+ "type": "core::starknet::contract_address::ContractAddress"
675
+ },
676
+ {
677
+ "name": "operator",
678
+ "type": "core::starknet::contract_address::ContractAddress"
679
+ }
680
+ ],
681
+ "outputs": [
682
+ {
683
+ "type": "core::bool"
684
+ }
685
+ ],
686
+ "state_mutability": "view"
687
+ },
688
+ {
689
+ "type": "function",
690
+ "name": "set_approval_for_all",
691
+ "inputs": [
692
+ {
693
+ "name": "operator",
694
+ "type": "core::starknet::contract_address::ContractAddress"
695
+ },
696
+ {
697
+ "name": "approved",
698
+ "type": "core::bool"
699
+ }
700
+ ],
701
+ "outputs": [],
702
+ "state_mutability": "external"
703
+ },
704
+ {
705
+ "type": "function",
706
+ "name": "supports_interface",
707
+ "inputs": [
708
+ {
709
+ "name": "interface_id",
710
+ "type": "core::felt252"
711
+ }
712
+ ],
713
+ "outputs": [
714
+ {
715
+ "type": "core::bool"
716
+ }
717
+ ],
718
+ "state_mutability": "view"
719
+ },
720
+ {
721
+ "type": "function",
722
+ "name": "uri",
723
+ "inputs": [
724
+ {
725
+ "name": "token_id",
726
+ "type": "core::integer::u256"
727
+ }
728
+ ],
729
+ "outputs": [
730
+ {
731
+ "type": "core::byte_array::ByteArray"
732
+ }
733
+ ],
734
+ "state_mutability": "view"
735
+ },
736
+ {
737
+ "type": "function",
738
+ "name": "balanceOf",
739
+ "inputs": [
740
+ {
741
+ "name": "account",
742
+ "type": "core::starknet::contract_address::ContractAddress"
743
+ },
744
+ {
745
+ "name": "tokenId",
746
+ "type": "core::integer::u256"
747
+ }
748
+ ],
749
+ "outputs": [
750
+ {
751
+ "type": "core::integer::u256"
752
+ }
753
+ ],
754
+ "state_mutability": "view"
755
+ },
756
+ {
757
+ "type": "function",
758
+ "name": "balanceOfBatch",
759
+ "inputs": [
760
+ {
761
+ "name": "accounts",
762
+ "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
763
+ },
764
+ {
765
+ "name": "tokenIds",
766
+ "type": "core::array::Span::<core::integer::u256>"
767
+ }
768
+ ],
769
+ "outputs": [
770
+ {
771
+ "type": "core::array::Span::<core::integer::u256>"
772
+ }
773
+ ],
774
+ "state_mutability": "view"
775
+ },
776
+ {
777
+ "type": "function",
778
+ "name": "safeTransferFrom",
779
+ "inputs": [
780
+ {
781
+ "name": "from",
782
+ "type": "core::starknet::contract_address::ContractAddress"
783
+ },
784
+ {
785
+ "name": "to",
786
+ "type": "core::starknet::contract_address::ContractAddress"
787
+ },
788
+ {
789
+ "name": "tokenId",
790
+ "type": "core::integer::u256"
791
+ },
792
+ {
793
+ "name": "value",
794
+ "type": "core::integer::u256"
795
+ },
796
+ {
797
+ "name": "data",
798
+ "type": "core::array::Span::<core::felt252>"
799
+ }
800
+ ],
801
+ "outputs": [],
802
+ "state_mutability": "external"
803
+ },
804
+ {
805
+ "type": "function",
806
+ "name": "safeBatchTransferFrom",
807
+ "inputs": [
808
+ {
809
+ "name": "from",
810
+ "type": "core::starknet::contract_address::ContractAddress"
811
+ },
812
+ {
813
+ "name": "to",
814
+ "type": "core::starknet::contract_address::ContractAddress"
815
+ },
816
+ {
817
+ "name": "tokenIds",
818
+ "type": "core::array::Span::<core::integer::u256>"
819
+ },
820
+ {
821
+ "name": "values",
822
+ "type": "core::array::Span::<core::integer::u256>"
823
+ },
824
+ {
825
+ "name": "data",
826
+ "type": "core::array::Span::<core::felt252>"
827
+ }
828
+ ],
829
+ "outputs": [],
830
+ "state_mutability": "external"
831
+ },
832
+ {
833
+ "type": "function",
834
+ "name": "isApprovedForAll",
835
+ "inputs": [
836
+ {
837
+ "name": "owner",
838
+ "type": "core::starknet::contract_address::ContractAddress"
839
+ },
840
+ {
841
+ "name": "operator",
842
+ "type": "core::starknet::contract_address::ContractAddress"
843
+ }
844
+ ],
845
+ "outputs": [
846
+ {
847
+ "type": "core::bool"
848
+ }
849
+ ],
850
+ "state_mutability": "view"
851
+ },
852
+ {
853
+ "type": "function",
854
+ "name": "setApprovalForAll",
855
+ "inputs": [
856
+ {
857
+ "name": "operator",
858
+ "type": "core::starknet::contract_address::ContractAddress"
859
+ },
860
+ {
861
+ "name": "approved",
862
+ "type": "core::bool"
863
+ }
864
+ ],
865
+ "outputs": [],
866
+ "state_mutability": "external"
867
+ }
868
+ ]
869
+ },
870
+ {
871
+ "type": "impl",
872
+ "name": "OwnableMixinImpl",
873
+ "interface_name": "openzeppelin_interfaces::access::ownable::OwnableABI"
874
+ },
875
+ {
876
+ "type": "interface",
877
+ "name": "openzeppelin_interfaces::access::ownable::OwnableABI",
878
+ "items": [
879
+ {
880
+ "type": "function",
881
+ "name": "owner",
882
+ "inputs": [],
883
+ "outputs": [
884
+ {
885
+ "type": "core::starknet::contract_address::ContractAddress"
886
+ }
887
+ ],
888
+ "state_mutability": "view"
889
+ },
890
+ {
891
+ "type": "function",
892
+ "name": "transfer_ownership",
893
+ "inputs": [
894
+ {
895
+ "name": "new_owner",
896
+ "type": "core::starknet::contract_address::ContractAddress"
897
+ }
898
+ ],
899
+ "outputs": [],
900
+ "state_mutability": "external"
901
+ },
902
+ {
903
+ "type": "function",
904
+ "name": "renounce_ownership",
905
+ "inputs": [],
906
+ "outputs": [],
907
+ "state_mutability": "external"
908
+ },
909
+ {
910
+ "type": "function",
911
+ "name": "transferOwnership",
912
+ "inputs": [
913
+ {
914
+ "name": "newOwner",
915
+ "type": "core::starknet::contract_address::ContractAddress"
916
+ }
917
+ ],
918
+ "outputs": [],
919
+ "state_mutability": "external"
920
+ },
921
+ {
922
+ "type": "function",
923
+ "name": "renounceOwnership",
924
+ "inputs": [],
925
+ "outputs": [],
926
+ "state_mutability": "external"
927
+ }
928
+ ]
929
+ },
930
+ {
931
+ "type": "constructor",
932
+ "name": "constructor",
933
+ "inputs": [
934
+ {
935
+ "name": "owner",
936
+ "type": "core::starknet::contract_address::ContractAddress"
937
+ },
938
+ {
939
+ "name": "treasury",
940
+ "type": "core::starknet::contract_address::ContractAddress"
941
+ },
942
+ {
943
+ "name": "inscriptions_nft",
944
+ "type": "core::starknet::contract_address::ContractAddress"
945
+ },
946
+ {
947
+ "name": "registry",
948
+ "type": "core::starknet::contract_address::ContractAddress"
949
+ },
950
+ {
951
+ "name": "implementation_hash",
952
+ "type": "core::felt252"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "type": "event",
958
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
959
+ "kind": "struct",
960
+ "members": [
961
+ {
962
+ "name": "operator",
963
+ "type": "core::starknet::contract_address::ContractAddress",
964
+ "kind": "key"
965
+ },
966
+ {
967
+ "name": "from",
968
+ "type": "core::starknet::contract_address::ContractAddress",
969
+ "kind": "key"
970
+ },
971
+ {
972
+ "name": "to",
973
+ "type": "core::starknet::contract_address::ContractAddress",
974
+ "kind": "key"
975
+ },
976
+ {
977
+ "name": "id",
978
+ "type": "core::integer::u256",
979
+ "kind": "data"
980
+ },
981
+ {
982
+ "name": "value",
983
+ "type": "core::integer::u256",
984
+ "kind": "data"
985
+ }
986
+ ]
987
+ },
988
+ {
989
+ "type": "event",
990
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
991
+ "kind": "struct",
992
+ "members": [
993
+ {
994
+ "name": "operator",
995
+ "type": "core::starknet::contract_address::ContractAddress",
996
+ "kind": "key"
997
+ },
998
+ {
999
+ "name": "from",
1000
+ "type": "core::starknet::contract_address::ContractAddress",
1001
+ "kind": "key"
1002
+ },
1003
+ {
1004
+ "name": "to",
1005
+ "type": "core::starknet::contract_address::ContractAddress",
1006
+ "kind": "key"
1007
+ },
1008
+ {
1009
+ "name": "ids",
1010
+ "type": "core::array::Span::<core::integer::u256>",
1011
+ "kind": "data"
1012
+ },
1013
+ {
1014
+ "name": "values",
1015
+ "type": "core::array::Span::<core::integer::u256>",
1016
+ "kind": "data"
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "type": "event",
1022
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
1023
+ "kind": "struct",
1024
+ "members": [
1025
+ {
1026
+ "name": "owner",
1027
+ "type": "core::starknet::contract_address::ContractAddress",
1028
+ "kind": "key"
1029
+ },
1030
+ {
1031
+ "name": "operator",
1032
+ "type": "core::starknet::contract_address::ContractAddress",
1033
+ "kind": "key"
1034
+ },
1035
+ {
1036
+ "name": "approved",
1037
+ "type": "core::bool",
1038
+ "kind": "data"
1039
+ }
1040
+ ]
1041
+ },
1042
+ {
1043
+ "type": "event",
1044
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
1045
+ "kind": "struct",
1046
+ "members": [
1047
+ {
1048
+ "name": "value",
1049
+ "type": "core::byte_array::ByteArray",
1050
+ "kind": "data"
1051
+ },
1052
+ {
1053
+ "name": "id",
1054
+ "type": "core::integer::u256",
1055
+ "kind": "key"
1056
+ }
1057
+ ]
1058
+ },
1059
+ {
1060
+ "type": "event",
1061
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
1062
+ "kind": "enum",
1063
+ "variants": [
1064
+ {
1065
+ "name": "TransferSingle",
1066
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
1067
+ "kind": "nested"
1068
+ },
1069
+ {
1070
+ "name": "TransferBatch",
1071
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
1072
+ "kind": "nested"
1073
+ },
1074
+ {
1075
+ "name": "ApprovalForAll",
1076
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
1077
+ "kind": "nested"
1078
+ },
1079
+ {
1080
+ "name": "URI",
1081
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
1082
+ "kind": "nested"
1083
+ }
1084
+ ]
1085
+ },
1086
+ {
1087
+ "type": "event",
1088
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
1089
+ "kind": "struct",
1090
+ "members": [
1091
+ {
1092
+ "name": "previous_owner",
1093
+ "type": "core::starknet::contract_address::ContractAddress",
1094
+ "kind": "key"
1095
+ },
1096
+ {
1097
+ "name": "new_owner",
1098
+ "type": "core::starknet::contract_address::ContractAddress",
1099
+ "kind": "key"
1100
+ }
1101
+ ]
1102
+ },
1103
+ {
1104
+ "type": "event",
1105
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
1106
+ "kind": "struct",
1107
+ "members": [
1108
+ {
1109
+ "name": "previous_owner",
1110
+ "type": "core::starknet::contract_address::ContractAddress",
1111
+ "kind": "key"
1112
+ },
1113
+ {
1114
+ "name": "new_owner",
1115
+ "type": "core::starknet::contract_address::ContractAddress",
1116
+ "kind": "key"
1117
+ }
1118
+ ]
1119
+ },
1120
+ {
1121
+ "type": "event",
1122
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
1123
+ "kind": "enum",
1124
+ "variants": [
1125
+ {
1126
+ "name": "OwnershipTransferred",
1127
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
1128
+ "kind": "nested"
1129
+ },
1130
+ {
1131
+ "name": "OwnershipTransferStarted",
1132
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
1133
+ "kind": "nested"
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "type": "event",
1139
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1140
+ "kind": "enum",
1141
+ "variants": []
1142
+ },
1143
+ {
1144
+ "type": "event",
1145
+ "name": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
1146
+ "kind": "enum",
1147
+ "variants": []
1148
+ },
1149
+ {
1150
+ "type": "event",
1151
+ "name": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
1152
+ "kind": "enum",
1153
+ "variants": []
1154
+ },
1155
+ {
1156
+ "type": "event",
1157
+ "name": "stela::stela::StelaProtocol::InscriptionCreated",
1158
+ "kind": "struct",
1159
+ "members": [
1160
+ {
1161
+ "name": "inscription_id",
1162
+ "type": "core::integer::u256",
1163
+ "kind": "key"
1164
+ },
1165
+ {
1166
+ "name": "creator",
1167
+ "type": "core::starknet::contract_address::ContractAddress",
1168
+ "kind": "key"
1169
+ },
1170
+ {
1171
+ "name": "is_borrow",
1172
+ "type": "core::bool",
1173
+ "kind": "data"
1174
+ }
1175
+ ]
1176
+ },
1177
+ {
1178
+ "type": "event",
1179
+ "name": "stela::stela::StelaProtocol::InscriptionSigned",
1180
+ "kind": "struct",
1181
+ "members": [
1182
+ {
1183
+ "name": "inscription_id",
1184
+ "type": "core::integer::u256",
1185
+ "kind": "key"
1186
+ },
1187
+ {
1188
+ "name": "borrower",
1189
+ "type": "core::starknet::contract_address::ContractAddress",
1190
+ "kind": "key"
1191
+ },
1192
+ {
1193
+ "name": "lender",
1194
+ "type": "core::starknet::contract_address::ContractAddress",
1195
+ "kind": "key"
1196
+ },
1197
+ {
1198
+ "name": "issued_debt_percentage",
1199
+ "type": "core::integer::u256",
1200
+ "kind": "data"
1201
+ },
1202
+ {
1203
+ "name": "shares_minted",
1204
+ "type": "core::integer::u256",
1205
+ "kind": "data"
1206
+ }
1207
+ ]
1208
+ },
1209
+ {
1210
+ "type": "event",
1211
+ "name": "stela::stela::StelaProtocol::InscriptionCancelled",
1212
+ "kind": "struct",
1213
+ "members": [
1214
+ {
1215
+ "name": "inscription_id",
1216
+ "type": "core::integer::u256",
1217
+ "kind": "key"
1218
+ },
1219
+ {
1220
+ "name": "creator",
1221
+ "type": "core::starknet::contract_address::ContractAddress",
1222
+ "kind": "data"
1223
+ }
1224
+ ]
1225
+ },
1226
+ {
1227
+ "type": "event",
1228
+ "name": "stela::stela::StelaProtocol::InscriptionRepaid",
1229
+ "kind": "struct",
1230
+ "members": [
1231
+ {
1232
+ "name": "inscription_id",
1233
+ "type": "core::integer::u256",
1234
+ "kind": "key"
1235
+ },
1236
+ {
1237
+ "name": "repayer",
1238
+ "type": "core::starknet::contract_address::ContractAddress",
1239
+ "kind": "data"
1240
+ }
1241
+ ]
1242
+ },
1243
+ {
1244
+ "type": "event",
1245
+ "name": "stela::stela::StelaProtocol::InscriptionLiquidated",
1246
+ "kind": "struct",
1247
+ "members": [
1248
+ {
1249
+ "name": "inscription_id",
1250
+ "type": "core::integer::u256",
1251
+ "kind": "key"
1252
+ },
1253
+ {
1254
+ "name": "liquidator",
1255
+ "type": "core::starknet::contract_address::ContractAddress",
1256
+ "kind": "data"
1257
+ }
1258
+ ]
1259
+ },
1260
+ {
1261
+ "type": "event",
1262
+ "name": "stela::stela::StelaProtocol::SharesRedeemed",
1263
+ "kind": "struct",
1264
+ "members": [
1265
+ {
1266
+ "name": "inscription_id",
1267
+ "type": "core::integer::u256",
1268
+ "kind": "key"
1269
+ },
1270
+ {
1271
+ "name": "redeemer",
1272
+ "type": "core::starknet::contract_address::ContractAddress",
1273
+ "kind": "key"
1274
+ },
1275
+ {
1276
+ "name": "shares",
1277
+ "type": "core::integer::u256",
1278
+ "kind": "data"
1279
+ }
1280
+ ]
1281
+ },
1282
+ {
1283
+ "type": "event",
1284
+ "name": "stela::stela::StelaProtocol::OrderSettled",
1285
+ "kind": "struct",
1286
+ "members": [
1287
+ {
1288
+ "name": "inscription_id",
1289
+ "type": "core::integer::u256",
1290
+ "kind": "key"
1291
+ },
1292
+ {
1293
+ "name": "borrower",
1294
+ "type": "core::starknet::contract_address::ContractAddress",
1295
+ "kind": "key"
1296
+ },
1297
+ {
1298
+ "name": "lender",
1299
+ "type": "core::starknet::contract_address::ContractAddress",
1300
+ "kind": "key"
1301
+ },
1302
+ {
1303
+ "name": "relayer",
1304
+ "type": "core::starknet::contract_address::ContractAddress",
1305
+ "kind": "data"
1306
+ },
1307
+ {
1308
+ "name": "relayer_fee_amount",
1309
+ "type": "core::integer::u256",
1310
+ "kind": "data"
1311
+ }
1312
+ ]
1313
+ },
1314
+ {
1315
+ "type": "event",
1316
+ "name": "stela::stela::StelaProtocol::Event",
1317
+ "kind": "enum",
1318
+ "variants": [
1319
+ {
1320
+ "name": "ERC1155Event",
1321
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
1322
+ "kind": "flat"
1323
+ },
1324
+ {
1325
+ "name": "OwnableEvent",
1326
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
1327
+ "kind": "flat"
1328
+ },
1329
+ {
1330
+ "name": "SRC5Event",
1331
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1332
+ "kind": "flat"
1333
+ },
1334
+ {
1335
+ "name": "ReentrancyGuardEvent",
1336
+ "type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
1337
+ "kind": "flat"
1338
+ },
1339
+ {
1340
+ "name": "NoncesEvent",
1341
+ "type": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
1342
+ "kind": "flat"
1343
+ },
1344
+ {
1345
+ "name": "InscriptionCreated",
1346
+ "type": "stela::stela::StelaProtocol::InscriptionCreated",
1347
+ "kind": "nested"
1348
+ },
1349
+ {
1350
+ "name": "InscriptionSigned",
1351
+ "type": "stela::stela::StelaProtocol::InscriptionSigned",
1352
+ "kind": "nested"
1353
+ },
1354
+ {
1355
+ "name": "InscriptionCancelled",
1356
+ "type": "stela::stela::StelaProtocol::InscriptionCancelled",
1357
+ "kind": "nested"
1358
+ },
1359
+ {
1360
+ "name": "InscriptionRepaid",
1361
+ "type": "stela::stela::StelaProtocol::InscriptionRepaid",
1362
+ "kind": "nested"
1363
+ },
1364
+ {
1365
+ "name": "InscriptionLiquidated",
1366
+ "type": "stela::stela::StelaProtocol::InscriptionLiquidated",
1367
+ "kind": "nested"
1368
+ },
1369
+ {
1370
+ "name": "SharesRedeemed",
1371
+ "type": "stela::stela::StelaProtocol::SharesRedeemed",
1372
+ "kind": "nested"
1373
+ },
1374
+ {
1375
+ "name": "OrderSettled",
1376
+ "type": "stela::stela::StelaProtocol::OrderSettled",
1377
+ "kind": "nested"
1378
+ }
1379
+ ]
1380
+ }
1381
+ ]