@heliofi/common 0.1.452 → 0.1.453

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 (59) hide show
  1. package/dist/src/domain/constants/index.d.ts +1 -0
  2. package/dist/src/domain/constants/index.js +1 -0
  3. package/dist/src/domain/constants/index.js.map +1 -1
  4. package/dist/src/domain/constants/maxWalletsPerBlockchain.d.ts +0 -1
  5. package/dist/src/domain/constants/maxWalletsPerBlockchain.js +1 -2
  6. package/dist/src/domain/constants/maxWalletsPerBlockchain.js.map +1 -1
  7. package/dist/src/domain/constants/solanaTransactionVersion.d.ts +4 -0
  8. package/dist/src/domain/constants/solanaTransactionVersion.js +9 -0
  9. package/dist/src/domain/constants/solanaTransactionVersion.js.map +1 -0
  10. package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.d.ts +2 -0
  11. package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.js +7 -0
  12. package/dist/src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.js.map +1 -1
  13. package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.entity.d.ts +1 -0
  14. package/dist/src/domain/model/prepare-transaction/entities/PrepareTransaction.entity.js.map +1 -1
  15. package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.d.ts +1 -0
  16. package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.js +6 -0
  17. package/dist/src/domain/model/submit-transaction/dtos/submitTransaction.dto.js.map +1 -1
  18. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.d.ts +4 -0
  19. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.js +7 -0
  20. package/dist/src/domain/model/transaction-meta/entities/StatusAudit.js.map +1 -0
  21. package/dist/src/domain/model/user/entities/ShallowEnrichedUser.d.ts +0 -2
  22. package/dist/src/domain/model/user/entities/ShallowEnrichedUser.js.map +1 -1
  23. package/dist/src/domain/model/user/entities/User.d.ts +0 -2
  24. package/dist/src/domain/model/user/entities/User.js.map +1 -1
  25. package/dist/src/domain/services/SerializeService.d.ts +6 -0
  26. package/dist/src/domain/services/SerializeService.js +27 -0
  27. package/dist/src/domain/services/SerializeService.js.map +1 -0
  28. package/dist/src/domain/services/SolanaSerializationService.d.ts +6 -0
  29. package/dist/src/domain/services/SolanaSerializationService.js +27 -0
  30. package/dist/src/domain/services/SolanaSerializationService.js.map +1 -0
  31. package/dist/src/domain/services/index.d.ts +1 -0
  32. package/dist/src/domain/services/index.js +1 -0
  33. package/dist/src/domain/services/index.js.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +2 -2
  36. package/dist/src/domain/model/pricing/dtos/createPricing.dto.d.ts +0 -4
  37. package/dist/src/domain/model/pricing/dtos/createPricing.dto.js +0 -31
  38. package/dist/src/domain/model/pricing/dtos/createPricing.dto.js.map +0 -1
  39. package/dist/src/domain/model/pricing/dtos/index.d.ts +0 -2
  40. package/dist/src/domain/model/pricing/dtos/index.js +0 -19
  41. package/dist/src/domain/model/pricing/dtos/index.js.map +0 -1
  42. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.d.ts +0 -3
  43. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.js +0 -25
  44. package/dist/src/domain/model/pricing/dtos/updatePricing.dto.js.map +0 -1
  45. package/dist/src/domain/model/pricing/entities/BasePricing.d.ts +0 -4
  46. package/dist/src/domain/model/pricing/entities/BasePricing.js +0 -22
  47. package/dist/src/domain/model/pricing/entities/BasePricing.js.map +0 -1
  48. package/dist/src/domain/model/pricing/entities/Pricing.d.ts +0 -5
  49. package/dist/src/domain/model/pricing/entities/Pricing.js +0 -8
  50. package/dist/src/domain/model/pricing/entities/Pricing.js.map +0 -1
  51. package/dist/src/domain/model/pricing/entities/index.d.ts +0 -2
  52. package/dist/src/domain/model/pricing/entities/index.js +0 -19
  53. package/dist/src/domain/model/pricing/entities/index.js.map +0 -1
  54. package/dist/src/domain/model/pricing/index.d.ts +0 -2
  55. package/dist/src/domain/model/pricing/index.js +0 -19
  56. package/dist/src/domain/model/pricing/index.js.map +0 -1
  57. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.d.ts +0 -18
  58. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js +0 -82
  59. package/dist/src/domain/model/submit-transaction/dtos/submitTransactionV0.dto.js.map +0 -1
