@heliofi/common 0.1.312 → 0.1.314-alpha.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 (62) hide show
  1. package/dist/src/domain/model/auth/dtos/BTCProperties.dto.d.ts +4 -0
  2. package/dist/src/domain/model/{discordAuthProperties/dtos/discordAuthProperties.dto.js → auth/dtos/BTCProperties.dto.js} +6 -8
  3. package/dist/src/domain/model/auth/dtos/BTCProperties.dto.js.map +1 -0
  4. package/dist/src/domain/model/auth/dtos/BitcoinSignOn.dto.d.ts +9 -0
  5. package/dist/src/domain/model/auth/dtos/BitcoinSignOn.dto.js +41 -0
  6. package/dist/src/domain/model/auth/dtos/BitcoinSignOn.dto.js.map +1 -0
  7. package/dist/src/domain/model/auth/dtos/index.d.ts +2 -0
  8. package/dist/src/domain/model/auth/dtos/index.js +2 -0
  9. package/dist/src/domain/model/auth/dtos/index.js.map +1 -1
  10. package/dist/src/domain/model/index.d.ts +1 -0
  11. package/dist/src/domain/model/index.js +1 -0
  12. package/dist/src/domain/model/index.js.map +1 -1
  13. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/index.d.ts +1 -0
  14. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/index.js +6 -0
  15. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/index.js.map +1 -0
  16. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/prepareHelioWalletSendTransactionDto.d.ts +5 -0
  17. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/prepareHelioWalletSendTransactionDto.js +33 -0
  18. package/dist/src/domain/model/prepare-helio-wallet-transaction/dtos/prepareHelioWalletSendTransactionDto.js.map +1 -0
  19. package/dist/src/domain/model/prepare-helio-wallet-transaction/index.d.ts +1 -0
  20. package/dist/src/domain/model/{discordAuthProperties → prepare-helio-wallet-transaction}/index.js +0 -1
  21. package/dist/src/domain/model/prepare-helio-wallet-transaction/index.js.map +1 -0
  22. package/dist/src/domain/model/prepare-transaction/entities/BaseTokenTransactionPayload.entity.d.ts +9 -0
  23. package/dist/src/domain/model/prepare-transaction/entities/BaseTokenTransactionPayload.entity.js +22 -0
  24. package/dist/src/domain/model/prepare-transaction/entities/BaseTokenTransactionPayload.entity.js.map +1 -0
  25. package/dist/src/domain/model/prepare-transaction/entities/TokenTransactionPayload.entity.d.ts +6 -0
  26. package/dist/src/domain/model/prepare-transaction/entities/TokenTransactionPayload.entity.js +8 -0
  27. package/dist/src/domain/model/prepare-transaction/entities/TokenTransactionPayload.entity.js.map +1 -0
  28. package/dist/src/domain/model/prepare-transaction/entities/index.d.ts +2 -1
  29. package/dist/src/domain/model/prepare-transaction/entities/index.js +2 -1
  30. package/dist/src/domain/model/prepare-transaction/entities/index.js.map +1 -1
  31. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.d.ts +6 -0
  32. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.js +8 -0
  33. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.entity.js.map +1 -0
  34. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.d.ts +5 -0
  35. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.js +10 -0
  36. package/dist/src/domain/model/wallet/entities/BTCPaymentAddressVersion.js.map +1 -0
  37. package/dist/src/domain/model/wallet/entities/BTCProperties.d.ts +6 -0
  38. package/dist/src/domain/model/wallet/entities/BTCProperties.js +8 -0
  39. package/dist/src/domain/model/wallet/entities/BTCProperties.js.map +1 -0
  40. package/dist/src/domain/model/wallet/entities/BaseWallet.entity.d.ts +3 -1
  41. package/dist/src/domain/model/wallet/entities/BaseWallet.entity.js.map +1 -1
  42. package/dist/src/domain/model/wallet/entities/WalletOrigin.d.ts +3 -0
  43. package/dist/src/domain/model/wallet/entities/WalletOrigin.js +8 -0
  44. package/dist/src/domain/model/wallet/entities/WalletOrigin.js.map +1 -0
  45. package/dist/src/domain/model/wallet/entities/index.d.ts +4 -0
  46. package/dist/src/domain/model/wallet/entities/index.js +4 -0
  47. package/dist/src/domain/model/wallet/entities/index.js.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/package.json +2 -2
  50. package/dist/src/domain/model/discordAuthProperties/dtos/discordAuthProperties.dto.d.ts +0 -4
  51. package/dist/src/domain/model/discordAuthProperties/dtos/discordAuthProperties.dto.js.map +0 -1
  52. package/dist/src/domain/model/discordAuthProperties/dtos/index.d.ts +0 -1
  53. package/dist/src/domain/model/discordAuthProperties/dtos/index.js +0 -18
  54. package/dist/src/domain/model/discordAuthProperties/dtos/index.js.map +0 -1
  55. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.d.ts +0 -5
  56. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.js +0 -8
  57. package/dist/src/domain/model/discordAuthProperties/entities/DiscordAuthProperties.js.map +0 -1
  58. package/dist/src/domain/model/discordAuthProperties/entities/index.d.ts +0 -1
  59. package/dist/src/domain/model/discordAuthProperties/entities/index.js +0 -18
  60. package/dist/src/domain/model/discordAuthProperties/entities/index.js.map +0 -1
  61. package/dist/src/domain/model/discordAuthProperties/index.d.ts +0 -2
  62. package/dist/src/domain/model/discordAuthProperties/index.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ export declare class BTCPropertiesDto {
2
+ paymentAddress: string;
3
+ ordinalsAddress: string;
4
+ }
@@ -9,19 +9,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DiscordAuthPropertiesDto = void 0;
12
+ exports.BTCPropertiesDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class DiscordAuthPropertiesDto {
14
+ class BTCPropertiesDto {
15
15
  }
16
16
  __decorate([
17
17
  (0, class_validator_1.IsString)(),
18
- (0, class_validator_1.IsNotEmpty)(),
19
18
  __metadata("design:type", String)
20
- ], DiscordAuthPropertiesDto.prototype, "serverId", void 0);
19
+ ], BTCPropertiesDto.prototype, "paymentAddress", void 0);
21
20
  __decorate([
22
21
  (0, class_validator_1.IsString)(),
23
- (0, class_validator_1.IsNotEmpty)(),
24
22
  __metadata("design:type", String)
25
- ], DiscordAuthPropertiesDto.prototype, "roleId", void 0);
26
- exports.DiscordAuthPropertiesDto = DiscordAuthPropertiesDto;
27
- //# sourceMappingURL=discordAuthProperties.dto.js.map
23
+ ], BTCPropertiesDto.prototype, "ordinalsAddress", void 0);
24
+ exports.BTCPropertiesDto = BTCPropertiesDto;
25
+ //# sourceMappingURL=BTCProperties.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BTCProperties.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/BTCProperties.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,gBAAgB;CAM5B;AALC;IAAC,IAAA,0BAAQ,GAAE;;wDACY;AAEvB;IAAC,IAAA,0BAAQ,GAAE;;yDACa;AAL1B,4CAMC"}
@@ -0,0 +1,9 @@
1
+ import { Platform } from '../../../constants';
2
+ import { WalletOrigin } from '../../wallet';
3
+ import { BTCPropertiesDto } from './BTCProperties.dto';
4
+ export declare class BitcoinSignOnDto {
5
+ signature: string;
6
+ platform?: Platform;
7
+ origin: WalletOrigin;
8
+ btcProperties?: BTCPropertiesDto;
9
+ }
@@ -0,0 +1,41 @@
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.BitcoinSignOnDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const constants_1 = require("../../../constants");
16
+ const wallet_1 = require("../../wallet");
17
+ const BTCProperties_dto_1 = require("./BTCProperties.dto");
18
+ class BitcoinSignOnDto {
19
+ }
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], BitcoinSignOnDto.prototype, "signature", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsEnum)(constants_1.Platform),
28
+ __metadata("design:type", String)
29
+ ], BitcoinSignOnDto.prototype, "platform", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ (0, class_validator_1.IsEnum)(wallet_1.WalletOrigin),
33
+ __metadata("design:type", String)
34
+ ], BitcoinSignOnDto.prototype, "origin", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Type)(() => BTCProperties_dto_1.BTCPropertiesDto),
37
+ (0, class_validator_1.ValidateNested)(),
38
+ __metadata("design:type", BTCProperties_dto_1.BTCPropertiesDto)
39
+ ], BitcoinSignOnDto.prototype, "btcProperties", void 0);
40
+ exports.BitcoinSignOnDto = BitcoinSignOnDto;
41
+ //# sourceMappingURL=BitcoinSignOn.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BitcoinSignOn.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/BitcoinSignOn.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,kDAA8C;AAC9C,yCAA4C;AAC5C,2DAAuD;AAEvD,MAAa,gBAAgB;CAgB5B;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;kDACG;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAY,CAAC;;gDACA;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;IAC5B,IAAA,gCAAc,GAAE;8BACD,oCAAgB;uDAAC;AAfnC,4CAgBC"}
@@ -6,3 +6,5 @@ export * from './AccessCodeAuth.dto';
6
6
  export * from './StoreTwitterToken.dto';
