@heliofi/common 0.2.246 → 0.2.247

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 (41) hide show
  1. package/dist/src/domain/constants/deposits.d.ts +23 -0
  2. package/dist/src/domain/constants/deposits.js +27 -1
  3. package/dist/src/domain/constants/deposits.js.map +1 -1
  4. package/dist/src/domain/model/charge/dtos/index.d.ts +1 -0
  5. package/dist/src/domain/model/charge/dtos/index.js +1 -0
  6. package/dist/src/domain/model/charge/dtos/index.js.map +1 -1
  7. package/dist/src/domain/model/charge/dtos/prepareBTCSwapTransactionFromCharge.dto.d.ts +5 -0
  8. package/dist/src/domain/model/charge/dtos/prepareBTCSwapTransactionFromCharge.dto.js +28 -0
  9. package/dist/src/domain/model/charge/dtos/prepareBTCSwapTransactionFromCharge.dto.js.map +1 -0
  10. package/dist/src/domain/model/deposit/entities/VirtualAccount.enums.d.ts +8 -5
  11. package/dist/src/domain/model/deposit/entities/VirtualAccount.enums.js +8 -5
  12. package/dist/src/domain/model/deposit/entities/VirtualAccount.enums.js.map +1 -1
  13. package/dist/src/domain/model/deposit/entities/VirtualAccountTransaction.entity.d.ts +9 -3
  14. package/dist/src/domain/model/deposit/entities/VirtualAccountTransaction.entity.js +2 -1
  15. package/dist/src/domain/model/deposit/entities/VirtualAccountTransaction.entity.js.map +1 -1
  16. package/dist/src/domain/model/deposit/entities/VirtualAccountTransactionAmount.entity.d.ts +5 -0
  17. package/dist/src/domain/model/deposit/entities/VirtualAccountTransactionAmount.entity.js +8 -0
  18. package/dist/src/domain/model/deposit/entities/VirtualAccountTransactionAmount.entity.js.map +1 -0
  19. package/dist/src/domain/model/deposit/entities/index.d.ts +2 -0
  20. package/dist/src/domain/model/deposit/entities/index.js +2 -0
  21. package/dist/src/domain/model/deposit/entities/index.js.map +1 -1
  22. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.d.ts +3 -0
  23. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.js +36 -0
  24. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.js.map +1 -0
  25. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.spec.d.ts +1 -0
  26. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.spec.js +52 -0
  27. package/dist/src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.spec.js.map +1 -0
  28. package/dist/src/domain/model/deposit/query/index.d.ts +1 -0
  29. package/dist/src/domain/model/deposit/query/index.js +1 -0
  30. package/dist/src/domain/model/deposit/query/index.js.map +1 -1
  31. package/dist/src/domain/model/deposit-management/dtos/RefundTransaction.dto.d.ts +1 -0
  32. package/dist/src/domain/model/deposit-management/dtos/RefundTransaction.dto.js +5 -0
  33. package/dist/src/domain/model/deposit-management/dtos/RefundTransaction.dto.js.map +1 -1
  34. package/dist/src/domain/model/prepare-transaction/dtos/index.d.ts +1 -0
  35. package/dist/src/domain/model/prepare-transaction/dtos/index.js +3 -1
  36. package/dist/src/domain/model/prepare-transaction/dtos/index.js.map +1 -1
  37. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCSwapTransaction.dto.d.ts +5 -0
  38. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCSwapTransaction.dto.js +28 -0
  39. package/dist/src/domain/model/prepare-transaction/dtos/prepareBTCSwapTransaction.dto.js.map +1 -0
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +2 -2
@@ -12,3 +12,26 @@ export declare enum DepositType {
12
12
  SWAP = "SWAP",
13
13
  REFUND = "REFUND"
14
14
  }
