@fepvenancio/stela-sdk 0.2.3 → 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.
- package/README.md +2 -2
- package/dist/index.cjs +549 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +165 -2
- package/dist/index.d.ts +165 -2
- package/dist/index.js +546 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/erc20 2.json +54 -0
- package/src/abi/erc20 3.json +54 -0
- package/src/abi/locker 2.json +50 -0
- package/src/abi/locker 3.json +50 -0
- package/src/abi/stela 2.json +1381 -0
- package/src/abi/stela 3.json +1714 -0
- package/src/abi/stela.json +365 -10
package/src/abi/stela.json
CHANGED
|
@@ -110,6 +110,46 @@
|
|
|
110
110
|
}
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"type": "struct",
|
|
115
|
+
"name": "stela::types::private_redeem::PrivateRedeemRequest",
|
|
116
|
+
"members": [
|
|
117
|
+
{
|
|
118
|
+
"name": "root",
|
|
119
|
+
"type": "core::felt252"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "inscription_id",
|
|
123
|
+
"type": "core::integer::u256"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "shares",
|
|
127
|
+
"type": "core::integer::u256"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "nullifier",
|
|
131
|
+
"type": "core::felt252"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "change_commitment",
|
|
135
|
+
"type": "core::felt252"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "recipient",
|
|
139
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "struct",
|
|
145
|
+
"name": "core::array::Span::<core::felt252>",
|
|
146
|
+
"members": [
|
|
147
|
+
{
|
|
148
|
+
"name": "snapshot",
|
|
149
|
+
"type": "@core::array::Array::<core::felt252>"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
113
153
|
{
|
|
114
154
|
"type": "struct",
|
|
115
155
|
"name": "stela::snip12::InscriptionOrder",
|
|
@@ -179,6 +219,44 @@
|
|
|
179
219
|
{
|
|
180
220
|
"name": "nonce",
|
|
181
221
|
"type": "core::felt252"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "lender_commitment",
|
|
225
|
+
"type": "core::felt252"
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "struct",
|
|
231
|
+
"name": "stela::types::signed_order::SignedOrder",
|
|
232
|
+
"members": [
|
|
233
|
+
{
|
|
234
|
+
"name": "maker",
|
|
235
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "allowed_taker",
|
|
239
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "inscription_id",
|
|
243
|
+
"type": "core::integer::u256"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "bps",
|
|
247
|
+
"type": "core::integer::u256"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "deadline",
|
|
251
|
+
"type": "core::integer::u64"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "nonce",
|
|
255
|
+
"type": "core::felt252"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "min_fill_bps",
|
|
259
|
+
"type": "core::integer::u256"
|
|
182
260
|
}
|
|
183
261
|
]
|
|
184
262
|
},
|
|
@@ -324,6 +402,22 @@
|
|
|
324
402
|
"outputs": [],
|
|
325
403
|
"state_mutability": "external"
|
|
326
404
|
},
|
|
405
|
+
{
|
|
406
|
+
"type": "function",
|
|
407
|
+
"name": "private_redeem",
|
|
408
|
+
"inputs": [
|
|
409
|
+
{
|
|
410
|
+
"name": "request",
|
|
411
|
+
"type": "stela::types::private_redeem::PrivateRedeemRequest"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "proof",
|
|
415
|
+
"type": "core::array::Span::<core::felt252>"
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"outputs": [],
|
|
419
|
+
"state_mutability": "external"
|
|
420
|
+
},
|
|
327
421
|
{
|
|
328
422
|
"type": "function",
|
|
329
423
|
"name": "settle",
|
|
@@ -360,6 +454,50 @@
|
|
|
360
454
|
"outputs": [],
|
|
361
455
|
"state_mutability": "external"
|
|
362
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"type": "function",
|
|
459
|
+
"name": "fill_signed_order",
|
|
460
|
+
"inputs": [
|
|
461
|
+
{
|
|
462
|
+
"name": "order",
|
|
463
|
+
"type": "stela::types::signed_order::SignedOrder"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "signature",
|
|
467
|
+
"type": "core::array::Array::<core::felt252>"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "fill_bps",
|
|
471
|
+
"type": "core::integer::u256"
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"outputs": [],
|
|
475
|
+
"state_mutability": "external"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"type": "function",
|
|
479
|
+
"name": "cancel_order",
|
|
480
|
+
"inputs": [
|
|
481
|
+
{
|
|
482
|
+
"name": "order",
|
|
483
|
+
"type": "stela::types::signed_order::SignedOrder"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"outputs": [],
|
|
487
|
+
"state_mutability": "external"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"type": "function",
|
|
491
|
+
"name": "cancel_orders_by_nonce",
|
|
492
|
+
"inputs": [
|
|
493
|
+
{
|
|
494
|
+
"name": "min_nonce",
|
|
495
|
+
"type": "core::felt252"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"outputs": [],
|
|
499
|
+
"state_mutability": "external"
|
|
500
|
+
},
|
|
363
501
|
{
|
|
364
502
|
"type": "function",
|
|
365
503
|
"name": "get_inscription",
|
|
@@ -472,6 +610,81 @@
|
|
|
472
610
|
],
|
|
473
611
|
"state_mutability": "view"
|
|
474
612
|
},
|
|
613
|
+
{
|
|
614
|
+
"type": "function",
|
|
615
|
+
"name": "is_order_registered",
|
|
616
|
+
"inputs": [
|
|
617
|
+
{
|
|
618
|
+
"name": "order_hash",
|
|
619
|
+
"type": "core::felt252"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"outputs": [
|
|
623
|
+
{
|
|
624
|
+
"type": "core::bool"
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"state_mutability": "view"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"type": "function",
|
|
631
|
+
"name": "is_order_cancelled",
|
|
632
|
+
"inputs": [
|
|
633
|
+
{
|
|
634
|
+
"name": "order_hash",
|
|
635
|
+
"type": "core::felt252"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"outputs": [
|
|
639
|
+
{
|
|
640
|
+
"type": "core::bool"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"state_mutability": "view"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"type": "function",
|
|
647
|
+
"name": "get_filled_bps",
|
|
648
|
+
"inputs": [
|
|
649
|
+
{
|
|
650
|
+
"name": "order_hash",
|
|
651
|
+
"type": "core::felt252"
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"outputs": [
|
|
655
|
+
{
|
|
656
|
+
"type": "core::integer::u256"
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"state_mutability": "view"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"type": "function",
|
|
663
|
+
"name": "get_maker_min_nonce",
|
|
664
|
+
"inputs": [
|
|
665
|
+
{
|
|
666
|
+
"name": "maker",
|
|
667
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"outputs": [
|
|
671
|
+
{
|
|
672
|
+
"type": "core::felt252"
|
|
673
|
+
}
|
|
674
|
+
],
|
|
675
|
+
"state_mutability": "view"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"type": "function",
|
|
679
|
+
"name": "get_privacy_pool",
|
|
680
|
+
"inputs": [],
|
|
681
|
+
"outputs": [
|
|
682
|
+
{
|
|
683
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"state_mutability": "view"
|
|
687
|
+
},
|
|
475
688
|
{
|
|
476
689
|
"type": "function",
|
|
477
690
|
"name": "set_inscription_fee",
|
|
@@ -544,6 +757,18 @@
|
|
|
544
757
|
"outputs": [],
|
|
545
758
|
"state_mutability": "external"
|
|
546
759
|
},
|
|
760
|
+
{
|
|
761
|
+
"type": "function",
|
|
762
|
+
"name": "set_privacy_pool",
|
|
763
|
+
"inputs": [
|
|
764
|
+
{
|
|
765
|
+
"name": "privacy_pool",
|
|
766
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"outputs": [],
|
|
770
|
+
"state_mutability": "external"
|
|
771
|
+
},
|
|
547
772
|
{
|
|
548
773
|
"type": "function",
|
|
549
774
|
"name": "pause",
|
|
@@ -605,16 +830,6 @@
|
|
|
605
830
|
}
|
|
606
831
|
]
|
|
607
832
|
},
|
|
608
|
-
{
|
|
609
|
-
"type": "struct",
|
|
610
|
-
"name": "core::array::Span::<core::felt252>",
|
|
611
|
-
"members": [
|
|
612
|
-
{
|
|
613
|
-
"name": "snapshot",
|
|
614
|
-
"type": "@core::array::Array::<core::felt252>"
|
|
615
|
-
}
|
|
616
|
-
]
|
|
617
|
-
},
|
|
618
833
|
{
|
|
619
834
|
"type": "struct",
|
|
620
835
|
"name": "core::byte_array::ByteArray",
|
|
@@ -1416,6 +1631,121 @@
|
|
|
1416
1631
|
}
|
|
1417
1632
|
]
|
|
1418
1633
|
},
|
|
1634
|
+
{
|
|
1635
|
+
"type": "event",
|
|
1636
|
+
"name": "stela::stela::StelaProtocol::OrderFilled",
|
|
1637
|
+
"kind": "struct",
|
|
1638
|
+
"members": [
|
|
1639
|
+
{
|
|
1640
|
+
"name": "inscription_id",
|
|
1641
|
+
"type": "core::integer::u256",
|
|
1642
|
+
"kind": "key"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"name": "order_hash",
|
|
1646
|
+
"type": "core::felt252",
|
|
1647
|
+
"kind": "key"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "taker",
|
|
1651
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
1652
|
+
"kind": "key"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"name": "fill_bps",
|
|
1656
|
+
"type": "core::integer::u256",
|
|
1657
|
+
"kind": "data"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"name": "total_filled_bps",
|
|
1661
|
+
"type": "core::integer::u256",
|
|
1662
|
+
"kind": "data"
|
|
1663
|
+
}
|
|
1664
|
+
]
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"type": "event",
|
|
1668
|
+
"name": "stela::stela::StelaProtocol::OrderCancelled",
|
|
1669
|
+
"kind": "struct",
|
|
1670
|
+
"members": [
|
|
1671
|
+
{
|
|
1672
|
+
"name": "order_hash",
|
|
1673
|
+
"type": "core::felt252",
|
|
1674
|
+
"kind": "key"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "maker",
|
|
1678
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
1679
|
+
"kind": "data"
|
|
1680
|
+
}
|
|
1681
|
+
]
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"type": "event",
|
|
1685
|
+
"name": "stela::stela::StelaProtocol::OrdersBulkCancelled",
|
|
1686
|
+
"kind": "struct",
|
|
1687
|
+
"members": [
|
|
1688
|
+
{
|
|
1689
|
+
"name": "maker",
|
|
1690
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
1691
|
+
"kind": "key"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "new_min_nonce",
|
|
1695
|
+
"type": "core::felt252",
|
|
1696
|
+
"kind": "data"
|
|
1697
|
+
}
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"type": "event",
|
|
1702
|
+
"name": "stela::stela::StelaProtocol::PrivateSettled",
|
|
1703
|
+
"kind": "struct",
|
|
1704
|
+
"members": [
|
|
1705
|
+
{
|
|
1706
|
+
"name": "inscription_id",
|
|
1707
|
+
"type": "core::integer::u256",
|
|
1708
|
+
"kind": "key"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "lender_commitment",
|
|
1712
|
+
"type": "core::felt252",
|
|
1713
|
+
"kind": "key"
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"name": "shares_committed",
|
|
1717
|
+
"type": "core::integer::u256",
|
|
1718
|
+
"kind": "data"
|
|
1719
|
+
}
|
|
1720
|
+
]
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"type": "event",
|
|
1724
|
+
"name": "stela::stela::StelaProtocol::PrivateSharesRedeemed",
|
|
1725
|
+
"kind": "struct",
|
|
1726
|
+
"members": [
|
|
1727
|
+
{
|
|
1728
|
+
"name": "inscription_id",
|
|
1729
|
+
"type": "core::integer::u256",
|
|
1730
|
+
"kind": "key"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"name": "nullifier",
|
|
1734
|
+
"type": "core::felt252",
|
|
1735
|
+
"kind": "key"
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "shares",
|
|
1739
|
+
"type": "core::integer::u256",
|
|
1740
|
+
"kind": "data"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"name": "recipient",
|
|
1744
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
1745
|
+
"kind": "data"
|
|
1746
|
+
}
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1419
1749
|
{
|
|
1420
1750
|
"type": "event",
|
|
1421
1751
|
"name": "stela::stela::StelaProtocol::Event",
|
|
@@ -1485,6 +1815,31 @@
|
|
|
1485
1815
|
"name": "OrderSettled",
|
|
1486
1816
|
"type": "stela::stela::StelaProtocol::OrderSettled",
|
|
1487
1817
|
"kind": "nested"
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"name": "OrderFilled",
|
|
1821
|
+
"type": "stela::stela::StelaProtocol::OrderFilled",
|
|
1822
|
+
"kind": "nested"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"name": "OrderCancelled",
|
|
1826
|
+
"type": "stela::stela::StelaProtocol::OrderCancelled",
|
|
1827
|
+
"kind": "nested"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "OrdersBulkCancelled",
|
|
1831
|
+
"type": "stela::stela::StelaProtocol::OrdersBulkCancelled",
|
|
1832
|
+
"kind": "nested"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "PrivateSettled",
|
|
1836
|
+
"type": "stela::stela::StelaProtocol::PrivateSettled",
|
|
1837
|
+
"kind": "nested"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"name": "PrivateSharesRedeemed",
|
|
1841
|
+
"type": "stela::stela::StelaProtocol::PrivateSharesRedeemed",
|
|
1842
|
+
"kind": "nested"
|
|
1488
1843
|
}
|
|
1489
1844
|
]
|
|
1490
1845
|
}
|