@xoxno/types 1.0.345 → 1.0.347
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PerpOrderType, PerpTransferType } from '../../enums';
|
|
2
2
|
import { PerpWithdrawWithdraw } from './withdraw';
|
|
3
|
-
declare type PerpTransferTransfer_base = Omit<PerpWithdrawWithdraw, "type">;
|
|
3
|
+
declare type PerpTransferTransfer_base = Omit<PerpWithdrawWithdraw, "type" | "destinationChainId">;
|
|
4
4
|
export declare type PerpTransferTransfer = PerpTransferTransfer_base & {
|
|
5
5
|
type: PerpOrderType.SEND_ASSET;
|
|
6
6
|
destinationDex: PerpTransferType;
|
|
7
7
|
};
|
|
8
|
-
declare const PerpTransferTransferNest_base: import("@nestjs/common").Type<Omit<PerpWithdrawWithdraw, "type">>;
|
|
8
|
+
declare const PerpTransferTransferNest_base: import("@nestjs/common").Type<Omit<PerpWithdrawWithdraw, "type" | "destinationChainId">>;
|
|
9
9
|
export declare class PerpTransferTransferNest extends PerpTransferTransferNest_base {
|
|
10
10
|
type: PerpOrderType.SEND_ASSET;
|
|
11
11
|
destinationDex: PerpTransferType;
|
|
@@ -15,6 +15,7 @@ const enums_1 = require("../../enums");
|
|
|
15
15
|
const withdraw_1 = require("./withdraw");
|
|
16
16
|
class PerpTransferTransfer extends (0, swagger_1.OmitType)(withdraw_1.PerpWithdrawWithdraw, [
|
|
17
17
|
'type',
|
|
18
|
+
'destinationChainId',
|
|
18
19
|
]) {
|
|
19
20
|
}
|
|
20
21
|
exports.PerpTransferTransfer = PerpTransferTransfer;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { PerpOrderType, PerpTransferType } from '../../enums';
|
|
1
|
+
import { PerpOrderType, PerpTransferType, PerpWithdrawalChain } from '../../enums';
|
|
2
2
|
export declare class PerpWithdrawWithdraw {
|
|
3
3
|
type: PerpOrderType.WITHDRAW_ASSET;
|
|
4
4
|
destination: string;
|
|
5
|
+
destinationChainId: PerpWithdrawalChain;
|
|
5
6
|
symbol: string;
|
|
6
7
|
amount: string;
|
|
7
8
|
sourceDex: PerpTransferType;
|
|
@@ -23,6 +23,10 @@ __decorate([
|
|
|
23
23
|
(0, swagger_1.ApiProperty)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], PerpWithdrawWithdraw.prototype, "destination", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PerpWithdrawWithdraw.prototype, "destinationChainId", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, swagger_1.ApiProperty)(),
|
|
28
32
|
__metadata("design:type", String)
|
package/dist/enums/perp.enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.PerpAgainstAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
|
|
3
|
+
exports.PerpWithdrawalChain = exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.PerpAgainstAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
|
|
4
4
|
var PerpEnum;
|
|
5
5
|
(function (PerpEnum) {
|
|
6
6
|
PerpEnum["L2BOOK"] = "l2Book";
|
|
@@ -179,3 +179,9 @@ var PerpTransferType;
|
|
|
179
179
|
PerpTransferType["SPOT"] = "Spot";
|
|
180
180
|
PerpTransferType["PERP"] = "Perps";
|
|
181
181
|
})(PerpTransferType || (exports.PerpTransferType = PerpTransferType = {}));
|
|
182
|
+
var PerpWithdrawalChain;
|
|
183
|
+
(function (PerpWithdrawalChain) {
|
|
184
|
+
PerpWithdrawalChain["MVX"] = "MVX";
|
|
185
|
+
PerpWithdrawalChain["ETH"] = "ETH";
|
|
186
|
+
PerpWithdrawalChain["BSC"] = "BSC";
|
|
187
|
+
})(PerpWithdrawalChain || (exports.PerpWithdrawalChain = PerpWithdrawalChain = {}));
|