15
+ export declare enum DustCleanupStatus {
16
+ PENDING = "PENDING",
17
+ CONFIRMED = "CONFIRMED",
18
+ FAILED = "FAILED",
19
+ SKIPPED = "SKIPPED"
20
+ }
21
+ export declare enum DustCleanupSkipReason {
22
+ NO_ATA = "NO_ATA",
23
+ ZERO_BALANCE = "ZERO_BALANCE",
24
+ ABOVE_CEILING = "ABOVE_CEILING",
25
+ UNSUPPORTED_MINT = "UNSUPPORTED_MINT",
26
+ ALREADY_PROCESSED = "ALREADY_PROCESSED",
27
+ WALLET_NOT_IDLE = "WALLET_NOT_IDLE",
28
+ BALANCE_CHANGED = "BALANCE_CHANGED",
29
+ RETRY_EXHAUSTED = "RETRY_EXHAUSTED"
30
+ }
31
+ export declare enum DustCleanupErrorType {
32
+ RPC_FAILURE = "RPC_FAILURE",
33
+ SIGNING_FAILURE = "SIGNING_FAILURE",
34
+ SIMULATION_FAILURE = "SIMULATION_FAILURE",
35
+ BROADCAST_FAILURE = "BROADCAST_FAILURE",
36
+ CONFIRMATION_TIMEOUT = "CONFIRMATION_TIMEOUT"
37
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DepositType = exports.DepositSweepErrorType = exports.DepositSweepStatus = void 0;
3
+ exports.DustCleanupErrorType = exports.DustCleanupSkipReason = exports.DustCleanupStatus = exports.DepositType = exports.DepositSweepErrorType = exports.DepositSweepStatus = void 0;
4
4
  var DepositSweepStatus;
5
5
  (function (DepositSweepStatus) {
6
6
  DepositSweepStatus["SWEEPING"] = "SWEEPING";
@@ -18,4 +18,30 @@ var DepositType;
18
18
  DepositType["SWAP"] = "SWAP";
19
19
  DepositType["REFUND"] = "REFUND";
20
20
  })(DepositType || (exports.DepositType = DepositType = {}));
21
+ var DustCleanupStatus;
22
+ (function (DustCleanupStatus) {
23
+ DustCleanupStatus["PENDING"] = "PENDING";
24
+ DustCleanupStatus["CONFIRMED"] = "CONFIRMED";
25
+ DustCleanupStatus["FAILED"] = "FAILED";
26
+ DustCleanupStatus["SKIPPED"] = "SKIPPED";
27
+ })(DustCleanupStatus || (exports.DustCleanupStatus = DustCleanupStatus = {}));
28
+ var DustCleanupSkipReason;
29
+ (function (DustCleanupSkipReason) {
30
+ DustCleanupSkipReason["NO_ATA"] = "NO_ATA";
31
+ DustCleanupSkipReason["ZERO_BALANCE"] = "ZERO_BALANCE";
32
+ DustCleanupSkipReason["ABOVE_CEILING"] = "ABOVE_CEILING";
33
+ DustCleanupSkipReason["UNSUPPORTED_MINT"] = "UNSUPPORTED_MINT";
34
+ DustCleanupSkipReason["ALREADY_PROCESSED"] = "ALREADY_PROCESSED";
35
+ DustCleanupSkipReason["WALLET_NOT_IDLE"] = "WALLET_NOT_IDLE";
36
+ DustCleanupSkipReason["BALANCE_CHANGED"] = "BALANCE_CHANGED";
37
+ DustCleanupSkipReason["RETRY_EXHAUSTED"] = "RETRY_EXHAUSTED";
38
+ })(DustCleanupSkipReason || (exports.DustCleanupSkipReason = DustCleanupSkipReason = {}));
39
+ var DustCleanupErrorType;
40
+ (function (DustCleanupErrorType) {
41
+ DustCleanupErrorType["RPC_FAILURE"] = "RPC_FAILURE";
42
+ DustCleanupErrorType["SIGNING_FAILURE"] = "SIGNING_FAILURE";
43
+ DustCleanupErrorType["SIMULATION_FAILURE"] = "SIMULATION_FAILURE";
44
+ DustCleanupErrorType["BROADCAST_FAILURE"] = "BROADCAST_FAILURE";
45
+ DustCleanupErrorType["CONFIRMATION_TIMEOUT"] = "CONFIRMATION_TIMEOUT";
46
+ })(DustCleanupErrorType || (exports.DustCleanupErrorType = DustCleanupErrorType = {}));
21
47
  //# sourceMappingURL=deposits.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../../../src/domain/constants/deposits.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,qCAAe,CAAA;IACf,6CAAuB,CAAA;AACzB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;IAC3B,oEAA2C,CAAA;AAC7C,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
1
+ {"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../../../src/domain/constants/deposits.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,qCAAe,CAAA;IACf,6CAAuB,CAAA;AACzB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;IAC3B,oEAA2C,CAAA;AAC7C,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;AACrB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAED,IAAY,qBASX;AATD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,gEAAuC,CAAA;IACvC,4DAAmC,CAAA;IACnC,4DAAmC,CAAA;IACnC,4DAAmC,CAAA;AACrC,CAAC,EATW,qBAAqB,qCAArB,qBAAqB,QAShC;AAED,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,2DAAmC,CAAA;IACnC,iEAAyC,CAAA;IACzC,+DAAuC,CAAA;IACvC,qEAA6C,CAAA;AAC/C,CAAC,EANW,oBAAoB,oCAApB,oBAAoB,QAM/B"}
@@ -8,4 +8,5 @@ export * from './createChargeByApiKey.dto';
8
8
  export * from './prepareRequestBodyFromApiKeyCharge.dto';
9
9
  export * from './prepareBTCTransactionFromCharge.dto';
10
10
  export * from './prepareDOGETransactionFromCharge.dto';
11
+ export * from './prepareBTCSwapTransactionFromCharge.dto';
11
12
  export * from './shopifyPaymentDetails.dto';
@@ -24,5 +24,6 @@ __exportStar(require("./createChargeByApiKey.dto"), exports);
24
24
  __exportStar(require("./prepareRequestBodyFromApiKeyCharge.dto"), exports);
25
25
  __exportStar(require("./prepareBTCTransactionFromCharge.dto"), exports);
26
26
  __exportStar(require("./prepareDOGETransactionFromCharge.dto"), exports);
27
+ __exportStar(require("./prepareBTCSwapTransactionFromCharge.dto"), exports);
27
28
  __exportStar(require("./shopifyPaymentDetails.dto"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qEAAmD;AACnD,qEAAmD;AACnD,qEAAmD;AACnD,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AACvD,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qEAAmD;AACnD,qEAAmD;AACnD,qEAAmD;AACnD,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AACvD,4EAA0D;AAC1D,8DAA4C"}
@@ -0,0 +1,5 @@
1
+ import { PrepareTransactionChargeDto } from './prepareTransactionFromCharge.dto';
2
+ export declare class PrepareBTCSwapTransactionFromChargeDto extends PrepareTransactionChargeDto {
3
+ btcPublicKey: string;
4
+ swapRouteToken: string;
5
+ }
@@ -0,0 +1,28 @@
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.PrepareBTCSwapTransactionFromChargeDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const prepareTransactionFromCharge_dto_1 = require("./prepareTransactionFromCharge.dto");
15
+ class PrepareBTCSwapTransactionFromChargeDto extends prepareTransactionFromCharge_dto_1.PrepareTransactionChargeDto {
16
+ }
17
+ exports.PrepareBTCSwapTransactionFromChargeDto = PrepareBTCSwapTransactionFromChargeDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], PrepareBTCSwapTransactionFromChargeDto.prototype, "btcPublicKey", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], PrepareBTCSwapTransactionFromChargeDto.prototype, "swapRouteToken", void 0);
28
+ //# sourceMappingURL=prepareBTCSwapTransactionFromCharge.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareBTCSwapTransactionFromCharge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/charge/dtos/prepareBTCSwapTransactionFromCharge.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yFAAiF;AAEjF,MAAa,sCAAuC,SAAQ,8DAA2B;CAQtF;AARD,wFAQC;AALC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4EACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACU"}
@@ -19,11 +19,14 @@ export declare enum VirtualAccountBankDetailsStatus {
19
19
  ERROR = "ERROR"
20
20
  }
