@typus/typus-perp-sdk 1.0.20 → 1.0.21-tk1
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/src/api/sentio.js +1 -1
- package/dist/src/fetch.js +20 -27
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +16 -12
- package/dist/src/typus_perp/admin/structs.d.ts +5 -5
- package/dist/src/typus_perp/error/functions.d.ts +2 -2
- package/dist/src/typus_perp/error/functions.js +8 -8
- package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
- package/dist/src/typus_perp/index.js +3 -3
- package/dist/src/typus_perp/init.js +0 -3
- package/dist/src/typus_perp/lp-pool/functions.d.ts +2 -10
- package/dist/src/typus_perp/lp-pool/functions.js +7 -27
- package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
- package/dist/src/typus_perp/position/functions.d.ts +21 -6
- package/dist/src/typus_perp/position/functions.js +42 -6
- package/dist/src/typus_perp/position/structs.d.ts +6 -6
- package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
- package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
- package/dist/src/typus_perp/trading/functions.d.ts +50 -70
- package/dist/src/typus_perp/trading/functions.js +50 -70
- package/dist/src/typus_perp/trading/structs.d.ts +52 -30
- package/dist/src/typus_perp/trading/structs.js +6 -0
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
- package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
- package/dist/src/typus_stake_pool/index.js +3 -3
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -1
- package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -1
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +22 -22
- package/dist/src/user/history.js +10 -10
- package/dist/src/user/order.js +87 -42
- package/dist/src/user/orderWithBidReceipt.js +58 -26
- package/dist/src/user/tlp.d.ts +4 -3
- package/dist/src/user/tlp.js +93 -60
- package/package.json +2 -2
- package/dist/src/typus_perp/oracle/functions.d.ts +0 -13
- package/dist/src/typus_perp/oracle/functions.js +0 -22
- package/dist/src/typus_perp/oracle/structs.d.ts +0 -111
- package/dist/src/typus_perp/oracle/structs.js +0 -389
|
@@ -37,7 +37,7 @@ export declare class AddTradingSymbolEvent implements StructClass {
|
|
|
37
37
|
static reified(): AddTradingSymbolEventReified;
|
|
38
38
|
static get r(): reified.StructClassReified<AddTradingSymbolEvent, AddTradingSymbolEventFields>;
|
|
39
39
|
static phantom(): PhantomReified<ToTypeStr<AddTradingSymbolEvent>>;
|
|
40
|
-
static get p(): reified.PhantomReified<"::trading::AddTradingSymbolEvent" | "
|
|
40
|
+
static get p(): reified.PhantomReified<"::trading::AddTradingSymbolEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::AddTradingSymbolEvent">;
|
|
41
41
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
42
42
|
index: string;
|
|
43
43
|
base_token_type: {
|
|
@@ -65,6 +65,7 @@ export declare class AddTradingSymbolEvent implements StructClass {
|
|
|
65
65
|
market_config: {
|
|
66
66
|
oracle_id: string;
|
|
67
67
|
max_leverage_mbp: string;
|
|
68
|
+
option_collateral_max_leverage_mbp: string;
|
|
68
69
|
min_size: string;
|
|
69
70
|
lot_size: string;
|
|
70
71
|
trading_fee_config: string[];
|
|
@@ -105,6 +106,7 @@ export declare class AddTradingSymbolEvent implements StructClass {
|
|
|
105
106
|
market_config: {
|
|
106
107
|
oracle_id: string;
|
|
107
108
|
max_leverage_mbp: string | number | bigint;
|
|
109
|
+
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
108
110
|
min_size: string | number | bigint;
|
|
109
111
|
lot_size: string | number | bigint;
|
|
110
112
|
trading_fee_config: Iterable<string | number | bigint> & {
|
|
@@ -149,6 +151,7 @@ export declare class AddTradingSymbolEvent implements StructClass {
|
|
|
149
151
|
marketConfig: {
|
|
150
152
|
oracleId: string;
|
|
151
153
|
maxLeverageMbp: string;
|
|
154
|
+
optionCollateralMaxLeverageMbp: string;
|
|
152
155
|
minSize: string;
|
|
153
156
|
lotSize: string;
|
|
154
157
|
tradingFeeConfig: string[];
|
|
@@ -184,6 +187,7 @@ export declare class AddTradingSymbolEvent implements StructClass {
|
|
|
184
187
|
marketConfig: {
|
|
185
188
|
oracleId: string;
|
|
186
189
|
maxLeverageMbp: string;
|
|
190
|
+
optionCollateralMaxLeverageMbp: string;
|
|
187
191
|
minSize: string;
|
|
188
192
|
lotSize: string;
|
|
189
193
|
tradingFeeConfig: string[];
|
|
@@ -235,7 +239,7 @@ export declare class CancelTradingOrderEvent implements StructClass {
|
|
|
235
239
|
static reified(): CancelTradingOrderEventReified;
|
|
236
240
|
static get r(): reified.StructClassReified<CancelTradingOrderEvent, CancelTradingOrderEventFields>;
|
|
237
241
|
static phantom(): PhantomReified<ToTypeStr<CancelTradingOrderEvent>>;
|
|
238
|
-
static get p(): reified.PhantomReified<"::trading::CancelTradingOrderEvent" | "
|
|
242
|
+
static get p(): reified.PhantomReified<"::trading::CancelTradingOrderEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::CancelTradingOrderEvent">;
|
|
239
243
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
240
244
|
user: string;
|
|
241
245
|
market_index: string;
|
|
@@ -367,7 +371,7 @@ export declare class CreateTradingOrderEvent implements StructClass {
|
|
|
367
371
|
static reified(): CreateTradingOrderEventReified;
|
|
368
372
|
static get r(): reified.StructClassReified<CreateTradingOrderEvent, CreateTradingOrderEventFields>;
|
|
369
373
|
static phantom(): PhantomReified<ToTypeStr<CreateTradingOrderEvent>>;
|
|
370
|
-
static get p(): reified.PhantomReified<"::trading::CreateTradingOrderEvent" | "
|
|
374
|
+
static get p(): reified.PhantomReified<"::trading::CreateTradingOrderEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::CreateTradingOrderEvent">;
|
|
371
375
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
372
376
|
user: string;
|
|
373
377
|
market_index: string;
|
|
@@ -539,7 +543,7 @@ export declare class CreateTradingOrderWithBidReceiptsEvent implements StructCla
|
|
|
539
543
|
static reified(): CreateTradingOrderWithBidReceiptsEventReified;
|
|
540
544
|
static get r(): reified.StructClassReified<CreateTradingOrderWithBidReceiptsEvent, CreateTradingOrderWithBidReceiptsEventFields>;
|
|
541
545
|
static phantom(): PhantomReified<ToTypeStr<CreateTradingOrderWithBidReceiptsEvent>>;
|
|
542
|
-
static get p(): reified.PhantomReified<"::trading::CreateTradingOrderWithBidReceiptsEvent" | "
|
|
546
|
+
static get p(): reified.PhantomReified<"::trading::CreateTradingOrderWithBidReceiptsEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::CreateTradingOrderWithBidReceiptsEvent">;
|
|
543
547
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
544
548
|
user: string;
|
|
545
549
|
market_index: string;
|
|
@@ -673,7 +677,7 @@ export declare class ExpiredPositionInfo implements StructClass {
|
|
|
673
677
|
static reified(): ExpiredPositionInfoReified;
|
|
674
678
|
static get r(): reified.StructClassReified<ExpiredPositionInfo, ExpiredPositionInfoFields>;
|
|
675
679
|
static phantom(): PhantomReified<ToTypeStr<ExpiredPositionInfo>>;
|
|
676
|
-
static get p(): reified.PhantomReified<"::trading::ExpiredPositionInfo" | "
|
|
680
|
+
static get p(): reified.PhantomReified<"::trading::ExpiredPositionInfo" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ExpiredPositionInfo">;
|
|
677
681
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
678
682
|
position_id: string;
|
|
679
683
|
dov_index: string;
|
|
@@ -789,7 +793,7 @@ export declare class IncreaseCollateralEvent implements StructClass {
|
|
|
789
793
|
static reified(): IncreaseCollateralEventReified;
|
|
790
794
|
static get r(): reified.StructClassReified<IncreaseCollateralEvent, IncreaseCollateralEventFields>;
|
|
791
795
|
static phantom(): PhantomReified<ToTypeStr<IncreaseCollateralEvent>>;
|
|
792
|
-
static get p(): reified.PhantomReified<"::trading::IncreaseCollateralEvent" | "
|
|
796
|
+
static get p(): reified.PhantomReified<"::trading::IncreaseCollateralEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::IncreaseCollateralEvent">;
|
|
793
797
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
794
798
|
user: string;
|
|
795
799
|
market_index: string;
|
|
@@ -909,7 +913,7 @@ export declare class LiquidateEvent implements StructClass {
|
|
|
909
913
|
static reified(): LiquidateEventReified;
|
|
910
914
|
static get r(): reified.StructClassReified<LiquidateEvent, LiquidateEventFields>;
|
|
911
915
|
static phantom(): PhantomReified<ToTypeStr<LiquidateEvent>>;
|
|
912
|
-
static get p(): reified.PhantomReified<"::trading::LiquidateEvent" | "
|
|
916
|
+
static get p(): reified.PhantomReified<"::trading::LiquidateEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::LiquidateEvent">;
|
|
913
917
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
914
918
|
user: string;
|
|
915
919
|
collateral_token: {
|
|
@@ -1017,7 +1021,7 @@ export declare class LiquidationInfo implements StructClass {
|
|
|
1017
1021
|
static reified(): LiquidationInfoReified;
|
|
1018
1022
|
static get r(): reified.StructClassReified<LiquidationInfo, LiquidationInfoFields>;
|
|
1019
1023
|
static phantom(): PhantomReified<ToTypeStr<LiquidationInfo>>;
|
|
1020
|
-
static get p(): reified.PhantomReified<"::trading::LiquidationInfo" | "
|
|
1024
|
+
static get p(): reified.PhantomReified<"::trading::LiquidationInfo" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::LiquidationInfo">;
|
|
1021
1025
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1022
1026
|
position_id: string;
|
|
1023
1027
|
dov_index: {
|
|
@@ -1099,7 +1103,7 @@ export declare class ManagerCloseOptionPositionEvent implements StructClass {
|
|
|
1099
1103
|
static reified(): ManagerCloseOptionPositionEventReified;
|
|
1100
1104
|
static get r(): reified.StructClassReified<ManagerCloseOptionPositionEvent, ManagerCloseOptionPositionEventFields>;
|
|
1101
1105
|
static phantom(): PhantomReified<ToTypeStr<ManagerCloseOptionPositionEvent>>;
|
|
1102
|
-
static get p(): reified.PhantomReified<"::trading::ManagerCloseOptionPositionEvent" | "
|
|
1106
|
+
static get p(): reified.PhantomReified<"::trading::ManagerCloseOptionPositionEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ManagerCloseOptionPositionEvent">;
|
|
1103
1107
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1104
1108
|
user: string;
|
|
1105
1109
|
collateral_token: {
|
|
@@ -1221,7 +1225,7 @@ export declare class ManagerReducePositionEvent implements StructClass {
|
|
|
1221
1225
|
static reified(): ManagerReducePositionEventReified;
|
|
1222
1226
|
static get r(): reified.StructClassReified<ManagerReducePositionEvent, ManagerReducePositionEventFields>;
|
|
1223
1227
|
static phantom(): PhantomReified<ToTypeStr<ManagerReducePositionEvent>>;
|
|
1224
|
-
static get p(): reified.PhantomReified<"::trading::ManagerReducePositionEvent" | "
|
|
1228
|
+
static get p(): reified.PhantomReified<"::trading::ManagerReducePositionEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ManagerReducePositionEvent">;
|
|
1225
1229
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1226
1230
|
user: string;
|
|
1227
1231
|
collateral_token: {
|
|
@@ -1333,7 +1337,7 @@ export declare class ManagerUpdateProcessStatusAfterOrderEvent implements Struct
|
|
|
1333
1337
|
static reified(): ManagerUpdateProcessStatusAfterOrderEventReified;
|
|
1334
1338
|
static get r(): reified.StructClassReified<ManagerUpdateProcessStatusAfterOrderEvent, ManagerUpdateProcessStatusAfterOrderEventFields>;
|
|
1335
1339
|
static phantom(): PhantomReified<ToTypeStr<ManagerUpdateProcessStatusAfterOrderEvent>>;
|
|
1336
|
-
static get p(): reified.PhantomReified<"::trading::ManagerUpdateProcessStatusAfterOrderEvent" | "
|
|
1340
|
+
static get p(): reified.PhantomReified<"::trading::ManagerUpdateProcessStatusAfterOrderEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ManagerUpdateProcessStatusAfterOrderEvent">;
|
|
1337
1341
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1338
1342
|
market_index: string;
|
|
1339
1343
|
pool_index: string;
|
|
@@ -1421,7 +1425,7 @@ export declare class ManagerUpdateProcessStatusAfterPositionEvent implements Str
|
|
|
1421
1425
|
static reified(): ManagerUpdateProcessStatusAfterPositionEventReified;
|
|
1422
1426
|
static get r(): reified.StructClassReified<ManagerUpdateProcessStatusAfterPositionEvent, ManagerUpdateProcessStatusAfterPositionEventFields>;
|
|
1423
1427
|
static phantom(): PhantomReified<ToTypeStr<ManagerUpdateProcessStatusAfterPositionEvent>>;
|
|
1424
|
-
static get p(): reified.PhantomReified<"::trading::ManagerUpdateProcessStatusAfterPositionEvent" | "
|
|
1428
|
+
static get p(): reified.PhantomReified<"::trading::ManagerUpdateProcessStatusAfterPositionEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ManagerUpdateProcessStatusAfterPositionEvent">;
|
|
1425
1429
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1426
1430
|
market_index: string;
|
|
1427
1431
|
pool_index: string;
|
|
@@ -1488,6 +1492,7 @@ export declare function isMarketConfig(type: string): boolean;
|
|
|
1488
1492
|
export interface MarketConfigFields {
|
|
1489
1493
|
oracleId: ToField<"address">;
|
|
1490
1494
|
maxLeverageMbp: ToField<"u64">;
|
|
1495
|
+
optionCollateralMaxLeverageMbp: ToField<"u64">;
|
|
1491
1496
|
minSize: ToField<"u64">;
|
|
1492
1497
|
lotSize: ToField<"u64">;
|
|
1493
1498
|
tradingFeeConfig: ToField<Vector<"u64">>;
|
|
@@ -1508,6 +1513,7 @@ export declare class MarketConfig implements StructClass {
|
|
|
1508
1513
|
readonly $isPhantom: readonly [];
|
|
1509
1514
|
readonly oracleId: ToField<"address">;
|
|
1510
1515
|
readonly maxLeverageMbp: ToField<"u64">;
|
|
1516
|
+
readonly optionCollateralMaxLeverageMbp: ToField<"u64">;
|
|
1511
1517
|
readonly minSize: ToField<"u64">;
|
|
1512
1518
|
readonly lotSize: ToField<"u64">;
|
|
1513
1519
|
readonly tradingFeeConfig: ToField<Vector<"u64">>;
|
|
@@ -1519,10 +1525,11 @@ export declare class MarketConfig implements StructClass {
|
|
|
1519
1525
|
static reified(): MarketConfigReified;
|
|
1520
1526
|
static get r(): reified.StructClassReified<MarketConfig, MarketConfigFields>;
|
|
1521
1527
|
static phantom(): PhantomReified<ToTypeStr<MarketConfig>>;
|
|
1522
|
-
static get p(): reified.PhantomReified<"::trading::MarketConfig" | "
|
|
1528
|
+
static get p(): reified.PhantomReified<"::trading::MarketConfig" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::MarketConfig">;
|
|
1523
1529
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1524
1530
|
oracle_id: string;
|
|
1525
1531
|
max_leverage_mbp: string;
|
|
1532
|
+
option_collateral_max_leverage_mbp: string;
|
|
1526
1533
|
min_size: string;
|
|
1527
1534
|
lot_size: string;
|
|
1528
1535
|
trading_fee_config: string[];
|
|
@@ -1533,6 +1540,7 @@ export declare class MarketConfig implements StructClass {
|
|
|
1533
1540
|
}, {
|
|
1534
1541
|
oracle_id: string;
|
|
1535
1542
|
max_leverage_mbp: string | number | bigint;
|
|
1543
|
+
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
1536
1544
|
min_size: string | number | bigint;
|
|
1537
1545
|
lot_size: string | number | bigint;
|
|
1538
1546
|
trading_fee_config: Iterable<string | number | bigint> & {
|
|
@@ -1551,6 +1559,7 @@ export declare class MarketConfig implements StructClass {
|
|
|
1551
1559
|
toJSONField(): {
|
|
1552
1560
|
oracleId: string;
|
|
1553
1561
|
maxLeverageMbp: string;
|
|
1562
|
+
optionCollateralMaxLeverageMbp: string;
|
|
1554
1563
|
minSize: string;
|
|
1555
1564
|
lotSize: string;
|
|
1556
1565
|
tradingFeeConfig: string[];
|
|
@@ -1562,6 +1571,7 @@ export declare class MarketConfig implements StructClass {
|
|
|
1562
1571
|
toJSON(): {
|
|
1563
1572
|
oracleId: string;
|
|
1564
1573
|
maxLeverageMbp: string;
|
|
1574
|
+
optionCollateralMaxLeverageMbp: string;
|
|
1565
1575
|
minSize: string;
|
|
1566
1576
|
lotSize: string;
|
|
1567
1577
|
tradingFeeConfig: string[];
|
|
@@ -1625,7 +1635,7 @@ export declare class MarketInfo implements StructClass {
|
|
|
1625
1635
|
static reified(): MarketInfoReified;
|
|
1626
1636
|
static get r(): reified.StructClassReified<MarketInfo, MarketInfoFields>;
|
|
1627
1637
|
static phantom(): PhantomReified<ToTypeStr<MarketInfo>>;
|
|
1628
|
-
static get p(): reified.PhantomReified<"::trading::MarketInfo" | "
|
|
1638
|
+
static get p(): reified.PhantomReified<"::trading::MarketInfo" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::MarketInfo">;
|
|
1629
1639
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1630
1640
|
is_active: boolean;
|
|
1631
1641
|
size_decimal: string;
|
|
@@ -1733,7 +1743,7 @@ export declare class MarketRegistry implements StructClass {
|
|
|
1733
1743
|
static reified(): MarketRegistryReified;
|
|
1734
1744
|
static get r(): reified.StructClassReified<MarketRegistry, MarketRegistryFields>;
|
|
1735
1745
|
static phantom(): PhantomReified<ToTypeStr<MarketRegistry>>;
|
|
1736
|
-
static get p(): reified.PhantomReified<"::trading::MarketRegistry" | "
|
|
1746
|
+
static get p(): reified.PhantomReified<"::trading::MarketRegistry" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::MarketRegistry">;
|
|
1737
1747
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1738
1748
|
id: {
|
|
1739
1749
|
id: {
|
|
@@ -1877,7 +1887,7 @@ export declare class Markets implements StructClass {
|
|
|
1877
1887
|
static reified(): MarketsReified;
|
|
1878
1888
|
static get r(): reified.StructClassReified<Markets, MarketsFields>;
|
|
1879
1889
|
static phantom(): PhantomReified<ToTypeStr<Markets>>;
|
|
1880
|
-
static get p(): reified.PhantomReified<"::trading::Markets" | "
|
|
1890
|
+
static get p(): reified.PhantomReified<"::trading::Markets" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::Markets">;
|
|
1881
1891
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1882
1892
|
id: {
|
|
1883
1893
|
id: {
|
|
@@ -2031,7 +2041,7 @@ export declare class MatchTradingOrderEvent implements StructClass {
|
|
|
2031
2041
|
static reified(): MatchTradingOrderEventReified;
|
|
2032
2042
|
static get r(): reified.StructClassReified<MatchTradingOrderEvent, MatchTradingOrderEventFields>;
|
|
2033
2043
|
static phantom(): PhantomReified<ToTypeStr<MatchTradingOrderEvent>>;
|
|
2034
|
-
static get p(): reified.PhantomReified<"::trading::MatchTradingOrderEvent" | "
|
|
2044
|
+
static get p(): reified.PhantomReified<"::trading::MatchTradingOrderEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::MatchTradingOrderEvent">;
|
|
2035
2045
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2036
2046
|
collateral_token: {
|
|
2037
2047
|
name: {
|
|
@@ -2125,7 +2135,7 @@ export declare class NewMarketsEvent implements StructClass {
|
|
|
2125
2135
|
static reified(): NewMarketsEventReified;
|
|
2126
2136
|
static get r(): reified.StructClassReified<NewMarketsEvent, NewMarketsEventFields>;
|
|
2127
2137
|
static phantom(): PhantomReified<ToTypeStr<NewMarketsEvent>>;
|
|
2128
|
-
static get p(): reified.PhantomReified<"::trading::NewMarketsEvent" | "
|
|
2138
|
+
static get p(): reified.PhantomReified<"::trading::NewMarketsEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::NewMarketsEvent">;
|
|
2129
2139
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2130
2140
|
index: string;
|
|
2131
2141
|
lp_token_type: {
|
|
@@ -2235,7 +2245,7 @@ export declare class RealizeOptionPositionEvent implements StructClass {
|
|
|
2235
2245
|
static reified(): RealizeOptionPositionEventReified;
|
|
2236
2246
|
static get r(): reified.StructClassReified<RealizeOptionPositionEvent, RealizeOptionPositionEventFields>;
|
|
2237
2247
|
static phantom(): PhantomReified<ToTypeStr<RealizeOptionPositionEvent>>;
|
|
2238
|
-
static get p(): reified.PhantomReified<"::trading::RealizeOptionPositionEvent" | "
|
|
2248
|
+
static get p(): reified.PhantomReified<"::trading::RealizeOptionPositionEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::RealizeOptionPositionEvent">;
|
|
2239
2249
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2240
2250
|
position_user: string;
|
|
2241
2251
|
position_id: string;
|
|
@@ -2367,7 +2377,7 @@ export declare class ReleaseCollateralEvent implements StructClass {
|
|
|
2367
2377
|
static reified(): ReleaseCollateralEventReified;
|
|
2368
2378
|
static get r(): reified.StructClassReified<ReleaseCollateralEvent, ReleaseCollateralEventFields>;
|
|
2369
2379
|
static phantom(): PhantomReified<ToTypeStr<ReleaseCollateralEvent>>;
|
|
2370
|
-
static get p(): reified.PhantomReified<"::trading::ReleaseCollateralEvent" | "
|
|
2380
|
+
static get p(): reified.PhantomReified<"::trading::ReleaseCollateralEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ReleaseCollateralEvent">;
|
|
2371
2381
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2372
2382
|
user: string;
|
|
2373
2383
|
market_index: string;
|
|
@@ -2473,7 +2483,7 @@ export declare class ResumeMarketEvent implements StructClass {
|
|
|
2473
2483
|
static reified(): ResumeMarketEventReified;
|
|
2474
2484
|
static get r(): reified.StructClassReified<ResumeMarketEvent, ResumeMarketEventFields>;
|
|
2475
2485
|
static phantom(): PhantomReified<ToTypeStr<ResumeMarketEvent>>;
|
|
2476
|
-
static get p(): reified.PhantomReified<"::trading::ResumeMarketEvent" | "
|
|
2486
|
+
static get p(): reified.PhantomReified<"::trading::ResumeMarketEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ResumeMarketEvent">;
|
|
2477
2487
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2478
2488
|
index: string;
|
|
2479
2489
|
u64_padding: string[];
|
|
@@ -2525,7 +2535,7 @@ export declare class ResumeTradingSymbolEvent implements StructClass {
|
|
|
2525
2535
|
static reified(): ResumeTradingSymbolEventReified;
|
|
2526
2536
|
static get r(): reified.StructClassReified<ResumeTradingSymbolEvent, ResumeTradingSymbolEventFields>;
|
|
2527
2537
|
static phantom(): PhantomReified<ToTypeStr<ResumeTradingSymbolEvent>>;
|
|
2528
|
-
static get p(): reified.PhantomReified<"::trading::ResumeTradingSymbolEvent" | "
|
|
2538
|
+
static get p(): reified.PhantomReified<"::trading::ResumeTradingSymbolEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::ResumeTradingSymbolEvent">;
|
|
2529
2539
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2530
2540
|
index: string;
|
|
2531
2541
|
resumed_base_token: {
|
|
@@ -2607,7 +2617,7 @@ export declare class SettleReceiptCollateralEvent implements StructClass {
|
|
|
2607
2617
|
static reified(): SettleReceiptCollateralEventReified;
|
|
2608
2618
|
static get r(): reified.StructClassReified<SettleReceiptCollateralEvent, SettleReceiptCollateralEventFields>;
|
|
2609
2619
|
static phantom(): PhantomReified<ToTypeStr<SettleReceiptCollateralEvent>>;
|
|
2610
|
-
static get p(): reified.PhantomReified<"::trading::SettleReceiptCollateralEvent" | "
|
|
2620
|
+
static get p(): reified.PhantomReified<"::trading::SettleReceiptCollateralEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::SettleReceiptCollateralEvent">;
|
|
2611
2621
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2612
2622
|
user: string;
|
|
2613
2623
|
collateral_token: {
|
|
@@ -2713,7 +2723,7 @@ export declare class SuspendMarketEvent implements StructClass {
|
|
|
2713
2723
|
static reified(): SuspendMarketEventReified;
|
|
2714
2724
|
static get r(): reified.StructClassReified<SuspendMarketEvent, SuspendMarketEventFields>;
|
|
2715
2725
|
static phantom(): PhantomReified<ToTypeStr<SuspendMarketEvent>>;
|
|
2716
|
-
static get p(): reified.PhantomReified<"::trading::SuspendMarketEvent" | "
|
|
2726
|
+
static get p(): reified.PhantomReified<"::trading::SuspendMarketEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::SuspendMarketEvent">;
|
|
2717
2727
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2718
2728
|
index: string;
|
|
2719
2729
|
u64_padding: string[];
|
|
@@ -2765,7 +2775,7 @@ export declare class SuspendTradingSymbolEvent implements StructClass {
|
|
|
2765
2775
|
static reified(): SuspendTradingSymbolEventReified;
|
|
2766
2776
|
static get r(): reified.StructClassReified<SuspendTradingSymbolEvent, SuspendTradingSymbolEventFields>;
|
|
2767
2777
|
static phantom(): PhantomReified<ToTypeStr<SuspendTradingSymbolEvent>>;
|
|
2768
|
-
static get p(): reified.PhantomReified<"::trading::SuspendTradingSymbolEvent" | "
|
|
2778
|
+
static get p(): reified.PhantomReified<"::trading::SuspendTradingSymbolEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::SuspendTradingSymbolEvent">;
|
|
2769
2779
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2770
2780
|
index: string;
|
|
2771
2781
|
suspended_base_token: {
|
|
@@ -2841,7 +2851,7 @@ export declare class SymbolMarket implements StructClass {
|
|
|
2841
2851
|
static reified(): SymbolMarketReified;
|
|
2842
2852
|
static get r(): reified.StructClassReified<SymbolMarket, SymbolMarketFields>;
|
|
2843
2853
|
static phantom(): PhantomReified<ToTypeStr<SymbolMarket>>;
|
|
2844
|
-
static get p(): reified.PhantomReified<"::trading::SymbolMarket" | "
|
|
2854
|
+
static get p(): reified.PhantomReified<"::trading::SymbolMarket" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::SymbolMarket">;
|
|
2845
2855
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2846
2856
|
id: {
|
|
2847
2857
|
id: {
|
|
@@ -2898,6 +2908,7 @@ export declare class SymbolMarket implements StructClass {
|
|
|
2898
2908
|
market_config: {
|
|
2899
2909
|
oracle_id: string;
|
|
2900
2910
|
max_leverage_mbp: string;
|
|
2911
|
+
option_collateral_max_leverage_mbp: string;
|
|
2901
2912
|
min_size: string;
|
|
2902
2913
|
lot_size: string;
|
|
2903
2914
|
trading_fee_config: string[];
|
|
@@ -2968,6 +2979,7 @@ export declare class SymbolMarket implements StructClass {
|
|
|
2968
2979
|
market_config: {
|
|
2969
2980
|
oracle_id: string;
|
|
2970
2981
|
max_leverage_mbp: string | number | bigint;
|
|
2982
|
+
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
2971
2983
|
min_size: string | number | bigint;
|
|
2972
2984
|
lot_size: string | number | bigint;
|
|
2973
2985
|
trading_fee_config: Iterable<string | number | bigint> & {
|
|
@@ -3020,6 +3032,7 @@ export declare class SymbolMarket implements StructClass {
|
|
|
3020
3032
|
marketConfig: {
|
|
3021
3033
|
oracleId: string;
|
|
3022
3034
|
maxLeverageMbp: string;
|
|
3035
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3023
3036
|
minSize: string;
|
|
3024
3037
|
lotSize: string;
|
|
3025
3038
|
tradingFeeConfig: string[];
|
|
@@ -3065,6 +3078,7 @@ export declare class SymbolMarket implements StructClass {
|
|
|
3065
3078
|
marketConfig: {
|
|
3066
3079
|
oracleId: string;
|
|
3067
3080
|
maxLeverageMbp: string;
|
|
3081
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3068
3082
|
minSize: string;
|
|
3069
3083
|
lotSize: string;
|
|
3070
3084
|
tradingFeeConfig: string[];
|
|
@@ -3101,7 +3115,7 @@ export declare class USD implements StructClass {
|
|
|
3101
3115
|
static reified(): USDReified;
|
|
3102
3116
|
static get r(): reified.StructClassReified<USD, USDFields>;
|
|
3103
3117
|
static phantom(): PhantomReified<ToTypeStr<USD>>;
|
|
3104
|
-
static get p(): reified.PhantomReified<"::trading::USD" | "
|
|
3118
|
+
static get p(): reified.PhantomReified<"::trading::USD" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::USD">;
|
|
3105
3119
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3106
3120
|
dummy_field: boolean;
|
|
3107
3121
|
}, {
|
|
@@ -3157,7 +3171,7 @@ export declare class UpdateFundingRateEvent implements StructClass {
|
|
|
3157
3171
|
static reified(): UpdateFundingRateEventReified;
|
|
3158
3172
|
static get r(): reified.StructClassReified<UpdateFundingRateEvent, UpdateFundingRateEventFields>;
|
|
3159
3173
|
static phantom(): PhantomReified<ToTypeStr<UpdateFundingRateEvent>>;
|
|
3160
|
-
static get p(): reified.PhantomReified<"::trading::UpdateFundingRateEvent" | "
|
|
3174
|
+
static get p(): reified.PhantomReified<"::trading::UpdateFundingRateEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::UpdateFundingRateEvent">;
|
|
3161
3175
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3162
3176
|
base_token: {
|
|
3163
3177
|
name: {
|
|
@@ -3251,7 +3265,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3251
3265
|
static reified(): UpdateMarketConfigEventReified;
|
|
3252
3266
|
static get r(): reified.StructClassReified<UpdateMarketConfigEvent, UpdateMarketConfigEventFields>;
|
|
3253
3267
|
static phantom(): PhantomReified<ToTypeStr<UpdateMarketConfigEvent>>;
|
|
3254
|
-
static get p(): reified.PhantomReified<"::trading::UpdateMarketConfigEvent" | "
|
|
3268
|
+
static get p(): reified.PhantomReified<"::trading::UpdateMarketConfigEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::UpdateMarketConfigEvent">;
|
|
3255
3269
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3256
3270
|
index: string;
|
|
3257
3271
|
base_token_type: {
|
|
@@ -3262,6 +3276,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3262
3276
|
previous_market_config: {
|
|
3263
3277
|
oracle_id: string;
|
|
3264
3278
|
max_leverage_mbp: string;
|
|
3279
|
+
option_collateral_max_leverage_mbp: string;
|
|
3265
3280
|
min_size: string;
|
|
3266
3281
|
lot_size: string;
|
|
3267
3282
|
trading_fee_config: string[];
|
|
@@ -3273,6 +3288,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3273
3288
|
new_market_config: {
|
|
3274
3289
|
oracle_id: string;
|
|
3275
3290
|
max_leverage_mbp: string;
|
|
3291
|
+
option_collateral_max_leverage_mbp: string;
|
|
3276
3292
|
min_size: string;
|
|
3277
3293
|
lot_size: string;
|
|
3278
3294
|
trading_fee_config: string[];
|
|
@@ -3294,6 +3310,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3294
3310
|
previous_market_config: {
|
|
3295
3311
|
oracle_id: string;
|
|
3296
3312
|
max_leverage_mbp: string | number | bigint;
|
|
3313
|
+
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
3297
3314
|
min_size: string | number | bigint;
|
|
3298
3315
|
lot_size: string | number | bigint;
|
|
3299
3316
|
trading_fee_config: Iterable<string | number | bigint> & {
|
|
@@ -3309,6 +3326,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3309
3326
|
new_market_config: {
|
|
3310
3327
|
oracle_id: string;
|
|
3311
3328
|
max_leverage_mbp: string | number | bigint;
|
|
3329
|
+
option_collateral_max_leverage_mbp: string | number | bigint;
|
|
3312
3330
|
min_size: string | number | bigint;
|
|
3313
3331
|
lot_size: string | number | bigint;
|
|
3314
3332
|
trading_fee_config: Iterable<string | number | bigint> & {
|
|
@@ -3336,6 +3354,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3336
3354
|
previousMarketConfig: {
|
|
3337
3355
|
oracleId: string;
|
|
3338
3356
|
maxLeverageMbp: string;
|
|
3357
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3339
3358
|
minSize: string;
|
|
3340
3359
|
lotSize: string;
|
|
3341
3360
|
tradingFeeConfig: string[];
|
|
@@ -3347,6 +3366,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3347
3366
|
newMarketConfig: {
|
|
3348
3367
|
oracleId: string;
|
|
3349
3368
|
maxLeverageMbp: string;
|
|
3369
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3350
3370
|
minSize: string;
|
|
3351
3371
|
lotSize: string;
|
|
3352
3372
|
tradingFeeConfig: string[];
|
|
@@ -3365,6 +3385,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3365
3385
|
previousMarketConfig: {
|
|
3366
3386
|
oracleId: string;
|
|
3367
3387
|
maxLeverageMbp: string;
|
|
3388
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3368
3389
|
minSize: string;
|
|
3369
3390
|
lotSize: string;
|
|
3370
3391
|
tradingFeeConfig: string[];
|
|
@@ -3376,6 +3397,7 @@ export declare class UpdateMarketConfigEvent implements StructClass {
|
|
|
3376
3397
|
newMarketConfig: {
|
|
3377
3398
|
oracleId: string;
|
|
3378
3399
|
maxLeverageMbp: string;
|
|
3400
|
+
optionCollateralMaxLeverageMbp: string;
|
|
3379
3401
|
minSize: string;
|
|
3380
3402
|
lotSize: string;
|
|
3381
3403
|
tradingFeeConfig: string[];
|
|
@@ -3419,7 +3441,7 @@ export declare class UpdateProtocolFeeShareBpEvent implements StructClass {
|
|
|
3419
3441
|
static reified(): UpdateProtocolFeeShareBpEventReified;
|
|
3420
3442
|
static get r(): reified.StructClassReified<UpdateProtocolFeeShareBpEvent, UpdateProtocolFeeShareBpEventFields>;
|
|
3421
3443
|
static phantom(): PhantomReified<ToTypeStr<UpdateProtocolFeeShareBpEvent>>;
|
|
3422
|
-
static get p(): reified.PhantomReified<"::trading::UpdateProtocolFeeShareBpEvent" | "
|
|
3444
|
+
static get p(): reified.PhantomReified<"::trading::UpdateProtocolFeeShareBpEvent" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::trading::UpdateProtocolFeeShareBpEvent">;
|
|
3423
3445
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3424
3446
|
index: string;
|
|
3425
3447
|
previous_protocol_fee_share_bp: string;
|
|
@@ -2424,6 +2424,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2424
2424
|
this.$typeArgs = typeArgs;
|
|
2425
2425
|
this.oracleId = fields.oracleId;
|
|
2426
2426
|
this.maxLeverageMbp = fields.maxLeverageMbp;
|
|
2427
|
+
this.optionCollateralMaxLeverageMbp = fields.optionCollateralMaxLeverageMbp;
|
|
2427
2428
|
this.minSize = fields.minSize;
|
|
2428
2429
|
this.lotSize = fields.lotSize;
|
|
2429
2430
|
this.tradingFeeConfig = fields.tradingFeeConfig;
|
|
@@ -2479,6 +2480,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2479
2480
|
return bcs_1.bcs.struct("MarketConfig", {
|
|
2480
2481
|
oracle_id: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
|
|
2481
2482
|
max_leverage_mbp: bcs_1.bcs.u64(),
|
|
2483
|
+
option_collateral_max_leverage_mbp: bcs_1.bcs.u64(),
|
|
2482
2484
|
min_size: bcs_1.bcs.u64(),
|
|
2483
2485
|
lot_size: bcs_1.bcs.u64(),
|
|
2484
2486
|
trading_fee_config: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
@@ -2495,6 +2497,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2495
2497
|
return MarketConfig.reified().new({
|
|
2496
2498
|
oracleId: (0, reified_1.decodeFromFields)("address", fields.oracle_id),
|
|
2497
2499
|
maxLeverageMbp: (0, reified_1.decodeFromFields)("u64", fields.max_leverage_mbp),
|
|
2500
|
+
optionCollateralMaxLeverageMbp: (0, reified_1.decodeFromFields)("u64", fields.option_collateral_max_leverage_mbp),
|
|
2498
2501
|
minSize: (0, reified_1.decodeFromFields)("u64", fields.min_size),
|
|
2499
2502
|
lotSize: (0, reified_1.decodeFromFields)("u64", fields.lot_size),
|
|
2500
2503
|
tradingFeeConfig: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.trading_fee_config),
|
|
@@ -2511,6 +2514,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2511
2514
|
return MarketConfig.reified().new({
|
|
2512
2515
|
oracleId: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.oracle_id),
|
|
2513
2516
|
maxLeverageMbp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_leverage_mbp),
|
|
2517
|
+
optionCollateralMaxLeverageMbp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.option_collateral_max_leverage_mbp),
|
|
2514
2518
|
minSize: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.min_size),
|
|
2515
2519
|
lotSize: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.lot_size),
|
|
2516
2520
|
tradingFeeConfig: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.trading_fee_config),
|
|
@@ -2527,6 +2531,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2527
2531
|
return {
|
|
2528
2532
|
oracleId: this.oracleId,
|
|
2529
2533
|
maxLeverageMbp: this.maxLeverageMbp.toString(),
|
|
2534
|
+
optionCollateralMaxLeverageMbp: this.optionCollateralMaxLeverageMbp.toString(),
|
|
2530
2535
|
minSize: this.minSize.toString(),
|
|
2531
2536
|
lotSize: this.lotSize.toString(),
|
|
2532
2537
|
tradingFeeConfig: (0, reified_1.fieldToJSON)("vector<u64>", this.tradingFeeConfig),
|
|
@@ -2543,6 +2548,7 @@ var MarketConfig = /** @class */ (function () {
|
|
|
2543
2548
|
return MarketConfig.reified().new({
|
|
2544
2549
|
oracleId: (0, reified_1.decodeFromJSONField)("address", field.oracleId),
|
|
2545
2550
|
maxLeverageMbp: (0, reified_1.decodeFromJSONField)("u64", field.maxLeverageMbp),
|
|
2551
|
+
optionCollateralMaxLeverageMbp: (0, reified_1.decodeFromJSONField)("u64", field.optionCollateralMaxLeverageMbp),
|
|
2546
2552
|
minSize: (0, reified_1.decodeFromJSONField)("u64", field.minSize),
|
|
2547
2553
|
lotSize: (0, reified_1.decodeFromJSONField)("u64", field.lotSize),
|
|
2548
2554
|
tradingFeeConfig: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.tradingFeeConfig),
|
|
@@ -22,7 +22,7 @@ export declare class TreasuryCaps implements StructClass {
|
|
|
22
22
|
static reified(): TreasuryCapsReified;
|
|
23
23
|
static get r(): import("../../_framework/reified").StructClassReified<TreasuryCaps, TreasuryCapsFields>;
|
|
24
24
|
static phantom(): PhantomReified<ToTypeStr<TreasuryCaps>>;
|
|
25
|
-
static get p(): PhantomReified<"::treasury_caps::TreasuryCaps" | "
|
|
25
|
+
static get p(): PhantomReified<"::treasury_caps::TreasuryCaps" | "0x21a3b745eaeee0ec0cbc3207230185013d1d8939f7a920aa61f5fea7d09db600::treasury_caps::TreasuryCaps">;
|
|
26
26
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
27
27
|
id: {
|
|
28
28
|
id: {
|
|
@@ -36,7 +36,7 @@ export declare class Version implements StructClass {
|
|
|
36
36
|
static reified(): VersionReified;
|
|
37
37
|
static get r(): reified.StructClassReified<Version, VersionFields>;
|
|
38
38
|
static phantom(): PhantomReified<ToTypeStr<Version>>;
|
|
39
|
-
static get p(): reified.PhantomReified<"::admin::Version" | "
|
|
39
|
+
static get p(): reified.PhantomReified<"::admin::Version" | "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2::admin::Version">;
|
|
40
40
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
41
41
|
id: {
|
|
42
42
|
id: {
|
|
@@ -216,7 +216,7 @@ export declare class FeeInfo implements StructClass {
|
|
|
216
216
|
static reified(): FeeInfoReified;
|
|
217
217
|
static get r(): reified.StructClassReified<FeeInfo, FeeInfoFields>;
|
|
218
218
|
static phantom(): PhantomReified<ToTypeStr<FeeInfo>>;
|
|
219
|
-
static get p(): reified.PhantomReified<"::admin::FeeInfo" | "
|
|
219
|
+
static get p(): reified.PhantomReified<"::admin::FeeInfo" | "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2::admin::FeeInfo">;
|
|
220
220
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
221
221
|
token: {
|
|
222
222
|
name: {
|
|
@@ -278,7 +278,7 @@ export declare class FeePool implements StructClass {
|
|
|
278
278
|
static reified(): FeePoolReified;
|
|
279
279
|
static get r(): reified.StructClassReified<FeePool, FeePoolFields>;
|
|
280
280
|
static phantom(): PhantomReified<ToTypeStr<FeePool>>;
|
|
281
|
-
static get p(): reified.PhantomReified<"::admin::FeePool" | "
|
|
281
|
+
static get p(): reified.PhantomReified<"::admin::FeePool" | "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2::admin::FeePool">;
|
|
282
282
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
283
283
|
id: {
|
|
284
284
|
id: {
|
|
@@ -362,7 +362,7 @@ export declare class SendFeeEvent implements StructClass {
|
|
|
362
362
|
static reified(): SendFeeEventReified;
|
|
363
363
|
static get r(): reified.StructClassReified<SendFeeEvent, SendFeeEventFields>;
|
|
364
364
|
static phantom(): PhantomReified<ToTypeStr<SendFeeEvent>>;
|
|
365
|
-
static get p(): reified.PhantomReified<"::admin::SendFeeEvent" | "
|
|
365
|
+
static get p(): reified.PhantomReified<"::admin::SendFeeEvent" | "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2::admin::SendFeeEvent">;
|
|
366
366
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
367
367
|
token: {
|
|
368
368
|
name: {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PKG_V1 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
|
|
4
4
|
var index_1 = require("../index");
|
|
5
|
-
exports.PACKAGE_ID = index_1.NETWORK == "MAINNET" ? "" : "
|
|
6
|
-
exports.PUBLISHED_AT = index_1.NETWORK == "MAINNET" ? "" : "
|
|
7
|
-
exports.PKG_V1 = index_1.NETWORK == "MAINNET" ? "" : "
|
|
5
|
+
exports.PACKAGE_ID = index_1.NETWORK == "MAINNET" ? "" : "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2";
|
|
6
|
+
exports.PUBLISHED_AT = index_1.NETWORK == "MAINNET" ? "" : "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2";
|
|
7
|
+
exports.PKG_V1 = index_1.NETWORK == "MAINNET" ? "" : "0xafe221d6a3abc88d6f6f79b2452840c9f8d4cf8f7e58938b853acee5f06f24a2";
|
|
@@ -152,7 +152,6 @@ export interface UnstakeArgs {
|
|
|
152
152
|
registry: TransactionObjectInput;
|
|
153
153
|
index: bigint | TransactionArgument;
|
|
154
154
|
userShareId: bigint | TransactionArgument;
|
|
155
|
-
unstakedShares: bigint | TransactionArgument | TransactionArgument | null;
|
|
156
155
|
clock: TransactionObjectInput;
|
|
157
156
|
}
|
|
158
157
|
export declare function unstake(tx: Transaction, typeArg: string, args: UnstakeArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -235,7 +235,6 @@ function unstake(tx, typeArg, args) {
|
|
|
235
235
|
(0, util_1.obj)(tx, args.registry),
|
|
236
236
|
(0, util_1.pure)(tx, args.index, "u64"),
|
|
237
237
|
(0, util_1.pure)(tx, args.userShareId, "u64"),
|
|
238
|
-
(0, util_1.pure)(tx, args.unstakedShares, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
239
238
|
(0, util_1.obj)(tx, args.clock),
|
|
240
239
|
],
|
|
241
240
|
});
|