@@ -18,3 +18,4 @@ export * from './platform';
18
18
  export * from './wallet';
19
19
  export * from './tradingViewDetails';
20
20
  export * from './template';
21
+ export * from './solanaTransactionVersion';
@@ -34,4 +34,5 @@ __exportStar(require("./platform"), exports);
34
34
  __exportStar(require("./wallet"), exports);
35
35
  __exportStar(require("./tradingViewDetails"), exports);
36
36
  __exportStar(require("./template"), exports);
37
+ __exportStar(require("./solanaTransactionVersion"), exports);
37
38
  //# 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;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B"}
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;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B;AAC3B,6DAA2C"}
@@ -1,2 +1 @@
1
1
  export declare const maxWalletsPerBlockchain = 5;
2
- export declare const maxPayoutWalletsPerBlockchain = 5;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maxPayoutWalletsPerBlockchain = exports.maxWalletsPerBlockchain = void 0;
3
+ exports.maxWalletsPerBlockchain = void 0;
4
4
  exports.maxWalletsPerBlockchain = 5;
5
- exports.maxPayoutWalletsPerBlockchain = 5;
6
5
  //# sourceMappingURL=maxWalletsPerBlockchain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"maxWalletsPerBlockchain.js","sourceRoot":"","sources":["../../../../src/domain/constants/maxWalletsPerBlockchain.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAE5B,QAAA,6BAA6B,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"maxWalletsPerBlockchain.js","sourceRoot":"","sources":["../../../../src/domain/constants/maxWalletsPerBlockchain.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum SolanaTransactionVersion {
2
+ V0 = "LEGACY",
3
+ V1 = "VERSIONED"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SolanaTransactionVersion = void 0;
4
+ var SolanaTransactionVersion;
5
+ (function (SolanaTransactionVersion) {
6
+ SolanaTransactionVersion["V0"] = "LEGACY";
7
+ SolanaTransactionVersion["V1"] = "VERSIONED";
8
+ })(SolanaTransactionVersion = exports.SolanaTransactionVersion || (exports.SolanaTransactionVersion = {}));
9
+ //# sourceMappingURL=solanaTransactionVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solanaTransactionVersion.js","sourceRoot":"","sources":["../../../../src/domain/constants/solanaTransactionVersion.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,4CAAgB,CAAA;AAClB,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
@@ -1,6 +1,7 @@
1
1
  import { PreparePaymentRequestDto } from '../../prepare-payment-request';
2
2
  import { CustomerDetailsDto } from '../../customer-details';
3
3
  import { ProductDetailsDto } from '../../product-details';
4
+ import { SolanaTransactionVersion } from '../../../constants';
4
5
  export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
5
6
  currency: string;
6
7
  amount?: string;
@@ -11,4 +12,5 @@ export declare class PrepareTransactionDto extends PreparePaymentRequestDto {
11
12
  customerDetails?: CustomerDetailsDto;
12
13
  productDetails?: ProductDetailsDto;
13
14
  pricingCurrencyRateToken?: string;
15
+ solanaTransactionVersion?: SolanaTransactionVersion;
14
16
  }
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
15
15
  const prepare_payment_request_1 = require("../../prepare-payment-request");
16
16
  const customer_details_1 = require("../../customer-details");
17
17
  const product_details_1 = require("../../product-details");
