@xoxno/types 1.0.334 → 1.0.336
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,4 +1,4 @@
|
|
|
1
|
-
import { PerpCoinTypes, PerpDepositAsset, SpotDepositAsset } from '../../enums/perp.enum';
|
|
1
|
+
import { PerpAgainstAsset, PerpCoinTypes, PerpDepositAsset, SpotDepositAsset } from '../../enums/perp.enum';
|
|
2
2
|
import { MarginTable } from './margin-table';
|
|
3
3
|
import { ActiveSpotAssetCtx, ActivePerpAssetCtx } from './response';
|
|
4
4
|
export declare class PerpConfig {
|
|
@@ -13,7 +13,7 @@ export declare class PerpSingleCoin {
|
|
|
13
13
|
export declare class PerpSingleAgainstCoin {
|
|
14
14
|
identifier: string;
|
|
15
15
|
decimals: number;
|
|
16
|
-
symbol: PerpDepositAsset | SpotDepositAsset;
|
|
16
|
+
symbol: PerpDepositAsset | SpotDepositAsset | PerpAgainstAsset;
|
|
17
17
|
}
|
|
18
18
|
export declare class PerpCoin {
|
|
19
19
|
symbol: string;
|
|
@@ -22,6 +22,8 @@ class TransactionCreate {
|
|
|
22
22
|
this.options = undefined;
|
|
23
23
|
this.guardian = undefined;
|
|
24
24
|
this.guardianSignature = undefined;
|
|
25
|
+
this.relayer = undefined;
|
|
26
|
+
this.relayerSignature = undefined;
|
|
25
27
|
Object.assign(this, props);
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -130,3 +132,21 @@ __decorate([
|
|
|
130
132
|
(0, class_validator_1.IsString)(),
|
|
131
133
|
__metadata("design:type", String)
|
|
132
134
|
], TransactionCreate.prototype, "guardianSignature", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
137
|
+
description: 'Optional relayer address',
|
|
138
|
+
type: String,
|
|
139
|
+
}),
|
|
140
|
+
(0, class_validator_1.IsOptional)(),
|
|
141
|
+
(0, class_validator_1.IsString)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], TransactionCreate.prototype, "relayer", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
146
|
+
description: 'Optional relayer signature',
|
|
147
|
+
type: String,
|
|
148
|
+
}),
|
|
149
|
+
(0, class_validator_1.IsOptional)(),
|
|
150
|
+
(0, class_validator_1.IsString)(),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], TransactionCreate.prototype, "relayerSignature", void 0);
|
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.SpotDepositAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
|
|
3
|
+
exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.SpotDepositAsset = 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";
|
|
@@ -80,6 +80,10 @@ var PerpPositionLeverageDirection;
|
|
|
80
80
|
PerpPositionLeverageDirection["ONE_WAY"] = "oneWay";
|
|
81
81
|
PerpPositionLeverageDirection["HEDGE"] = "hedge";
|
|
82
82
|
})(PerpPositionLeverageDirection || (exports.PerpPositionLeverageDirection = PerpPositionLeverageDirection = {}));
|
|
83
|
+
var PerpAgainstAsset;
|
|
84
|
+
(function (PerpAgainstAsset) {
|
|
85
|
+
PerpAgainstAsset["USD"] = "USD";
|
|
86
|
+
})(PerpAgainstAsset || (exports.PerpAgainstAsset = PerpAgainstAsset = {}));
|
|
83
87
|
var SpotDepositAsset;
|
|
84
88
|
(function (SpotDepositAsset) {
|
|
85
89
|
SpotDepositAsset["EGLD"] = "EGLD";
|