21
21
  export declare enum VirtualAccountTransactionStatus {
22
- PENDING = "PENDING",
23
- RECEIVED_FIAT = "RECEIVED_FIAT",
24
- SENDING_CRYPTO = "SENDING_CRYPTO",
25
- SENT_CRYPTO = "SENT_CRYPTO",
26
- FAILED = "FAILED"
22
+ FUNDS_REVIEW_IN_PROGRESS = "FundsReviewInProgress",
23
+ CONVERSION_IN_PROGRESS = "ConversionInProgress",
24
+ PAYOUT_IN_PROGRESS = "PayoutInProgress",
25
+ COMPLETED = "Completed",
26
+ FAILED = "Failed",
27
+ REJECTED_AML = "RejectedAml",
28
+ REJECTED_FRAUD = "RejectedFraud",
29
+ REJECTED_MIN_AMOUNT = "RejectedMinAmount"
27
30
  }
28
31
  export declare enum VirtualAccountStep {
29
32
  INIT = "INIT",
@@ -26,11 +26,14 @@ var VirtualAccountBankDetailsStatus;
26
26
  })(VirtualAccountBankDetailsStatus || (exports.VirtualAccountBankDetailsStatus = VirtualAccountBankDetailsStatus = {}));
27
27
  var VirtualAccountTransactionStatus;