7
7
  export * from './EVMMessage.dto';
8
8
  export * from './SignOnWeb3authSocialNetwork.dto';
9
+ export * from './BitcoinSignOn.dto';
10
+ export * from './BTCProperties.dto';
@@ -22,4 +22,6 @@ __exportStar(require("./AccessCodeAuth.dto"), exports);
22
22
  __exportStar(require("./StoreTwitterToken.dto"), exports);
23
23
  __exportStar(require("./EVMMessage.dto"), exports);
24
24
  __exportStar(require("./SignOnWeb3authSocialNetwork.dto"), exports);
25
+ __exportStar(require("./BitcoinSignOn.dto"), exports);
26
+ __exportStar(require("./BTCProperties.dto"), exports);
25
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,+CAA6B;AAC7B,0DAAwC;AACxC,oDAAkC;AAClC,uDAAqC;AACrC,0DAAwC;AACxC,mDAAiC;AACjC,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/auth/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,+CAA6B;AAC7B,0DAAwC;AACxC,oDAAkC;AAClC,uDAAqC;AACrC,0DAAwC;AACxC,mDAAiC;AACjC,oEAAkD;AAClD,sDAAoC;AACpC,sDAAoC"}
@@ -77,3 +77,4 @@ export * from './recipient';
77
77
  export * from './allowlist';