18
+ const constants_1 = require("../../../constants");
18
19
  class PrepareTransactionDto extends prepare_payment_request_1.PreparePaymentRequestDto {
19
20
  }
20
21
  __decorate([
@@ -64,5 +65,11 @@ __decorate([
64
65
  (0, class_validator_1.IsOptional)(),
65
66
  __metadata("design:type", String)
66
67
  ], PrepareTransactionDto.prototype, "pricingCurrencyRateToken", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsString)(),
70
+ (0, class_validator_1.IsEnum)(constants_1.SolanaTransactionVersion),
71
+ (0, class_validator_1.IsOptional)(),
72
+ __metadata("design:type", String)
73
+ ], PrepareTransactionDto.prototype, "solanaTransactionVersion", void 0);
67
74
  exports.PrepareTransactionDto = PrepareTransactionDto;
68
75
  //# sourceMappingURL=prepareTransaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,6DAA4D;AAC5D,2DAA0D;AAE1D,MAAa,qBAAsB,SAAQ,kDAAwB;CAuClE;AAtCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;8DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;6DAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACqB;AAtCpC,sDAuCC"}
1
+ {"version":3,"file":"prepareTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAoD;AACpD,2EAAyE;AACzE,6DAA4D;AAC5D,2DAA0D;AAC1D,kDAA8D;AAE9D,MAAa,qBAAsB,SAAQ,kDAAwB;CA4ClE;AA3CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;qDACxB;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACK;AAGlB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;8DAAC;AAErC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;6DAAC;AAEnC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACqB;AAElC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oCAAwB,CAAC;IAChC,IAAA,4BAAU,GAAE;;uEACuC;AA3CtD,sDA4CC"}
@@ -3,4 +3,5 @@ export declare class PrepareTransaction extends Entity {
3
3
  transactionToken: string;
4
4
  transactionMessage: string;
5
5
  serializedTransaction?: string;
6
+ addressLookupTableAccounts?: string[];
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PrepareTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/PrepareTransaction.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,kBAAmB,SAAQ,eAAM;CAM7C;AAND,gDAMC"}
1
+ {"version":3,"file":"PrepareTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/entities/PrepareTransaction.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,kBAAmB,SAAQ,eAAM;CAQ7C;AARD,gDAQC"}
@@ -12,4 +12,5 @@ export declare class SubmitTransactionDto extends BaseSubmitTransactionDto {
12
12
  rateToken?: string;
13
13
  discountToken?: string;
14
14
  affiliateCode?: string;
15
+ addressLookupTableAccounts?: string[];
15
16
  }
@@ -71,5 +71,11 @@ __decorate([
71
71
  (0, class_validator_1.IsOptional)(),
72
72
  __metadata("design:type", String)
73
73
  ], SubmitTransactionDto.prototype, "affiliateCode", void 0);
74
+ __decorate([
75
+ (0, class_validator_1.IsArray)(),
76
+ (0, class_validator_1.IsString)({ each: true }),
77
+ (0, class_validator_1.IsOptional)(),
78
+ __metadata("design:type", Array)
79
+ ], SubmitTransactionDto.prototype, "addressLookupTableAccounts", void 0);
74
80
  exports.SubmitTransactionDto = SubmitTransactionDto;
75
81
  //# sourceMappingURL=submitTransaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"submitTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/submitTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAC1D,uDAAqD;AACrD,2EAAuE;AAEvE,MAAa,oBAAqB,SAAQ,oDAAwB;IAAlE;;QAGE,aAAQ,GAAI,CAAC,CAAC;IAqChB,CAAC;CAAA;AAvCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACC;AAEd;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;6DAAC;AAErC;IAAC,IAAA,kCAAgB,GAAE;IAClB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;4DAAC;AAEnC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;0DACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAvCzB,oDAwCC"}
1
+ {"version":3,"file":"submitTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/submit-transaction/dtos/submitTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAyC;AACzC,6DAA4D;AAC5D,2DAA0D;AAC1D,uDAAqD;AACrD,2EAAuE;AAEvE,MAAa,oBAAqB,SAAQ,oDAAwB;IAAlE;;QAGE,aAAQ,GAAI,CAAC,CAAC;IA0ChB,CAAC;CAAA;AA5CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACC;AAEd;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAC9B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACK,qCAAkB;6DAAC;AAErC;IAAC,IAAA,kCAAgB,GAAE;IAClB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAiB,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACI,mCAAiB;4DAAC;AAEnC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACU;AAEvB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;0DACmB;AAEhC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAEvB;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;wEACyB;AA5CxC,oDA6CC"}
@@ -0,0 +1,4 @@
1
+ import { TransactionStatus } from '../constants';
2
+ export declare class StatusAudit {
3
+ transactionStatus: TransactionStatus;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatusAudit = void 0;
4
+ class StatusAudit {
5
+ }
6
+ exports.StatusAudit = StatusAudit;
7
+ //# sourceMappingURL=StatusAudit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusAudit.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/StatusAudit.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;CAEvB;AAFD,kCAEC"}
@@ -1,9 +1,7 @@
1
1
  import { BaseUser } from './BaseUser.entity';
2
2
  import type { BaseRole } from '../../role';
3
3
  import type { BaseWallet } from '../../wallet';
4
- import { BasePayoutWallet } from '../../payout-wallet';
5
4
  export declare class ShallowEnrichedUser extends BaseUser {
6
5
  roles: BaseRole[];
7
6
  wallets: BaseWallet[];
8
- payoutWallets: BasePayoutWallet[];
9
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShallowEnrichedUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/ShallowEnrichedUser.ts"],"names":[],"mappings":";;;AAAA,uDAA6C;AAK7C,MAAa,mBAAoB,SAAQ,0BAAQ;CAMhD;AAND,kDAMC"}
1
+ {"version":3,"file":"ShallowEnrichedUser.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/ShallowEnrichedUser.ts"],"names":[],"mappings":";;;AAAA,uDAA6C;AAI7C,MAAa,mBAAoB,SAAQ,0BAAQ;CAIhD;AAJD,kDAIC"}
@@ -1,9 +1,7 @@
1
1
  import type { Role } from '../../role';
2
2
  import type { Wallet } from '../../wallet';
3
3
  import { BaseUser } from './BaseUser.entity';
4
- import { PayoutWallet } from '../../payout-wallet';
5
4
  export declare class User extends BaseUser {
6
5
  roles: Role[];
7
6
  wallets: Wallet[];
8
- payoutWallets: PayoutWallet[];
9
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,uDAA6C;AAG7C,MAAa,IAAK,SAAQ,0BAAQ;CAMjC;AAND,oBAMC"}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../../src/domain/model/user/entities/User.ts"],"names":[],"mappings":";;;AAEA,uDAA6C;AAE7C,MAAa,IAAK,SAAQ,0BAAQ;CAIjC;AAJD,oBAIC"}
@@ -0,0 +1,6 @@
1
+ import { Transaction, VersionedTransaction } from '@solana/web3.js';
2
+ export declare class SerializeService {
3
+ static serializeVersionedTransaction(transaction: VersionedTransaction): string;
4
+ static deserializeVersionedTransaction(serializedTransaction: string): VersionedTransaction | undefined;
5
+ static deserializeLegacyTransaction(serializedTransaction: string): Transaction | undefined;
6
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SerializeService = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ class SerializeService {
6
+ static serializeVersionedTransaction(transaction) {
7
+ return Buffer.from(transaction.serialize()).toString('base64');
8
+ }
9
+ static deserializeVersionedTransaction(serializedTransaction) {
10
+ try {
11
+ return web3_js_1.VersionedTransaction.deserialize(Buffer.from(serializedTransaction, 'base64'));
12
+ }
13
+ catch (e) {
14
+ return undefined;
15
+ }
16
+ }
17
+ static deserializeLegacyTransaction(serializedTransaction) {
18
+ try {
19
+ return web3_js_1.Transaction.from(Buffer.from(JSON.parse(serializedTransaction).data));
20
+ }
21
+ catch (e) {
22
+ return undefined;
23
+ }
24
+ }
25
+ }
26
+ exports.SerializeService = SerializeService;
27
+ //# sourceMappingURL=SerializeService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SerializeService.js","sourceRoot":"","sources":["../../../../src/domain/services/SerializeService.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AAEpE,MAAa,gBAAgB;IAC3B,MAAM,CAAC,6BAA6B,CAClC,WAAiC;QAEjC,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,+BAA+B,CACpC,qBAA6B;QAE7B,IAAI;YACF,OAAO,8BAAoB,CAAC,WAAW,CACrC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAC7C,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;IAED,MAAM,CAAC,4BAA4B,CACjC,qBAA6B;QAE7B,IAAI;YACF,OAAO,qBAAW,CAAC,IAAI,CACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CACpD,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF;AA9BD,4CA8BC"}
@@ -0,0 +1,6 @@
1
+ import { Transaction, VersionedTransaction } from '@solana/web3.js';
2
+ export declare class SolanaSerializationService {
3
+ static serializeVersionedTransaction(transaction: VersionedTransaction): string;
4
+ static deserializeVersionedTransaction(serializedTransaction: string): VersionedTransaction | undefined;
5
+ static deserializeLegacyTransaction(serializedTransaction: string): Transaction | undefined;
6
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SolanaSerializationService = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ class SolanaSerializationService {
6
+ static serializeVersionedTransaction(transaction) {
7
+ return Buffer.from(transaction.serialize()).toString('base64');
8
+ }
9
+ static deserializeVersionedTransaction(serializedTransaction) {
10
+ try {
11
+ return web3_js_1.VersionedTransaction.deserialize(Buffer.from(serializedTransaction, 'base64'));
12
+ }
13
+ catch (e) {
14
+ return undefined;
15
+ }
16
+ }
17
+ static deserializeLegacyTransaction(serializedTransaction) {
18
+ try {
19
+ return web3_js_1.Transaction.from(Buffer.from(JSON.parse(serializedTransaction).data));
20
+ }
21
+ catch (e) {
22
+ return undefined;
23
+ }
24
+ }
25
+ }
26
+ exports.SolanaSerializationService = SolanaSerializationService;
27
+ //# sourceMappingURL=SolanaSerializationService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SolanaSerializationService.js","sourceRoot":"","sources":["../../../../src/domain/services/SolanaSerializationService.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AAEpE,MAAa,0BAA0B;IACrC,MAAM,CAAC,6BAA6B,CAClC,WAAiC;QAEjC,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,+BAA+B,CACpC,qBAA6B;QAE7B,IAAI;YACF,OAAO,8BAAoB,CAAC,WAAW,CACrC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAC7C,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;IAED,MAAM,CAAC,4BAA4B,CACjC,qBAA6B;QAE7B,IAAI;YACF,OAAO,qBAAW,CAAC,IAAI,CACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CACpD,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF;AA9BD,gEA8BC"}
@@ -12,3 +12,4 @@ export * from './ClusterService';
12
12
  export * from './AmountService';
13
13
  export * from './AddressService';
14
14
  export * from './PublicKeyService';
15
+ export * from './SolanaSerializationService';
@@ -28,4 +28,5 @@ __exportStar(require("./ClusterService"), exports);
28
28
  __exportStar(require("./AmountService"), exports);
29
29
  __exportStar(require("./AddressService"), exports);
30
30
  __exportStar(require("./PublicKeyService"), exports);
31
+ __exportStar(require("./SolanaSerializationService"), exports);
31
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,+DAA6C"}