@typus/typus-perp-sdk 1.0.59 → 1.0.60
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 +2 -2
- package/dist/src/api/sentio.js +8 -8
- 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 +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as reified from "../../_framework/reified";
|
|
2
2
|
import { Option } from "../../_dependencies/source/0x1/option/structs";
|
|
3
|
+
import { String } from "../../_dependencies/source/0x1/string/structs";
|
|
3
4
|
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
4
5
|
import { ObjectTable } from "../../_dependencies/source/0x2/object-table/structs";
|
|
5
6
|
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
@@ -1074,6 +1075,132 @@ export declare class LiquidationInfo implements StructClass {
|
|
|
1074
1075
|
static fromSuiObjectData(data: SuiObjectData): LiquidationInfo;
|
|
1075
1076
|
static fetch(client: SuiClient, id: string): Promise<LiquidationInfo>;
|
|
1076
1077
|
}
|
|
1078
|
+
export declare function isManagerCancelOrdersEvent(type: string): boolean;
|
|
1079
|
+
export interface ManagerCancelOrdersEventFields {
|
|
1080
|
+
reason: ToField<String>;
|
|
1081
|
+
collateralToken: ToField<TypeName>;
|
|
1082
|
+
baseToken: ToField<TypeName>;
|
|
1083
|
+
orderTypeTag: ToField<"u8">;
|
|
1084
|
+
orderIds: ToField<Vector<"u64">>;
|
|
1085
|
+
orderSizes: ToField<Vector<"u64">>;
|
|
1086
|
+
orderPrices: ToField<Vector<"u64">>;
|
|
1087
|
+
u64Padding: ToField<Vector<"u64">>;
|
|
1088
|
+
}
|
|
1089
|
+
export type ManagerCancelOrdersEventReified = Reified<ManagerCancelOrdersEvent, ManagerCancelOrdersEventFields>;
|
|
1090
|
+
export declare class ManagerCancelOrdersEvent implements StructClass {
|
|
1091
|
+
__StructClass: true;
|
|
1092
|
+
static readonly $typeName: string;
|
|
1093
|
+
static readonly $numTypeParams = 0;
|
|
1094
|
+
static readonly $isPhantom: readonly [];
|
|
1095
|
+
readonly $typeName: string;
|
|
1096
|
+
readonly $fullTypeName: `${typeof PKG_V1}::trading::ManagerCancelOrdersEvent`;
|
|
1097
|
+
readonly $typeArgs: [];
|
|
1098
|
+
readonly $isPhantom: readonly [];
|
|
1099
|
+
readonly reason: ToField<String>;
|
|
1100
|
+
readonly collateralToken: ToField<TypeName>;
|
|
1101
|
+
readonly baseToken: ToField<TypeName>;
|
|
1102
|
+
readonly orderTypeTag: ToField<"u8">;
|
|
1103
|
+
readonly orderIds: ToField<Vector<"u64">>;
|
|
1104
|
+
readonly orderSizes: ToField<Vector<"u64">>;
|
|
1105
|
+
readonly orderPrices: ToField<Vector<"u64">>;
|
|
1106
|
+
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1107
|
+
private constructor();
|
|
1108
|
+
static reified(): ManagerCancelOrdersEventReified;
|
|
1109
|
+
static get r(): reified.StructClassReified<ManagerCancelOrdersEvent, ManagerCancelOrdersEventFields>;
|
|
1110
|
+
static phantom(): PhantomReified<ToTypeStr<ManagerCancelOrdersEvent>>;
|
|
1111
|
+
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::trading::ManagerCancelOrdersEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::trading::ManagerCancelOrdersEvent">;
|
|
1112
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1113
|
+
reason: {
|
|
1114
|
+
bytes: number[];
|
|
1115
|
+
};
|
|
1116
|
+
collateral_token: {
|
|
1117
|
+
name: {
|
|
1118
|
+
bytes: number[];
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
base_token: {
|
|
1122
|
+
name: {
|
|
1123
|
+
bytes: number[];
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
order_type_tag: number;
|
|
1127
|
+
order_ids: string[];
|
|
1128
|
+
order_sizes: string[];
|
|
1129
|
+
order_prices: string[];
|
|
1130
|
+
u64_padding: string[];
|
|
1131
|
+
}, {
|
|
1132
|
+
reason: {
|
|
1133
|
+
bytes: Iterable<number> & {
|
|
1134
|
+
length: number;
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
collateral_token: {
|
|
1138
|
+
name: {
|
|
1139
|
+
bytes: Iterable<number> & {
|
|
1140
|
+
length: number;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
base_token: {
|
|
1145
|
+
name: {
|
|
1146
|
+
bytes: Iterable<number> & {
|
|
1147
|
+
length: number;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
order_type_tag: number;
|
|
1152
|
+
order_ids: Iterable<string | number | bigint> & {
|
|
1153
|
+
length: number;
|
|
1154
|
+
};
|
|
1155
|
+
order_sizes: Iterable<string | number | bigint> & {
|
|
1156
|
+
length: number;
|
|
1157
|
+
};
|
|
1158
|
+
order_prices: Iterable<string | number | bigint> & {
|
|
1159
|
+
length: number;
|
|
1160
|
+
};
|
|
1161
|
+
u64_padding: Iterable<string | number | bigint> & {
|
|
1162
|
+
length: number;
|
|
1163
|
+
};
|
|
1164
|
+
}>;
|
|
1165
|
+
static fromFields(fields: Record<string, any>): ManagerCancelOrdersEvent;
|
|
1166
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ManagerCancelOrdersEvent;
|
|
1167
|
+
static fromBcs(data: Uint8Array): ManagerCancelOrdersEvent;
|
|
1168
|
+
toJSONField(): {
|
|
1169
|
+
reason: string;
|
|
1170
|
+
collateralToken: {
|
|
1171
|
+
name: string;
|
|
1172
|
+
};
|
|
1173
|
+
baseToken: {
|
|
1174
|
+
name: string;
|
|
1175
|
+
};
|
|
1176
|
+
orderTypeTag: number;
|
|
1177
|
+
orderIds: string[];
|
|
1178
|
+
orderSizes: string[];
|
|
1179
|
+
orderPrices: string[];
|
|
1180
|
+
u64Padding: string[];
|
|
1181
|
+
};
|
|
1182
|
+
toJSON(): {
|
|
1183
|
+
reason: string;
|
|
1184
|
+
collateralToken: {
|
|
1185
|
+
name: string;
|
|
1186
|
+
};
|
|
1187
|
+
baseToken: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
};
|
|
1190
|
+
orderTypeTag: number;
|
|
1191
|
+
orderIds: string[];
|
|
1192
|
+
orderSizes: string[];
|
|
1193
|
+
orderPrices: string[];
|
|
1194
|
+
u64Padding: string[];
|
|
1195
|
+
$typeName: string;
|
|
1196
|
+
$typeArgs: [];
|
|
1197
|
+
};
|
|
1198
|
+
static fromJSONField(field: any): ManagerCancelOrdersEvent;
|
|
1199
|
+
static fromJSON(json: Record<string, any>): ManagerCancelOrdersEvent;
|
|
1200
|
+
static fromSuiParsedData(content: SuiParsedData): ManagerCancelOrdersEvent;
|
|
1201
|
+
static fromSuiObjectData(data: SuiObjectData): ManagerCancelOrdersEvent;
|
|
1202
|
+
static fetch(client: SuiClient, id: string): Promise<ManagerCancelOrdersEvent>;
|
|
1203
|
+
}
|
|
1077
1204
|
export declare function isManagerCloseOptionPositionEvent(type: string): boolean;
|
|
1078
1205
|
export interface ManagerCloseOptionPositionEventFields {
|
|
1079
1206
|
user: ToField<"address">;
|