@heliofi/common 0.1.331 → 0.1.332-0.1.334.0

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 (123) hide show
  1. package/dist/src/domain/model/affiliates/entities/affiliateDetails.entity.d.ts +4 -0
  2. package/dist/src/domain/model/affiliates/entities/affiliateDetails.entity.js +8 -0
  3. package/dist/src/domain/model/affiliates/entities/affiliateDetails.entity.js.map +1 -0
  4. package/dist/src/domain/model/affiliates/entities/index.d.ts +1 -0
  5. package/dist/src/domain/model/affiliates/entities/index.js +6 -0
  6. package/dist/src/domain/model/affiliates/entities/index.js.map +1 -0
  7. package/dist/src/domain/model/affiliates/index.d.ts +1 -0
  8. package/dist/src/domain/model/affiliates/index.js +18 -0
  9. package/dist/src/domain/model/affiliates/index.js.map +1 -0
  10. package/dist/src/domain/model/allowlist/dtos/addAllowlistWallet.dto.d.ts +4 -0
  11. package/dist/src/domain/model/{helio-wallet/dtos/providerCollectionsIds.dto.js → allowlist/dtos/addAllowlistWallet.dto.js} +13 -10
  12. package/dist/src/domain/model/allowlist/dtos/addAllowlistWallet.dto.js.map +1 -0
  13. package/dist/src/domain/model/allowlist/dtos/addAllowlistWallets.dto.d.ts +6 -0
  14. package/dist/src/domain/model/allowlist/dtos/addAllowlistWallets.dto.js +37 -0
  15. package/dist/src/domain/model/allowlist/dtos/addAllowlistWallets.dto.js.map +1 -0
  16. package/dist/src/domain/model/allowlist/dtos/allowlistWallet.dto.d.ts +4 -0
  17. package/dist/src/domain/model/{helio-wallet/dtos/providersCollectionIds.dto.js → allowlist/dtos/allowlistWallet.dto.js} +13 -10
  18. package/dist/src/domain/model/allowlist/dtos/allowlistWallet.dto.js.map +1 -0
  19. package/dist/src/domain/model/allowlist/dtos/index.d.ts +1 -0
  20. package/dist/src/domain/model/allowlist/dtos/index.js +1 -0
  21. package/dist/src/domain/model/allowlist/dtos/index.js.map +1 -1
  22. package/dist/src/domain/model/allowlist/entities/AddAllowlistResponse.entity.d.ts +8 -0
  23. package/dist/src/domain/model/allowlist/entities/AddAllowlistResponse.entity.js +8 -0
  24. package/dist/src/domain/model/allowlist/entities/AddAllowlistResponse.entity.js.map +1 -0
  25. package/dist/src/domain/model/allowlist/entities/index.d.ts +1 -0
  26. package/dist/src/domain/model/allowlist/entities/index.js +1 -0
  27. package/dist/src/domain/model/allowlist/entities/index.js.map +1 -1
  28. package/dist/src/domain/model/company/dtos/createCompany.dto.d.ts +9 -0
  29. package/dist/src/domain/model/company/dtos/createCompany.dto.js +52 -0
  30. package/dist/src/domain/model/company/dtos/createCompany.dto.js.map +1 -0
  31. package/dist/src/domain/model/discordAuthProperties/dtos/discordAuthProperties.dto.d.ts +4 -0
  32. package/dist/src/domain/model/{helio-wallet/entities/CollectionsFloorPricesByAddress.entity.js → discordAuthProperties/dtos/discordAuthProperties.dto.js} +14 -9
  33. package/dist/src/domain/model/discordAuthProperties/dtos/discordAuthProperties.dto.js.map +1 -0
  34. package/dist/src/domain/model/discordAuthProperties/dtos/index.d.ts +1 -0
  35. package/dist/src/domain/model/discordAuthProperties/dtos/index.js +18 -0
  36. package/dist/src/domain/model/discordAuthProperties/dtos/index.js.map +1 -0
  37. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.d.ts +5 -0
  38. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.js +8 -0
  39. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.js.map +1 -0
  40. package/dist/src/domain/model/discordAuthProperties/entities/index.d.ts +1 -0
  41. package/dist/src/domain/model/discordAuthProperties/entities/index.js +18 -0
  42. package/dist/src/domain/model/discordAuthProperties/entities/index.js.map +1 -0
  43. package/dist/src/domain/model/discordAuthProperties/index.d.ts +2 -0
  44. package/dist/src/domain/model/discordAuthProperties/index.js +19 -0
  45. package/dist/src/domain/model/discordAuthProperties/index.js.map +1 -0
  46. package/dist/src/domain/model/index.d.ts +1 -0
  47. package/dist/src/domain/model/index.js +1 -0
  48. package/dist/src/domain/model/index.js.map +1 -1
  49. package/dist/src/domain/model/invoice-tx/dtos/createInvoiceTx.dto.d.ts +6 -0
  50. package/dist/src/domain/model/{helio-wallet/entities/CollectionsFloorPricesByProvider.entity.js → invoice-tx/dtos/createInvoiceTx.dto.js} +21 -7
  51. package/dist/src/domain/model/invoice-tx/dtos/createInvoiceTx.dto.js.map +1 -0
  52. package/dist/src/domain/model/invoice-tx/dtos/index.d.ts +1 -0
  53. package/dist/src/domain/model/invoice-tx/dtos/index.js +18 -0
  54. package/dist/src/domain/model/invoice-tx/dtos/index.js.map +1 -0
  55. package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.d.ts +8 -0
  56. package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.js +46 -0
  57. package/dist/src/domain/model/paylink-tx/dtos/createPaylinkTx.dto.js.map +1 -0
  58. package/dist/src/domain/model/paylink-tx/dtos/index.d.ts +2 -0
  59. package/dist/src/domain/model/paylink-tx/dtos/index.js +19 -0
  60. package/dist/src/domain/model/paylink-tx/dtos/index.js.map +1 -0
  61. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.d.ts +4 -0
  62. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js +30 -0
  63. package/dist/src/domain/model/paylink-tx/dtos/updatePaylinkTx.dto.js.map +1 -0
  64. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.d.ts +1 -0
  65. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.js +5 -0
  66. package/dist/src/domain/model/payment-request-features/dtos/paymentRequestFeatures.dto.js.map +1 -1
  67. package/dist/src/domain/model/payment-request-features/entities/PaymentRequestFeatures.d.ts +1 -0
  68. package/dist/src/domain/model/payment-request-features/entities/PaymentRequestFeatures.js.map +1 -1
  69. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTx.dto.d.ts +11 -0
  70. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTx.dto.js +57 -0
  71. package/dist/src/domain/model/paystream-tx/dtos/createPaystreamTx.dto.js.map +1 -0
  72. package/dist/src/domain/model/paystream-tx/dtos/index.d.ts +2 -0
  73. package/dist/src/domain/model/paystream-tx/dtos/index.js +19 -0
  74. package/dist/src/domain/model/paystream-tx/dtos/index.js.map +1 -0
  75. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTx.dto.d.ts +7 -0
  76. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTx.dto.js +44 -0
  77. package/dist/src/domain/model/paystream-tx/dtos/updatePaystreamTx.dto.js.map +1 -0
  78. package/dist/src/domain/model/prepare-transaction/entities/TokenTransactionPayload.d.ts +12 -0
  79. package/dist/src/domain/model/{helio-wallet/entities/CollectionsFloorPriceAndAddress.entity.js → prepare-transaction/entities/TokenTransactionPayload.js} +6 -6
  80. package/dist/src/domain/model/prepare-transaction/entities/TokenTransactionPayload.js.map +1 -0
  81. package/dist/src/domain/model/refund/dtos/createRefund.dto.d.ts +9 -0
  82. package/dist/src/domain/model/refund/dtos/createRefund.dto.js +46 -0
  83. package/dist/src/domain/model/refund/dtos/createRefund.dto.js.map +1 -0
  84. package/dist/src/domain/model/refund/dtos/index.d.ts +1 -0
  85. package/dist/src/domain/model/refund/dtos/index.js +18 -0
  86. package/dist/src/domain/model/refund/dtos/index.js.map +1 -0
  87. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.d.ts +21 -0
  88. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js +97 -0
  89. package/dist/src/domain/model/transaction-meta/dtos/createTransactionMeta.dto.js.map +1 -0
  90. package/dist/src/domain/model/transaction-meta/dtos/index.d.ts +2 -0
  91. package/dist/src/domain/model/transaction-meta/dtos/index.js +19 -0
  92. package/dist/src/domain/model/transaction-meta/dtos/index.js.map +1 -0
  93. package/dist/src/domain/model/transaction-meta/dtos/updateTransactionMeta.dto.d.ts +6 -0
  94. package/dist/src/domain/model/transaction-meta/dtos/updateTransactionMeta.dto.js +33 -0
  95. package/dist/src/domain/model/transaction-meta/dtos/updateTransactionMeta.dto.js.map +1 -0
  96. package/dist/src/domain/services/AmountService.js +3 -1
  97. package/dist/src/domain/services/AmountService.js.map +1 -1
  98. package/dist/src/domain/services/BitcoinExplorerService.d.ts +4 -0
  99. package/dist/src/domain/services/BitcoinExplorerService.js +14 -0
  100. package/dist/src/domain/services/BitcoinExplorerService.js.map +1 -0
  101. package/dist/src/domain/services/BlockchainExplorerService.js +3 -0
  102. package/dist/src/domain/services/BlockchainExplorerService.js.map +1 -1
  103. package/dist/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +2 -2
  105. package/dist/src/domain/model/helio-wallet/dtos/providerCollectionsIds.dto.d.ts +0 -3
  106. package/dist/src/domain/model/helio-wallet/dtos/providerCollectionsIds.dto.js.map +0 -1
  107. package/dist/src/domain/model/helio-wallet/dtos/providersCollectionIds.dto.d.ts +0 -3
  108. package/dist/src/domain/model/helio-wallet/dtos/providersCollectionIds.dto.js.map +0 -1
  109. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndAddress.entity.d.ts +0 -5
  110. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndAddress.entity.js.map +0 -1
  111. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByAddress.entity.d.ts +0 -5
  112. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByAddress.entity.js.map +0 -1
  113. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByProvider.d.ts +0 -5
  114. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByProvider.entity.d.ts +0 -5
  115. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByProvider.entity.js.map +0 -1
  116. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByProvider.js +0 -8
  117. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPricesByProvider.js.map +0 -1
  118. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.d.ts +0 -5
  119. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.entity.d.ts +0 -5
  120. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.entity.js +0 -8
  121. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.entity.js.map +0 -1
  122. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.js +0 -8
  123. package/dist/src/domain/model/helio-wallet/entities/ProvidersCollectionIdsFromMintAddresses.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UpdateTransactionMetaDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../constants");
