@fepvenancio/stela-sdk 0.6.1 → 0.7.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.
- package/dist/index.cjs +94 -111
- 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 +94 -111
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/stela.json +93 -106
package/package.json
CHANGED
package/src/abi/stela.json
CHANGED
|
@@ -552,17 +552,6 @@
|
|
|
552
552
|
],
|
|
553
553
|
"state_mutability": "view"
|
|
554
554
|
},
|
|
555
|
-
{
|
|
556
|
-
"type": "function",
|
|
557
|
-
"name": "get_inscription_fee",
|
|
558
|
-
"inputs": [],
|
|
559
|
-
"outputs": [
|
|
560
|
-
{
|
|
561
|
-
"type": "core::integer::u256"
|
|
562
|
-
}
|
|
563
|
-
],
|
|
564
|
-
"state_mutability": "view"
|
|
565
|
-
},
|
|
566
555
|
{
|
|
567
556
|
"type": "function",
|
|
568
557
|
"name": "nonces",
|
|
@@ -579,17 +568,6 @@
|
|
|
579
568
|
],
|
|
580
569
|
"state_mutability": "view"
|
|
581
570
|
},
|
|
582
|
-
{
|
|
583
|
-
"type": "function",
|
|
584
|
-
"name": "get_relayer_fee",
|
|
585
|
-
"inputs": [],
|
|
586
|
-
"outputs": [
|
|
587
|
-
{
|
|
588
|
-
"type": "core::integer::u256"
|
|
589
|
-
}
|
|
590
|
-
],
|
|
591
|
-
"state_mutability": "view"
|
|
592
|
-
},
|
|
593
571
|
{
|
|
594
572
|
"type": "function",
|
|
595
573
|
"name": "get_treasury",
|
|
@@ -601,17 +579,6 @@
|
|
|
601
579
|
],
|
|
602
580
|
"state_mutability": "view"
|
|
603
581
|
},
|
|
604
|
-
{
|
|
605
|
-
"type": "function",
|
|
606
|
-
"name": "is_paused",
|
|
607
|
-
"inputs": [],
|
|
608
|
-
"outputs": [
|
|
609
|
-
{
|
|
610
|
-
"type": "core::bool"
|
|
611
|
-
}
|
|
612
|
-
],
|
|
613
|
-
"state_mutability": "view"
|
|
614
|
-
},
|
|
615
582
|
{
|
|
616
583
|
"type": "function",
|
|
617
584
|
"name": "is_order_registered",
|
|
@@ -705,15 +672,19 @@
|
|
|
705
672
|
},
|
|
706
673
|
{
|
|
707
674
|
"type": "function",
|
|
708
|
-
"name": "
|
|
675
|
+
"name": "is_volume_token_whitelisted",
|
|
709
676
|
"inputs": [
|
|
710
677
|
{
|
|
711
|
-
"name": "
|
|
712
|
-
"type": "core::
|
|
678
|
+
"name": "token",
|
|
679
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
713
680
|
}
|
|
714
681
|
],
|
|
715
|
-
"outputs": [
|
|
716
|
-
|
|
682
|
+
"outputs": [
|
|
683
|
+
{
|
|
684
|
+
"type": "core::bool"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"state_mutability": "view"
|
|
717
688
|
},
|
|
718
689
|
{
|
|
719
690
|
"type": "function",
|
|
@@ -753,11 +724,11 @@
|
|
|
753
724
|
},
|
|
754
725
|
{
|
|
755
726
|
"type": "function",
|
|
756
|
-
"name": "
|
|
727
|
+
"name": "set_implementation_hash",
|
|
757
728
|
"inputs": [
|
|
758
729
|
{
|
|
759
|
-
"name": "
|
|
760
|
-
"type": "core::
|
|
730
|
+
"name": "implementation_hash",
|
|
731
|
+
"type": "core::felt252"
|
|
761
732
|
}
|
|
762
733
|
],
|
|
763
734
|
"outputs": [],
|
|
@@ -765,11 +736,15 @@
|
|
|
765
736
|
},
|
|
766
737
|
{
|
|
767
738
|
"type": "function",
|
|
768
|
-
"name": "
|
|
739
|
+
"name": "set_volume_token_whitelisted",
|
|
769
740
|
"inputs": [
|
|
770
741
|
{
|
|
771
|
-
"name": "
|
|
772
|
-
"type": "core::
|
|
742
|
+
"name": "token",
|
|
743
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "whitelisted",
|
|
747
|
+
"type": "core::bool"
|
|
773
748
|
}
|
|
774
749
|
],
|
|
775
750
|
"outputs": [],
|
|
@@ -789,27 +764,34 @@
|
|
|
789
764
|
},
|
|
790
765
|
{
|
|
791
766
|
"type": "function",
|
|
792
|
-
"name": "
|
|
793
|
-
"inputs": [
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
767
|
+
"name": "set_governance_target",
|
|
768
|
+
"inputs": [
|
|
769
|
+
{
|
|
770
|
+
"name": "target",
|
|
771
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "whitelisted",
|
|
775
|
+
"type": "core::bool"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
801
778
|
"outputs": [],
|
|
802
779
|
"state_mutability": "external"
|
|
803
780
|
},
|
|
804
781
|
{
|
|
805
782
|
"type": "function",
|
|
806
|
-
"name": "
|
|
807
|
-
"inputs": [
|
|
808
|
-
"outputs": [
|
|
783
|
+
"name": "is_governance_target_whitelisted",
|
|
784
|
+
"inputs": [
|
|
809
785
|
{
|
|
786
|
+
"name": "target",
|
|
810
787
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
811
788
|
}
|
|
812
789
|
],
|
|
790
|
+
"outputs": [
|
|
791
|
+
{
|
|
792
|
+
"type": "core::bool"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
813
795
|
"state_mutability": "view"
|
|
814
796
|
},
|
|
815
797
|
{
|
|
@@ -820,6 +802,34 @@
|
|
|
820
802
|
"name": "locker",
|
|
821
803
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
822
804
|
},
|
|
805
|
+
{
|
|
806
|
+
"name": "target",
|
|
807
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "selector",
|
|
811
|
+
"type": "core::felt252"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "allowed",
|
|
815
|
+
"type": "core::bool"
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
"outputs": [],
|
|
819
|
+
"state_mutability": "external"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"type": "function",
|
|
823
|
+
"name": "set_borrower_governance_selector",
|
|
824
|
+
"inputs": [
|
|
825
|
+
{
|
|
826
|
+
"name": "inscription_id",
|
|
827
|
+
"type": "core::integer::u256"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "target",
|
|
831
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
832
|
+
},
|
|
823
833
|
{
|
|
824
834
|
"name": "selector",
|
|
825
835
|
"type": "core::felt252"
|
|
@@ -1268,10 +1278,6 @@
|
|
|
1268
1278
|
{
|
|
1269
1279
|
"name": "implementation_hash",
|
|
1270
1280
|
"type": "core::felt252"
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
"name": "pauser",
|
|
1274
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
1275
1281
|
}
|
|
1276
1282
|
]
|
|
1277
1283
|
},
|
|
@@ -1468,47 +1474,6 @@
|
|
|
1468
1474
|
"kind": "enum",
|
|
1469
1475
|
"variants": []
|
|
1470
1476
|
},
|
|
1471
|
-
{
|
|
1472
|
-
"type": "event",
|
|
1473
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Paused",
|
|
1474
|
-
"kind": "struct",
|
|
1475
|
-
"members": [
|
|
1476
|
-
{
|
|
1477
|
-
"name": "account",
|
|
1478
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
1479
|
-
"kind": "data"
|
|
1480
|
-
}
|
|
1481
|
-
]
|
|
1482
|
-
},
|
|
1483
|
-
{
|
|
1484
|
-
"type": "event",
|
|
1485
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Unpaused",
|
|
1486
|
-
"kind": "struct",
|
|
1487
|
-
"members": [
|
|
1488
|
-
{
|
|
1489
|
-
"name": "account",
|
|
1490
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
1491
|
-
"kind": "data"
|
|
1492
|
-
}
|
|
1493
|
-
]
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"type": "event",
|
|
1497
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Event",
|
|
1498
|
-
"kind": "enum",
|
|
1499
|
-
"variants": [
|
|
1500
|
-
{
|
|
1501
|
-
"name": "Paused",
|
|
1502
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Paused",
|
|
1503
|
-
"kind": "nested"
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"name": "Unpaused",
|
|
1507
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Unpaused",
|
|
1508
|
-
"kind": "nested"
|
|
1509
|
-
}
|
|
1510
|
-
]
|
|
1511
|
-
},
|
|
1512
1477
|
{
|
|
1513
1478
|
"type": "event",
|
|
1514
1479
|
"name": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
|
|
@@ -1740,6 +1705,28 @@
|
|
|
1740
1705
|
}
|
|
1741
1706
|
]
|
|
1742
1707
|
},
|
|
1708
|
+
{
|
|
1709
|
+
"type": "event",
|
|
1710
|
+
"name": "stela::stela::StelaProtocol::CollateralReturned",
|
|
1711
|
+
"kind": "struct",
|
|
1712
|
+
"members": [
|
|
1713
|
+
{
|
|
1714
|
+
"name": "inscription_id",
|
|
1715
|
+
"type": "core::integer::u256",
|
|
1716
|
+
"kind": "key"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "borrower",
|
|
1720
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
1721
|
+
"kind": "data"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "asset_count",
|
|
1725
|
+
"type": "core::integer::u32",
|
|
1726
|
+
"kind": "data"
|
|
1727
|
+
}
|
|
1728
|
+
]
|
|
1729
|
+
},
|
|
1743
1730
|
{
|
|
1744
1731
|
"type": "event",
|
|
1745
1732
|
"name": "stela::stela::StelaProtocol::Event",
|
|
@@ -1765,11 +1752,6 @@
|
|
|
1765
1752
|
"type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
|
|
1766
1753
|
"kind": "flat"
|
|
1767
1754
|
},
|
|
1768
|
-
{
|
|
1769
|
-
"name": "PausableEvent",
|
|
1770
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Event",
|
|
1771
|
-
"kind": "flat"
|
|
1772
|
-
},
|
|
1773
1755
|
{
|
|
1774
1756
|
"name": "NoncesEvent",
|
|
1775
1757
|
"type": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
|
|
@@ -1824,6 +1806,11 @@
|
|
|
1824
1806
|
"name": "OrdersBulkCancelled",
|
|
1825
1807
|
"type": "stela::stela::StelaProtocol::OrdersBulkCancelled",
|
|
1826
1808
|
"kind": "nested"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "CollateralReturned",
|
|
1812
|
+
"type": "stela::stela::StelaProtocol::CollateralReturned",
|
|
1813
|
+
"kind": "nested"
|
|
1827
1814
|
}
|
|
1828
1815
|
]
|
|
1829
1816
|
}
|