@xoxno/types 1.0.336 → 1.0.337
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/entities/perp/legal-check.d.ts +8 -0
- package/dist/entities/perp/legal-check.js +20 -1
- package/dist/entities/perp/transfer.d.ts +18 -0
- package/dist/entities/perp/transfer.js +41 -0
- package/dist/entities/perp/withdraw.d.ts +10 -0
- package/dist/entities/perp/withdraw.js +40 -0
- package/dist/enums/perp.enum.d.ts +4 -1
- package/dist/enums/perp.enum.js +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { PerpOrderType } from '../../enums';
|
|
1
2
|
export declare class PerpLegalCheck {
|
|
2
3
|
ipAllowed: boolean;
|
|
3
4
|
acceptedTerms: boolean;
|
|
4
5
|
userAllowed: boolean;
|
|
5
6
|
}
|
|
7
|
+
export declare class PerpTermsTerms {
|
|
8
|
+
type: PerpOrderType.ACCEPT_TERMS;
|
|
9
|
+
user: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class PerpTerms {
|
|
12
|
+
action: PerpTermsTerms;
|
|
13
|
+
}
|
|
@@ -9,8 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PerpLegalCheck = void 0;
|
|
12
|
+
exports.PerpTerms = exports.PerpTermsTerms = exports.PerpLegalCheck = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const enums_1 = require("../../enums");
|
|
14
15
|
class PerpLegalCheck {
|
|
15
16
|
}
|
|
16
17
|
exports.PerpLegalCheck = PerpLegalCheck;
|
|
@@ -26,3 +27,21 @@ __decorate([
|
|
|
26
27
|
(0, swagger_1.ApiProperty)(),
|
|
27
28
|
__metadata("design:type", Boolean)
|
|
28
29
|
], PerpLegalCheck.prototype, "userAllowed", void 0);
|
|
30
|
+
class PerpTermsTerms {
|
|
31
|
+
}
|
|
32
|
+
exports.PerpTermsTerms = PerpTermsTerms;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PerpTermsTerms.prototype, "type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PerpTermsTerms.prototype, "user", void 0);
|
|
41
|
+
class PerpTerms {
|
|
42
|
+
}
|
|
43
|
+
exports.PerpTerms = PerpTerms;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", PerpTermsTerms)
|
|
47
|
+
], PerpTerms.prototype, "action", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PerpOrderType, PerpTransferType } from '../../enums';
|
|
2
|
+
import { PerpWithdrawWithdraw } from './withdraw';
|
|
3
|
+
declare type PerpTransferTransfer_base = Omit<PerpWithdrawWithdraw, "type">;
|
|
4
|
+
export declare type PerpTransferTransfer = PerpTransferTransfer_base & {
|
|
5
|
+
type: PerpOrderType.SEND_ASSET;
|
|
6
|
+
sourceDex: PerpTransferType;
|
|
7
|
+
destinationDex: PerpTransferType;
|
|
8
|
+
};
|
|
9
|
+
declare const PerpTransferTransferNest_base: import("@nestjs/common").Type<Omit<PerpWithdrawWithdraw, "type">>;
|
|
10
|
+
export declare class PerpTransferTransferNest extends PerpTransferTransferNest_base {
|
|
11
|
+
type: PerpOrderType.SEND_ASSET;
|
|
12
|
+
sourceDex: PerpTransferType;
|
|
13
|
+
destinationDex: PerpTransferType;
|
|
14
|
+
}
|
|
15
|
+
export declare class PerpTransfer {
|
|
16
|
+
action: PerpTransferTransfer;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PerpTransfer = exports.PerpTransferTransfer = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const enums_1 = require("../../enums");
|
|
15
|
+
const withdraw_1 = require("./withdraw");
|
|
16
|
+
class PerpTransferTransfer extends (0, swagger_1.OmitType)(withdraw_1.PerpWithdrawWithdraw, [
|
|
17
|
+
'type',
|
|
18
|
+
]) {
|
|
19
|
+
}
|
|
20
|
+
exports.PerpTransferTransfer = PerpTransferTransfer;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PerpTransferTransfer.prototype, "type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PerpTransferTransfer.prototype, "sourceDex", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PerpTransferTransfer.prototype, "destinationDex", void 0);
|
|
33
|
+
class PerpTransfer {
|
|
34
|
+
}
|
|
35
|
+
exports.PerpTransfer = PerpTransfer;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", PerpTransferTransfer)
|
|
39
|
+
], PerpTransfer.prototype, "action", void 0);
|
|
40
|
+
|
|
41
|
+
exports.PerpTransferTransferNest = PerpTransferTransfer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PerpOrderType } from '../../enums';
|
|
2
|
+
export declare class PerpWithdrawWithdraw {
|
|
3
|
+
type: PerpOrderType.WITHDRAW_ASSET;
|
|
4
|
+
destination: string;
|
|
5
|
+
symbol: string;
|
|
6
|
+
amount: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PerpWithdraw {
|
|
9
|
+
action: PerpWithdrawWithdraw;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PerpWithdraw = exports.PerpWithdrawWithdraw = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const enums_1 = require("../../enums");
|
|
15
|
+
class PerpWithdrawWithdraw {
|
|
16
|
+
}
|
|
17
|
+
exports.PerpWithdrawWithdraw = PerpWithdrawWithdraw;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PerpWithdrawWithdraw.prototype, "type", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PerpWithdrawWithdraw.prototype, "destination", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PerpWithdrawWithdraw.prototype, "symbol", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PerpWithdrawWithdraw.prototype, "amount", void 0);
|
|
34
|
+
class PerpWithdraw {
|
|
35
|
+
}
|
|
36
|
+
exports.PerpWithdraw = PerpWithdraw;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", PerpWithdrawWithdraw)
|
|
40
|
+
], PerpWithdraw.prototype, "action", void 0);
|
|
@@ -104,7 +104,10 @@ export declare enum PerpOrderType {
|
|
|
104
104
|
MODIFY = "modify",
|
|
105
105
|
BATCH_MODIFY = "batchModify",
|
|
106
106
|
UPDATE_LEVERAGE = "updateLeverage",
|
|
107
|
-
UPDATE_ISOLATED_MARGIN = "updateIsolatedMargin"
|
|
107
|
+
UPDATE_ISOLATED_MARGIN = "updateIsolatedMargin",
|
|
108
|
+
WITHDRAW_ASSET = "withdrawAsset",
|
|
109
|
+
SEND_ASSET = "sendAsset",
|
|
110
|
+
ACCEPT_TERMS = "acceptTerms"
|
|
108
111
|
}
|
|
109
112
|
export declare enum PerpOrderStatus {
|
|
110
113
|
RESTING = "resting",
|
package/dist/enums/perp.enum.js
CHANGED
|
@@ -130,6 +130,9 @@ var PerpOrderType;
|
|
|
130
130
|
PerpOrderType["BATCH_MODIFY"] = "batchModify";
|
|
131
131
|
PerpOrderType["UPDATE_LEVERAGE"] = "updateLeverage";
|
|
132
132
|
PerpOrderType["UPDATE_ISOLATED_MARGIN"] = "updateIsolatedMargin";
|
|
133
|
+
PerpOrderType["WITHDRAW_ASSET"] = "withdrawAsset";
|
|
134
|
+
PerpOrderType["SEND_ASSET"] = "sendAsset";
|
|
135
|
+
PerpOrderType["ACCEPT_TERMS"] = "acceptTerms";
|
|
133
136
|
})(PerpOrderType || (exports.PerpOrderType = PerpOrderType = {}));
|
|
134
137
|
var PerpOrderStatus;
|
|
135
138
|
(function (PerpOrderStatus) {
|
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export * from './entities/perp/market-order';
|
|
|
137
137
|
export * from './entities/perp/request';
|
|
138
138
|
export * from './entities/perp/response';
|
|
139
139
|
export * from './entities/perp/tradingview';
|
|
140
|
+
export * from './entities/perp/transfer';
|
|
141
|
+
export * from './entities/perp/withdraw';
|
|
140
142
|
export * from './entities/search-data/collection-data-search.type';
|
|
141
143
|
export * from './entities/search-data/event-guest-data-search.type';
|
|
142
144
|
export * from './entities/search-data/event-guest-invitation-search.type';
|
package/dist/index.js
CHANGED
|
@@ -153,6 +153,8 @@ __exportStar(require("./entities/perp/market-order"), exports);
|
|
|
153
153
|
__exportStar(require("./entities/perp/request"), exports);
|
|
154
154
|
__exportStar(require("./entities/perp/response"), exports);
|
|
155
155
|
__exportStar(require("./entities/perp/tradingview"), exports);
|
|
156
|
+
__exportStar(require("./entities/perp/transfer"), exports);
|
|
157
|
+
__exportStar(require("./entities/perp/withdraw"), exports);
|
|
156
158
|
__exportStar(require("./entities/search-data/collection-data-search.type"), exports);
|
|
157
159
|
__exportStar(require("./entities/search-data/event-guest-data-search.type"), exports);
|
|
158
160
|
__exportStar(require("./entities/search-data/event-guest-invitation-search.type"), exports);
|