15
+ class UpdateTransactionMetaDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", String)
21
+ ], UpdateTransactionMetaDto.prototype, "transactionSignature", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(constants_1.TransactionStatus),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", String)
26
+ ], UpdateTransactionMetaDto.prototype, "transactionStatus", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], UpdateTransactionMetaDto.prototype, "transactionDataHash", void 0);
32
+ exports.UpdateTransactionMetaDto = UpdateTransactionMetaDto;
33
+ //# sourceMappingURL=updateTransactionMeta.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateTransactionMeta.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/dtos/updateTransactionMeta.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,4CAAiD;AAEjD,MAAa,wBAAwB;CAYpC;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACiB;AAE9B;IAAC,IAAA,wBAAM,EAAC,6BAAiB,CAAC;IACzB,IAAA,4BAAU,GAAE;;mEACyB;AAEtC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACgB;AAX/B,4DAYC"}
@@ -11,7 +11,9 @@ class AmountService {
11
11
  return (0, bignumber_js_1.default)(String(minimalAmount)).dividedBy(String(units));
12
12
  }
13
13
  static minimalUnitsFromDecimal(decimalAmount, decimals) {
14
- return this.minimalUnitAmountFromDecimalString(String(decimalAmount), decimals);
14
+ return this.minimalUnitAmountFromDecimalString(String(decimalAmount instanceof bignumber_js_1.default
15
+ ? decimalAmount.toFixed()
16
+ : decimalAmount), decimals);
15
17
  }
