@fepvenancio/stela-sdk 0.7.0 → 0.8.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/dist/index.cjs +438 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +228 -2
- package/dist/index.d.ts +228 -2
- package/dist/index.js +429 -81
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/stela.json +63 -78
package/package.json
CHANGED
package/src/abi/stela.json
CHANGED
|
@@ -579,17 +579,6 @@
|
|
|
579
579
|
],
|
|
580
580
|
"state_mutability": "view"
|
|
581
581
|
},
|
|
582
|
-
{
|
|
583
|
-
"type": "function",
|
|
584
|
-
"name": "is_paused",
|
|
585
|
-
"inputs": [],
|
|
586
|
-
"outputs": [
|
|
587
|
-
{
|
|
588
|
-
"type": "core::bool"
|
|
589
|
-
}
|
|
590
|
-
],
|
|
591
|
-
"state_mutability": "view"
|
|
592
|
-
},
|
|
593
582
|
{
|
|
594
583
|
"type": "function",
|
|
595
584
|
"name": "is_order_registered",
|
|
@@ -775,36 +764,55 @@
|
|
|
775
764
|
},
|
|
776
765
|
{
|
|
777
766
|
"type": "function",
|
|
778
|
-
"name": "
|
|
779
|
-
"inputs": [
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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
|
+
],
|
|
787
778
|
"outputs": [],
|
|
788
779
|
"state_mutability": "external"
|
|
789
780
|
},
|
|
790
781
|
{
|
|
791
782
|
"type": "function",
|
|
792
|
-
"name": "
|
|
793
|
-
"inputs": [
|
|
794
|
-
"outputs": [
|
|
783
|
+
"name": "is_governance_target_whitelisted",
|
|
784
|
+
"inputs": [
|
|
795
785
|
{
|
|
786
|
+
"name": "target",
|
|
796
787
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
797
788
|
}
|
|
798
789
|
],
|
|
790
|
+
"outputs": [
|
|
791
|
+
{
|
|
792
|
+
"type": "core::bool"
|
|
793
|
+
}
|
|
794
|
+
],
|
|
799
795
|
"state_mutability": "view"
|
|
800
796
|
},
|
|
801
797
|
{
|
|
802
798
|
"type": "function",
|
|
803
|
-
"name": "
|
|
799
|
+
"name": "set_locker_allowed_selector",
|
|
804
800
|
"inputs": [
|
|
805
801
|
{
|
|
806
|
-
"name": "
|
|
802
|
+
"name": "locker",
|
|
807
803
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
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"
|
|
808
816
|
}
|
|
809
817
|
],
|
|
810
818
|
"outputs": [],
|
|
@@ -812,11 +820,11 @@
|
|
|
812
820
|
},
|
|
813
821
|
{
|
|
814
822
|
"type": "function",
|
|
815
|
-
"name": "
|
|
823
|
+
"name": "set_borrower_governance_selector",
|
|
816
824
|
"inputs": [
|
|
817
825
|
{
|
|
818
|
-
"name": "
|
|
819
|
-
"type": "core::
|
|
826
|
+
"name": "inscription_id",
|
|
827
|
+
"type": "core::integer::u256"
|
|
820
828
|
},
|
|
821
829
|
{
|
|
822
830
|
"name": "target",
|
|
@@ -1270,10 +1278,6 @@
|
|
|
1270
1278
|
{
|
|
1271
1279
|
"name": "implementation_hash",
|
|
1272
1280
|
"type": "core::felt252"
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"name": "pauser",
|
|
1276
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
1277
1281
|
}
|
|
1278
1282
|
]
|
|
1279
1283
|
},
|
|
@@ -1470,47 +1474,6 @@
|
|
|
1470
1474
|
"kind": "enum",
|
|
1471
1475
|
"variants": []
|
|
1472
1476
|
},
|
|
1473
|
-
{
|
|
1474
|
-
"type": "event",
|
|
1475
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Paused",
|
|
1476
|
-
"kind": "struct",
|
|
1477
|
-
"members": [
|
|
1478
|
-
{
|
|
1479
|
-
"name": "account",
|
|
1480
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
1481
|
-
"kind": "data"
|
|
1482
|
-
}
|
|
1483
|
-
]
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
"type": "event",
|
|
1487
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Unpaused",
|
|
1488
|
-
"kind": "struct",
|
|
1489
|
-
"members": [
|
|
1490
|
-
{
|
|
1491
|
-
"name": "account",
|
|
1492
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
1493
|
-
"kind": "data"
|
|
1494
|
-
}
|
|
1495
|
-
]
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
"type": "event",
|
|
1499
|
-
"name": "openzeppelin_security::pausable::PausableComponent::Event",
|
|
1500
|
-
"kind": "enum",
|
|
1501
|
-
"variants": [
|
|
1502
|
-
{
|
|
1503
|
-
"name": "Paused",
|
|
1504
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Paused",
|
|
1505
|
-
"kind": "nested"
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
"name": "Unpaused",
|
|
1509
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Unpaused",
|
|
1510
|
-
"kind": "nested"
|
|
1511
|
-
}
|
|
1512
|
-
]
|
|
1513
|
-
},
|
|
1514
1477
|
{
|
|
1515
1478
|
"type": "event",
|
|
1516
1479
|
"name": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
|
|
@@ -1742,6 +1705,28 @@
|
|
|
1742
1705
|
}
|
|
1743
1706
|
]
|
|
1744
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
|
+
},
|
|
1745
1730
|
{
|
|
1746
1731
|
"type": "event",
|
|
1747
1732
|
"name": "stela::stela::StelaProtocol::Event",
|
|
@@ -1767,11 +1752,6 @@
|
|
|
1767
1752
|
"type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
|
|
1768
1753
|
"kind": "flat"
|
|
1769
1754
|
},
|
|
1770
|
-
{
|
|
1771
|
-
"name": "PausableEvent",
|
|
1772
|
-
"type": "openzeppelin_security::pausable::PausableComponent::Event",
|
|
1773
|
-
"kind": "flat"
|
|
1774
|
-
},
|
|
1775
1755
|
{
|
|
1776
1756
|
"name": "NoncesEvent",
|
|
1777
1757
|
"type": "openzeppelin_utils::cryptography::nonces::NoncesComponent::Event",
|
|
@@ -1826,6 +1806,11 @@
|
|
|
1826
1806
|
"name": "OrdersBulkCancelled",
|
|
1827
1807
|
"type": "stela::stela::StelaProtocol::OrdersBulkCancelled",
|
|
1828
1808
|
"kind": "nested"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "CollateralReturned",
|
|
1812
|
+
"type": "stela::stela::StelaProtocol::CollateralReturned",
|
|
1813
|
+
"kind": "nested"
|
|
1829
1814
|
}
|
|
1830
1815
|
]
|
|
1831
1816
|
}
|