@typus/typus-perp-sdk 1.0.2 → 1.0.3
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/fetch.d.ts +2 -0
- package/dist/src/fetch.js +16 -1
- package/dist/src/typus_perp/admin/structs.d.ts +66 -4
- package/dist/src/typus_perp/admin/structs.js +155 -1
- package/dist/src/typus_perp/error/functions.d.ts +1 -0
- package/dist/src/typus_perp/error/functions.js +4 -0
- 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 +2 -1
- package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
- package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
- package/dist/src/typus_perp/position/functions.d.ts +3 -0
- package/dist/src/typus_perp/position/functions.js +7 -1
- package/dist/src/typus_perp/position/structs.d.ts +24 -164
- package/dist/src/typus_perp/position/structs.js +19 -209
- 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/structs.d.ts +173 -29
- package/dist/src/typus_perp/trading/structs.js +221 -1
- 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/structs.d.ts +22 -22
- package/dist/src/user/history.js +94 -14
- package/dist/src/user/order.js +6 -0
- package/dist/src/user/orderWithBidReceipt.d.ts +2 -4
- package/dist/src/user/orderWithBidReceipt.js +3 -14
- package/package.json +2 -1
|
@@ -105,7 +105,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
105
105
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
106
106
|
};
|
|
107
107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108
|
-
exports.UpdateProtocolFeeShareBpEvent = exports.UpdateMarketConfigEvent = exports.UpdateFundingRateEvent = exports.USD = exports.SymbolMarket = exports.SuspendTradingSymbolEvent = exports.SuspendMarketEvent = exports.SettleReceiptCollateralEvent = exports.ResumeTradingSymbolEvent = exports.ResumeMarketEvent = exports.ReleaseCollateralEvent = exports.NewMarketsEvent = exports.MatchTradingOrderEvent = exports.Markets = exports.MarketRegistry = exports.MarketInfo = exports.MarketConfig = exports.ManagerUpdateProcessStatusAfterPositionEvent = exports.ManagerUpdateProcessStatusAfterOrderEvent = exports.ManagerReducePositionEvent = exports.ManagerCloseOptionPositionEvent = exports.LiquidationInfo = exports.LiquidateEvent = exports.IncreaseCollateralEvent = exports.ExpiredPositionInfo = exports.CreateTradingOrderWithBidReceiptsEvent = exports.CreateTradingOrderEvent = exports.CancelTradingOrderEvent = exports.AddTradingSymbolEvent = void 0;
|
|
108
|
+
exports.UpdateProtocolFeeShareBpEvent = exports.UpdateMarketConfigEvent = exports.UpdateFundingRateEvent = exports.USD = exports.SymbolMarket = exports.SuspendTradingSymbolEvent = exports.SuspendMarketEvent = exports.SettleReceiptCollateralEvent = exports.ResumeTradingSymbolEvent = exports.ResumeMarketEvent = exports.ReleaseCollateralEvent = exports.RealizeOptionPositionEvent = exports.NewMarketsEvent = exports.MatchTradingOrderEvent = exports.Markets = exports.MarketRegistry = exports.MarketInfo = exports.MarketConfig = exports.ManagerUpdateProcessStatusAfterPositionEvent = exports.ManagerUpdateProcessStatusAfterOrderEvent = exports.ManagerReducePositionEvent = exports.ManagerCloseOptionPositionEvent = exports.LiquidationInfo = exports.LiquidateEvent = exports.IncreaseCollateralEvent = exports.ExpiredPositionInfo = exports.CreateTradingOrderWithBidReceiptsEvent = exports.CreateTradingOrderEvent = exports.CancelTradingOrderEvent = exports.AddTradingSymbolEvent = void 0;
|
|
109
109
|
exports.isAddTradingSymbolEvent = isAddTradingSymbolEvent;
|
|
110
110
|
exports.isCancelTradingOrderEvent = isCancelTradingOrderEvent;
|
|
111
111
|
exports.isCreateTradingOrderEvent = isCreateTradingOrderEvent;
|
|
@@ -124,6 +124,7 @@ exports.isMarketRegistry = isMarketRegistry;
|
|
|
124
124
|
exports.isMarkets = isMarkets;
|
|
125
125
|
exports.isMatchTradingOrderEvent = isMatchTradingOrderEvent;
|
|
126
126
|
exports.isNewMarketsEvent = isNewMarketsEvent;
|
|
127
|
+
exports.isRealizeOptionPositionEvent = isRealizeOptionPositionEvent;
|
|
127
128
|
exports.isReleaseCollateralEvent = isReleaseCollateralEvent;
|
|
128
129
|
exports.isResumeMarketEvent = isResumeMarketEvent;
|
|
129
130
|
exports.isResumeTradingSymbolEvent = isResumeTradingSymbolEvent;
|
|
@@ -767,6 +768,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
767
768
|
this.poolIndex = fields.poolIndex;
|
|
768
769
|
this.collateralToken = fields.collateralToken;
|
|
769
770
|
this.baseToken = fields.baseToken;
|
|
771
|
+
this.orderId = fields.orderId;
|
|
770
772
|
this.collateralInDepositToken = fields.collateralInDepositToken;
|
|
771
773
|
this.isLong = fields.isLong;
|
|
772
774
|
this.size = fields.size;
|
|
@@ -825,6 +827,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
825
827
|
pool_index: bcs_1.bcs.u64(),
|
|
826
828
|
collateral_token: structs_2.TypeName.bcs,
|
|
827
829
|
base_token: structs_2.TypeName.bcs,
|
|
830
|
+
order_id: bcs_1.bcs.u64(),
|
|
828
831
|
collateral_in_deposit_token: bcs_1.bcs.u64(),
|
|
829
832
|
is_long: bcs_1.bcs.bool(),
|
|
830
833
|
size: bcs_1.bcs.u64(),
|
|
@@ -844,6 +847,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
844
847
|
poolIndex: (0, reified_1.decodeFromFields)("u64", fields.pool_index),
|
|
845
848
|
collateralToken: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.collateral_token),
|
|
846
849
|
baseToken: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.base_token),
|
|
850
|
+
orderId: (0, reified_1.decodeFromFields)("u64", fields.order_id),
|
|
847
851
|
collateralInDepositToken: (0, reified_1.decodeFromFields)("u64", fields.collateral_in_deposit_token),
|
|
848
852
|
isLong: (0, reified_1.decodeFromFields)("bool", fields.is_long),
|
|
849
853
|
size: (0, reified_1.decodeFromFields)("u64", fields.size),
|
|
@@ -863,6 +867,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
863
867
|
poolIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.pool_index),
|
|
864
868
|
collateralToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.collateral_token),
|
|
865
869
|
baseToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.base_token),
|
|
870
|
+
orderId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.order_id),
|
|
866
871
|
collateralInDepositToken: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.collateral_in_deposit_token),
|
|
867
872
|
isLong: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_long),
|
|
868
873
|
size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
|
|
@@ -882,6 +887,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
882
887
|
poolIndex: this.poolIndex.toString(),
|
|
883
888
|
collateralToken: this.collateralToken.toJSONField(),
|
|
884
889
|
baseToken: this.baseToken.toJSONField(),
|
|
890
|
+
orderId: this.orderId.toString(),
|
|
885
891
|
collateralInDepositToken: this.collateralInDepositToken.toString(),
|
|
886
892
|
isLong: this.isLong,
|
|
887
893
|
size: this.size.toString(),
|
|
@@ -901,6 +907,7 @@ var CreateTradingOrderWithBidReceiptsEvent = /** @class */ (function () {
|
|
|
901
907
|
poolIndex: (0, reified_1.decodeFromJSONField)("u64", field.poolIndex),
|
|
902
908
|
collateralToken: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.collateralToken),
|
|
903
909
|
baseToken: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.baseToken),
|
|
910
|
+
orderId: (0, reified_1.decodeFromJSONField)("u64", field.orderId),
|
|
904
911
|
collateralInDepositToken: (0, reified_1.decodeFromJSONField)("u64", field.collateralInDepositToken),
|
|
905
912
|
isLong: (0, reified_1.decodeFromJSONField)("bool", field.isLong),
|
|
906
913
|
size: (0, reified_1.decodeFromJSONField)("u64", field.size),
|
|
@@ -3531,6 +3538,219 @@ var NewMarketsEvent = /** @class */ (function () {
|
|
|
3531
3538
|
return NewMarketsEvent;
|
|
3532
3539
|
}());
|
|
3533
3540
|
exports.NewMarketsEvent = NewMarketsEvent;
|
|
3541
|
+
/* ============================== RealizeOptionPositionEvent =============================== */
|
|
3542
|
+
function isRealizeOptionPositionEvent(type) {
|
|
3543
|
+
type = (0, util_1.compressSuiType)(type);
|
|
3544
|
+
return type === "".concat(index_1.PKG_V1, "::trading::RealizeOptionPositionEvent");
|
|
3545
|
+
}
|
|
3546
|
+
var RealizeOptionPositionEvent = /** @class */ (function () {
|
|
3547
|
+
function RealizeOptionPositionEvent(typeArgs, fields) {
|
|
3548
|
+
this.__StructClass = true;
|
|
3549
|
+
this.$typeName = RealizeOptionPositionEvent.$typeName;
|
|
3550
|
+
this.$isPhantom = RealizeOptionPositionEvent.$isPhantom;
|
|
3551
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RealizeOptionPositionEvent.$typeName], __read(typeArgs), false));
|
|
3552
|
+
this.$typeArgs = typeArgs;
|
|
3553
|
+
this.positionUser = fields.positionUser;
|
|
3554
|
+
this.positionId = fields.positionId;
|
|
3555
|
+
this.tradingSymbol = fields.tradingSymbol;
|
|
3556
|
+
this.realizeBalanceTokenType = fields.realizeBalanceTokenType;
|
|
3557
|
+
this.exerciseBalanceValue = fields.exerciseBalanceValue;
|
|
3558
|
+
this.userRemainingValue = fields.userRemainingValue;
|
|
3559
|
+
this.userRemainingInUsd = fields.userRemainingInUsd;
|
|
3560
|
+
this.realizedLossValue = fields.realizedLossValue;
|
|
3561
|
+
this.feeValue = fields.feeValue;
|
|
3562
|
+
this.realizedTradingFee = fields.realizedTradingFee;
|
|
3563
|
+
this.realizedBorrowFee = fields.realizedBorrowFee;
|
|
3564
|
+
this.u64Padding = fields.u64Padding;
|
|
3565
|
+
}
|
|
3566
|
+
RealizeOptionPositionEvent.reified = function () {
|
|
3567
|
+
var _this = this;
|
|
3568
|
+
return {
|
|
3569
|
+
typeName: RealizeOptionPositionEvent.$typeName,
|
|
3570
|
+
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RealizeOptionPositionEvent.$typeName], [], false)),
|
|
3571
|
+
typeArgs: [],
|
|
3572
|
+
isPhantom: RealizeOptionPositionEvent.$isPhantom,
|
|
3573
|
+
reifiedTypeArgs: [],
|
|
3574
|
+
fromFields: function (fields) { return RealizeOptionPositionEvent.fromFields(fields); },
|
|
3575
|
+
fromFieldsWithTypes: function (item) { return RealizeOptionPositionEvent.fromFieldsWithTypes(item); },
|
|
3576
|
+
fromBcs: function (data) { return RealizeOptionPositionEvent.fromBcs(data); },
|
|
3577
|
+
bcs: RealizeOptionPositionEvent.bcs,
|
|
3578
|
+
fromJSONField: function (field) { return RealizeOptionPositionEvent.fromJSONField(field); },
|
|
3579
|
+
fromJSON: function (json) { return RealizeOptionPositionEvent.fromJSON(json); },
|
|
3580
|
+
fromSuiParsedData: function (content) { return RealizeOptionPositionEvent.fromSuiParsedData(content); },
|
|
3581
|
+
fromSuiObjectData: function (content) { return RealizeOptionPositionEvent.fromSuiObjectData(content); },
|
|
3582
|
+
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
3583
|
+
return [2 /*return*/, RealizeOptionPositionEvent.fetch(client, id)];
|
|
3584
|
+
}); }); },
|
|
3585
|
+
new: function (fields) {
|
|
3586
|
+
return new RealizeOptionPositionEvent([], fields);
|
|
3587
|
+
},
|
|
3588
|
+
kind: "StructClassReified",
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
Object.defineProperty(RealizeOptionPositionEvent, "r", {
|
|
3592
|
+
get: function () {
|
|
3593
|
+
return RealizeOptionPositionEvent.reified();
|
|
3594
|
+
},
|
|
3595
|
+
enumerable: false,
|
|
3596
|
+
configurable: true
|
|
3597
|
+
});
|
|
3598
|
+
RealizeOptionPositionEvent.phantom = function () {
|
|
3599
|
+
return (0, reified_1.phantom)(RealizeOptionPositionEvent.reified());
|
|
3600
|
+
};
|
|
3601
|
+
Object.defineProperty(RealizeOptionPositionEvent, "p", {
|
|
3602
|
+
get: function () {
|
|
3603
|
+
return RealizeOptionPositionEvent.phantom();
|
|
3604
|
+
},
|
|
3605
|
+
enumerable: false,
|
|
3606
|
+
configurable: true
|
|
3607
|
+
});
|
|
3608
|
+
Object.defineProperty(RealizeOptionPositionEvent, "bcs", {
|
|
3609
|
+
get: function () {
|
|
3610
|
+
return bcs_1.bcs.struct("RealizeOptionPositionEvent", {
|
|
3611
|
+
position_user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
|
|
3612
|
+
position_id: bcs_1.bcs.u64(),
|
|
3613
|
+
trading_symbol: structs_2.TypeName.bcs,
|
|
3614
|
+
realize_balance_token_type: structs_2.TypeName.bcs,
|
|
3615
|
+
exercise_balance_value: bcs_1.bcs.u64(),
|
|
3616
|
+
user_remaining_value: bcs_1.bcs.u64(),
|
|
3617
|
+
user_remaining_in_usd: bcs_1.bcs.u64(),
|
|
3618
|
+
realized_loss_value: bcs_1.bcs.u64(),
|
|
3619
|
+
fee_value: bcs_1.bcs.u64(),
|
|
3620
|
+
realized_trading_fee: bcs_1.bcs.u64(),
|
|
3621
|
+
realized_borrow_fee: bcs_1.bcs.u64(),
|
|
3622
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
3623
|
+
});
|
|
3624
|
+
},
|
|
3625
|
+
enumerable: false,
|
|
3626
|
+
configurable: true
|
|
3627
|
+
});
|
|
3628
|
+
RealizeOptionPositionEvent.fromFields = function (fields) {
|
|
3629
|
+
return RealizeOptionPositionEvent.reified().new({
|
|
3630
|
+
positionUser: (0, reified_1.decodeFromFields)("address", fields.position_user),
|
|
3631
|
+
positionId: (0, reified_1.decodeFromFields)("u64", fields.position_id),
|
|
3632
|
+
tradingSymbol: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.trading_symbol),
|
|
3633
|
+
realizeBalanceTokenType: (0, reified_1.decodeFromFields)(structs_2.TypeName.reified(), fields.realize_balance_token_type),
|
|
3634
|
+
exerciseBalanceValue: (0, reified_1.decodeFromFields)("u64", fields.exercise_balance_value),
|
|
3635
|
+
userRemainingValue: (0, reified_1.decodeFromFields)("u64", fields.user_remaining_value),
|
|
3636
|
+
userRemainingInUsd: (0, reified_1.decodeFromFields)("u64", fields.user_remaining_in_usd),
|
|
3637
|
+
realizedLossValue: (0, reified_1.decodeFromFields)("u64", fields.realized_loss_value),
|
|
3638
|
+
feeValue: (0, reified_1.decodeFromFields)("u64", fields.fee_value),
|
|
3639
|
+
realizedTradingFee: (0, reified_1.decodeFromFields)("u64", fields.realized_trading_fee),
|
|
3640
|
+
realizedBorrowFee: (0, reified_1.decodeFromFields)("u64", fields.realized_borrow_fee),
|
|
3641
|
+
u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
|
|
3642
|
+
});
|
|
3643
|
+
};
|
|
3644
|
+
RealizeOptionPositionEvent.fromFieldsWithTypes = function (item) {
|
|
3645
|
+
if (!isRealizeOptionPositionEvent(item.type)) {
|
|
3646
|
+
throw new Error("not a RealizeOptionPositionEvent type");
|
|
3647
|
+
}
|
|
3648
|
+
return RealizeOptionPositionEvent.reified().new({
|
|
3649
|
+
positionUser: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.position_user),
|
|
3650
|
+
positionId: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.position_id),
|
|
3651
|
+
tradingSymbol: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.trading_symbol),
|
|
3652
|
+
realizeBalanceTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.TypeName.reified(), item.fields.realize_balance_token_type),
|
|
3653
|
+
exerciseBalanceValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exercise_balance_value),
|
|
3654
|
+
userRemainingValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_remaining_value),
|
|
3655
|
+
userRemainingInUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.user_remaining_in_usd),
|
|
3656
|
+
realizedLossValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.realized_loss_value),
|
|
3657
|
+
feeValue: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_value),
|
|
3658
|
+
realizedTradingFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.realized_trading_fee),
|
|
3659
|
+
realizedBorrowFee: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.realized_borrow_fee),
|
|
3660
|
+
u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
|
|
3661
|
+
});
|
|
3662
|
+
};
|
|
3663
|
+
RealizeOptionPositionEvent.fromBcs = function (data) {
|
|
3664
|
+
return RealizeOptionPositionEvent.fromFields(RealizeOptionPositionEvent.bcs.parse(data));
|
|
3665
|
+
};
|
|
3666
|
+
RealizeOptionPositionEvent.prototype.toJSONField = function () {
|
|
3667
|
+
return {
|
|
3668
|
+
positionUser: this.positionUser,
|
|
3669
|
+
positionId: this.positionId.toString(),
|
|
3670
|
+
tradingSymbol: this.tradingSymbol.toJSONField(),
|
|
3671
|
+
realizeBalanceTokenType: this.realizeBalanceTokenType.toJSONField(),
|
|
3672
|
+
exerciseBalanceValue: this.exerciseBalanceValue.toString(),
|
|
3673
|
+
userRemainingValue: this.userRemainingValue.toString(),
|
|
3674
|
+
userRemainingInUsd: this.userRemainingInUsd.toString(),
|
|
3675
|
+
realizedLossValue: this.realizedLossValue.toString(),
|
|
3676
|
+
feeValue: this.feeValue.toString(),
|
|
3677
|
+
realizedTradingFee: this.realizedTradingFee.toString(),
|
|
3678
|
+
realizedBorrowFee: this.realizedBorrowFee.toString(),
|
|
3679
|
+
u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
|
|
3680
|
+
};
|
|
3681
|
+
};
|
|
3682
|
+
RealizeOptionPositionEvent.prototype.toJSON = function () {
|
|
3683
|
+
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
3684
|
+
};
|
|
3685
|
+
RealizeOptionPositionEvent.fromJSONField = function (field) {
|
|
3686
|
+
return RealizeOptionPositionEvent.reified().new({
|
|
3687
|
+
positionUser: (0, reified_1.decodeFromJSONField)("address", field.positionUser),
|
|
3688
|
+
positionId: (0, reified_1.decodeFromJSONField)("u64", field.positionId),
|
|
3689
|
+
tradingSymbol: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.tradingSymbol),
|
|
3690
|
+
realizeBalanceTokenType: (0, reified_1.decodeFromJSONField)(structs_2.TypeName.reified(), field.realizeBalanceTokenType),
|
|
3691
|
+
exerciseBalanceValue: (0, reified_1.decodeFromJSONField)("u64", field.exerciseBalanceValue),
|
|
3692
|
+
userRemainingValue: (0, reified_1.decodeFromJSONField)("u64", field.userRemainingValue),
|
|
3693
|
+
userRemainingInUsd: (0, reified_1.decodeFromJSONField)("u64", field.userRemainingInUsd),
|
|
3694
|
+
realizedLossValue: (0, reified_1.decodeFromJSONField)("u64", field.realizedLossValue),
|
|
3695
|
+
feeValue: (0, reified_1.decodeFromJSONField)("u64", field.feeValue),
|
|
3696
|
+
realizedTradingFee: (0, reified_1.decodeFromJSONField)("u64", field.realizedTradingFee),
|
|
3697
|
+
realizedBorrowFee: (0, reified_1.decodeFromJSONField)("u64", field.realizedBorrowFee),
|
|
3698
|
+
u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
|
|
3699
|
+
});
|
|
3700
|
+
};
|
|
3701
|
+
RealizeOptionPositionEvent.fromJSON = function (json) {
|
|
3702
|
+
if (json.$typeName !== RealizeOptionPositionEvent.$typeName) {
|
|
3703
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
3704
|
+
}
|
|
3705
|
+
return RealizeOptionPositionEvent.fromJSONField(json);
|
|
3706
|
+
};
|
|
3707
|
+
RealizeOptionPositionEvent.fromSuiParsedData = function (content) {
|
|
3708
|
+
if (content.dataType !== "moveObject") {
|
|
3709
|
+
throw new Error("not an object");
|
|
3710
|
+
}
|
|
3711
|
+
if (!isRealizeOptionPositionEvent(content.type)) {
|
|
3712
|
+
throw new Error("object at ".concat(content.fields.id, " is not a RealizeOptionPositionEvent object"));
|
|
3713
|
+
}
|
|
3714
|
+
return RealizeOptionPositionEvent.fromFieldsWithTypes(content);
|
|
3715
|
+
};
|
|
3716
|
+
RealizeOptionPositionEvent.fromSuiObjectData = function (data) {
|
|
3717
|
+
if (data.bcs) {
|
|
3718
|
+
if (data.bcs.dataType !== "moveObject" || !isRealizeOptionPositionEvent(data.bcs.type)) {
|
|
3719
|
+
throw new Error("object at is not a RealizeOptionPositionEvent object");
|
|
3720
|
+
}
|
|
3721
|
+
return RealizeOptionPositionEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
3722
|
+
}
|
|
3723
|
+
if (data.content) {
|
|
3724
|
+
return RealizeOptionPositionEvent.fromSuiParsedData(data.content);
|
|
3725
|
+
}
|
|
3726
|
+
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
3727
|
+
};
|
|
3728
|
+
RealizeOptionPositionEvent.fetch = function (client, id) {
|
|
3729
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3730
|
+
var res;
|
|
3731
|
+
var _a, _b;
|
|
3732
|
+
return __generator(this, function (_c) {
|
|
3733
|
+
switch (_c.label) {
|
|
3734
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
3735
|
+
case 1:
|
|
3736
|
+
res = _c.sent();
|
|
3737
|
+
if (res.error) {
|
|
3738
|
+
throw new Error("error fetching RealizeOptionPositionEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
3739
|
+
}
|
|
3740
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRealizeOptionPositionEvent(res.data.bcs.type)) {
|
|
3741
|
+
throw new Error("object at id ".concat(id, " is not a RealizeOptionPositionEvent object"));
|
|
3742
|
+
}
|
|
3743
|
+
return [2 /*return*/, RealizeOptionPositionEvent.fromSuiObjectData(res.data)];
|
|
3744
|
+
}
|
|
3745
|
+
});
|
|
3746
|
+
});
|
|
3747
|
+
};
|
|
3748
|
+
RealizeOptionPositionEvent.$typeName = "".concat(index_1.PKG_V1, "::trading::RealizeOptionPositionEvent");
|
|
3749
|
+
RealizeOptionPositionEvent.$numTypeParams = 0;
|
|
3750
|
+
RealizeOptionPositionEvent.$isPhantom = [];
|
|
3751
|
+
return RealizeOptionPositionEvent;
|
|
3752
|
+
}());
|
|
3753
|
+
exports.RealizeOptionPositionEvent = RealizeOptionPositionEvent;
|
|
3534
3754
|
/* ============================== ReleaseCollateralEvent =============================== */
|
|
3535
3755
|
function isReleaseCollateralEvent(type) {
|
|
3536
3756
|
type = (0, util_1.compressSuiType)(type);
|
|
@@ -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" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::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" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::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" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::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" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::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" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::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" ? "" : "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895";
|
|
6
|
+
exports.PUBLISHED_AT = index_1.NETWORK == "MAINNET" ? "" : "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895";
|
|
7
|
+
exports.PKG_V1 = index_1.NETWORK == "MAINNET" ? "" : "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895";
|
|
@@ -40,7 +40,7 @@ export declare class UnsubscribeEvent implements StructClass {
|
|
|
40
40
|
static reified(): UnsubscribeEventReified;
|
|
41
41
|
static get r(): reified.StructClassReified<UnsubscribeEvent, UnsubscribeEventFields>;
|
|
42
42
|
static phantom(): PhantomReified<ToTypeStr<UnsubscribeEvent>>;
|
|
43
|
-
static get p(): reified.PhantomReified<"::stake_pool::UnsubscribeEvent" | "
|
|
43
|
+
static get p(): reified.PhantomReified<"::stake_pool::UnsubscribeEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::UnsubscribeEvent">;
|
|
44
44
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
45
45
|
sender: string;
|
|
46
46
|
index: string;
|
|
@@ -134,7 +134,7 @@ export declare class WithdrawIncentiveEvent implements StructClass {
|
|
|
134
134
|
static reified(): WithdrawIncentiveEventReified;
|
|
135
135
|
static get r(): reified.StructClassReified<WithdrawIncentiveEvent, WithdrawIncentiveEventFields>;
|
|
136
136
|
static phantom(): PhantomReified<ToTypeStr<WithdrawIncentiveEvent>>;
|
|
137
|
-
static get p(): reified.PhantomReified<"::stake_pool::WithdrawIncentiveEvent" | "
|
|
137
|
+
static get p(): reified.PhantomReified<"::stake_pool::WithdrawIncentiveEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::WithdrawIncentiveEvent">;
|
|
138
138
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
139
139
|
sender: string;
|
|
140
140
|
index: string;
|
|
@@ -214,7 +214,7 @@ export declare class ActivateIncentiveTokenEvent implements StructClass {
|
|
|
214
214
|
static reified(): ActivateIncentiveTokenEventReified;
|
|
215
215
|
static get r(): reified.StructClassReified<ActivateIncentiveTokenEvent, ActivateIncentiveTokenEventFields>;
|
|
216
216
|
static phantom(): PhantomReified<ToTypeStr<ActivateIncentiveTokenEvent>>;
|
|
217
|
-
static get p(): reified.PhantomReified<"::stake_pool::ActivateIncentiveTokenEvent" | "
|
|
217
|
+
static get p(): reified.PhantomReified<"::stake_pool::ActivateIncentiveTokenEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::ActivateIncentiveTokenEvent">;
|
|
218
218
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
219
219
|
sender: string;
|
|
220
220
|
index: string;
|
|
@@ -294,7 +294,7 @@ export declare class AddIncentiveTokenEvent implements StructClass {
|
|
|
294
294
|
static reified(): AddIncentiveTokenEventReified;
|
|
295
295
|
static get r(): reified.StructClassReified<AddIncentiveTokenEvent, AddIncentiveTokenEventFields>;
|
|
296
296
|
static phantom(): PhantomReified<ToTypeStr<AddIncentiveTokenEvent>>;
|
|
297
|
-
static get p(): reified.PhantomReified<"::stake_pool::AddIncentiveTokenEvent" | "
|
|
297
|
+
static get p(): reified.PhantomReified<"::stake_pool::AddIncentiveTokenEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::AddIncentiveTokenEvent">;
|
|
298
298
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
299
299
|
sender: string;
|
|
300
300
|
index: string;
|
|
@@ -422,7 +422,7 @@ export declare class DeactivateIncentiveTokenEvent implements StructClass {
|
|
|
422
422
|
static reified(): DeactivateIncentiveTokenEventReified;
|
|
423
423
|
static get r(): reified.StructClassReified<DeactivateIncentiveTokenEvent, DeactivateIncentiveTokenEventFields>;
|
|
424
424
|
static phantom(): PhantomReified<ToTypeStr<DeactivateIncentiveTokenEvent>>;
|
|
425
|
-
static get p(): reified.PhantomReified<"::stake_pool::DeactivateIncentiveTokenEvent" | "
|
|
425
|
+
static get p(): reified.PhantomReified<"::stake_pool::DeactivateIncentiveTokenEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::DeactivateIncentiveTokenEvent">;
|
|
426
426
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
427
427
|
sender: string;
|
|
428
428
|
index: string;
|
|
@@ -500,7 +500,7 @@ export declare class DeactivatingShares implements StructClass {
|
|
|
500
500
|
static reified(): DeactivatingSharesReified;
|
|
501
501
|
static get r(): reified.StructClassReified<DeactivatingShares, DeactivatingSharesFields>;
|
|
502
502
|
static phantom(): PhantomReified<ToTypeStr<DeactivatingShares>>;
|
|
503
|
-
static get p(): reified.PhantomReified<"::stake_pool::DeactivatingShares" | "
|
|
503
|
+
static get p(): reified.PhantomReified<"::stake_pool::DeactivatingShares" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::DeactivatingShares">;
|
|
504
504
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
505
505
|
shares: string;
|
|
506
506
|
unsubscribed_ts_ms: string;
|
|
@@ -604,7 +604,7 @@ export declare class DepositIncentiveEvent implements StructClass {
|
|
|
604
604
|
static reified(): DepositIncentiveEventReified;
|
|
605
605
|
static get r(): reified.StructClassReified<DepositIncentiveEvent, DepositIncentiveEventFields>;
|
|
606
606
|
static phantom(): PhantomReified<ToTypeStr<DepositIncentiveEvent>>;
|
|
607
|
-
static get p(): reified.PhantomReified<"::stake_pool::DepositIncentiveEvent" | "
|
|
607
|
+
static get p(): reified.PhantomReified<"::stake_pool::DepositIncentiveEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::DepositIncentiveEvent">;
|
|
608
608
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
609
609
|
sender: string;
|
|
610
610
|
index: string;
|
|
@@ -688,7 +688,7 @@ export declare class HarvestPerUserShareEvent implements StructClass {
|
|
|
688
688
|
static reified(): HarvestPerUserShareEventReified;
|
|
689
689
|
static get r(): reified.StructClassReified<HarvestPerUserShareEvent, HarvestPerUserShareEventFields>;
|
|
690
690
|
static phantom(): PhantomReified<ToTypeStr<HarvestPerUserShareEvent>>;
|
|
691
|
-
static get p(): reified.PhantomReified<"::stake_pool::HarvestPerUserShareEvent" | "
|
|
691
|
+
static get p(): reified.PhantomReified<"::stake_pool::HarvestPerUserShareEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::HarvestPerUserShareEvent">;
|
|
692
692
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
693
693
|
sender: string;
|
|
694
694
|
index: string;
|
|
@@ -770,7 +770,7 @@ export declare class Incentive implements StructClass {
|
|
|
770
770
|
static reified(): IncentiveReified;
|
|
771
771
|
static get r(): reified.StructClassReified<Incentive, IncentiveFields>;
|
|
772
772
|
static phantom(): PhantomReified<ToTypeStr<Incentive>>;
|
|
773
|
-
static get p(): reified.PhantomReified<"::stake_pool::Incentive" | "
|
|
773
|
+
static get p(): reified.PhantomReified<"::stake_pool::Incentive" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::Incentive">;
|
|
774
774
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
775
775
|
token_type: {
|
|
776
776
|
name: {
|
|
@@ -882,7 +882,7 @@ export declare class IncentiveConfig implements StructClass {
|
|
|
882
882
|
static reified(): IncentiveConfigReified;
|
|
883
883
|
static get r(): reified.StructClassReified<IncentiveConfig, IncentiveConfigFields>;
|
|
884
884
|
static phantom(): PhantomReified<ToTypeStr<IncentiveConfig>>;
|
|
885
|
-
static get p(): reified.PhantomReified<"::stake_pool::IncentiveConfig" | "
|
|
885
|
+
static get p(): reified.PhantomReified<"::stake_pool::IncentiveConfig" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::IncentiveConfig">;
|
|
886
886
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
887
887
|
period_incentive_amount: string;
|
|
888
888
|
incentive_interval_ts_ms: string;
|
|
@@ -942,7 +942,7 @@ export declare class IncentiveInfo implements StructClass {
|
|
|
942
942
|
static reified(): IncentiveInfoReified;
|
|
943
943
|
static get r(): reified.StructClassReified<IncentiveInfo, IncentiveInfoFields>;
|
|
944
944
|
static phantom(): PhantomReified<ToTypeStr<IncentiveInfo>>;
|
|
945
|
-
static get p(): reified.PhantomReified<"::stake_pool::IncentiveInfo" | "
|
|
945
|
+
static get p(): reified.PhantomReified<"::stake_pool::IncentiveInfo" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::IncentiveInfo">;
|
|
946
946
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
947
947
|
active: boolean;
|
|
948
948
|
last_allocate_ts_ms: string;
|
|
@@ -1016,7 +1016,7 @@ export declare class LpUserShare implements StructClass {
|
|
|
1016
1016
|
static reified(): LpUserShareReified;
|
|
1017
1017
|
static get r(): reified.StructClassReified<LpUserShare, LpUserShareFields>;
|
|
1018
1018
|
static phantom(): PhantomReified<ToTypeStr<LpUserShare>>;
|
|
1019
|
-
static get p(): reified.PhantomReified<"::stake_pool::LpUserShare" | "
|
|
1019
|
+
static get p(): reified.PhantomReified<"::stake_pool::LpUserShare" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::LpUserShare">;
|
|
1020
1020
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1021
1021
|
user: string;
|
|
1022
1022
|
user_share_id: string;
|
|
@@ -1194,7 +1194,7 @@ export declare class NewStakePoolEvent implements StructClass {
|
|
|
1194
1194
|
static reified(): NewStakePoolEventReified;
|
|
1195
1195
|
static get r(): reified.StructClassReified<NewStakePoolEvent, NewStakePoolEventFields>;
|
|
1196
1196
|
static phantom(): PhantomReified<ToTypeStr<NewStakePoolEvent>>;
|
|
1197
|
-
static get p(): reified.PhantomReified<"::stake_pool::NewStakePoolEvent" | "
|
|
1197
|
+
static get p(): reified.PhantomReified<"::stake_pool::NewStakePoolEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::NewStakePoolEvent">;
|
|
1198
1198
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1199
1199
|
sender: string;
|
|
1200
1200
|
stake_pool_info: {
|
|
@@ -1316,7 +1316,7 @@ export declare class RemoveIncentiveTokenEvent implements StructClass {
|
|
|
1316
1316
|
static reified(): RemoveIncentiveTokenEventReified;
|
|
1317
1317
|
static get r(): reified.StructClassReified<RemoveIncentiveTokenEvent, RemoveIncentiveTokenEventFields>;
|
|
1318
1318
|
static phantom(): PhantomReified<ToTypeStr<RemoveIncentiveTokenEvent>>;
|
|
1319
|
-
static get p(): reified.PhantomReified<"::stake_pool::RemoveIncentiveTokenEvent" | "
|
|
1319
|
+
static get p(): reified.PhantomReified<"::stake_pool::RemoveIncentiveTokenEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::RemoveIncentiveTokenEvent">;
|
|
1320
1320
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1321
1321
|
sender: string;
|
|
1322
1322
|
index: string;
|
|
@@ -1404,7 +1404,7 @@ export declare class StakeEvent implements StructClass {
|
|
|
1404
1404
|
static reified(): StakeEventReified;
|
|
1405
1405
|
static get r(): reified.StructClassReified<StakeEvent, StakeEventFields>;
|
|
1406
1406
|
static phantom(): PhantomReified<ToTypeStr<StakeEvent>>;
|
|
1407
|
-
static get p(): reified.PhantomReified<"::stake_pool::StakeEvent" | "
|
|
1407
|
+
static get p(): reified.PhantomReified<"::stake_pool::StakeEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::StakeEvent">;
|
|
1408
1408
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1409
1409
|
sender: string;
|
|
1410
1410
|
index: string;
|
|
@@ -1534,7 +1534,7 @@ export declare class StakePool implements StructClass {
|
|
|
1534
1534
|
static reified(): StakePoolReified;
|
|
1535
1535
|
static get r(): reified.StructClassReified<StakePool, StakePoolFields>;
|
|
1536
1536
|
static phantom(): PhantomReified<ToTypeStr<StakePool>>;
|
|
1537
|
-
static get p(): reified.PhantomReified<"::stake_pool::StakePool" | "
|
|
1537
|
+
static get p(): reified.PhantomReified<"::stake_pool::StakePool" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::StakePool">;
|
|
1538
1538
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1539
1539
|
id: {
|
|
1540
1540
|
id: {
|
|
@@ -1738,7 +1738,7 @@ export declare class StakePoolConfig implements StructClass {
|
|
|
1738
1738
|
static reified(): StakePoolConfigReified;
|
|
1739
1739
|
static get r(): reified.StructClassReified<StakePoolConfig, StakePoolConfigFields>;
|
|
1740
1740
|
static phantom(): PhantomReified<ToTypeStr<StakePoolConfig>>;
|
|
1741
|
-
static get p(): reified.PhantomReified<"::stake_pool::StakePoolConfig" | "
|
|
1741
|
+
static get p(): reified.PhantomReified<"::stake_pool::StakePoolConfig" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::StakePoolConfig">;
|
|
1742
1742
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1743
1743
|
unlock_countdown_ts_ms: string;
|
|
1744
1744
|
u64_padding: string[];
|
|
@@ -1796,7 +1796,7 @@ export declare class StakePoolInfo implements StructClass {
|
|
|
1796
1796
|
static reified(): StakePoolInfoReified;
|
|
1797
1797
|
static get r(): reified.StructClassReified<StakePoolInfo, StakePoolInfoFields>;
|
|
1798
1798
|
static phantom(): PhantomReified<ToTypeStr<StakePoolInfo>>;
|
|
1799
|
-
static get p(): reified.PhantomReified<"::stake_pool::StakePoolInfo" | "
|
|
1799
|
+
static get p(): reified.PhantomReified<"::stake_pool::StakePoolInfo" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::StakePoolInfo">;
|
|
1800
1800
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1801
1801
|
stake_token: {
|
|
1802
1802
|
name: {
|
|
@@ -1876,7 +1876,7 @@ export declare class StakePoolRegistry implements StructClass {
|
|
|
1876
1876
|
static reified(): StakePoolRegistryReified;
|
|
1877
1877
|
static get r(): reified.StructClassReified<StakePoolRegistry, StakePoolRegistryFields>;
|
|
1878
1878
|
static phantom(): PhantomReified<ToTypeStr<StakePoolRegistry>>;
|
|
1879
|
-
static get p(): reified.PhantomReified<"::stake_pool::StakePoolRegistry" | "
|
|
1879
|
+
static get p(): reified.PhantomReified<"::stake_pool::StakePoolRegistry" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::StakePoolRegistry">;
|
|
1880
1880
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1881
1881
|
id: {
|
|
1882
1882
|
id: {
|
|
@@ -1942,7 +1942,7 @@ export declare class UnstakeEvent implements StructClass {
|
|
|
1942
1942
|
static reified(): UnstakeEventReified;
|
|
1943
1943
|
static get r(): reified.StructClassReified<UnstakeEvent, UnstakeEventFields>;
|
|
1944
1944
|
static phantom(): PhantomReified<ToTypeStr<UnstakeEvent>>;
|
|
1945
|
-
static get p(): reified.PhantomReified<"::stake_pool::UnstakeEvent" | "
|
|
1945
|
+
static get p(): reified.PhantomReified<"::stake_pool::UnstakeEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::UnstakeEvent">;
|
|
1946
1946
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1947
1947
|
sender: string;
|
|
1948
1948
|
index: string;
|
|
@@ -2032,7 +2032,7 @@ export declare class UpdateIncentiveConfigEvent implements StructClass {
|
|
|
2032
2032
|
static reified(): UpdateIncentiveConfigEventReified;
|
|
2033
2033
|
static get r(): reified.StructClassReified<UpdateIncentiveConfigEvent, UpdateIncentiveConfigEventFields>;
|
|
2034
2034
|
static phantom(): PhantomReified<ToTypeStr<UpdateIncentiveConfigEvent>>;
|
|
2035
|
-
static get p(): reified.PhantomReified<"::stake_pool::UpdateIncentiveConfigEvent" | "
|
|
2035
|
+
static get p(): reified.PhantomReified<"::stake_pool::UpdateIncentiveConfigEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::UpdateIncentiveConfigEvent">;
|
|
2036
2036
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2037
2037
|
sender: string;
|
|
2038
2038
|
index: string;
|
|
@@ -2136,7 +2136,7 @@ export declare class UpdateUnlockCountdownTsMsEvent implements StructClass {
|
|
|
2136
2136
|
static reified(): UpdateUnlockCountdownTsMsEventReified;
|
|
2137
2137
|
static get r(): reified.StructClassReified<UpdateUnlockCountdownTsMsEvent, UpdateUnlockCountdownTsMsEventFields>;
|
|
2138
2138
|
static phantom(): PhantomReified<ToTypeStr<UpdateUnlockCountdownTsMsEvent>>;
|
|
2139
|
-
static get p(): reified.PhantomReified<"::stake_pool::UpdateUnlockCountdownTsMsEvent" | "
|
|
2139
|
+
static get p(): reified.PhantomReified<"::stake_pool::UpdateUnlockCountdownTsMsEvent" | "0x6db1e799c84de3665b86c7db8db3478b76fef05b194bbe53b479207d85776895::stake_pool::UpdateUnlockCountdownTsMsEvent">;
|
|
2140
2140
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2141
2141
|
sender: string;
|
|
2142
2142
|
index: string;
|