@fepvenancio/stela-sdk 0.6.0 → 0.7.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.
- package/README.md +7 -1
- package/dist/index.cjs +98 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +98 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/stela.json +97 -33
package/package.json
CHANGED
package/src/abi/stela.json
CHANGED
|
@@ -182,6 +182,28 @@
|
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"type": "struct",
|
|
187
|
+
"name": "stela::snip12::BatchLendOffer",
|
|
188
|
+
"members": [
|
|
189
|
+
{
|
|
190
|
+
"name": "batch_hash",
|
|
191
|
+
"type": "core::felt252"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "count",
|
|
195
|
+
"type": "core::integer::u32"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "lender",
|
|
199
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "start_nonce",
|
|
203
|
+
"type": "core::felt252"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
185
207
|
{
|
|
186
208
|
"type": "struct",
|
|
187
209
|
"name": "stela::types::signed_order::SignedOrder",
|
|
@@ -394,6 +416,46 @@
|
|
|
394
416
|
"outputs": [],
|
|
395
417
|
"state_mutability": "external"
|
|
396
418
|
},
|
|
419
|
+
{
|
|
420
|
+
"type": "function",
|
|
421
|
+
"name": "batch_settle",
|
|
422
|
+
"inputs": [
|
|
423
|
+
{
|
|
424
|
+
"name": "orders",
|
|
425
|
+
"type": "core::array::Array::<stela::snip12::InscriptionOrder>"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "debt_assets_flat",
|
|
429
|
+
"type": "core::array::Array::<stela::types::asset::Asset>"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "interest_assets_flat",
|
|
433
|
+
"type": "core::array::Array::<stela::types::asset::Asset>"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "collateral_assets_flat",
|
|
437
|
+
"type": "core::array::Array::<stela::types::asset::Asset>"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "borrower_sigs",
|
|
441
|
+
"type": "core::array::Array::<core::array::Array::<core::felt252>>"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "batch_offer",
|
|
445
|
+
"type": "stela::snip12::BatchLendOffer"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "lender_sig",
|
|
449
|
+
"type": "core::array::Array::<core::felt252>"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "bps_list",
|
|
453
|
+
"type": "core::array::Array::<core::integer::u256>"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"outputs": [],
|
|
457
|
+
"state_mutability": "external"
|
|
458
|
+
},
|
|
397
459
|
{
|
|
398
460
|
"type": "function",
|
|
399
461
|
"name": "fill_signed_order",
|
|
@@ -490,17 +552,6 @@
|
|
|
490
552
|
],
|
|
491
553
|
"state_mutability": "view"
|
|
492
554
|
},
|
|
493
|
-
{
|
|
494
|
-
"type": "function",
|
|
495
|
-
"name": "get_inscription_fee",
|
|
496
|
-
"inputs": [],
|
|
497
|
-
"outputs": [
|
|
498
|
-
{
|
|
499
|
-
"type": "core::integer::u256"
|
|
500
|
-
}
|
|
501
|
-
],
|
|
502
|
-
"state_mutability": "view"
|
|
503
|
-
},
|
|
504
555
|
{
|
|
505
556
|
"type": "function",
|
|
506
557
|
"name": "nonces",
|
|
@@ -517,17 +568,6 @@
|
|
|
517
568
|
],
|
|
518
569
|
"state_mutability": "view"
|
|
519
570
|
},
|
|
520
|
-
{
|
|
521
|
-
"type": "function",
|
|
522
|
-
"name": "get_relayer_fee",
|
|
523
|
-
"inputs": [],
|
|
524
|
-
"outputs": [
|
|
525
|
-
{
|
|
526
|
-
"type": "core::integer::u256"
|
|
527
|
-
}
|
|
528
|
-
],
|
|
529
|
-
"state_mutability": "view"
|
|
530
|
-
},
|
|
531
571
|
{
|
|
532
572
|
"type": "function",
|
|
533
573
|
"name": "get_treasury",
|
|
@@ -643,15 +683,19 @@
|
|
|
643
683
|
},
|
|
644
684
|
{
|
|
645
685
|
"type": "function",
|
|
646
|
-
"name": "
|
|
686
|
+
"name": "is_volume_token_whitelisted",
|
|
647
687
|
"inputs": [
|
|
648
688
|
{
|
|
649
|
-
"name": "
|
|
650
|
-
"type": "core::
|
|
689
|
+
"name": "token",
|
|
690
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
651
691
|
}
|
|
652
692
|
],
|
|
653
|
-
"outputs": [
|
|
654
|
-
|
|
693
|
+
"outputs": [
|
|
694
|
+
{
|
|
695
|
+
"type": "core::bool"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"state_mutability": "view"
|
|
655
699
|
},
|
|
656
700
|
{
|
|
657
701
|
"type": "function",
|
|
@@ -691,11 +735,11 @@
|
|
|
691
735
|
},
|
|
692
736
|
{
|
|
693
737
|
"type": "function",
|
|
694
|
-
"name": "
|
|
738
|
+
"name": "set_implementation_hash",
|
|
695
739
|
"inputs": [
|
|
696
740
|
{
|
|
697
|
-
"name": "
|
|
698
|
-
"type": "core::
|
|
741
|
+
"name": "implementation_hash",
|
|
742
|
+
"type": "core::felt252"
|
|
699
743
|
}
|
|
700
744
|
],
|
|
701
745
|
"outputs": [],
|
|
@@ -703,11 +747,15 @@
|
|
|
703
747
|
},
|
|
704
748
|
{
|
|
705
749
|
"type": "function",
|
|
706
|
-
"name": "
|
|
750
|
+
"name": "set_volume_token_whitelisted",
|
|
707
751
|
"inputs": [
|
|
708
752
|
{
|
|
709
|
-
"name": "
|
|
710
|
-
"type": "core::
|
|
753
|
+
"name": "token",
|
|
754
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "whitelisted",
|
|
758
|
+
"type": "core::bool"
|
|
711
759
|
}
|
|
712
760
|
],
|
|
713
761
|
"outputs": [],
|
|
@@ -750,6 +798,18 @@
|
|
|
750
798
|
],
|
|
751
799
|
"state_mutability": "view"
|
|
752
800
|
},
|
|
801
|
+
{
|
|
802
|
+
"type": "function",
|
|
803
|
+
"name": "set_pauser",
|
|
804
|
+
"inputs": [
|
|
805
|
+
{
|
|
806
|
+
"name": "new_pauser",
|
|
807
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"outputs": [],
|
|
811
|
+
"state_mutability": "external"
|
|
812
|
+
},
|
|
753
813
|
{
|
|
754
814
|
"type": "function",
|
|
755
815
|
"name": "set_locker_allowed_selector",
|
|
@@ -758,6 +818,10 @@
|
|
|
758
818
|
"name": "locker",
|
|
759
819
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
760
820
|
},
|
|
821
|
+
{
|
|
822
|
+
"name": "target",
|
|
823
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
824
|
+
},
|
|
761
825
|
{
|
|
762
826
|
"name": "selector",
|
|
763
827
|
"type": "core::felt252"
|