78
78
  export * from './platform-details';
79
79
  export * from './platform-api-key';
80
+ export * from './prepare-helio-wallet-transaction';
@@ -93,4 +93,5 @@ __exportStar(require("./recipient"), exports);
93
93
  __exportStar(require("./allowlist"), exports);
94
94
  __exportStar(require("./platform-details"), exports);
95
95
  __exportStar(require("./platform-api-key"), exports);
96
+ __exportStar(require("./prepare-helio-wallet-transaction"), exports);
96
97
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD"}
@@ -0,0 +1 @@
1
+ export { PrepareHelioWalletSendTransactionDto } from './prepareHelioWalletSendTransactionDto';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrepareHelioWalletSendTransactionDto = void 0;
4
+ var prepareHelioWalletSendTransactionDto_1 = require("./prepareHelioWalletSendTransactionDto");
5
+ Object.defineProperty(exports, "PrepareHelioWalletSendTransactionDto", { enumerable: true, get: function () { return prepareHelioWalletSendTransactionDto_1.PrepareHelioWalletSendTransactionDto; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-helio-wallet-transaction/dtos/index.ts"],"names":[],"mappings":";;;AAAA,+FAA8F;AAArF,4JAAA,oCAAoC,OAAA"}
@@ -0,0 +1,5 @@
1
+ export declare class PrepareHelioWalletSendTransactionDto {
2
+ currency: string;
3
+ amount: string;
4
+ recipient: string;
5
+ }
@@ -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.PrepareHelioWalletSendTransactionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class PrepareHelioWalletSendTransactionDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], PrepareHelioWalletSendTransactionDto.prototype, "currency", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
25
+ __metadata("design:type", String)
26
+ ], PrepareHelioWalletSendTransactionDto.prototype, "amount", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNumber)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], PrepareHelioWalletSendTransactionDto.prototype, "recipient", void 0);
32
+ exports.PrepareHelioWalletSendTransactionDto = PrepareHelioWalletSendTransactionDto;
33
+ //# sourceMappingURL=prepareHelioWalletSendTransactionDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareHelioWalletSendTransactionDto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-helio-wallet-transaction/dtos/prepareHelioWalletSendTransactionDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,oCAAoC;CAYhD;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;oEACzB;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACK;AAXpB,oFAYC"}
@@ -0,0 +1 @@
1
+ export * from './dtos';
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dtos"), exports);
18
- __exportStar(require("./entities"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/prepare-helio-wallet-transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
@@ -0,0 +1,9 @@
1
+ import { EventName } from '@heliofi/evm-adapter';
2
+ import { Entity } from '../../entity';
3
+ export declare class BaseTokenTransactionPayload extends Entity {
4
+ finalAmount?: string;
5
+ hash: string;
6
+ sessionHash?: string;
7
+ eventName?: EventName;
8
+ transactionDbId?: string;
9
+ }
@@ -0,0 +1,22 @@
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.BaseTokenTransactionPayload = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const entity_1 = require("../../entity");
15
+ class BaseTokenTransactionPayload extends entity_1.Entity {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
+ __metadata("design:type", String)
20
+ ], BaseTokenTransactionPayload.prototype, "finalAmount", void 0);
21
+ exports.BaseTokenTransactionPayload = BaseTokenTransactionPayload;
22
+ //# sourceMappingURL=BaseTokenTransactionPayload.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseTokenTransactionPayload.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/BaseTokenTransactionPayload.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,2BAA4B,SAAQ,eAAM;CAWtD;AAVC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;gEACnB;AAFvB,kEAWC"}
@@ -0,0 +1,6 @@
1
+ import { BaseTokenTransactionPayload } from './BaseTokenTransactionPayload.entity';
2
+ import { FeeProperties } from '../../fee';
3
+ export declare class TokenTransactionPayload extends BaseTokenTransactionPayload {
4
+ paymentRequestId: string;
5
+ feeProperties: FeeProperties;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenTransactionPayload = void 0;
4
+ const BaseTokenTransactionPayload_entity_1 = require("./BaseTokenTransactionPayload.entity");
5
+ class TokenTransactionPayload extends BaseTokenTransactionPayload_entity_1.BaseTokenTransactionPayload {
6
+ }
7
+ exports.TokenTransactionPayload = TokenTransactionPayload;
8
+ //# sourceMappingURL=TokenTransactionPayload.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenTransactionPayload.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/TokenTransactionPayload.entity.ts"],"names":[],"mappings":";;;AAAA,6FAAmF;AAGnF,MAAa,uBAAwB,SAAQ,gEAA2B;CAIvE;AAJD,0DAIC"}
@@ -1,3 +1,4 @@
1
1
  export * from './PrepareTransaction.entity';
2
- export * from './TokenTransactionPayload';
2
+ export * from './TokenTransactionPayload.entity';
3
3
  export * from './PrepareSwapTransaction.entity';
4
+ export * from './BaseTokenTransactionPayload.entity';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./PrepareTransaction.entity"), exports);
18
- __exportStar(require("./TokenTransactionPayload"), exports);
18
+ __exportStar(require("./TokenTransactionPayload.entity"), exports);
19
19
  __exportStar(require("./PrepareSwapTransaction.entity"), exports);
20
+ __exportStar(require("./BaseTokenTransactionPayload.entity"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,mEAAiD;AACjD,kEAAgD;AAChD,uEAAqD"}
@@ -0,0 +1,6 @@
1
+ import { Entity } from '../../entity';
2
+ import { BTCPaymentAddressVersion } from './BTCPaymentAddressVersion';
3
+ export declare class BTCPaymentAddress extends Entity {
4
+ address: string;
5
+ version?: BTCPaymentAddressVersion;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BTCPaymentAddress = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BTCPaymentAddress extends entity_1.Entity {
6
+ }
7
+ exports.BTCPaymentAddress = BTCPaymentAddress;
8
+ //# sourceMappingURL=BTCPaymentAddress.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BTCPaymentAddress.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCPaymentAddress.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,iBAAkB,SAAQ,eAAM;CAI5C;AAJD,8CAIC"}
@@ -0,0 +1,5 @@
1
+ export declare enum BTCPaymentAddressVersion {
2
+ LEGACY = "LEGACY",
3
+ SEGWIT = "SEGWIT",
4
+ TAPROOT = "TAPROOT"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BTCPaymentAddressVersion = void 0;
4
+ var BTCPaymentAddressVersion;
5
+ (function (BTCPaymentAddressVersion) {
6
+ BTCPaymentAddressVersion["LEGACY"] = "LEGACY";
7
+ BTCPaymentAddressVersion["SEGWIT"] = "SEGWIT";
8
+ BTCPaymentAddressVersion["TAPROOT"] = "TAPROOT";
9
+ })(BTCPaymentAddressVersion = exports.BTCPaymentAddressVersion || (exports.BTCPaymentAddressVersion = {}));
10
+ //# sourceMappingURL=BTCPaymentAddressVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BTCPaymentAddressVersion.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCPaymentAddressVersion.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,6CAAiB,CAAA;IACjB,+CAAmB,CAAA;AACrB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
@@ -0,0 +1,6 @@
1
+ import { Entity } from '../../entity';
2
+ import { BTCPaymentAddress } from './BTCPaymentAddress.entity';
3
+ export declare class BTCProperties extends Entity {
4
+ paymentAddresses: BTCPaymentAddress[];
5
+ ordinalsAddresses: string[];
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BTCProperties = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BTCProperties extends entity_1.Entity {
6
+ }
7
+ exports.BTCProperties = BTCProperties;
8
+ //# sourceMappingURL=BTCProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BTCProperties.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BTCProperties.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAIxC;AAJD,sCAIC"}
@@ -1,7 +1,9 @@
1
1
  import { Entity } from '../../entity';
2
2
  import { WalletType } from '../../../constants';
3
+ import { BTCProperties } from './BTCProperties';
3
4
  export declare class BaseWallet extends Entity {
4
5
  id: string;
5
6
  publicKey: string;
6
- type: WalletType;
7
+ btcProperties?: BTCProperties;
8
+ type?: WalletType;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BaseWallet.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BaseWallet.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,UAAW,SAAQ,eAAM;CAMrC;AAND,gCAMC"}
1
+ {"version":3,"file":"BaseWallet.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/BaseWallet.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,UAAW,SAAQ,eAAM;CAQrC;AARD,gCAQC"}
@@ -0,0 +1,3 @@
1
+ export declare enum WalletOrigin {
2
+ XVERSE = "XVERSE"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletOrigin = void 0;
4
+ var WalletOrigin;
5
+ (function (WalletOrigin) {
6
+ WalletOrigin["XVERSE"] = "XVERSE";
7
+ })(WalletOrigin = exports.WalletOrigin || (exports.WalletOrigin = {}));
8
+ //# sourceMappingURL=WalletOrigin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletOrigin.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/WalletOrigin.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,iCAAiB,CAAA;AACnB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"}
@@ -1,3 +1,7 @@
1
1
  export * from './Wallet.entity';
2
2
  export * from './BaseWallet.entity';
3
3
  export * from './WalletDetails.entity';
4
+ export * from './WalletOrigin';
5
+ export * from './BTCPaymentAddressVersion';
6
+ export * from './BTCPaymentAddress.entity';
7
+ export * from './BTCProperties';
@@ -17,4 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Wallet.entity"), exports);
18
18
  __exportStar(require("./BaseWallet.entity"), exports);
19
19
  __exportStar(require("./WalletDetails.entity"), exports);
20
+ __exportStar(require("./WalletOrigin"), exports);
21
+ __exportStar(require("./BTCPaymentAddressVersion"), exports);
22
+ __exportStar(require("./BTCPaymentAddress.entity"), exports);
23
+ __exportStar(require("./BTCProperties"), exports);
20
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,iDAA+B;AAC/B,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC"}