@xoxno/types 1.0.342 → 1.0.345

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 { PerpAgainstAsset, PerpCoinTypes, PerpDepositAsset, SpotDepositAsset } from '../../enums/perp.enum';
1
+ import { PerpCoinTypes } 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 | PerpAgainstAsset;
16
+ symbol: string;
17
17
  }
18
18
  export declare class PerpCoin {
19
19
  symbol: string;
@@ -3,13 +3,11 @@ import { PerpWithdrawWithdraw } from './withdraw';
3
3
  declare type PerpTransferTransfer_base = Omit<PerpWithdrawWithdraw, "type">;
4
4
  export declare type PerpTransferTransfer = PerpTransferTransfer_base & {
5
5
  type: PerpOrderType.SEND_ASSET;
6
- sourceDex: PerpTransferType;
7
6
  destinationDex: PerpTransferType;
8
7
  };
9
8
  declare const PerpTransferTransferNest_base: import("@nestjs/common").Type<Omit<PerpWithdrawWithdraw, "type">>;
10
9
  export declare class PerpTransferTransferNest extends PerpTransferTransferNest_base {
11
10
  type: PerpOrderType.SEND_ASSET;
12
- sourceDex: PerpTransferType;
13
11
  destinationDex: PerpTransferType;
14
12
  }
15
13
  export declare class PerpTransfer {
@@ -22,10 +22,6 @@ __decorate([
22
22
  (0, swagger_1.ApiProperty)(),
23
23
  __metadata("design:type", String)
24
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
25
  __decorate([
30
26
  (0, swagger_1.ApiProperty)(),
31
27
  __metadata("design:type", String)
@@ -1,9 +1,10 @@
1
- import { PerpOrderType } from '../../enums';
1
+ import { PerpOrderType, PerpTransferType } from '../../enums';
2
2
  export declare class PerpWithdrawWithdraw {
3
3
  type: PerpOrderType.WITHDRAW_ASSET;
4
4
  destination: string;
5
5
  symbol: string;
6
6
  amount: string;
7
+ sourceDex: PerpTransferType;
7
8
  }
8
9
  export declare class PerpWithdraw {
9
10
  action: PerpWithdrawWithdraw;
@@ -31,6 +31,10 @@ __decorate([
31
31
  (0, swagger_1.ApiProperty)(),
32
32
  __metadata("design:type", String)
33
33
  ], PerpWithdrawWithdraw.prototype, "amount", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)(),
36
+ __metadata("design:type", String)
37
+ ], PerpWithdrawWithdraw.prototype, "sourceDex", void 0);
34
38
  class PerpWithdraw {
35
39
  }
36
40
  exports.PerpWithdraw = PerpWithdraw;
@@ -70,14 +70,6 @@ export declare enum PerpPositionLeverageDirection {
70
70
  export declare enum PerpAgainstAsset {
71
71
  USD = "USD"
72
72
  }
73
- export declare enum SpotDepositAsset {
74
- EGLD = "EGLD",
75
- SOL = "SOL",
76
- ETH = "ETH",
77
- BNB = "BNB",
78
- ARB = "ARB",
79
- USDT = "USDT"
80
- }
81
73
  export declare enum PerpDepositAsset {
82
74
  USDC = "USDC"
83
75
  }
@@ -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.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.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";
@@ -84,19 +84,9 @@ var PerpAgainstAsset;
84
84
  (function (PerpAgainstAsset) {
85
85
  PerpAgainstAsset["USD"] = "USD";
86
86
  })(PerpAgainstAsset || (exports.PerpAgainstAsset = PerpAgainstAsset = {}));
87
- var SpotDepositAsset;
88
- (function (SpotDepositAsset) {
89
- SpotDepositAsset["EGLD"] = "EGLD";
90
- SpotDepositAsset["SOL"] = "SOL";
91
- SpotDepositAsset["ETH"] = "ETH";
92
- SpotDepositAsset["BNB"] = "BNB";
93
- SpotDepositAsset["ARB"] = "ARB";
94
- SpotDepositAsset["USDT"] = "USDT";
95
- })(SpotDepositAsset || (exports.SpotDepositAsset = SpotDepositAsset = {}));
96
87
  var PerpDepositAsset;
97
88
  (function (PerpDepositAsset) {
98
89
  PerpDepositAsset["USDC"] = "USDC";
99
- // USDT = 'USDT',
100
90
  })(PerpDepositAsset || (exports.PerpDepositAsset = PerpDepositAsset = {}));
101
91
  var PerpOrderGrouping;
102
92
  (function (PerpOrderGrouping) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.342",
3
+ "version": "1.0.345",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {