@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
package/dist/src/fetch.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { LiquidityPool } from "./typus_perp/lp-pool/structs";
|
|
|
3
3
|
import { TradingOrder, Position } from "./typus_perp/position/structs";
|
|
4
4
|
import { LpUserShare, StakePool } from "./typus_stake_pool/stake-pool/structs";
|
|
5
5
|
import { PythClient, TypusConfig } from "@typus/typus-sdk/dist/src/utils";
|
|
6
|
+
import { TypusBidReceipt } from "./_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs";
|
|
6
7
|
export declare function getLpPools(config: TypusConfig): Promise<LiquidityPool[]>;
|
|
7
8
|
export declare function getStakePools(config: TypusConfig): Promise<StakePool[]>;
|
|
8
9
|
export interface MarketsData {
|
|
@@ -14,6 +15,7 @@ export declare function getMarkets(config: TypusConfig, input: {
|
|
|
14
15
|
}): Promise<MarketsData[]>;
|
|
15
16
|
export declare function getUserOrders(config: TypusConfig, user: string): Promise<TradingOrder[]>;
|
|
16
17
|
export declare function getUserPositions(config: TypusConfig, user: string): Promise<Position[]>;
|
|
18
|
+
export declare function parseOptionBidReceipts(positions: Position[]): (TypusBidReceipt | null)[];
|
|
17
19
|
export declare function getUserStake(config: TypusConfig, user: string): Promise<LpUserShare[]>;
|
|
18
20
|
export declare function getLiquidationPrice(config: TypusConfig, pythClient: PythClient, input: {
|
|
19
21
|
positions: Position[];
|
package/dist/src/fetch.js
CHANGED
|
@@ -52,6 +52,7 @@ exports.getStakePools = getStakePools;
|
|
|
52
52
|
exports.getMarkets = getMarkets;
|
|
53
53
|
exports.getUserOrders = getUserOrders;
|
|
54
54
|
exports.getUserPositions = getUserPositions;
|
|
55
|
+
exports.parseOptionBidReceipts = parseOptionBidReceipts;
|
|
55
56
|
exports.getUserStake = getUserStake;
|
|
56
57
|
exports.getLiquidationPrice = getLiquidationPrice;
|
|
57
58
|
var client_1 = require("@mysten/sui/client");
|
|
@@ -66,6 +67,8 @@ var structs_4 = require("./typus_stake_pool/stake-pool/structs");
|
|
|
66
67
|
var constants_1 = require("@typus/typus-sdk/dist/src/constants");
|
|
67
68
|
var utils_1 = require("@typus/typus-sdk/dist/src/utils");
|
|
68
69
|
var _1 = require(".");
|
|
70
|
+
var structs_5 = require("./_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs");
|
|
71
|
+
var typus_perp_1 = require("./typus_perp");
|
|
69
72
|
function getLpPools(config) {
|
|
70
73
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
74
|
var provider, dynamicFields, lpPools, _a, _b, field, lpPool, e_1_1;
|
|
@@ -169,7 +172,7 @@ function getMarkets(config, input) {
|
|
|
169
172
|
provider = new client_1.SuiClient({ url: config.rpcEndpoint });
|
|
170
173
|
transaction = new transactions_1.Transaction();
|
|
171
174
|
transaction.moveCall({
|
|
172
|
-
target: "".concat(
|
|
175
|
+
target: "".concat(typus_perp_1.PUBLISHED_AT, "::trading::get_markets_bcs"),
|
|
173
176
|
arguments: [transaction.object(config.registry.perp.market), transaction.pure.vector("u64", input.indexes)],
|
|
174
177
|
});
|
|
175
178
|
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transaction })];
|
|
@@ -296,6 +299,18 @@ function getUserPositions(config, user) {
|
|
|
296
299
|
});
|
|
297
300
|
});
|
|
298
301
|
}
|
|
302
|
+
function parseOptionBidReceipts(positions) {
|
|
303
|
+
return positions.map(function (position) {
|
|
304
|
+
if (position.optionCollateralInfo) {
|
|
305
|
+
var bidReceipt = structs_5.TypusBidReceipt.fromBcs(Uint8Array.from(Array.from(position.optionCollateralInfo.bidReceiptsBcs[0])));
|
|
306
|
+
// console.log(bidReceipt);
|
|
307
|
+
return bidReceipt;
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
299
314
|
function getUserStake(config, user) {
|
|
300
315
|
return __awaiter(this, void 0, void 0, function () {
|
|
301
316
|
var provider, tx, res, returnValues, reader, lpShares_1;
|
|
@@ -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" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::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" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::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" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::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" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::admin::SendFeeEvent">;
|
|
366
366
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
367
367
|
token: {
|
|
368
368
|
name: {
|
|
@@ -403,3 +403,65 @@ export declare class SendFeeEvent implements StructClass {
|
|
|
403
403
|
static fromSuiObjectData(data: SuiObjectData): SendFeeEvent;
|
|
404
404
|
static fetch(client: SuiClient, id: string): Promise<SendFeeEvent>;
|
|
405
405
|
}
|
|
406
|
+
export declare function isProtocolFeeEvent(type: string): boolean;
|
|
407
|
+
export interface ProtocolFeeEventFields {
|
|
408
|
+
token: ToField<TypeName>;
|
|
409
|
+
amount: ToField<"u64">;
|
|
410
|
+
}
|
|
411
|
+
export type ProtocolFeeEventReified = Reified<ProtocolFeeEvent, ProtocolFeeEventFields>;
|
|
412
|
+
export declare class ProtocolFeeEvent implements StructClass {
|
|
413
|
+
__StructClass: true;
|
|
414
|
+
static readonly $typeName: string;
|
|
415
|
+
static readonly $numTypeParams = 0;
|
|
416
|
+
static readonly $isPhantom: readonly [];
|
|
417
|
+
readonly $typeName: string;
|
|
418
|
+
readonly $fullTypeName: `${typeof PKG_V1}::admin::ProtocolFeeEvent`;
|
|
419
|
+
readonly $typeArgs: [];
|
|
420
|
+
readonly $isPhantom: readonly [];
|
|
421
|
+
readonly token: ToField<TypeName>;
|
|
422
|
+
readonly amount: ToField<"u64">;
|
|
423
|
+
private constructor();
|
|
424
|
+
static reified(): ProtocolFeeEventReified;
|
|
425
|
+
static get r(): reified.StructClassReified<ProtocolFeeEvent, ProtocolFeeEventFields>;
|
|
426
|
+
static phantom(): PhantomReified<ToTypeStr<ProtocolFeeEvent>>;
|
|
427
|
+
static get p(): reified.PhantomReified<"::admin::ProtocolFeeEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::admin::ProtocolFeeEvent">;
|
|
428
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
429
|
+
token: {
|
|
430
|
+
name: {
|
|
431
|
+
bytes: number[];
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
amount: string;
|
|
435
|
+
}, {
|
|
436
|
+
token: {
|
|
437
|
+
name: {
|
|
438
|
+
bytes: Iterable<number> & {
|
|
439
|
+
length: number;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
amount: string | number | bigint;
|
|
444
|
+
}>;
|
|
445
|
+
static fromFields(fields: Record<string, any>): ProtocolFeeEvent;
|
|
446
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ProtocolFeeEvent;
|
|
447
|
+
static fromBcs(data: Uint8Array): ProtocolFeeEvent;
|
|
448
|
+
toJSONField(): {
|
|
449
|
+
token: {
|
|
450
|
+
name: string;
|
|
451
|
+
};
|
|
452
|
+
amount: string;
|
|
453
|
+
};
|
|
454
|
+
toJSON(): {
|
|
455
|
+
token: {
|
|
456
|
+
name: string;
|
|
457
|
+
};
|
|
458
|
+
amount: string;
|
|
459
|
+
$typeName: string;
|
|
460
|
+
$typeArgs: [];
|
|
461
|
+
};
|
|
462
|
+
static fromJSONField(field: any): ProtocolFeeEvent;
|
|
463
|
+
static fromJSON(json: Record<string, any>): ProtocolFeeEvent;
|
|
464
|
+
static fromSuiParsedData(content: SuiParsedData): ProtocolFeeEvent;
|
|
465
|
+
static fromSuiObjectData(data: SuiObjectData): ProtocolFeeEvent;
|
|
466
|
+
static fetch(client: SuiClient, id: string): Promise<ProtocolFeeEvent>;
|
|
467
|
+
}
|
|
@@ -105,11 +105,12 @@ 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.SendFeeEvent = exports.FeePool = exports.FeeInfo = exports.Version = void 0;
|
|
108
|
+
exports.ProtocolFeeEvent = exports.SendFeeEvent = exports.FeePool = exports.FeeInfo = exports.Version = void 0;
|
|
109
109
|
exports.isVersion = isVersion;
|
|
110
110
|
exports.isFeeInfo = isFeeInfo;
|
|
111
111
|
exports.isFeePool = isFeePool;
|
|
112
112
|
exports.isSendFeeEvent = isSendFeeEvent;
|
|
113
|
+
exports.isProtocolFeeEvent = isProtocolFeeEvent;
|
|
113
114
|
var reified = __importStar(require("../../_framework/reified"));
|
|
114
115
|
var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
115
116
|
var structs_2 = require("../../_dependencies/source/0x2/object/structs");
|
|
@@ -755,3 +756,156 @@ var SendFeeEvent = /** @class */ (function () {
|
|
|
755
756
|
return SendFeeEvent;
|
|
756
757
|
}());
|
|
757
758
|
exports.SendFeeEvent = SendFeeEvent;
|
|
759
|
+
/* ============================== ProtocolFeeEvent =============================== */
|
|
760
|
+
function isProtocolFeeEvent(type) {
|
|
761
|
+
type = (0, util_1.compressSuiType)(type);
|
|
762
|
+
return type === "".concat(index_1.PKG_V1, "::admin::ProtocolFeeEvent");
|
|
763
|
+
}
|
|
764
|
+
var ProtocolFeeEvent = /** @class */ (function () {
|
|
765
|
+
function ProtocolFeeEvent(typeArgs, fields) {
|
|
766
|
+
this.__StructClass = true;
|
|
767
|
+
this.$typeName = ProtocolFeeEvent.$typeName;
|
|
768
|
+
this.$isPhantom = ProtocolFeeEvent.$isPhantom;
|
|
769
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ProtocolFeeEvent.$typeName], __read(typeArgs), false));
|
|
770
|
+
this.$typeArgs = typeArgs;
|
|
771
|
+
this.token = fields.token;
|
|
772
|
+
this.amount = fields.amount;
|
|
773
|
+
}
|
|
774
|
+
ProtocolFeeEvent.reified = function () {
|
|
775
|
+
var _this = this;
|
|
776
|
+
return {
|
|
777
|
+
typeName: ProtocolFeeEvent.$typeName,
|
|
778
|
+
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ProtocolFeeEvent.$typeName], [], false)),
|
|
779
|
+
typeArgs: [],
|
|
780
|
+
isPhantom: ProtocolFeeEvent.$isPhantom,
|
|
781
|
+
reifiedTypeArgs: [],
|
|
782
|
+
fromFields: function (fields) { return ProtocolFeeEvent.fromFields(fields); },
|
|
783
|
+
fromFieldsWithTypes: function (item) { return ProtocolFeeEvent.fromFieldsWithTypes(item); },
|
|
784
|
+
fromBcs: function (data) { return ProtocolFeeEvent.fromBcs(data); },
|
|
785
|
+
bcs: ProtocolFeeEvent.bcs,
|
|
786
|
+
fromJSONField: function (field) { return ProtocolFeeEvent.fromJSONField(field); },
|
|
787
|
+
fromJSON: function (json) { return ProtocolFeeEvent.fromJSON(json); },
|
|
788
|
+
fromSuiParsedData: function (content) { return ProtocolFeeEvent.fromSuiParsedData(content); },
|
|
789
|
+
fromSuiObjectData: function (content) { return ProtocolFeeEvent.fromSuiObjectData(content); },
|
|
790
|
+
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
791
|
+
return [2 /*return*/, ProtocolFeeEvent.fetch(client, id)];
|
|
792
|
+
}); }); },
|
|
793
|
+
new: function (fields) {
|
|
794
|
+
return new ProtocolFeeEvent([], fields);
|
|
795
|
+
},
|
|
796
|
+
kind: "StructClassReified",
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
Object.defineProperty(ProtocolFeeEvent, "r", {
|
|
800
|
+
get: function () {
|
|
801
|
+
return ProtocolFeeEvent.reified();
|
|
802
|
+
},
|
|
803
|
+
enumerable: false,
|
|
804
|
+
configurable: true
|
|
805
|
+
});
|
|
806
|
+
ProtocolFeeEvent.phantom = function () {
|
|
807
|
+
return (0, reified_1.phantom)(ProtocolFeeEvent.reified());
|
|
808
|
+
};
|
|
809
|
+
Object.defineProperty(ProtocolFeeEvent, "p", {
|
|
810
|
+
get: function () {
|
|
811
|
+
return ProtocolFeeEvent.phantom();
|
|
812
|
+
},
|
|
813
|
+
enumerable: false,
|
|
814
|
+
configurable: true
|
|
815
|
+
});
|
|
816
|
+
Object.defineProperty(ProtocolFeeEvent, "bcs", {
|
|
817
|
+
get: function () {
|
|
818
|
+
return bcs_1.bcs.struct("ProtocolFeeEvent", {
|
|
819
|
+
token: structs_1.TypeName.bcs,
|
|
820
|
+
amount: bcs_1.bcs.u64(),
|
|
821
|
+
});
|
|
822
|
+
},
|
|
823
|
+
enumerable: false,
|
|
824
|
+
configurable: true
|
|
825
|
+
});
|
|
826
|
+
ProtocolFeeEvent.fromFields = function (fields) {
|
|
827
|
+
return ProtocolFeeEvent.reified().new({
|
|
828
|
+
token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
|
|
829
|
+
amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
|
|
830
|
+
});
|
|
831
|
+
};
|
|
832
|
+
ProtocolFeeEvent.fromFieldsWithTypes = function (item) {
|
|
833
|
+
if (!isProtocolFeeEvent(item.type)) {
|
|
834
|
+
throw new Error("not a ProtocolFeeEvent type");
|
|
835
|
+
}
|
|
836
|
+
return ProtocolFeeEvent.reified().new({
|
|
837
|
+
token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
|
|
838
|
+
amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
ProtocolFeeEvent.fromBcs = function (data) {
|
|
842
|
+
return ProtocolFeeEvent.fromFields(ProtocolFeeEvent.bcs.parse(data));
|
|
843
|
+
};
|
|
844
|
+
ProtocolFeeEvent.prototype.toJSONField = function () {
|
|
845
|
+
return {
|
|
846
|
+
token: this.token.toJSONField(),
|
|
847
|
+
amount: this.amount.toString(),
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
ProtocolFeeEvent.prototype.toJSON = function () {
|
|
851
|
+
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
852
|
+
};
|
|
853
|
+
ProtocolFeeEvent.fromJSONField = function (field) {
|
|
854
|
+
return ProtocolFeeEvent.reified().new({
|
|
855
|
+
token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
|
|
856
|
+
amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
|
|
857
|
+
});
|
|
858
|
+
};
|
|
859
|
+
ProtocolFeeEvent.fromJSON = function (json) {
|
|
860
|
+
if (json.$typeName !== ProtocolFeeEvent.$typeName) {
|
|
861
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
862
|
+
}
|
|
863
|
+
return ProtocolFeeEvent.fromJSONField(json);
|
|
864
|
+
};
|
|
865
|
+
ProtocolFeeEvent.fromSuiParsedData = function (content) {
|
|
866
|
+
if (content.dataType !== "moveObject") {
|
|
867
|
+
throw new Error("not an object");
|
|
868
|
+
}
|
|
869
|
+
if (!isProtocolFeeEvent(content.type)) {
|
|
870
|
+
throw new Error("object at ".concat(content.fields.id, " is not a ProtocolFeeEvent object"));
|
|
871
|
+
}
|
|
872
|
+
return ProtocolFeeEvent.fromFieldsWithTypes(content);
|
|
873
|
+
};
|
|
874
|
+
ProtocolFeeEvent.fromSuiObjectData = function (data) {
|
|
875
|
+
if (data.bcs) {
|
|
876
|
+
if (data.bcs.dataType !== "moveObject" || !isProtocolFeeEvent(data.bcs.type)) {
|
|
877
|
+
throw new Error("object at is not a ProtocolFeeEvent object");
|
|
878
|
+
}
|
|
879
|
+
return ProtocolFeeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
880
|
+
}
|
|
881
|
+
if (data.content) {
|
|
882
|
+
return ProtocolFeeEvent.fromSuiParsedData(data.content);
|
|
883
|
+
}
|
|
884
|
+
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
885
|
+
};
|
|
886
|
+
ProtocolFeeEvent.fetch = function (client, id) {
|
|
887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
888
|
+
var res;
|
|
889
|
+
var _a, _b;
|
|
890
|
+
return __generator(this, function (_c) {
|
|
891
|
+
switch (_c.label) {
|
|
892
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
893
|
+
case 1:
|
|
894
|
+
res = _c.sent();
|
|
895
|
+
if (res.error) {
|
|
896
|
+
throw new Error("error fetching ProtocolFeeEvent object at id ".concat(id, ": ").concat(res.error.code));
|
|
897
|
+
}
|
|
898
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isProtocolFeeEvent(res.data.bcs.type)) {
|
|
899
|
+
throw new Error("object at id ".concat(id, " is not a ProtocolFeeEvent object"));
|
|
900
|
+
}
|
|
901
|
+
return [2 /*return*/, ProtocolFeeEvent.fromSuiObjectData(res.data)];
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
ProtocolFeeEvent.$typeName = "".concat(index_1.PKG_V1, "::admin::ProtocolFeeEvent");
|
|
907
|
+
ProtocolFeeEvent.$numTypeParams = 0;
|
|
908
|
+
ProtocolFeeEvent.$isPhantom = [];
|
|
909
|
+
return ProtocolFeeEvent;
|
|
910
|
+
}());
|
|
911
|
+
exports.ProtocolFeeEvent = ProtocolFeeEvent;
|
|
@@ -11,6 +11,7 @@ export declare function baseTokenMismatched(tx: Transaction): import("@mysten/su
|
|
|
11
11
|
export declare function bidReceiptHasBeenExpired(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
12
12
|
export declare function bidReceiptNotExpired(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
13
13
|
export declare function bidReceiptNotItm(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
14
|
+
export declare function bidTokenMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
14
15
|
export declare function collateralTokenTypeMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
15
16
|
export declare function depositAmountInsufficient(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
16
17
|
export declare function depositTokenMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -12,6 +12,7 @@ exports.baseTokenMismatched = baseTokenMismatched;
|
|
|
12
12
|
exports.bidReceiptHasBeenExpired = bidReceiptHasBeenExpired;
|
|
13
13
|
exports.bidReceiptNotExpired = bidReceiptNotExpired;
|
|
14
14
|
exports.bidReceiptNotItm = bidReceiptNotItm;
|
|
15
|
+
exports.bidTokenMismatched = bidTokenMismatched;
|
|
15
16
|
exports.collateralTokenTypeMismatched = collateralTokenTypeMismatched;
|
|
16
17
|
exports.depositAmountInsufficient = depositAmountInsufficient;
|
|
17
18
|
exports.depositTokenMismatched = depositTokenMismatched;
|
|
@@ -103,6 +104,9 @@ function bidReceiptNotExpired(tx) {
|
|
|
103
104
|
function bidReceiptNotItm(tx) {
|
|
104
105
|
return tx.moveCall({ target: "".concat(__1.PUBLISHED_AT, "::error::bid_receipt_not_itm"), arguments: [] });
|
|
105
106
|
}
|
|
107
|
+
function bidTokenMismatched(tx) {
|
|
108
|
+
return tx.moveCall({ target: "".concat(__1.PUBLISHED_AT, "::error::bid_token_mismatched"), arguments: [] });
|
|
109
|
+
}
|
|
106
110
|
function collateralTokenTypeMismatched(tx) {
|
|
107
111
|
return tx.moveCall({ target: "".concat(__1.PUBLISHED_AT, "::error::collateral_token_type_mismatched"), arguments: [] });
|
|
108
112
|
}
|
|
@@ -45,7 +45,7 @@ export declare class UnsettledBidReceipt implements StructClass {
|
|
|
45
45
|
static reified(): UnsettledBidReceiptReified;
|
|
46
46
|
static get r(): reified.StructClassReified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
|
|
47
47
|
static phantom(): PhantomReified<ToTypeStr<UnsettledBidReceipt>>;
|
|
48
|
-
static get p(): reified.PhantomReified<"::escrow::UnsettledBidReceipt" | "
|
|
48
|
+
static get p(): reified.PhantomReified<"::escrow::UnsettledBidReceipt" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::escrow::UnsettledBidReceipt">;
|
|
49
49
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
50
50
|
receipt: {
|
|
51
51
|
id: {
|
|
@@ -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" ? "" : "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509";
|
|
6
|
+
exports.PUBLISHED_AT = index_1.NETWORK == "MAINNET" ? "" : "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509";
|
|
7
|
+
exports.PKG_V1 = index_1.NETWORK == "MAINNET" ? "" : "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509";
|
|
@@ -48,6 +48,7 @@ function registerClasses(loader) {
|
|
|
48
48
|
loader.register(admin.FeeInfo);
|
|
49
49
|
loader.register(admin.FeePool);
|
|
50
50
|
loader.register(admin.SendFeeEvent);
|
|
51
|
+
loader.register(admin.ProtocolFeeEvent);
|
|
51
52
|
loader.register(escrow.UnsettledBidReceipt);
|
|
52
53
|
loader.register(treasuryCaps.TreasuryCaps);
|
|
53
54
|
loader.register(tlp.LpRegistry);
|
|
@@ -85,7 +86,6 @@ function registerClasses(loader) {
|
|
|
85
86
|
loader.register(position.OrderFilledEvent);
|
|
86
87
|
loader.register(position.Position);
|
|
87
88
|
loader.register(position.RealizeFundingEvent);
|
|
88
|
-
loader.register(position.RealizedPnlEvent);
|
|
89
89
|
loader.register(position.RemovePositionEvent);
|
|
90
90
|
loader.register(position.TradingOrder);
|
|
91
91
|
loader.register(trading.AddTradingSymbolEvent);
|
|
@@ -106,6 +106,7 @@ function registerClasses(loader) {
|
|
|
106
106
|
loader.register(trading.Markets);
|
|
107
107
|
loader.register(trading.MatchTradingOrderEvent);
|
|
108
108
|
loader.register(trading.NewMarketsEvent);
|
|
109
|
+
loader.register(trading.RealizeOptionPositionEvent);
|
|
109
110
|
loader.register(trading.ReleaseCollateralEvent);
|
|
110
111
|
loader.register(trading.ResumeMarketEvent);
|
|
111
112
|
loader.register(trading.ResumeTradingSymbolEvent);
|
|
@@ -34,7 +34,7 @@ export declare class Config implements StructClass {
|
|
|
34
34
|
static reified(): ConfigReified;
|
|
35
35
|
static get r(): reified.StructClassReified<Config, ConfigFields>;
|
|
36
36
|
static phantom(): PhantomReified<ToTypeStr<Config>>;
|
|
37
|
-
static get p(): reified.PhantomReified<"::lp_pool::Config" | "
|
|
37
|
+
static get p(): reified.PhantomReified<"::lp_pool::Config" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::Config">;
|
|
38
38
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
39
39
|
oracle_id: string;
|
|
40
40
|
liquidity_token_decimal: string;
|
|
@@ -196,7 +196,7 @@ export declare class State implements StructClass {
|
|
|
196
196
|
static reified(): StateReified;
|
|
197
197
|
static get r(): reified.StructClassReified<State, StateFields>;
|
|
198
198
|
static phantom(): PhantomReified<ToTypeStr<State>>;
|
|
199
|
-
static get p(): reified.PhantomReified<"::lp_pool::State" | "
|
|
199
|
+
static get p(): reified.PhantomReified<"::lp_pool::State" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::State">;
|
|
200
200
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
201
201
|
liquidity_amount: string;
|
|
202
202
|
value_in_usd: string;
|
|
@@ -280,7 +280,7 @@ export declare class Registry implements StructClass {
|
|
|
280
280
|
static reified(): RegistryReified;
|
|
281
281
|
static get r(): reified.StructClassReified<Registry, RegistryFields>;
|
|
282
282
|
static phantom(): PhantomReified<ToTypeStr<Registry>>;
|
|
283
|
-
static get p(): reified.PhantomReified<"::lp_pool::Registry" | "
|
|
283
|
+
static get p(): reified.PhantomReified<"::lp_pool::Registry" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::Registry">;
|
|
284
284
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
285
285
|
id: {
|
|
286
286
|
id: {
|
|
@@ -356,7 +356,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
356
356
|
static reified(): AddLiquidityTokenEventReified;
|
|
357
357
|
static get r(): reified.StructClassReified<AddLiquidityTokenEvent, AddLiquidityTokenEventFields>;
|
|
358
358
|
static phantom(): PhantomReified<ToTypeStr<AddLiquidityTokenEvent>>;
|
|
359
|
-
static get p(): reified.PhantomReified<"::lp_pool::AddLiquidityTokenEvent" | "
|
|
359
|
+
static get p(): reified.PhantomReified<"::lp_pool::AddLiquidityTokenEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::AddLiquidityTokenEvent">;
|
|
360
360
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
361
361
|
sender: string;
|
|
362
362
|
index: string;
|
|
@@ -606,7 +606,7 @@ export declare class BurnLpEvent implements StructClass {
|
|
|
606
606
|
static reified(): BurnLpEventReified;
|
|
607
607
|
static get r(): reified.StructClassReified<BurnLpEvent, BurnLpEventFields>;
|
|
608
608
|
static phantom(): PhantomReified<ToTypeStr<BurnLpEvent>>;
|
|
609
|
-
static get p(): reified.PhantomReified<"::lp_pool::BurnLpEvent" | "
|
|
609
|
+
static get p(): reified.PhantomReified<"::lp_pool::BurnLpEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::BurnLpEvent">;
|
|
610
610
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
611
611
|
sender: string;
|
|
612
612
|
index: string;
|
|
@@ -718,7 +718,7 @@ export declare class CompleteRemoveLiquidityTokenProcessEvent implements StructC
|
|
|
718
718
|
static reified(): CompleteRemoveLiquidityTokenProcessEventReified;
|
|
719
719
|
static get r(): reified.StructClassReified<CompleteRemoveLiquidityTokenProcessEvent, CompleteRemoveLiquidityTokenProcessEventFields>;
|
|
720
720
|
static phantom(): PhantomReified<ToTypeStr<CompleteRemoveLiquidityTokenProcessEvent>>;
|
|
721
|
-
static get p(): reified.PhantomReified<"::lp_pool::CompleteRemoveLiquidityTokenProcessEvent" | "
|
|
721
|
+
static get p(): reified.PhantomReified<"::lp_pool::CompleteRemoveLiquidityTokenProcessEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::CompleteRemoveLiquidityTokenProcessEvent">;
|
|
722
722
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
723
723
|
index: string;
|
|
724
724
|
liquidity_token: {
|
|
@@ -808,7 +808,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
808
808
|
static reified(): LiquidityPoolReified;
|
|
809
809
|
static get r(): reified.StructClassReified<LiquidityPool, LiquidityPoolFields>;
|
|
810
810
|
static phantom(): PhantomReified<ToTypeStr<LiquidityPool>>;
|
|
811
|
-
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPool" | "
|
|
811
|
+
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPool" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::LiquidityPool">;
|
|
812
812
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
813
813
|
id: {
|
|
814
814
|
id: {
|
|
@@ -1250,7 +1250,7 @@ export declare class LiquidityPoolInfo implements StructClass {
|
|
|
1250
1250
|
static reified(): LiquidityPoolInfoReified;
|
|
1251
1251
|
static get r(): reified.StructClassReified<LiquidityPoolInfo, LiquidityPoolInfoFields>;
|
|
1252
1252
|
static phantom(): PhantomReified<ToTypeStr<LiquidityPoolInfo>>;
|
|
1253
|
-
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPoolInfo" | "
|
|
1253
|
+
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPoolInfo" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::LiquidityPoolInfo">;
|
|
1254
1254
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1255
1255
|
lp_token_decimal: string;
|
|
1256
1256
|
total_share_supply: string;
|
|
@@ -1316,7 +1316,7 @@ export declare class ManagerFlashRemoveLiquidityEvent implements StructClass {
|
|
|
1316
1316
|
static reified(): ManagerFlashRemoveLiquidityEventReified;
|
|
1317
1317
|
static get r(): reified.StructClassReified<ManagerFlashRemoveLiquidityEvent, ManagerFlashRemoveLiquidityEventFields>;
|
|
1318
1318
|
static phantom(): PhantomReified<ToTypeStr<ManagerFlashRemoveLiquidityEvent>>;
|
|
1319
|
-
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRemoveLiquidityEvent" | "
|
|
1319
|
+
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRemoveLiquidityEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ManagerFlashRemoveLiquidityEvent">;
|
|
1320
1320
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1321
1321
|
index: string;
|
|
1322
1322
|
liquidity_token: {
|
|
@@ -1410,7 +1410,7 @@ export declare class ManagerFlashRepayLiquidityEvent implements StructClass {
|
|
|
1410
1410
|
static reified(): ManagerFlashRepayLiquidityEventReified;
|
|
1411
1411
|
static get r(): reified.StructClassReified<ManagerFlashRepayLiquidityEvent, ManagerFlashRepayLiquidityEventFields>;
|
|
1412
1412
|
static phantom(): PhantomReified<ToTypeStr<ManagerFlashRepayLiquidityEvent>>;
|
|
1413
|
-
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRepayLiquidityEvent" | "
|
|
1413
|
+
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRepayLiquidityEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ManagerFlashRepayLiquidityEvent">;
|
|
1414
1414
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1415
1415
|
index: string;
|
|
1416
1416
|
liquidity_token: {
|
|
@@ -1506,7 +1506,7 @@ export declare class MarginConfig implements StructClass {
|
|
|
1506
1506
|
static reified(): MarginConfigReified;
|
|
1507
1507
|
static get r(): reified.StructClassReified<MarginConfig, MarginConfigFields>;
|
|
1508
1508
|
static phantom(): PhantomReified<ToTypeStr<MarginConfig>>;
|
|
1509
|
-
static get p(): reified.PhantomReified<"::lp_pool::MarginConfig" | "
|
|
1509
|
+
static get p(): reified.PhantomReified<"::lp_pool::MarginConfig" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::MarginConfig">;
|
|
1510
1510
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1511
1511
|
basic_borrow_rate_0: string;
|
|
1512
1512
|
basic_borrow_rate_1: string;
|
|
@@ -1594,7 +1594,7 @@ export declare class MintLpEvent implements StructClass {
|
|
|
1594
1594
|
static reified(): MintLpEventReified;
|
|
1595
1595
|
static get r(): reified.StructClassReified<MintLpEvent, MintLpEventFields>;
|
|
1596
1596
|
static phantom(): PhantomReified<ToTypeStr<MintLpEvent>>;
|
|
1597
|
-
static get p(): reified.PhantomReified<"::lp_pool::MintLpEvent" | "
|
|
1597
|
+
static get p(): reified.PhantomReified<"::lp_pool::MintLpEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::MintLpEvent">;
|
|
1598
1598
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1599
1599
|
sender: string;
|
|
1600
1600
|
index: string;
|
|
@@ -1706,7 +1706,7 @@ export declare class NewLiquidityPoolEvent implements StructClass {
|
|
|
1706
1706
|
static reified(): NewLiquidityPoolEventReified;
|
|
1707
1707
|
static get r(): reified.StructClassReified<NewLiquidityPoolEvent, NewLiquidityPoolEventFields>;
|
|
1708
1708
|
static phantom(): PhantomReified<ToTypeStr<NewLiquidityPoolEvent>>;
|
|
1709
|
-
static get p(): reified.PhantomReified<"::lp_pool::NewLiquidityPoolEvent" | "
|
|
1709
|
+
static get p(): reified.PhantomReified<"::lp_pool::NewLiquidityPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::NewLiquidityPoolEvent">;
|
|
1710
1710
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1711
1711
|
sender: string;
|
|
1712
1712
|
index: string;
|
|
@@ -1792,7 +1792,7 @@ export declare class RemoveLiquidityTokenProcess implements StructClass {
|
|
|
1792
1792
|
static reified(): RemoveLiquidityTokenProcessReified;
|
|
1793
1793
|
static get r(): reified.StructClassReified<RemoveLiquidityTokenProcess, RemoveLiquidityTokenProcessFields>;
|
|
1794
1794
|
static phantom(): PhantomReified<ToTypeStr<RemoveLiquidityTokenProcess>>;
|
|
1795
|
-
static get p(): reified.PhantomReified<"::lp_pool::RemoveLiquidityTokenProcess" | "
|
|
1795
|
+
static get p(): reified.PhantomReified<"::lp_pool::RemoveLiquidityTokenProcess" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::RemoveLiquidityTokenProcess">;
|
|
1796
1796
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1797
1797
|
liquidity_token: {
|
|
1798
1798
|
name: {
|
|
@@ -1908,7 +1908,7 @@ export declare class ResumePoolEvent implements StructClass {
|
|
|
1908
1908
|
static reified(): ResumePoolEventReified;
|
|
1909
1909
|
static get r(): reified.StructClassReified<ResumePoolEvent, ResumePoolEventFields>;
|
|
1910
1910
|
static phantom(): PhantomReified<ToTypeStr<ResumePoolEvent>>;
|
|
1911
|
-
static get p(): reified.PhantomReified<"::lp_pool::ResumePoolEvent" | "
|
|
1911
|
+
static get p(): reified.PhantomReified<"::lp_pool::ResumePoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ResumePoolEvent">;
|
|
1912
1912
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1913
1913
|
sender: string;
|
|
1914
1914
|
index: string;
|
|
@@ -1966,7 +1966,7 @@ export declare class ResumeTokenPoolEvent implements StructClass {
|
|
|
1966
1966
|
static reified(): ResumeTokenPoolEventReified;
|
|
1967
1967
|
static get r(): reified.StructClassReified<ResumeTokenPoolEvent, ResumeTokenPoolEventFields>;
|
|
1968
1968
|
static phantom(): PhantomReified<ToTypeStr<ResumeTokenPoolEvent>>;
|
|
1969
|
-
static get p(): reified.PhantomReified<"::lp_pool::ResumeTokenPoolEvent" | "
|
|
1969
|
+
static get p(): reified.PhantomReified<"::lp_pool::ResumeTokenPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ResumeTokenPoolEvent">;
|
|
1970
1970
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1971
1971
|
sender: string;
|
|
1972
1972
|
index: string;
|
|
@@ -2054,7 +2054,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2054
2054
|
static reified(): SpotConfigReified;
|
|
2055
2055
|
static get r(): reified.StructClassReified<SpotConfig, SpotConfigFields>;
|
|
2056
2056
|
static phantom(): PhantomReified<ToTypeStr<SpotConfig>>;
|
|
2057
|
-
static get p(): reified.PhantomReified<"::lp_pool::SpotConfig" | "
|
|
2057
|
+
static get p(): reified.PhantomReified<"::lp_pool::SpotConfig" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SpotConfig">;
|
|
2058
2058
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2059
2059
|
min_deposit: string;
|
|
2060
2060
|
max_capacity: string;
|
|
@@ -2138,7 +2138,7 @@ export declare class StartRemoveLiquidityTokenProcessEvent implements StructClas
|
|
|
2138
2138
|
static reified(): StartRemoveLiquidityTokenProcessEventReified;
|
|
2139
2139
|
static get r(): reified.StructClassReified<StartRemoveLiquidityTokenProcessEvent, StartRemoveLiquidityTokenProcessEventFields>;
|
|
2140
2140
|
static phantom(): PhantomReified<ToTypeStr<StartRemoveLiquidityTokenProcessEvent>>;
|
|
2141
|
-
static get p(): reified.PhantomReified<"::lp_pool::StartRemoveLiquidityTokenProcessEvent" | "
|
|
2141
|
+
static get p(): reified.PhantomReified<"::lp_pool::StartRemoveLiquidityTokenProcessEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::StartRemoveLiquidityTokenProcessEvent">;
|
|
2142
2142
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2143
2143
|
index: string;
|
|
2144
2144
|
liquidity_token: {
|
|
@@ -2208,7 +2208,7 @@ export declare class SuspendPoolEvent implements StructClass {
|
|
|
2208
2208
|
static reified(): SuspendPoolEventReified;
|
|
2209
2209
|
static get r(): reified.StructClassReified<SuspendPoolEvent, SuspendPoolEventFields>;
|
|
2210
2210
|
static phantom(): PhantomReified<ToTypeStr<SuspendPoolEvent>>;
|
|
2211
|
-
static get p(): reified.PhantomReified<"::lp_pool::SuspendPoolEvent" | "
|
|
2211
|
+
static get p(): reified.PhantomReified<"::lp_pool::SuspendPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SuspendPoolEvent">;
|
|
2212
2212
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2213
2213
|
sender: string;
|
|
2214
2214
|
index: string;
|
|
@@ -2266,7 +2266,7 @@ export declare class SuspendTokenPoolEvent implements StructClass {
|
|
|
2266
2266
|
static reified(): SuspendTokenPoolEventReified;
|
|
2267
2267
|
static get r(): reified.StructClassReified<SuspendTokenPoolEvent, SuspendTokenPoolEventFields>;
|
|
2268
2268
|
static phantom(): PhantomReified<ToTypeStr<SuspendTokenPoolEvent>>;
|
|
2269
|
-
static get p(): reified.PhantomReified<"::lp_pool::SuspendTokenPoolEvent" | "
|
|
2269
|
+
static get p(): reified.PhantomReified<"::lp_pool::SuspendTokenPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SuspendTokenPoolEvent">;
|
|
2270
2270
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2271
2271
|
sender: string;
|
|
2272
2272
|
index: string;
|
|
@@ -2358,7 +2358,7 @@ export declare class SwapEvent implements StructClass {
|
|
|
2358
2358
|
static reified(): SwapEventReified;
|
|
2359
2359
|
static get r(): reified.StructClassReified<SwapEvent, SwapEventFields>;
|
|
2360
2360
|
static phantom(): PhantomReified<ToTypeStr<SwapEvent>>;
|
|
2361
|
-
static get p(): reified.PhantomReified<"::lp_pool::SwapEvent" | "
|
|
2361
|
+
static get p(): reified.PhantomReified<"::lp_pool::SwapEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SwapEvent">;
|
|
2362
2362
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2363
2363
|
sender: string;
|
|
2364
2364
|
index: string;
|
|
@@ -2478,7 +2478,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2478
2478
|
static reified(): TokenPoolReified;
|
|
2479
2479
|
static get r(): reified.StructClassReified<TokenPool, TokenPoolFields>;
|
|
2480
2480
|
static phantom(): PhantomReified<ToTypeStr<TokenPool>>;
|
|
2481
|
-
static get p(): reified.PhantomReified<"::lp_pool::TokenPool" | "
|
|
2481
|
+
static get p(): reified.PhantomReified<"::lp_pool::TokenPool" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::TokenPool">;
|
|
2482
2482
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2483
2483
|
token_type: {
|
|
2484
2484
|
name: {
|
|
@@ -2712,7 +2712,7 @@ export declare class UpdateBorrowInfoEvent implements StructClass {
|
|
|
2712
2712
|
static reified(): UpdateBorrowInfoEventReified;
|
|
2713
2713
|
static get r(): reified.StructClassReified<UpdateBorrowInfoEvent, UpdateBorrowInfoEventFields>;
|
|
2714
2714
|
static phantom(): PhantomReified<ToTypeStr<UpdateBorrowInfoEvent>>;
|
|
2715
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateBorrowInfoEvent" | "
|
|
2715
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateBorrowInfoEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateBorrowInfoEvent">;
|
|
2716
2716
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2717
2717
|
index: string;
|
|
2718
2718
|
liquidity_token_type: {
|
|
@@ -2810,7 +2810,7 @@ export declare class UpdateLiquidityValueEvent implements StructClass {
|
|
|
2810
2810
|
static reified(): UpdateLiquidityValueEventReified;
|
|
2811
2811
|
static get r(): reified.StructClassReified<UpdateLiquidityValueEvent, UpdateLiquidityValueEventFields>;
|
|
2812
2812
|
static phantom(): PhantomReified<ToTypeStr<UpdateLiquidityValueEvent>>;
|
|
2813
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateLiquidityValueEvent" | "
|
|
2813
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateLiquidityValueEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateLiquidityValueEvent">;
|
|
2814
2814
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2815
2815
|
sender: string;
|
|
2816
2816
|
index: string;
|
|
@@ -2902,7 +2902,7 @@ export declare class UpdateMarginConfigEvent implements StructClass {
|
|
|
2902
2902
|
static reified(): UpdateMarginConfigEventReified;
|
|
2903
2903
|
static get r(): reified.StructClassReified<UpdateMarginConfigEvent, UpdateMarginConfigEventFields>;
|
|
2904
2904
|
static phantom(): PhantomReified<ToTypeStr<UpdateMarginConfigEvent>>;
|
|
2905
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateMarginConfigEvent" | "
|
|
2905
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateMarginConfigEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateMarginConfigEvent">;
|
|
2906
2906
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2907
2907
|
sender: string;
|
|
2908
2908
|
index: string;
|
|
@@ -3066,7 +3066,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3066
3066
|
static reified(): UpdateSpotConfigEventReified;
|
|
3067
3067
|
static get r(): reified.StructClassReified<UpdateSpotConfigEvent, UpdateSpotConfigEventFields>;
|
|
3068
3068
|
static phantom(): PhantomReified<ToTypeStr<UpdateSpotConfigEvent>>;
|
|
3069
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateSpotConfigEvent" | "
|
|
3069
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateSpotConfigEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateSpotConfigEvent">;
|
|
3070
3070
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3071
3071
|
sender: string;
|
|
3072
3072
|
index: string;
|