16
18
  static minimalUnitAmountFromDecimalString(decimalAmount, currencyDecimals) {
17
19
  const [integerPart, fractionalPart] = decimalAmount.split('.');
@@ -1 +1 @@
1
- {"version":3,"file":"AmountService.js","sourceRoot":"","sources":["../../../../src/domain/services/AmountService.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,MAAa,aAAa;IAWxB,MAAM,CAAC,uBAAuB,CAC5B,aAA8B,EAC9B,QAAgB;QAEhB,MAAM,KAAK,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;AApEH,sCA2EC;AALgB,6CAA+B,GAAG,CAC/C,QAAgB,EACR,EAAE;IACV,OAAO,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Environment } from '../constants';
2
+ export declare class BitcoinExplorerService {
3
+ static getTransactionUrl(transactionID: string, env: Environment): string;
4
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitcoinExplorerService = void 0;
4
+ const constants_1 = require("../constants");
5
+ class BitcoinExplorerService {
6
+ static getTransactionUrl(transactionID, env) {
7
+ if (env === constants_1.Environment.PROD) {
8
+ return `https://mempool.space/tx/${transactionID}`;
9
+ }
10
+ return `https://mempool.space/testnet/tx/${transactionID}`;
11
+ }
12
+ }
13
+ exports.BitcoinExplorerService = BitcoinExplorerService;
14
+ //# sourceMappingURL=BitcoinExplorerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BitcoinExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BitcoinExplorerService.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,MAAa,sBAAsB;IACjC,MAAM,CAAC,iBAAiB,CAAC,aAAqB,EAAE,GAAgB;QAC9D,IAAI,GAAG,KAAK,uBAAW,CAAC,IAAI,EAAE;YAC5B,OAAO,4BAA4B,aAAa,EAAE,CAAC;SACpD;QACD,OAAO,oCAAoC,aAAa,EAAE,CAAC;IAC7D,CAAC;CACF;AAPD,wDAOC"}
@@ -5,6 +5,7 @@ const model_1 = require("../model");
5
5
  const EthereumExplorerService_1 = require("./EthereumExplorerService");
6
6
  const SolscanService_1 = require("./SolscanService");
7
7
  const PolygonExplorerService_1 = require("./PolygonExplorerService");
8
+ const BitcoinExplorerService_1 = require("./BitcoinExplorerService");
8
9
  class BlockchainExplorerService {
9
10
  static getExplorerUrl(blockchain, transactionId, network) {
10
11
  switch (blockchain) {
@@ -14,6 +15,8 @@ class BlockchainExplorerService {
14
15
  return PolygonExplorerService_1.PolygonExplorerService.getPolygonExplorerTransactionURL(transactionId, network);
15
16
  case model_1.BlockchainSymbol.SOL:
16
17
  return SolscanService_1.SolscanService.toSolScanLink(transactionId, network);
18
+ case model_1.BlockchainSymbol.BITCOIN:
19
+ return BitcoinExplorerService_1.BitcoinExplorerService.getTransactionUrl(transactionId, network);
17
20
  default:
18
21
  return undefined;
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAElE,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,UAA4B,EAC5B,aAAqB,EACrB,OAAoB;QAEpB,QAAQ,UAAU,EAAE;YAClB,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE9D;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AA1BD,8DA0BC"}
1
+ {"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAClE,qEAAkE;AAElE,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,UAA4B,EAC5B,aAAqB,EACrB,OAAoB;QAEpB,QAAQ,UAAU,EAAE;YAClB,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE9D,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE1E;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AA7BD,8DA6BC"}