@wenex/sdk 0.5.7 → 0.5.9

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,3 +1,7 @@
1
+ export * from './iso.enum';
2
+ export * from './name.enum';
1
3
  export * from './type.enum';
2
- export * from './provider.enum';
4
+ export * from './token.enum';
5
+ export * from './network.enum';
3
6
  export * from './category.enum';
7
+ export * from './provider.enum';
@@ -14,7 +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);
18
- __exportStar(require("./provider.enum"), exports);
20
+ __exportStar(require("./token.enum"), exports);
21
+ __exportStar(require("./network.enum"), exports);
19
22
  __exportStar(require("./category.enum"), exports);
23
+ __exportStar(require("./provider.enum"), exports);
20
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;AAChC,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"}
@@ -30,6 +30,7 @@ export interface Account extends Core {
30
30
  broker: AccountBroker;
31
31
  provider: AccountProvider;
32
32
  ownership: AccountOwnership;
33
+ members: string[];
33
34
  }
34
35
  export type AccountDoc = Account & Document;
35
- export type AccountDto = Dto<MakeOptional<Account, 'broker'>>;
36
+ export type AccountDto = Dto<MakeOptional<Account, 'broker' | 'members' | 'provider'>>;
@@ -23,17 +23,17 @@
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
28
  import { CoinUnit, CoinUnitDto } from './unit.interface';
28
- import { CoinCategory, CoinProvider, CoinType } from '../../../enums';
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
- token?: 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;
@@ -27,7 +27,7 @@ import { WalletProvider } from '../../enums';
27
27
  import { Core, Dto, MakeOptional } from '../common';
28
28
  export interface Wallet extends Core {
29
29
  coin: string;
30
- accounts: string[];
30
+ account: string;
31
31
  amount: number;
32
32
  blocked?: number;
33
33
  internal?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",