28
28
  (function (VirtualAccountTransactionStatus) {
29
- VirtualAccountTransactionStatus["PENDING"] = "PENDING";
30
- VirtualAccountTransactionStatus["RECEIVED_FIAT"] = "RECEIVED_FIAT";
31
- VirtualAccountTransactionStatus["SENDING_CRYPTO"] = "SENDING_CRYPTO";
32
- VirtualAccountTransactionStatus["SENT_CRYPTO"] = "SENT_CRYPTO";
33
- VirtualAccountTransactionStatus["FAILED"] = "FAILED";
29
+ VirtualAccountTransactionStatus["FUNDS_REVIEW_IN_PROGRESS"] = "FundsReviewInProgress";
30
+ VirtualAccountTransactionStatus["CONVERSION_IN_PROGRESS"] = "ConversionInProgress";
31
+ VirtualAccountTransactionStatus["PAYOUT_IN_PROGRESS"] = "PayoutInProgress";
32
+ VirtualAccountTransactionStatus["COMPLETED"] = "Completed";
33
+ VirtualAccountTransactionStatus["FAILED"] = "Failed";
34
+ VirtualAccountTransactionStatus["REJECTED_AML"] = "RejectedAml";
35
+ VirtualAccountTransactionStatus["REJECTED_FRAUD"] = "RejectedFraud";
36
+ VirtualAccountTransactionStatus["REJECTED_MIN_AMOUNT"] = "RejectedMinAmount";
34
37
  })(VirtualAccountTransactionStatus || (exports.VirtualAccountTransactionStatus = VirtualAccountTransactionStatus = {}));
35
38
  var VirtualAccountStep;
