@wenex/sdk 0.5.6 → 0.5.8

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.
@@ -0,0 +1,4 @@
1
+ export declare enum CoinCategory {
2
+ Coin = "coin",
3
+ Token = "token"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinCategory = void 0;
4
+ var CoinCategory;
5
+ (function (CoinCategory) {
6
+ CoinCategory["Coin"] = "coin";
7
+ CoinCategory["Token"] = "token";
8
+ })(CoinCategory || (exports.CoinCategory = CoinCategory = {}));
9
+ //# sourceMappingURL=category.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/category.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -1,2 +1,7 @@
1
+ export * from './iso.enum';
2
+ export * from './name.enum';
1
3
  export * from './type.enum';
4
+ export * from './token.enum';
5
+ export * from './network.enum';
6
+ export * from './category.enum';
2
7
  export * from './provider.enum';
@@ -14,6 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./iso.enum"), exports);
18
+ __exportStar(require("./name.enum"), exports);
17
19
  __exportStar(require("./type.enum"), exports);
20
+ __exportStar(require("./token.enum"), exports);
21
+ __exportStar(require("./network.enum"), exports);
22
+ __exportStar(require("./category.enum"), exports);
18
23
  __exportStar(require("./provider.enum"), exports);
19
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC"}
@@ -0,0 +1,3 @@
1
+ export declare enum CoinIso {
2
+ IRT = "IRT"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinIso = void 0;
4
+ var CoinIso;
5
+ (function (CoinIso) {
6
+ CoinIso["IRT"] = "IRT";
7
+ })(CoinIso || (exports.CoinIso = CoinIso = {}));
8
+ //# sourceMappingURL=iso.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iso.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/iso.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
@@ -0,0 +1,7 @@
1
+ export declare enum CoinName {
2
+ Tronix = "Tronix",
3
+ Solana = "Solana",
4
+ Bitcoin = "Bitcoin",
5
+ Ethereum = "Ethereum",
6
+ BinanceSmartChain = "Binance Smart Chain (BSC)"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinName = void 0;
4
+ var CoinName;
5
+ (function (CoinName) {
6
+ CoinName["Tronix"] = "Tronix";
7
+ CoinName["Solana"] = "Solana";
8
+ CoinName["Bitcoin"] = "Bitcoin";
9
+ CoinName["Ethereum"] = "Ethereum";
10
+ CoinName["BinanceSmartChain"] = "Binance Smart Chain (BSC)";
11
+ })(CoinName || (exports.CoinName = CoinName = {}));
12
+ //# sourceMappingURL=name.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/name.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,2DAA+C,CAAA;AACjD,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
@@ -0,0 +1,4 @@
1
+ export declare enum CoinNetwork {
2
+ Mainnet = "mainnet",
3
+ Testnet = "testnet"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinNetwork = void 0;
4
+ var CoinNetwork;
5
+ (function (CoinNetwork) {
6
+ CoinNetwork["Mainnet"] = "mainnet";
7
+ CoinNetwork["Testnet"] = "testnet";
8
+ })(CoinNetwork || (exports.CoinNetwork = CoinNetwork = {}));
9
+ //# sourceMappingURL=network.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/network.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -0,0 +1,3 @@
1
+ export declare enum CoinToken {
2
+ Tether = "Tether"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinToken = void 0;
4
+ var CoinToken;
5
+ (function (CoinToken) {
6
+ CoinToken["Tether"] = "Tether";
7
+ })(CoinToken || (exports.CoinToken = CoinToken = {}));
8
+ //# sourceMappingURL=token.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/token.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,8BAAiB,CAAA;AACnB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}
@@ -23,22 +23,23 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import type { Document } from 'mongoose';
26
+ import { CoinCategory, CoinIso, CoinName, CoinNetwork, CoinProvider, CoinToken, CoinType } from '../../../enums';
26
27
  import { Core, Dto, MakeOptional } from '../../common';
27
- import { CoinProvider, CoinType } from '../../../enums';
28
28
  import { CoinUnit, CoinUnitDto } from './unit.interface';
29
29
  export interface Coin extends Core {
30
30
  type: CoinType;
31
- iso?: string;
31
+ iso?: CoinIso;
32
32
  sign?: string;
33
- name?: string;
34
- alias?: string;
33
+ name?: CoinName;
34
+ token?: CoinToken;
35
35
  symbol?: string;
36
- network?: string;
36
+ network?: CoinNetwork;
37
37
  contract?: string;
38
38
  precision: number;
39
39
  subunit?: CoinUnit;
40
40
  countries?: string[];
41
41
  provider: CoinProvider;
42
+ category?: CoinCategory;
42
43
  }
43
44
  export type CoinDoc = Coin & Document;
44
45
  export type CoinDto = Dto<MakeOptional<Omit<Coin, 'subunit'>, 'provider'>> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",