@heliofi/common 0.1.134 → 0.1.136

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.
Files changed (35) hide show
  1. package/dist/src/domain/constants/fiatCurrencies.d.ts +3 -0
  2. package/dist/src/domain/constants/fiatCurrencies.js +8 -0
  3. package/dist/src/domain/constants/fiatCurrencies.js.map +1 -0
  4. package/dist/src/domain/constants/index.d.ts +2 -0
  5. package/dist/src/domain/constants/index.js +2 -0
  6. package/dist/src/domain/constants/index.js.map +1 -1
  7. package/dist/src/domain/model/auth/entities/AuthUser.d.ts +2 -2
  8. package/dist/src/domain/model/blockchain/constants/BlockchainEngineToBlockchain.d.ts +3 -0
  9. package/dist/src/domain/model/blockchain/constants/BlockchainEngineToBlockchain.js +10 -0
  10. package/dist/src/domain/model/blockchain/constants/BlockchainEngineToBlockchain.js.map +1 -0
  11. package/dist/src/domain/model/blockchain/constants/index.d.ts +1 -0
  12. package/dist/src/domain/model/blockchain/constants/index.js +1 -0
  13. package/dist/src/domain/model/blockchain/constants/index.js.map +1 -1
  14. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.d.ts +6 -0
  15. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.d.ts +6 -0
  16. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js +8 -0
  17. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js.map +1 -0
  18. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.js +8 -0
  19. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.js.map +1 -0
  20. package/dist/src/domain/model/blockchain/entities/Blockchain.d.ts +4 -5
  21. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.d.ts +5 -0
  22. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js +8 -0
  23. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js.map +1 -0
  24. package/dist/src/domain/model/blockchain/entities/Blockchain.js +2 -2
  25. package/dist/src/domain/model/blockchain/entities/Blockchain.js.map +1 -1
  26. package/dist/src/domain/model/blockchain/entities/index.d.ts +2 -1
  27. package/dist/src/domain/model/blockchain/entities/index.js +2 -1
  28. package/dist/src/domain/model/blockchain/entities/index.js.map +1 -1
  29. package/dist/src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.d.ts +1 -0
  30. package/dist/src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.js +5 -0
  31. package/dist/src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.js.map +1 -1
  32. package/dist/src/domain/model/wallet/entities/Wallet.d.ts +3 -1
  33. package/dist/src/domain/model/wallet/entities/Wallet.js.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ export declare enum FIATCurrencies {
2
+ USD = "USD"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FIATCurrencies = void 0;
4
+ var FIATCurrencies;
5
+ (function (FIATCurrencies) {
6
+ FIATCurrencies["USD"] = "USD";
7
+ })(FIATCurrencies = exports.FIATCurrencies || (exports.FIATCurrencies = {}));
8
+ //# sourceMappingURL=fiatCurrencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiatCurrencies.js","sourceRoot":"","sources":["../../../../src/domain/constants/fiatCurrencies.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,6BAAW,CAAA;AACb,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB"}
@@ -3,3 +3,5 @@ export * from './orderDirection';
3
3
  export * from './environment';
4
4
  export * from './intervalUnit';
5
5
  export * from './currencies';
6
+ export * from './fiatCurrencies';
7
+ export * from './fixedPriceTokens';
@@ -19,4 +19,6 @@ __exportStar(require("./orderDirection"), exports);
19
19
  __exportStar(require("./environment"), exports);
20
20
  __exportStar(require("./intervalUnit"), exports);
21
21
  __exportStar(require("./currencies"), exports);
22
+ __exportStar(require("./fiatCurrencies"), exports);
23
+ __exportStar(require("./fixedPriceTokens"), exports);
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC"}
@@ -1,5 +1,5 @@
1
1
  import { RoleType } from '../../role';
2
- import { BaseWallet } from '../../wallet';
2
+ import { Wallet } from '../../wallet';
3
3
  import { BetaFeature } from '../../feature-flags';
4
4
  export interface JwtUserRole {
5
5
  id: string;
@@ -10,7 +10,7 @@ export interface AuthUser {
10
10
  id: string;
11
11
  roles: JwtUserRole[];
12
12
  email?: string;
13
- wallet?: BaseWallet;
13
+ wallet?: Wallet;
14
14
  isHelioXUser?: boolean;
15
15
  enabledBetaFeatures?: BetaFeature[];
16
16
  }
@@ -0,0 +1,3 @@
1
+ import { BlockchainEngineType } from '../../blockchainEngine';
2
+ import { BlockchainSymbol } from './BlockchainSymbol';
3
+ export declare const BlockchainEngineToBlockchainMap: Map<BlockchainEngineType, BlockchainSymbol>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockchainEngineToBlockchainMap = void 0;
4
+ const blockchainEngine_1 = require("../../blockchainEngine");
5
+ const BlockchainSymbol_1 = require("./BlockchainSymbol");
6
+ exports.BlockchainEngineToBlockchainMap = new Map([
7
+ [blockchainEngine_1.BlockchainEngineType.SOL, BlockchainSymbol_1.BlockchainSymbol.SOL],
8
+ [blockchainEngine_1.BlockchainEngineType.EVM, BlockchainSymbol_1.BlockchainSymbol.POLYGON],
9
+ ]);
10
+ //# sourceMappingURL=BlockchainEngineToBlockchain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockchainEngineToBlockchain.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/constants/BlockchainEngineToBlockchain.ts"],"names":[],"mappings":";;;AAAA,6DAA8D;AAC9D,yDAAsD;AAEzC,QAAA,+BAA+B,GAAG,IAAI,GAAG,CAGpD;IACA,CAAC,uCAAoB,CAAC,GAAG,EAAE,mCAAgB,CAAC,GAAG,CAAC;IAChD,CAAC,uCAAoB,CAAC,GAAG,EAAE,mCAAgB,CAAC,OAAO,CAAC;CACrD,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './Cluster';
2
2
  export * from './BlockchainSymbol';
3
+ export * from './BlockchainEngineToBlockchain';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Cluster"), exports);
18
18
  __exportStar(require("./BlockchainSymbol"), exports);
19
+ __exportStar(require("./BlockchainEngineToBlockchain"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC;AACnC,iEAA+C"}
@@ -0,0 +1,6 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class BaseBlockchain extends Entity {
3
+ id: string;
4
+ name: string;
5
+ symbol: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class BaseBlockchain extends Entity {
3
+ id: string;
4
+ name: string;
5
+ symbol: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseBlockchain = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BaseBlockchain extends entity_1.Entity {
6
+ }
7
+ exports.BaseBlockchain = BaseBlockchain;
8
+ //# sourceMappingURL=BaseBlockchain.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseBlockchain.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/BaseBlockchain.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,cAAe,SAAQ,eAAM;CAMzC;AAND,wCAMC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseBlockchain = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BaseBlockchain extends entity_1.Entity {
6
+ }
7
+ exports.BaseBlockchain = BaseBlockchain;
8
+ //# sourceMappingURL=BaseBlockchain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseBlockchain.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/BaseBlockchain.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,cAAe,SAAQ,eAAM;CAMzC;AAND,wCAMC"}
@@ -1,6 +1,5 @@
1
- import { Entity } from '../../entity';
2
- export declare class Blockchain extends Entity {
3
- id: string;
4
- name: string;
5
- symbol: string;
1
+ import { BaseBlockchain } from './BaseBlockchain';
2
+ import { BlockchainEngine } from '../../blockchainEngine';
3
+ export declare class Blockchain extends BaseBlockchain {
4
+ engine: BlockchainEngine;
6
5
  }
@@ -0,0 +1,5 @@
1
+ import { BaseBlockchain } from './BaseBlockchain.entity';
2
+ import { BlockchainEngine } from '../../blockchainEngine';
3
+ export declare class Blockchain extends BaseBlockchain {
4
+ engine: BlockchainEngine;
5
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Blockchain = void 0;
4
+ const BaseBlockchain_entity_1 = require("./BaseBlockchain.entity");
5
+ class Blockchain extends BaseBlockchain_entity_1.BaseBlockchain {
6
+ }
7
+ exports.Blockchain = Blockchain;
8
+ //# sourceMappingURL=Blockchain.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockchain.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/Blockchain.entity.ts"],"names":[],"mappings":";;;AAAA,mEAAyD;AAGzD,MAAa,UAAW,SAAQ,sCAAc;CAE7C;AAFD,gCAEC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Blockchain = void 0;
4
- const entity_1 = require("../../entity");
5
- class Blockchain extends entity_1.Entity {
4
+ const BaseBlockchain_1 = require("./BaseBlockchain");
5
+ class Blockchain extends BaseBlockchain_1.BaseBlockchain {
6
6
  }
7
7
  exports.Blockchain = Blockchain;
8
8
  //# sourceMappingURL=Blockchain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blockchain.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/Blockchain.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,UAAW,SAAQ,eAAM;CAMrC;AAND,gCAMC"}
1
+ {"version":3,"file":"Blockchain.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/Blockchain.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAGlD,MAAa,UAAW,SAAQ,+BAAc;CAE7C;AAFD,gCAEC"}
@@ -1 +1,2 @@
1
- export * from './Blockchain';
1
+ export * from './Blockchain.entity';
2
+ export * from './BaseBlockchain.entity';
@@ -14,5 +14,6 @@ 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("./Blockchain"), exports);
17
+ __exportStar(require("./Blockchain.entity"), exports);
18
+ __exportStar(require("./BaseBlockchain.entity"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,0DAAwC"}
@@ -6,4 +6,5 @@ export declare class CreateStreamPrepareDto {
6
6
  startedAt: string;
7
7
  endedAt: string;
8
8
  interval: number;
9
+ fixedCurrencyRateToken?: string;
9
10
  }
@@ -49,5 +49,10 @@ __decorate([
49
49
  (0, class_validator_1.IsNotEmpty)(),
50
50
  __metadata("design:type", Number)
51
51
  ], CreateStreamPrepareDto.prototype, "interval", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ __metadata("design:type", String)
56
+ ], CreateStreamPrepareDto.prototype, "fixedCurrencyRateToken", void 0);
52
57
  exports.CreateStreamPrepareDto = CreateStreamPrepareDto;
53
58
  //# sourceMappingURL=createStreamPrepare.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createStreamPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,sBAAsB;CA4BlC;AA3BC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yDACtB;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AA3BnB,wDA4BC"}
1
+ {"version":3,"file":"createStreamPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-stream/dtos/createStreamPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAC7E,yDAA8C;AAE9C,MAAa,sBAAsB;CAgClC;AA/BC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yDACtB;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACmB;AA/BlC,wDAgCC"}
@@ -1,5 +1,7 @@
1
1
  import type { Blockchain } from '../../blockchain';
2
2
  import { BaseWallet } from './BaseWallet';
3
+ import { BlockchainEngine } from '../../blockchainEngine';
3
4
  export declare class Wallet extends BaseWallet {
4
- blockchain: Blockchain;
5
+ blockchain?: Blockchain;
6
+ blockchainEngine: BlockchainEngine;
5
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Wallet.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/Wallet.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,MAAO,SAAQ,uBAAU;CAErC;AAFD,wBAEC"}
1
+ {"version":3,"file":"Wallet.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/Wallet.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,uBAAU;CAIrC;AAJD,wBAIC"}