@typus/typus-perp-sdk 1.0.58 → 1.0.59-leaderboard-b
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.d.ts +11 -2
- package/dist/src/api/sentio.js +56 -28
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +3 -2
- package/dist/src/typus_perp/admin/functions.d.ts +10 -0
- package/dist/src/typus_perp/admin/functions.js +17 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +92 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +3 -0
- package/dist/src/typus_perp/error/functions.js +15 -0
- package/dist/src/typus_perp/position/functions.d.ts +8 -0
- package/dist/src/typus_perp/position/functions.js +8 -0
- package/dist/src/typus_perp/trading/functions.d.ts +156 -0
- package/dist/src/typus_perp/trading/functions.js +216 -0
- package/dist/src/typus_perp/trading/structs.d.ts +127 -0
- package/dist/src/typus_perp/trading/structs.js +395 -204
- package/dist/src/user/order.js +3 -1
- package/dist/src/user/orderWithBidReceipt.js +6 -2
- package/package.json +2 -2
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
47
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
48
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
50
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
51
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
52
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
56
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
57
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
58
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
59
|
+
function step(op) {
|
|
60
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
61
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
62
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
63
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
64
|
+
switch (op[0]) {
|
|
65
|
+
case 0: case 1: t = op; break;
|
|
66
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
67
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
68
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
69
|
+
default:
|
|
70
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
71
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
72
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
73
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
74
|
+
if (t[2]) _.ops.pop();
|
|
75
|
+
_.trys.pop(); continue;
|
|
76
|
+
}
|
|
77
|
+
op = body.call(thisArg, _);
|
|
78
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
79
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
83
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
84
|
+
if (!m) return o;
|
|
85
|
+
var i = m.call(o), r, ar = [], e;
|
|
86
|
+
try {
|
|
87
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
88
|
+
}
|
|
89
|
+
catch (error) { e = { error: error }; }
|
|
90
|
+
finally {
|
|
91
|
+
try {
|
|
92
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
93
|
+
}
|
|
94
|
+
finally { if (e) throw e.error; }
|
|
95
|
+
}
|
|
96
|
+
return ar;
|
|
97
|
+
};
|
|
98
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
99
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
100
|
+
if (ar || !(i in from)) {
|
|
101
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
102
|
+
ar[i] = from[i];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
106
|
+
};
|
|
107
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108
|
+
exports.CompetitionConfig = void 0;
|
|
109
|
+
exports.isCompetitionConfig = isCompetitionConfig;
|
|
110
|
+
var reified = __importStar(require("../../_framework/reified"));
|
|
111
|
+
var structs_1 = require("../../_dependencies/source/0x1/ascii/structs");
|
|
112
|
+
var structs_2 = require("../../_dependencies/source/0x2/object/structs");
|
|
113
|
+
var reified_1 = require("../../_framework/reified");
|
|
114
|
+
var util_1 = require("../../_framework/util");
|
|
115
|
+
var index_1 = require("../index");
|
|
116
|
+
var bcs_1 = require("@mysten/sui/bcs");
|
|
117
|
+
var utils_1 = require("@mysten/sui/utils");
|
|
118
|
+
/* ============================== CompetitionConfig =============================== */
|
|
119
|
+
function isCompetitionConfig(type) {
|
|
120
|
+
type = (0, util_1.compressSuiType)(type);
|
|
121
|
+
return type === "".concat(index_1.PKG_V1, "::competition::CompetitionConfig");
|
|
122
|
+
}
|
|
123
|
+
var CompetitionConfig = /** @class */ (function () {
|
|
124
|
+
function CompetitionConfig(typeArgs, fields) {
|
|
125
|
+
this.__StructClass = true;
|
|
126
|
+
this.$typeName = CompetitionConfig.$typeName;
|
|
127
|
+
this.$isPhantom = CompetitionConfig.$isPhantom;
|
|
128
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CompetitionConfig.$typeName], __read(typeArgs), false));
|
|
129
|
+
this.$typeArgs = typeArgs;
|
|
130
|
+
this.id = fields.id;
|
|
131
|
+
this.boostBp = fields.boostBp;
|
|
132
|
+
this.isActive = fields.isActive;
|
|
133
|
+
this.programName = fields.programName;
|
|
134
|
+
this.u64Padding = fields.u64Padding;
|
|
135
|
+
}
|
|
136
|
+
CompetitionConfig.reified = function () {
|
|
137
|
+
var _this = this;
|
|
138
|
+
return {
|
|
139
|
+
typeName: CompetitionConfig.$typeName,
|
|
140
|
+
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CompetitionConfig.$typeName], [], false)),
|
|
141
|
+
typeArgs: [],
|
|
142
|
+
isPhantom: CompetitionConfig.$isPhantom,
|
|
143
|
+
reifiedTypeArgs: [],
|
|
144
|
+
fromFields: function (fields) { return CompetitionConfig.fromFields(fields); },
|
|
145
|
+
fromFieldsWithTypes: function (item) { return CompetitionConfig.fromFieldsWithTypes(item); },
|
|
146
|
+
fromBcs: function (data) { return CompetitionConfig.fromBcs(data); },
|
|
147
|
+
bcs: CompetitionConfig.bcs,
|
|
148
|
+
fromJSONField: function (field) { return CompetitionConfig.fromJSONField(field); },
|
|
149
|
+
fromJSON: function (json) { return CompetitionConfig.fromJSON(json); },
|
|
150
|
+
fromSuiParsedData: function (content) { return CompetitionConfig.fromSuiParsedData(content); },
|
|
151
|
+
fromSuiObjectData: function (content) { return CompetitionConfig.fromSuiObjectData(content); },
|
|
152
|
+
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
153
|
+
return [2 /*return*/, CompetitionConfig.fetch(client, id)];
|
|
154
|
+
}); }); },
|
|
155
|
+
new: function (fields) {
|
|
156
|
+
return new CompetitionConfig([], fields);
|
|
157
|
+
},
|
|
158
|
+
kind: "StructClassReified",
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
Object.defineProperty(CompetitionConfig, "r", {
|
|
162
|
+
get: function () {
|
|
163
|
+
return CompetitionConfig.reified();
|
|
164
|
+
},
|
|
165
|
+
enumerable: false,
|
|
166
|
+
configurable: true
|
|
167
|
+
});
|
|
168
|
+
CompetitionConfig.phantom = function () {
|
|
169
|
+
return (0, reified_1.phantom)(CompetitionConfig.reified());
|
|
170
|
+
};
|
|
171
|
+
Object.defineProperty(CompetitionConfig, "p", {
|
|
172
|
+
get: function () {
|
|
173
|
+
return CompetitionConfig.phantom();
|
|
174
|
+
},
|
|
175
|
+
enumerable: false,
|
|
176
|
+
configurable: true
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(CompetitionConfig, "bcs", {
|
|
179
|
+
get: function () {
|
|
180
|
+
return bcs_1.bcs.struct("CompetitionConfig", {
|
|
181
|
+
id: structs_2.UID.bcs,
|
|
182
|
+
boost_bp: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
183
|
+
is_active: bcs_1.bcs.bool(),
|
|
184
|
+
program_name: structs_1.String.bcs,
|
|
185
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
enumerable: false,
|
|
189
|
+
configurable: true
|
|
190
|
+
});
|
|
191
|
+
CompetitionConfig.fromFields = function (fields) {
|
|
192
|
+
return CompetitionConfig.reified().new({
|
|
193
|
+
id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
|
|
194
|
+
boostBp: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.boost_bp),
|
|
195
|
+
isActive: (0, reified_1.decodeFromFields)("bool", fields.is_active),
|
|
196
|
+
programName: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.program_name),
|
|
197
|
+
u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
CompetitionConfig.fromFieldsWithTypes = function (item) {
|
|
201
|
+
if (!isCompetitionConfig(item.type)) {
|
|
202
|
+
throw new Error("not a CompetitionConfig type");
|
|
203
|
+
}
|
|
204
|
+
return CompetitionConfig.reified().new({
|
|
205
|
+
id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
|
|
206
|
+
boostBp: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.boost_bp),
|
|
207
|
+
isActive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_active),
|
|
208
|
+
programName: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.program_name),
|
|
209
|
+
u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
CompetitionConfig.fromBcs = function (data) {
|
|
213
|
+
return CompetitionConfig.fromFields(CompetitionConfig.bcs.parse(data));
|
|
214
|
+
};
|
|
215
|
+
CompetitionConfig.prototype.toJSONField = function () {
|
|
216
|
+
return {
|
|
217
|
+
id: this.id,
|
|
218
|
+
boostBp: (0, reified_1.fieldToJSON)("vector<u64>", this.boostBp),
|
|
219
|
+
isActive: this.isActive,
|
|
220
|
+
programName: this.programName,
|
|
221
|
+
u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
CompetitionConfig.prototype.toJSON = function () {
|
|
225
|
+
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
226
|
+
};
|
|
227
|
+
CompetitionConfig.fromJSONField = function (field) {
|
|
228
|
+
return CompetitionConfig.reified().new({
|
|
229
|
+
id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
|
|
230
|
+
boostBp: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.boostBp),
|
|
231
|
+
isActive: (0, reified_1.decodeFromJSONField)("bool", field.isActive),
|
|
232
|
+
programName: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.programName),
|
|
233
|
+
u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
CompetitionConfig.fromJSON = function (json) {
|
|
237
|
+
if (json.$typeName !== CompetitionConfig.$typeName) {
|
|
238
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
239
|
+
}
|
|
240
|
+
return CompetitionConfig.fromJSONField(json);
|
|
241
|
+
};
|
|
242
|
+
CompetitionConfig.fromSuiParsedData = function (content) {
|
|
243
|
+
if (content.dataType !== "moveObject") {
|
|
244
|
+
throw new Error("not an object");
|
|
245
|
+
}
|
|
246
|
+
if (!isCompetitionConfig(content.type)) {
|
|
247
|
+
throw new Error("object at ".concat(content.fields.id, " is not a CompetitionConfig object"));
|
|
248
|
+
}
|
|
249
|
+
return CompetitionConfig.fromFieldsWithTypes(content);
|
|
250
|
+
};
|
|
251
|
+
CompetitionConfig.fromSuiObjectData = function (data) {
|
|
252
|
+
if (data.bcs) {
|
|
253
|
+
if (data.bcs.dataType !== "moveObject" || !isCompetitionConfig(data.bcs.type)) {
|
|
254
|
+
throw new Error("object at is not a CompetitionConfig object");
|
|
255
|
+
}
|
|
256
|
+
return CompetitionConfig.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
257
|
+
}
|
|
258
|
+
if (data.content) {
|
|
259
|
+
return CompetitionConfig.fromSuiParsedData(data.content);
|
|
260
|
+
}
|
|
261
|
+
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
262
|
+
};
|
|
263
|
+
CompetitionConfig.fetch = function (client, id) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
265
|
+
var res;
|
|
266
|
+
var _a, _b;
|
|
267
|
+
return __generator(this, function (_c) {
|
|
268
|
+
switch (_c.label) {
|
|
269
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
270
|
+
case 1:
|
|
271
|
+
res = _c.sent();
|
|
272
|
+
if (res.error) {
|
|
273
|
+
throw new Error("error fetching CompetitionConfig object at id ".concat(id, ": ").concat(res.error.code));
|
|
274
|
+
}
|
|
275
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCompetitionConfig(res.data.bcs.type)) {
|
|
276
|
+
throw new Error("object at id ".concat(id, " is not a CompetitionConfig object"));
|
|
277
|
+
}
|
|
278
|
+
return [2 /*return*/, CompetitionConfig.fromSuiObjectData(res.data)];
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
CompetitionConfig.$typeName = "".concat(index_1.PKG_V1, "::competition::CompetitionConfig");
|
|
284
|
+
CompetitionConfig.$numTypeParams = 0;
|
|
285
|
+
CompetitionConfig.$isPhantom = [];
|
|
286
|
+
return CompetitionConfig;
|
|
287
|
+
}());
|
|
288
|
+
exports.CompetitionConfig = CompetitionConfig;
|
|
@@ -15,11 +15,14 @@ export declare function collateralTokenTypeMismatched(tx: Transaction, published
|
|
|
15
15
|
export declare function depositAmountInsufficient(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
16
16
|
export declare function depositTokenMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
17
|
export declare function exceedMaxLeverage(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
18
|
+
export declare function exceedMaxOpenInterest(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
18
19
|
export declare function frictionTooLarge(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
19
20
|
export declare function insufficientAmountForMintFee(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
20
21
|
export declare function invalidBidReceiptsInput(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
22
|
+
export declare function invalidBoostBpArrayLength(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
21
23
|
export declare function invalidOrderSide(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
22
24
|
export declare function invalidOrderSize(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
25
|
+
export declare function invalidTokenType(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
23
26
|
export declare function invalidTradingFeeConfig(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
24
27
|
export declare function invalidVersion(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
25
28
|
export declare function linkedOrderIdNotExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -16,11 +16,14 @@ exports.collateralTokenTypeMismatched = collateralTokenTypeMismatched;
|
|
|
16
16
|
exports.depositAmountInsufficient = depositAmountInsufficient;
|
|
17
17
|
exports.depositTokenMismatched = depositTokenMismatched;
|
|
18
18
|
exports.exceedMaxLeverage = exceedMaxLeverage;
|
|
19
|
+
exports.exceedMaxOpenInterest = exceedMaxOpenInterest;
|
|
19
20
|
exports.frictionTooLarge = frictionTooLarge;
|
|
20
21
|
exports.insufficientAmountForMintFee = insufficientAmountForMintFee;
|
|
21
22
|
exports.invalidBidReceiptsInput = invalidBidReceiptsInput;
|
|
23
|
+
exports.invalidBoostBpArrayLength = invalidBoostBpArrayLength;
|
|
22
24
|
exports.invalidOrderSide = invalidOrderSide;
|
|
23
25
|
exports.invalidOrderSize = invalidOrderSize;
|
|
26
|
+
exports.invalidTokenType = invalidTokenType;
|
|
24
27
|
exports.invalidTradingFeeConfig = invalidTradingFeeConfig;
|
|
25
28
|
exports.invalidVersion = invalidVersion;
|
|
26
29
|
exports.linkedOrderIdNotExisted = linkedOrderIdNotExisted;
|
|
@@ -132,6 +135,10 @@ function exceedMaxLeverage(tx, published_at) {
|
|
|
132
135
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
133
136
|
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_leverage"), arguments: [] });
|
|
134
137
|
}
|
|
138
|
+
function exceedMaxOpenInterest(tx, published_at) {
|
|
139
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
140
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_open_interest"), arguments: [] });
|
|
141
|
+
}
|
|
135
142
|
function frictionTooLarge(tx, published_at) {
|
|
136
143
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
137
144
|
return tx.moveCall({ target: "".concat(published_at, "::error::friction_too_large"), arguments: [] });
|
|
@@ -144,6 +151,10 @@ function invalidBidReceiptsInput(tx, published_at) {
|
|
|
144
151
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
145
152
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_bid_receipts_input"), arguments: [] });
|
|
146
153
|
}
|
|
154
|
+
function invalidBoostBpArrayLength(tx, published_at) {
|
|
155
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
156
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_boost_bp_array_length"), arguments: [] });
|
|
157
|
+
}
|
|
147
158
|
function invalidOrderSide(tx, published_at) {
|
|
148
159
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
149
160
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_side"), arguments: [] });
|
|
@@ -152,6 +163,10 @@ function invalidOrderSize(tx, published_at) {
|
|
|
152
163
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
153
164
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_size"), arguments: [] });
|
|
154
165
|
}
|
|
166
|
+
function invalidTokenType(tx, published_at) {
|
|
167
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
168
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_token_type"), arguments: [] });
|
|
169
|
+
}
|
|
155
170
|
function invalidTradingFeeConfig(tx, published_at) {
|
|
156
171
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
157
172
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_trading_fee_config"), arguments: [] });
|
|
@@ -268,6 +268,10 @@ export interface OptionPositionBidReceiptsExpiredArgs {
|
|
|
268
268
|
export declare function optionPositionBidReceiptsExpired(tx: Transaction, args: OptionPositionBidReceiptsExpiredArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
269
269
|
export interface OrderFilledArgs {
|
|
270
270
|
version: TransactionObjectInput;
|
|
271
|
+
ecosystemVersion: TransactionObjectInput;
|
|
272
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
273
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
274
|
+
competitionConfig: TransactionObjectInput;
|
|
271
275
|
order: TransactionObjectInput;
|
|
272
276
|
originalPosition: TransactionObjectInput | TransactionArgument | null;
|
|
273
277
|
nextPositionId: bigint | TransactionArgument;
|
|
@@ -284,6 +288,10 @@ export interface OrderFilledArgs {
|
|
|
284
288
|
export declare function orderFilled(tx: Transaction, typeArg: string, args: OrderFilledArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
285
289
|
export interface OrderFilledWithBidReceiptsCollateralArgs {
|
|
286
290
|
version: TransactionObjectInput;
|
|
291
|
+
ecosystemVersion: TransactionObjectInput;
|
|
292
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
293
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
294
|
+
competitionConfig: TransactionObjectInput;
|
|
287
295
|
liquidityPool: TransactionObjectInput;
|
|
288
296
|
dovRegistry: TransactionObjectInput;
|
|
289
297
|
typusOracleTradingSymbol: TransactionObjectInput;
|
|
@@ -559,6 +559,10 @@ function orderFilled(tx, typeArg, args, published_at) {
|
|
|
559
559
|
typeArguments: [typeArg],
|
|
560
560
|
arguments: [
|
|
561
561
|
(0, util_1.obj)(tx, args.version),
|
|
562
|
+
(0, util_1.obj)(tx, args.ecosystemVersion),
|
|
563
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
564
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
565
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
562
566
|
(0, util_1.obj)(tx, args.order),
|
|
563
567
|
(0, util_1.option)(tx, "".concat(structs_3.Position.$typeName), args.originalPosition),
|
|
564
568
|
(0, util_1.pure)(tx, args.nextPositionId, "u64"),
|
|
@@ -581,6 +585,10 @@ function orderFilledWithBidReceiptsCollateral(tx, typeArgs, args, published_at)
|
|
|
581
585
|
typeArguments: typeArgs,
|
|
582
586
|
arguments: [
|
|
583
587
|
(0, util_1.obj)(tx, args.version),
|
|
588
|
+
(0, util_1.obj)(tx, args.ecosystemVersion),
|
|
589
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
590
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
591
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
584
592
|
(0, util_1.obj)(tx, args.liquidityPool),
|
|
585
593
|
(0, util_1.obj)(tx, args.dovRegistry),
|
|
586
594
|
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
@@ -115,6 +115,29 @@ export interface CreateTradingOrderArgs {
|
|
|
115
115
|
triggerPrice: bigint | TransactionArgument;
|
|
116
116
|
}
|
|
117
117
|
export declare function createTradingOrder(tx: Transaction, typeArgs: [string, string], args: CreateTradingOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
118
|
+
export interface CreateTradingOrderV2Args {
|
|
119
|
+
version: TransactionObjectInput;
|
|
120
|
+
registry: TransactionObjectInput;
|
|
121
|
+
poolRegistry: TransactionObjectInput;
|
|
122
|
+
typusOracleCToken: TransactionObjectInput;
|
|
123
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
124
|
+
clock: TransactionObjectInput;
|
|
125
|
+
marketIndex: bigint | TransactionArgument;
|
|
126
|
+
poolIndex: bigint | TransactionArgument;
|
|
127
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
128
|
+
typusUserRegistry: TransactionObjectInput;
|
|
129
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
130
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
131
|
+
competitionConfig: TransactionObjectInput;
|
|
132
|
+
linkedPositionId: bigint | TransactionArgument | TransactionArgument | null;
|
|
133
|
+
collateral: TransactionObjectInput;
|
|
134
|
+
reduceOnly: boolean | TransactionArgument;
|
|
135
|
+
isLong: boolean | TransactionArgument;
|
|
136
|
+
isStopOrder: boolean | TransactionArgument;
|
|
137
|
+
size: bigint | TransactionArgument;
|
|
138
|
+
triggerPrice: bigint | TransactionArgument;
|
|
139
|
+
}
|
|
140
|
+
export declare function createTradingOrderV2(tx: Transaction, typeArgs: [string, string], args: CreateTradingOrderV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
118
141
|
export interface CreateTradingOrderWithBidReceiptArgs {
|
|
119
142
|
version: TransactionObjectInput;
|
|
120
143
|
registry: TransactionObjectInput;
|
|
@@ -133,6 +156,27 @@ export interface CreateTradingOrderWithBidReceiptArgs {
|
|
|
133
156
|
user: string | TransactionArgument;
|
|
134
157
|
}
|
|
135
158
|
export declare function createTradingOrderWithBidReceipt(tx: Transaction, typeArgs: [string, string, string], args: CreateTradingOrderWithBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
159
|
+
export interface CreateTradingOrderWithBidReceiptV2Args {
|
|
160
|
+
version: TransactionObjectInput;
|
|
161
|
+
registry: TransactionObjectInput;
|
|
162
|
+
poolRegistry: TransactionObjectInput;
|
|
163
|
+
dovRegistry: TransactionObjectInput;
|
|
164
|
+
typusOracleCToken: TransactionObjectInput;
|
|
165
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
166
|
+
clock: TransactionObjectInput;
|
|
167
|
+
marketIndex: bigint | TransactionArgument;
|
|
168
|
+
poolIndex: bigint | TransactionArgument;
|
|
169
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
170
|
+
typusUserRegistry: TransactionObjectInput;
|
|
171
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
172
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
173
|
+
competitionConfig: TransactionObjectInput;
|
|
174
|
+
collateralBidReceipt: TransactionObjectInput;
|
|
175
|
+
isLong: boolean | TransactionArgument;
|
|
176
|
+
user: string | TransactionArgument;
|
|
177
|
+
}
|
|
178
|
+
export declare function createTradingOrderWithBidReceiptV2(tx: Transaction, typeArgs: [string, string, string], args: CreateTradingOrderWithBidReceiptV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
179
|
+
export declare function deprecated(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
136
180
|
export interface ExecuteOptionCollateralOrder_Args {
|
|
137
181
|
version: TransactionObjectInput;
|
|
138
182
|
dovRegistry: TransactionObjectInput;
|
|
@@ -150,6 +194,8 @@ export interface ExecuteOptionCollateralOrder_Args {
|
|
|
150
194
|
typusEcosystemVersion: TransactionObjectInput;
|
|
151
195
|
typusUserRegistry: TransactionObjectInput;
|
|
152
196
|
typusLeaderboardRegistry: TransactionObjectInput;
|
|
197
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
198
|
+
competitionConfig: TransactionObjectInput;
|
|
153
199
|
clock: TransactionObjectInput;
|
|
154
200
|
}
|
|
155
201
|
export declare function executeOptionCollateralOrder_(tx: Transaction, typeArgs: [string, string], args: ExecuteOptionCollateralOrder_Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -168,6 +214,8 @@ export interface ExecuteOrder_Args {
|
|
|
168
214
|
typusEcosystemVersion: TransactionObjectInput;
|
|
169
215
|
typusUserRegistry: TransactionObjectInput;
|
|
170
216
|
typusLeaderboardRegistry: TransactionObjectInput;
|
|
217
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
218
|
+
competitionConfig: TransactionObjectInput;
|
|
171
219
|
clock: TransactionObjectInput;
|
|
172
220
|
}
|
|
173
221
|
export declare function executeOrder_(tx: Transaction, typeArg: string, args: ExecuteOrder_Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -301,6 +349,18 @@ export interface LiquidateArgs {
|
|
|
301
349
|
positionId: bigint | TransactionArgument;
|
|
302
350
|
}
|
|
303
351
|
export declare function liquidate(tx: Transaction, typeArgs: [string, string, string], args: LiquidateArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
352
|
+
export interface ManagerCancelOrderByOpenInterestLimitArgs {
|
|
353
|
+
version: TransactionObjectInput;
|
|
354
|
+
registry: TransactionObjectInput;
|
|
355
|
+
poolRegistry: TransactionObjectInput;
|
|
356
|
+
clock: TransactionObjectInput;
|
|
357
|
+
marketIndex: bigint | TransactionArgument;
|
|
358
|
+
poolIndex: bigint | TransactionArgument;
|
|
359
|
+
orderTypeTag: number | TransactionArgument;
|
|
360
|
+
triggerPrice: bigint | TransactionArgument;
|
|
361
|
+
maxOperationCount: bigint | TransactionArgument;
|
|
362
|
+
}
|
|
363
|
+
export declare function managerCancelOrderByOpenInterestLimit(tx: Transaction, typeArgs: [string, string], args: ManagerCancelOrderByOpenInterestLimitArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
304
364
|
export interface ManagerCloseOptionPositionArgs {
|
|
305
365
|
version: TransactionObjectInput;
|
|
306
366
|
registry: TransactionObjectInput;
|
|
@@ -317,6 +377,24 @@ export interface ManagerCloseOptionPositionArgs {
|
|
|
317
377
|
positionId: bigint | TransactionArgument;
|
|
318
378
|
}
|
|
319
379
|
export declare function managerCloseOptionPosition(tx: Transaction, typeArgs: [string, string, string], args: ManagerCloseOptionPositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
380
|
+
export interface ManagerCloseOptionPositionV2Args {
|
|
381
|
+
version: TransactionObjectInput;
|
|
382
|
+
registry: TransactionObjectInput;
|
|
383
|
+
poolRegistry: TransactionObjectInput;
|
|
384
|
+
dovRegistry: TransactionObjectInput;
|
|
385
|
+
typusOracleCToken: TransactionObjectInput;
|
|
386
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
387
|
+
clock: TransactionObjectInput;
|
|
388
|
+
marketIndex: bigint | TransactionArgument;
|
|
389
|
+
poolIndex: bigint | TransactionArgument;
|
|
390
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
391
|
+
typusUserRegistry: TransactionObjectInput;
|
|
392
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
393
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
394
|
+
competitionConfig: TransactionObjectInput;
|
|
395
|
+
positionId: bigint | TransactionArgument;
|
|
396
|
+
}
|
|
397
|
+
export declare function managerCloseOptionPositionV2(tx: Transaction, typeArgs: [string, string, string], args: ManagerCloseOptionPositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
320
398
|
export interface ManagerReducePositionArgs {
|
|
321
399
|
version: TransactionObjectInput;
|
|
322
400
|
registry: TransactionObjectInput;
|
|
@@ -333,6 +411,24 @@ export interface ManagerReducePositionArgs {
|
|
|
333
411
|
reducedRatioBp: bigint | TransactionArgument;
|
|
334
412
|
}
|
|
335
413
|
export declare function managerReducePosition(tx: Transaction, typeArgs: [string, string], args: ManagerReducePositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
414
|
+
export interface ManagerReducePositionV2Args {
|
|
415
|
+
version: TransactionObjectInput;
|
|
416
|
+
registry: TransactionObjectInput;
|
|
417
|
+
poolRegistry: TransactionObjectInput;
|
|
418
|
+
typusOracleCToken: TransactionObjectInput;
|
|
419
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
420
|
+
clock: TransactionObjectInput;
|
|
421
|
+
marketIndex: bigint | TransactionArgument;
|
|
422
|
+
poolIndex: bigint | TransactionArgument;
|
|
423
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
424
|
+
typusUserRegistry: TransactionObjectInput;
|
|
425
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
426
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
427
|
+
competitionConfig: TransactionObjectInput;
|
|
428
|
+
positionId: bigint | TransactionArgument;
|
|
429
|
+
reducedRatioBp: bigint | TransactionArgument;
|
|
430
|
+
}
|
|
431
|
+
export declare function managerReducePositionV2(tx: Transaction, typeArgs: [string, string], args: ManagerReducePositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
336
432
|
export interface ManagerRemoveOrderArgs {
|
|
337
433
|
version: TransactionObjectInput;
|
|
338
434
|
registry: TransactionObjectInput;
|
|
@@ -363,6 +459,26 @@ export interface ManagerRemovePositionArgs {
|
|
|
363
459
|
process: TransactionObjectInput;
|
|
364
460
|
}
|
|
365
461
|
export declare function managerRemovePosition(tx: Transaction, typeArgs: [string, string, string], args: ManagerRemovePositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
462
|
+
export interface ManagerRemovePositionV2Args {
|
|
463
|
+
version: TransactionObjectInput;
|
|
464
|
+
registry: TransactionObjectInput;
|
|
465
|
+
poolRegistry: TransactionObjectInput;
|
|
466
|
+
dovRegistry: TransactionObjectInput;
|
|
467
|
+
typusOracleCToken: TransactionObjectInput;
|
|
468
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
469
|
+
clock: TransactionObjectInput;
|
|
470
|
+
marketIndex: bigint | TransactionArgument;
|
|
471
|
+
poolIndex: bigint | TransactionArgument;
|
|
472
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
473
|
+
typusUserRegistry: TransactionObjectInput;
|
|
474
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
475
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
476
|
+
competitionConfig: TransactionObjectInput;
|
|
477
|
+
positionId: bigint | TransactionArgument;
|
|
478
|
+
isOptionPosition: boolean | TransactionArgument;
|
|
479
|
+
process: TransactionObjectInput;
|
|
480
|
+
}
|
|
481
|
+
export declare function managerRemovePositionV2(tx: Transaction, typeArgs: [string, string, string], args: ManagerRemovePositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
366
482
|
export interface ManagerUpdateProcessStatusAfterOrderArgs {
|
|
367
483
|
version: TransactionObjectInput;
|
|
368
484
|
registry: TransactionObjectInput;
|
|
@@ -402,6 +518,25 @@ export interface MatchTradingOrderArgs {
|
|
|
402
518
|
maxOperationCount: bigint | TransactionArgument;
|
|
403
519
|
}
|
|
404
520
|
export declare function matchTradingOrder(tx: Transaction, typeArgs: [string, string], args: MatchTradingOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
521
|
+
export interface MatchTradingOrderV2Args {
|
|
522
|
+
version: TransactionObjectInput;
|
|
523
|
+
registry: TransactionObjectInput;
|
|
524
|
+
poolRegistry: TransactionObjectInput;
|
|
525
|
+
typusOracleCToken: TransactionObjectInput;
|
|
526
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
527
|
+
clock: TransactionObjectInput;
|
|
528
|
+
marketIndex: bigint | TransactionArgument;
|
|
529
|
+
poolIndex: bigint | TransactionArgument;
|
|
530
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
531
|
+
typusUserRegistry: TransactionObjectInput;
|
|
532
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
533
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
534
|
+
competitionConfig: TransactionObjectInput;
|
|
535
|
+
orderTypeTag: number | TransactionArgument;
|
|
536
|
+
triggerPrice: bigint | TransactionArgument;
|
|
537
|
+
maxOperationCount: bigint | TransactionArgument;
|
|
538
|
+
}
|
|
539
|
+
export declare function matchTradingOrderV2(tx: Transaction, typeArgs: [string, string], args: MatchTradingOrderV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
405
540
|
export interface NewMarketsArgs {
|
|
406
541
|
version: TransactionObjectInput;
|
|
407
542
|
registry: TransactionObjectInput;
|
|
@@ -425,6 +560,25 @@ export interface ReduceOptionCollateralPositionSizeArgs {
|
|
|
425
560
|
orderSize: bigint | TransactionArgument | TransactionArgument | null;
|
|
426
561
|
}
|
|
427
562
|
export declare function reduceOptionCollateralPositionSize(tx: Transaction, typeArgs: [string, string, string], args: ReduceOptionCollateralPositionSizeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
563
|
+
export interface ReduceOptionCollateralPositionSizeV2Args {
|
|
564
|
+
version: TransactionObjectInput;
|
|
565
|
+
registry: TransactionObjectInput;
|
|
566
|
+
poolRegistry: TransactionObjectInput;
|
|
567
|
+
dovRegistry: TransactionObjectInput;
|
|
568
|
+
typusOracleCToken: TransactionObjectInput;
|
|
569
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
570
|
+
clock: TransactionObjectInput;
|
|
571
|
+
marketIndex: bigint | TransactionArgument;
|
|
572
|
+
poolIndex: bigint | TransactionArgument;
|
|
573
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
574
|
+
typusUserRegistry: TransactionObjectInput;
|
|
575
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
576
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
577
|
+
competitionConfig: TransactionObjectInput;
|
|
578
|
+
positionId: bigint | TransactionArgument;
|
|
579
|
+
orderSize: bigint | TransactionArgument | TransactionArgument | null;
|
|
580
|
+
}
|
|
581
|
+
export declare function reduceOptionCollateralPositionSizeV2(tx: Transaction, typeArgs: [string, string, string], args: ReduceOptionCollateralPositionSizeV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
428
582
|
export interface ReleaseCollateralArgs {
|
|
429
583
|
version: TransactionObjectInput;
|
|
430
584
|
registry: TransactionObjectInput;
|
|
@@ -520,6 +674,8 @@ export interface UpdateMarketConfigArgs {
|
|
|
520
674
|
basicFundingRate: bigint | TransactionArgument | TransactionArgument | null;
|
|
521
675
|
fundingIntervalTsMs: bigint | TransactionArgument | TransactionArgument | null;
|
|
522
676
|
expMultiplier: bigint | TransactionArgument | TransactionArgument | null;
|
|
677
|
+
maxBuyOpenInterest: bigint | TransactionArgument | TransactionArgument | null;
|
|
678
|
+
maxSellOpenInterest: bigint | TransactionArgument | TransactionArgument | null;
|
|
523
679
|
}
|
|
524
680
|
export declare function updateMarketConfig(tx: Transaction, typeArg: string, args: UpdateMarketConfigArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
525
681
|
export interface UpdateProtocolFeeShareBpArgs {
|