36
39
  (function (VirtualAccountStep) {
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualAccount.enums.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/VirtualAccount.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;IACrB,gDAAqB,CAAA;AACvB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC;AAGD,IAAY,gCAMX;AAND,WAAY,gCAAgC;IAC1C,kEAA8B,CAAA;IAC9B,0EAAsC,CAAA;IACtC,sFAAkD,CAAA;IAClD,qDAAiB,CAAA;IACjB,2DAAuB,CAAA;AACzB,CAAC,EANW,gCAAgC,gDAAhC,gCAAgC,QAM3C;AAED,IAAY,+BAMX;AAND,WAAY,+BAA+B;IACzC,wDAAqB,CAAA;IACrB,sDAAmB,CAAA;IACnB,wDAAqB,CAAA;IACrB,wDAAqB,CAAA;IACrB,kDAAe,CAAA;AACjB,CAAC,EANW,+BAA+B,+CAA/B,+BAA+B,QAM1C;AAED,IAAY,+BAMX;AAND,WAAY,+BAA+B;IACzC,sDAAmB,CAAA;IACnB,kEAA+B,CAAA;IAC/B,oEAAiC,CAAA;IACjC,8DAA2B,CAAA;IAC3B,oDAAiB,CAAA;AACnB,CAAC,EANW,+BAA+B,+CAA/B,+BAA+B,QAM1C;AAED,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qDAA+B,CAAA;IAC/B,yDAAmC,CAAA;IACnC,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,mEAA6C,CAAA;IAC7C,qCAAe,CAAA;AACjB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B"}
1
+ {"version":3,"file":"VirtualAccount.enums.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/VirtualAccount.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;IACrB,gDAAqB,CAAA;AACvB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC;AAGD,IAAY,gCAMX;AAND,WAAY,gCAAgC;IAC1C,kEAA8B,CAAA;IAC9B,0EAAsC,CAAA;IACtC,sFAAkD,CAAA;IAClD,qDAAiB,CAAA;IACjB,2DAAuB,CAAA;AACzB,CAAC,EANW,gCAAgC,gDAAhC,gCAAgC,QAM3C;AAED,IAAY,+BAMX;AAND,WAAY,+BAA+B;IACzC,wDAAqB,CAAA;IACrB,sDAAmB,CAAA;IACnB,wDAAqB,CAAA;IACrB,wDAAqB,CAAA;IACrB,kDAAe,CAAA;AACjB,CAAC,EANW,+BAA+B,+CAA/B,+BAA+B,QAM1C;AAED,IAAY,+BASX;AATD,WAAY,+BAA+B;IACzC,qFAAkD,CAAA;IAClD,kFAA+C,CAAA;IAC/C,0EAAuC,CAAA;IACvC,0DAAuB,CAAA;IACvB,oDAAiB,CAAA;IACjB,+DAA4B,CAAA;IAC5B,mEAAgC,CAAA;IAChC,4EAAyC,CAAA;AAC3C,CAAC,EATW,+BAA+B,+CAA/B,+BAA+B,QAS1C;AAED,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,qDAA+B,CAAA;IAC/B,yDAAmC,CAAA;IACnC,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,mEAA6C,CAAA;IAC7C,qCAAe,CAAA;AACjB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B"}
@@ -1,7 +1,13 @@
1
1
  import { VirtualAccountTransactionStatus } from './VirtualAccount.enums';
2
- export declare class VirtualAccountTransaction {
2
+ import { Entity } from '../../entity';
3
+ import { VirtualAccountTransactionAmount } from './VirtualAccountTransactionAmount.entity';
4
+ export declare class VirtualAccountTransaction extends Entity {
3
5
  id: string;
4
- externalId: string;
6
+ autorampId: string;
5
7
  status: VirtualAccountTransactionStatus;
6
- occurredAt?: string;
8
+ sourceAmount: VirtualAccountTransactionAmount;
9
+ destinationAmount: VirtualAccountTransactionAmount;
10
+ exchangeRate?: string;
11
+ fee?: string;
12
+ createdAt: string;
7
13
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VirtualAccountTransaction = void 0;
4
- class VirtualAccountTransaction {
4
+ const entity_1 = require("../../entity");
5
+ class VirtualAccountTransaction extends entity_1.Entity {
5
6
  }
6
7
  exports.VirtualAccountTransaction = VirtualAccountTransaction;
7
8
  //# sourceMappingURL=VirtualAccountTransaction.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualAccountTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/VirtualAccountTransaction.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,yBAAyB;CAQrC;AARD,8DAQC"}
1
+ {"version":3,"file":"VirtualAccountTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/VirtualAccountTransaction.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAGtC,MAAa,yBAA0B,SAAQ,eAAM;CAgBpD;AAhBD,8DAgBC"}
@@ -0,0 +1,5 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class VirtualAccountTransactionAmount extends Entity {
3
+ amount: string;
4
+ currency: string;
5
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VirtualAccountTransactionAmount = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class VirtualAccountTransactionAmount extends entity_1.Entity {
6
+ }
7
+ exports.VirtualAccountTransactionAmount = VirtualAccountTransactionAmount;
8
+ //# sourceMappingURL=VirtualAccountTransactionAmount.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualAccountTransactionAmount.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/VirtualAccountTransactionAmount.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,+BAAgC,SAAQ,eAAM;CAI1D;AAJD,0EAIC"}
@@ -1,4 +1,6 @@
1
1
  export * from './VirtualAccountBankDetails.entity';
2
+ export * from './VirtualAccountTransaction.entity';
3
+ export * from './VirtualAccountTransactionAmount.entity';
2
4
  export * from './DepositCustomerForMerchant.entity';
3
5
  export * from './DepositCustomerVirtualAccountDetails.entity';
4
6
  export * from './DepositWalletEnriched.entity';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./VirtualAccountBankDetails.entity"), exports);
18
+ __exportStar(require("./VirtualAccountTransaction.entity"), exports);
19
+ __exportStar(require("./VirtualAccountTransactionAmount.entity"), exports);
18
20
  __exportStar(require("./DepositCustomerForMerchant.entity"), exports);
19
21
  __exportStar(require("./DepositCustomerVirtualAccountDetails.entity"), exports);
20
22
  __exportStar(require("./DepositWalletEnriched.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oEAAkD;AAClD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,sEAAoD;AACpD,gFAA8D;AAC9D,iEAA+C;AAC/C,2DAAyC;AACzC,mDAAiC;AACjC,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,4DAA0C;AAC1C,iDAA+B;AAC/B,+DAA6C;AAC7C,yEAAuD;AACvD,oEAAkD;AAClD,oFAAkE;AAClE,4EAA0D;AAC1D,6EAA2D;AAC3D,yDAAuC;AACvC,yEAAuD;AACvD,qEAAmD;AACnD,8DAA4C;AAC5C,0DAAwC;AACxC,iEAA+C;AAC/C,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,+EAA6D;AAC7D,oEAAkD;AAClD,qDAAmC;AACnC,gEAA8C;AAC9C,sEAAoD;AACpD,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C"}
@@ -0,0 +1,3 @@
1
+ export declare class GetVirtualAccountTransactionsByIdsQueryDto {
2
+ ids: string[];
3
+ }
@@ -0,0 +1,36 @@
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.GetVirtualAccountTransactionsByIdsQueryDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class GetVirtualAccountTransactionsByIdsQueryDto {
16
+ }
17
+ exports.GetVirtualAccountTransactionsByIdsQueryDto = GetVirtualAccountTransactionsByIdsQueryDto;
18
+ __decorate([
19
+ (0, class_transformer_1.Transform)((data) => {
20
+ if (data.type === class_transformer_1.TransformationType.PLAIN_TO_CLASS) {
21
+ const { value } = data;
22
+ if (value === undefined || value === null) {
23
+ return value;
24
+ }
25
+ return Array.isArray(value) ? value : [value];
26
+ }
27
+ return data.value;
28
+ }),
29
+ (0, class_validator_1.IsArray)(),
30
+ (0, class_validator_1.ArrayMinSize)(1),
31
+ (0, class_validator_1.ArrayMaxSize)(100),
32
+ (0, class_validator_1.IsString)({ each: true }),
33
+ (0, class_validator_1.IsNotEmpty)({ each: true }),
34
+ __metadata("design:type", Array)
35
+ ], GetVirtualAccountTransactionsByIdsQueryDto.prototype, "ids", void 0);
36
+ //# sourceMappingURL=getVirtualAccountTransactionsByIdsQuery.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVirtualAccountTransactionsByIdsQuery.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,qDAMyB;AAEzB,MAAa,0CAA0C;CAiBtD;AAjBD,gGAiBC;AADC;IAfC,IAAA,6BAAS,EAAC,CAAC,IAAI,EAAE,EAAE;QAClB,IAAI,IAAI,CAAC,IAAI,KAAK,sCAAkB,CAAC,cAAc,EAAE,CAAC;YACpD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;YACvB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBAC1C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,GAAG,CAAC;IACjB,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uEACb"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const class_validator_1 = require("class-validator");
4
+ const class_transformer_1 = require("class-transformer");
5
+ const getVirtualAccountTransactionsByIdsQuery_dto_1 = require("./getVirtualAccountTransactionsByIdsQuery.dto");
6
+ describe('GetVirtualAccountTransactionsByIdsQueryDto', () => {
7
+ it('accepts a single ids query value as a one-element array', async () => {
8
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {
9
+ ids: 'txn-uuid-1',
10
+ });
11
+ const errors = await (0, class_validator_1.validate)(dto);
12
+ expect(errors).toHaveLength(0);
13
+ expect(dto.ids).toStrictEqual(['txn-uuid-1']);
14
+ });
15
+ it('accepts multiple ids query values', async () => {
16
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {
17
+ ids: ['txn-uuid-1', 'txn-uuid-2'],
18
+ });
19
+ const errors = await (0, class_validator_1.validate)(dto);
20
+ expect(errors).toHaveLength(0);
21
+ expect(dto.ids).toStrictEqual(['txn-uuid-1', 'txn-uuid-2']);
22
+ });
23
+ it('rejects when ids is missing', async () => {
24
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {});
25
+ const errors = await (0, class_validator_1.validate)(dto);
26
+ expect(errors.some((e) => e.property === 'ids')).toBe(true);
27
+ });
28
+ it('rejects an empty ids array', async () => {
29
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {
30
+ ids: [],
31
+ });
32
+ const errors = await (0, class_validator_1.validate)(dto);
33
+ const idsError = errors.find((e) => e.property === 'ids');
34
+ expect(idsError?.constraints?.arrayMinSize).toBeDefined();
35
+ });
36
+ it('rejects more than 100 ids', async () => {
37
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {
38
+ ids: Array.from({ length: 101 }, (_, i) => `txn-${i}`),
39
+ });
40
+ const errors = await (0, class_validator_1.validate)(dto);
41
+ const idsError = errors.find((e) => e.property === 'ids');
42
+ expect(idsError?.constraints?.arrayMaxSize).toBeDefined();
43
+ });
44
+ it('rejects blank id strings', async () => {
45
+ const dto = (0, class_transformer_1.plainToInstance)(getVirtualAccountTransactionsByIdsQuery_dto_1.GetVirtualAccountTransactionsByIdsQueryDto, {
46
+ ids: ['txn-uuid-1', ''],
47
+ });
48
+ const errors = await (0, class_validator_1.validate)(dto);
49
+ expect(errors.some((e) => e.property === 'ids')).toBe(true);
50
+ });
51
+ });
52
+ //# sourceMappingURL=getVirtualAccountTransactionsByIdsQuery.dto.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVirtualAccountTransactionsByIdsQuery.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/query/getVirtualAccountTransactionsByIdsQuery.dto.spec.ts"],"names":[],"mappings":"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"}
@@ -1 +1,2 @@
1
1
  export * from './GetDepositsQueryDto';
2
+ export * from './getVirtualAccountTransactionsByIdsQuery.dto';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetDepositsQueryDto"), exports);
18
+ __exportStar(require("./getVirtualAccountTransactionsByIdsQuery.dto"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gFAA8D"}
@@ -5,4 +5,5 @@ export declare class RefundTransactionDto {
5
5
  recipientAddress?: string;
6
6
  amount?: string;
7
7
  walletAddress?: string;
8
+ currencySymbol?: string;
8
9
  }
@@ -44,4 +44,9 @@ __decorate([
44
44
  (0, class_validator_1.IsOptional)(),
45
45
  __metadata("design:type", String)
46
46
  ], RefundTransactionDto.prototype, "walletAddress", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_validator_1.IsOptional)(),
50
+ __metadata("design:type", String)
51
+ ], RefundTransactionDto.prototype, "currencySymbol", void 0);
47
52
  //# sourceMappingURL=RefundTransaction.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefundTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-management/dtos/RefundTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,kFAGqD;AAErD,MAAa,oBAAoB;CAkDhC;AAlDD,oDAkDC;AArCC;IANC,IAAA,4BAAU,EACT,CAAC,CAAuB,EAAE,EAAE,CAC1B,CAAC,CAAC,gBAAgB,KAAK,0CAAuB,CAAC,SAAS,CAC3D;IACA,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACY;AAOzB;IALC,IAAA,wBAAM,EAAC;QACN,GAAG,mCAAgB;QACnB,GAAG,0CAAuB;KAC3B,CAAC;IACD,IAAA,4BAAU,GAAE;;8DACgD;AAW7D;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACa;AAS1B;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;oDACG;AAShB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU"}
1
+ {"version":3,"file":"RefundTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-management/dtos/RefundTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,kFAGqD;AAErD,MAAa,oBAAoB;CAyEhC;AAzED,oDAyEC;AA5DC;IANC,IAAA,4BAAU,EACT,CAAC,CAAuB,EAAE,EAAE,CAC1B,CAAC,CAAC,gBAAgB,KAAK,0CAAuB,CAAC,SAAS,CAC3D;IACA,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACY;AAOzB;IALC,IAAA,wBAAM,EAAC;QACN,GAAG,mCAAgB;QACnB,GAAG,0CAAuB;KAC3B,CAAC;IACD,IAAA,4BAAU,GAAE;;8DACgD;AAe7D;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACa;AAa1B;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;;oDACG;AAahB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACU;AAWvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACW"}
@@ -6,3 +6,4 @@ export { PrepareHeadlessPaymentDto } from './prepareHeadlessPayment.dto';
6
6
  export { BasePrepareTransactionDto } from './BasePrepareTransaction.dto';
7
7
  export { PrepareEvmSwapTransactionDto } from './prepareEvmSwapTransaction.dto';
8
8
  export { PrepareDogeSwapTransactionDto } from './prepareDogeSwapTransaction.dto';
9
+ export { PrepareBTCSwapTransactionDto } from './prepareBTCSwapTransaction.dto';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrepareDogeSwapTransactionDto = exports.PrepareEvmSwapTransactionDto = exports.BasePrepareTransactionDto = exports.PrepareHeadlessPaymentDto = exports.PrepareBTCTransactionDto = exports.PrepareEvmTransactionDto = exports.PrepareSwapTransactionDto = exports.PrepareTransactionDto = void 0;
3
+ exports.PrepareBTCSwapTransactionDto = exports.PrepareDogeSwapTransactionDto = exports.PrepareEvmSwapTransactionDto = exports.BasePrepareTransactionDto = exports.PrepareHeadlessPaymentDto = exports.PrepareBTCTransactionDto = exports.PrepareEvmTransactionDto = exports.PrepareSwapTransactionDto = exports.PrepareTransactionDto = void 0;
4
4
  var prepareTransaction_dto_1 = require("./prepareTransaction.dto");
5
5
  Object.defineProperty(exports, "PrepareTransactionDto", { enumerable: true, get: function () { return prepareTransaction_dto_1.PrepareTransactionDto; } });
6
6
  var prepareSwapTransaction_dto_1 = require("./prepareSwapTransaction.dto");
@@ -17,4 +17,6 @@ var prepareEvmSwapTransaction_dto_1 = require("./prepareEvmSwapTransaction.dto")
17
17
  Object.defineProperty(exports, "PrepareEvmSwapTransactionDto", { enumerable: true, get: function () { return prepareEvmSwapTransaction_dto_1.PrepareEvmSwapTransactionDto; } });
18
18
  var prepareDogeSwapTransaction_dto_1 = require("./prepareDogeSwapTransaction.dto");
19
19
  Object.defineProperty(exports, "PrepareDogeSwapTransactionDto", { enumerable: true, get: function () { return prepareDogeSwapTransaction_dto_1.PrepareDogeSwapTransactionDto; } });
20
+ var prepareBTCSwapTransaction_dto_1 = require("./prepareBTCSwapTransaction.dto");
21
+ Object.defineProperty(exports, "PrepareBTCSwapTransactionDto", { enumerable: true, get: function () { return prepareBTCSwapTransaction_dto_1.PrepareBTCSwapTransactionDto; } });
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAAxD,+HAAA,qBAAqB,OAAA;AAC9B,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,iFAA+E;AAAtE,6IAAA,4BAA4B,OAAA;AACrC,mFAAiF;AAAxE,+IAAA,6BAA6B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAAxD,+HAAA,qBAAqB,OAAA;AAC9B,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,iFAA+E;AAAtE,6IAAA,4BAA4B,OAAA;AACrC,mFAAiF;AAAxE,+IAAA,6BAA6B,OAAA;AACtC,iFAA+E;AAAtE,6IAAA,4BAA4B,OAAA"}
@@ -0,0 +1,5 @@
1
+ import { BasePrepareTransactionDto } from './BasePrepareTransaction.dto';
2
+ export declare class PrepareBTCSwapTransactionDto extends BasePrepareTransactionDto {
3
+ btcPublicKey: string;
4
+ swapRouteToken: string;
5
+ }
@@ -0,0 +1,28 @@
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.PrepareBTCSwapTransactionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const BasePrepareTransaction_dto_1 = require("./BasePrepareTransaction.dto");
15
+ class PrepareBTCSwapTransactionDto extends BasePrepareTransaction_dto_1.BasePrepareTransactionDto {
16
+ }
17
+ exports.PrepareBTCSwapTransactionDto = PrepareBTCSwapTransactionDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], PrepareBTCSwapTransactionDto.prototype, "btcPublicKey", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], PrepareBTCSwapTransactionDto.prototype, "swapRouteToken", void 0);
28
+ //# sourceMappingURL=prepareBTCSwapTransaction.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareBTCSwapTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/prepare-transaction/dtos/prepareBTCSwapTransaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6EAAyE;AAEzE,MAAa,4BAA6B,SAAQ,sDAAyB;CAQ1E;AARD,oEAQC;AALC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACU"}