@heliofi/common 0.2.251 → 0.2.252

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 (154) hide show
  1. package/dist/src/domain/model/apiKey/entities/ApiKeyAccess.d.ts +2 -1
  2. package/dist/src/domain/model/apiKey/entities/ApiKeyAccess.js +1 -0
  3. package/dist/src/domain/model/apiKey/entities/ApiKeyAccess.js.map +1 -1
  4. package/dist/src/domain/model/audit/explorer/constants/AuditLogChanges.d.ts +5 -0
  5. package/dist/src/domain/model/audit/explorer/constants/AuditLogChanges.js +3 -0
  6. package/dist/src/domain/model/audit/explorer/constants/AuditLogChanges.js.map +1 -0
  7. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.d.ts +77 -0
  8. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js +82 -0
  9. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js.map +1 -0
  10. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.d.ts +6 -0
  11. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js +63 -0
  12. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js.map +1 -0
  13. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditEntityType.d.ts +15 -0
  14. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditEntityType.js +20 -0
  15. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditEntityType.js.map +1 -0
  16. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditStatus.d.ts +4 -0
  17. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditStatus.js +9 -0
  18. package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditStatus.js.map +1 -0
  19. package/dist/src/domain/model/audit/explorer/constants/index.d.ts +5 -0
  20. package/dist/src/domain/model/audit/explorer/constants/index.js +22 -0
  21. package/dist/src/domain/model/audit/explorer/constants/index.js.map +1 -0
  22. package/dist/src/domain/model/audit/explorer/dtos/createExplorerAuditLog.dto.d.ts +15 -0
  23. package/dist/src/domain/model/audit/explorer/dtos/createExplorerAuditLog.dto.js +3 -0
  24. package/dist/src/domain/model/audit/explorer/dtos/createExplorerAuditLog.dto.js.map +1 -0
  25. package/dist/src/domain/model/audit/explorer/dtos/explorerAuditLogQuery.dto.d.ts +9 -0
  26. package/dist/src/domain/model/audit/explorer/dtos/explorerAuditLogQuery.dto.js +40 -0
  27. package/dist/src/domain/model/audit/explorer/dtos/explorerAuditLogQuery.dto.js.map +1 -0
  28. package/dist/src/domain/model/audit/explorer/dtos/index.d.ts +2 -0
  29. package/dist/src/domain/model/audit/explorer/dtos/index.js +19 -0
  30. package/dist/src/domain/model/audit/explorer/dtos/index.js.map +1 -0
  31. package/dist/src/domain/model/audit/explorer/entities/BaseExplorerAuditLog.entity.d.ts +20 -0
  32. package/dist/src/domain/model/audit/explorer/entities/BaseExplorerAuditLog.entity.js +8 -0
  33. package/dist/src/domain/model/audit/explorer/entities/BaseExplorerAuditLog.entity.js.map +1 -0
  34. package/dist/src/domain/model/audit/explorer/entities/ExplorerAuditLogPageResponse.entity.d.ts +7 -0
  35. package/dist/src/domain/model/audit/explorer/entities/ExplorerAuditLogPageResponse.entity.js +3 -0
  36. package/dist/src/domain/model/audit/explorer/entities/ExplorerAuditLogPageResponse.entity.js.map +1 -0
  37. package/dist/src/domain/model/audit/explorer/entities/index.d.ts +2 -0
  38. package/dist/src/domain/model/audit/explorer/entities/index.js +19 -0
  39. package/dist/src/domain/model/audit/explorer/entities/index.js.map +1 -0
  40. package/dist/src/domain/model/audit/explorer/index.d.ts +3 -0
  41. package/dist/src/domain/model/audit/explorer/index.js +20 -0
  42. package/dist/src/domain/model/audit/explorer/index.js.map +1 -0
  43. package/dist/src/domain/model/audit/index.d.ts +1 -0
  44. package/dist/src/domain/model/audit/index.js +1 -0
  45. package/dist/src/domain/model/audit/index.js.map +1 -1
  46. package/dist/src/domain/model/broadcast/broadcast.spec.d.ts +1 -0
  47. package/dist/src/domain/model/broadcast/broadcast.spec.js +154 -0
  48. package/dist/src/domain/model/broadcast/broadcast.spec.js.map +1 -0
  49. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.d.ts +11 -0
  50. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js +16 -0
  51. package/dist/src/domain/model/broadcast/constants/BroadcastErrorCode.js.map +1 -0
  52. package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.d.ts +5 -0
  53. package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.js +10 -0
  54. package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.js.map +1 -0
  55. package/dist/src/domain/model/broadcast/constants/index.d.ts +2 -0
  56. package/dist/src/domain/model/broadcast/constants/index.js +19 -0
  57. package/dist/src/domain/model/broadcast/constants/index.js.map +1 -0
  58. package/dist/src/domain/model/broadcast/entities/BroadcastResult.d.ts +16 -0
  59. package/dist/src/domain/model/broadcast/entities/BroadcastResult.js +3 -0
  60. package/dist/src/domain/model/broadcast/entities/BroadcastResult.js.map +1 -0
  61. package/dist/src/domain/model/broadcast/entities/SignedTransaction.d.ts +29 -0
  62. package/dist/src/domain/model/broadcast/entities/SignedTransaction.js +3 -0
  63. package/dist/src/domain/model/broadcast/entities/SignedTransaction.js.map +1 -0
  64. package/dist/src/domain/model/broadcast/entities/index.d.ts +2 -0
  65. package/dist/src/domain/model/broadcast/entities/index.js +19 -0
  66. package/dist/src/domain/model/broadcast/entities/index.js.map +1 -0
  67. package/dist/src/domain/model/broadcast/index.d.ts +2 -0
  68. package/dist/src/domain/model/broadcast/index.js +19 -0
  69. package/dist/src/domain/model/broadcast/index.js.map +1 -0
  70. package/dist/src/domain/model/deposit-below-minimum-notification/entities/DepositBelowMinimumNotification.entity.d.ts +15 -0
  71. package/dist/src/domain/model/deposit-below-minimum-notification/entities/DepositBelowMinimumNotification.entity.js +8 -0
  72. package/dist/src/domain/model/deposit-below-minimum-notification/entities/DepositBelowMinimumNotification.entity.js.map +1 -0
  73. package/dist/src/domain/model/deposit-below-minimum-notification/entities/index.d.ts +1 -0
  74. package/dist/src/domain/model/deposit-below-minimum-notification/entities/index.js +18 -0
  75. package/dist/src/domain/model/deposit-below-minimum-notification/entities/index.js.map +1 -0
  76. package/dist/src/domain/model/deposit-below-minimum-notification/index.d.ts +1 -0
  77. package/dist/src/domain/model/deposit-below-minimum-notification/index.js +18 -0
  78. package/dist/src/domain/model/deposit-below-minimum-notification/index.js.map +1 -0
  79. package/dist/src/domain/model/deposit-management/entities/SanctionedDepositDetail.entity.d.ts +1 -1
  80. package/dist/src/domain/model/deposit-management/entities/SanctionedDepositDetail.entity.js.map +1 -1
  81. package/dist/src/domain/model/index.d.ts +2 -0
  82. package/dist/src/domain/model/index.js +2 -0
  83. package/dist/src/domain/model/index.js.map +1 -1
  84. package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformQuote.dto.d.ts +6 -0
  85. package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformQuote.dto.js +39 -0
  86. package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformQuote.dto.js.map +1 -0
  87. package/dist/src/domain/model/on-ramps/dtos/index.d.ts +2 -0
  88. package/dist/src/domain/model/on-ramps/dtos/index.js +2 -0
  89. package/dist/src/domain/model/on-ramps/dtos/index.js.map +1 -1
  90. package/dist/src/domain/model/on-ramps/dtos/moonpayPlatformWebhookPayload.dto.d.ts +12 -0
  91. package/dist/src/domain/model/on-ramps/dtos/moonpayPlatformWebhookPayload.dto.js +44 -0
  92. package/dist/src/domain/model/on-ramps/dtos/moonpayPlatformWebhookPayload.dto.js.map +1 -0
  93. package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformQuote.entity.d.ts +11 -0
  94. package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformQuote.entity.js +8 -0
  95. package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformQuote.entity.js.map +1 -0
  96. package/dist/src/domain/model/on-ramps/entities/index.d.ts +1 -0
  97. package/dist/src/domain/model/on-ramps/entities/index.js +1 -0
  98. package/dist/src/domain/model/on-ramps/entities/index.js.map +1 -1
  99. package/dist/src/domain/model/webhook/deposit/deposit-hook-event/entities/DepositHookEvent.entity.d.ts +2 -1
  100. package/dist/src/domain/model/webhook/deposit/deposit-hook-event/entities/DepositHookEvent.entity.js +1 -0
  101. package/dist/src/domain/model/webhook/deposit/deposit-hook-event/entities/DepositHookEvent.entity.js.map +1 -1
  102. package/dist/src/domain/model/withdraw/constants/WithdrawKind.d.ts +3 -0
  103. package/dist/src/domain/model/withdraw/constants/WithdrawKind.js +8 -0
  104. package/dist/src/domain/model/withdraw/constants/WithdrawKind.js.map +1 -0
  105. package/dist/src/domain/model/withdraw/constants/index.d.ts +1 -0
  106. package/dist/src/domain/model/withdraw/constants/index.js +1 -0
  107. package/dist/src/domain/model/withdraw/constants/index.js.map +1 -1
  108. package/dist/src/domain/model/withdraw/dtos/createWithdraw.dto.d.ts +2 -0
  109. package/dist/src/domain/model/withdraw/dtos/createWithdraw.dto.js +5 -0
  110. package/dist/src/domain/model/withdraw/dtos/createWithdraw.dto.js.map +1 -1
  111. package/dist/src/domain/model/withdraw/dtos/index.d.ts +8 -0
  112. package/dist/src/domain/model/withdraw/dtos/index.js +8 -0
  113. package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
  114. package/dist/src/domain/model/withdraw/dtos/preparedTransaction.dto.d.ts +19 -0
  115. package/dist/src/domain/model/withdraw/dtos/preparedTransaction.dto.js +3 -0
  116. package/dist/src/domain/model/withdraw/dtos/preparedTransaction.dto.js.map +1 -0
  117. package/dist/src/domain/model/withdraw/dtos/preparedWithdraw.dto.d.ts +8 -0
  118. package/dist/src/domain/model/withdraw/dtos/preparedWithdraw.dto.js +44 -0
  119. package/dist/src/domain/model/withdraw/dtos/preparedWithdraw.dto.js.map +1 -0
  120. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawCall.dto.d.ts +5 -0
  121. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawCall.dto.js +7 -0
  122. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawCall.dto.js.map +1 -0
  123. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawResponse.dto.d.ts +7 -0
  124. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawResponse.dto.js +7 -0
  125. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawResponse.dto.js.map +1 -0
  126. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawSummary.dto.d.ts +8 -0
  127. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawSummary.dto.js +7 -0
  128. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawSummary.dto.js.map +1 -0
  129. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedData.dto.d.ts +8 -0
  130. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedData.dto.js +7 -0
  131. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedData.dto.js.map +1 -0
  132. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataDomain.dto.d.ts +6 -0
  133. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataDomain.dto.js +7 -0
  134. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataDomain.dto.js.map +1 -0
  135. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataField.dto.d.ts +4 -0
  136. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataField.dto.js +7 -0
  137. package/dist/src/domain/model/withdraw/dtos/preparedWithdrawTypedDataField.dto.js.map +1 -0
  138. package/dist/src/domain/model/withdraw/entities/WithdrawCostBreakdown.entity.d.ts +9 -0
  139. package/dist/src/domain/model/withdraw/entities/WithdrawCostBreakdown.entity.js +7 -0
  140. package/dist/src/domain/model/withdraw/entities/WithdrawCostBreakdown.entity.js.map +1 -0
  141. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoute.entity.d.ts +7 -0
  142. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoute.entity.js +7 -0
  143. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoute.entity.js.map +1 -0
  144. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoutesResponse.entity.d.ts +4 -0
  145. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoutesResponse.entity.js +7 -0
  146. package/dist/src/domain/model/withdraw/entities/WithdrawCustomerSwapRoutesResponse.entity.js.map +1 -0
  147. package/dist/src/domain/model/withdraw/entities/index.d.ts +3 -0
  148. package/dist/src/domain/model/withdraw/entities/index.js +3 -0
  149. package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
  150. package/dist/src/domain/model/withdraw/preparedTransaction.spec.d.ts +1 -0
  151. package/dist/src/domain/model/withdraw/preparedTransaction.spec.js +79 -0
  152. package/dist/src/domain/model/withdraw/preparedTransaction.spec.js.map +1 -0
  153. package/dist/tsconfig.tsbuildinfo +1 -1
  154. package/package.json +2 -2
@@ -0,0 +1,44 @@
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.MoonPayPlatformWebhookPayloadDto = exports.MoonPayPlatformWebhookEventType = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ var MoonPayPlatformWebhookEventType;
15
+ (function (MoonPayPlatformWebhookEventType) {
16
+ MoonPayPlatformWebhookEventType["TRANSACTION_COMPLETED"] = "transaction_completed";
17
+ MoonPayPlatformWebhookEventType["TRANSACTION_FAILED"] = "transaction_failed";
18
+ MoonPayPlatformWebhookEventType["TRANSACTION_PENDING"] = "transaction_pending";
19
+ MoonPayPlatformWebhookEventType["TRANSACTION_WAITING_PAYMENT"] = "transaction_waiting_payment";
20
+ })(MoonPayPlatformWebhookEventType || (exports.MoonPayPlatformWebhookEventType = MoonPayPlatformWebhookEventType = {}));
21
+ class MoonPayPlatformWebhookPayloadDto {
22
+ }
23
+ exports.MoonPayPlatformWebhookPayloadDto = MoonPayPlatformWebhookPayloadDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], MoonPayPlatformWebhookPayloadDto.prototype, "type", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsObject)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", Object)
33
+ ], MoonPayPlatformWebhookPayloadDto.prototype, "data", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.IsOptional)(),
37
+ __metadata("design:type", String)
38
+ ], MoonPayPlatformWebhookPayloadDto.prototype, "externalCustomerId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", String)
43
+ ], MoonPayPlatformWebhookPayloadDto.prototype, "externalTransactionId", void 0);
44
+ //# sourceMappingURL=moonpayPlatformWebhookPayload.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moonpayPlatformWebhookPayload.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/dtos/moonpayPlatformWebhookPayload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAM7E,IAAY,+BAKX;AALD,WAAY,+BAA+B;IACzC,kFAA+C,CAAA;IAC/C,4EAAyC,CAAA;IACzC,8EAA2C,CAAA;IAC3C,8FAA2D,CAAA;AAC7D,CAAC,EALW,+BAA+B,+CAA/B,+BAA+B,QAK1C;AAED,MAAa,gCAAgC;CAgB5C;AAhBD,4EAgBC;AAbC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACiB;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4EACe;AAI5B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+EACkB"}
@@ -0,0 +1,11 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class MoonPayPlatformQuote extends Entity {
3
+ quoteId: string;
4
+ baseCurrencyAmount: number;
5
+ quoteCurrencyAmount: number;
6
+ feeAmount: number;
7
+ extraFeeAmount: number;
8
+ networkFeeAmount: number;
9
+ totalAmount: number;
10
+ signature: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MoonPayPlatformQuote = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class MoonPayPlatformQuote extends entity_1.Entity {
6
+ }
7
+ exports.MoonPayPlatformQuote = MoonPayPlatformQuote;
8
+ //# sourceMappingURL=MoonPayPlatformQuote.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoonPayPlatformQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/MoonPayPlatformQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,oBAAqB,SAAQ,eAAM;CAiB/C;AAjBD,oDAiBC"}
@@ -1,4 +1,5 @@
1
1
  export * from './MoonPayPaymentMethodConfig.entity';
2
+ export * from './MoonPayPlatformQuote.entity';
2
3
  export * from './MoonPayPlatformSession.entity';
3
4
  export * from './MoonPayTransactionType';
4
5
  export * from './MoonPayUrlSignature.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("./MoonPayPaymentMethodConfig.entity"), exports);
18
+ __exportStar(require("./MoonPayPlatformQuote.entity"), exports);
18
19
  __exportStar(require("./MoonPayPlatformSession.entity"), exports);
19
20
  __exportStar(require("./MoonPayTransactionType"), exports);
20
21
  __exportStar(require("./MoonPayUrlSignature.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,kEAAgD;AAChD,2DAAyC;AACzC,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,gEAA8C;AAC9C,kEAAgD;AAChD,2DAAyC;AACzC,+DAA6C"}
@@ -5,5 +5,6 @@ export declare enum DepositHookEvent {
5
5
  DEPOSIT_TX_ENRICHED = "DEPOSIT_TX_ENRICHED",
6
6
  DEPOSIT_CUSTOMER_QUOTA_WARNING = "DEPOSIT_CUSTOMER_QUOTA_WARNING",
7
7
  DEPOSIT_CUSTOMER_QUOTA_CRITICAL = "DEPOSIT_CUSTOMER_QUOTA_CRITICAL",
8
- DEPOSIT_CUSTOMER_QUOTA_REACHED = "DEPOSIT_CUSTOMER_QUOTA_REACHED"
8
+ DEPOSIT_CUSTOMER_QUOTA_REACHED = "DEPOSIT_CUSTOMER_QUOTA_REACHED",
9
+ DEPOSIT_BELOW_MINIMUM = "DEPOSIT_BELOW_MINIMUM"
9
10
  }
@@ -10,5 +10,6 @@ var DepositHookEvent;
10
10
  DepositHookEvent["DEPOSIT_CUSTOMER_QUOTA_WARNING"] = "DEPOSIT_CUSTOMER_QUOTA_WARNING";
11
11
  DepositHookEvent["DEPOSIT_CUSTOMER_QUOTA_CRITICAL"] = "DEPOSIT_CUSTOMER_QUOTA_CRITICAL";
12
12
  DepositHookEvent["DEPOSIT_CUSTOMER_QUOTA_REACHED"] = "DEPOSIT_CUSTOMER_QUOTA_REACHED";
13
+ DepositHookEvent["DEPOSIT_BELOW_MINIMUM"] = "DEPOSIT_BELOW_MINIMUM";
13
14
  })(DepositHookEvent || (exports.DepositHookEvent = DepositHookEvent = {}));
14
15
  //# sourceMappingURL=DepositHookEvent.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositHookEvent.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/deposit/deposit-hook-event/entities/DepositHookEvent.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iEAA6C,CAAA;IAC7C,iEAA6C,CAAA;IAC7C,+DAA2C,CAAA;IAC3C,qFAAiE,CAAA;IACjE,uFAAmE,CAAA;IACnE,qFAAiE,CAAA;AACnE,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
1
+ {"version":3,"file":"DepositHookEvent.entity.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/deposit/deposit-hook-event/entities/DepositHookEvent.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iEAA6C,CAAA;IAC7C,iEAA6C,CAAA;IAC7C,+DAA2C,CAAA;IAC3C,qFAAiE,CAAA;IACjE,uFAAmE,CAAA;IACnE,qFAAiE,CAAA;IACjE,mEAA+C,CAAA;AACjD,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B"}
@@ -0,0 +1,3 @@
1
+ export declare enum WithdrawKind {
2
+ POLYMARKET = "polymarket"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithdrawKind = void 0;
4
+ var WithdrawKind;
5
+ (function (WithdrawKind) {
6
+ WithdrawKind["POLYMARKET"] = "polymarket";
7
+ })(WithdrawKind || (exports.WithdrawKind = WithdrawKind = {}));
8
+ //# sourceMappingURL=WithdrawKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawKind.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,yCAAyB,CAAA;AAC3B,CAAC,EAFW,YAAY,4BAAZ,YAAY,QAEvB"}
@@ -5,3 +5,4 @@ export * from './WithdrawFeature';
5
5
  export * from './WithdrawState';
6
6
  export * from './WithdrawTransactionDirection';
7
7
  export * from './WithdrawTransactionStatus';
8
+ export * from './WithdrawKind';
@@ -21,4 +21,5 @@ __exportStar(require("./WithdrawFeature"), exports);
21
21
  __exportStar(require("./WithdrawState"), exports);
22
22
  __exportStar(require("./WithdrawTransactionDirection"), exports);
23
23
  __exportStar(require("./WithdrawTransactionStatus"), exports);
24
+ __exportStar(require("./WithdrawKind"), exports);
24
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,kDAAgC;AAChC,iEAA+C;AAC/C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,kDAAgC;AAChC,iEAA+C;AAC/C,8DAA4C;AAC5C,iDAA+B"}
@@ -1,5 +1,7 @@
1
+ import { WithdrawKind } from '../constants/WithdrawKind';
1
2
  import { BaseWithdrawDto } from './baseWithdraw.dto';
2
3
  export declare class CreateWithdrawDto extends BaseWithdrawDto {
4
+ kind: WithdrawKind;
3
5
  name: string;
4
6
  currencyIds: string[];
5
7
  }
@@ -11,10 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateWithdrawDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const WithdrawKind_1 = require("../constants/WithdrawKind");
14
15
  const baseWithdraw_dto_1 = require("./baseWithdraw.dto");
15
16
  class CreateWithdrawDto extends baseWithdraw_dto_1.BaseWithdrawDto {
16
17
  }
17
18
  exports.CreateWithdrawDto = CreateWithdrawDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsEnum)(WithdrawKind_1.WithdrawKind),
21
+ __metadata("design:type", String)
22
+ ], CreateWithdrawDto.prototype, "kind", void 0);
18
23
  __decorate([
19
24
  (0, class_validator_1.IsString)(),
20
25
  (0, class_validator_1.IsNotEmpty)(),
@@ -1 +1 @@
1
- {"version":3,"file":"createWithdraw.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/createWithdraw.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAqD;AAErD,MAAa,iBAAkB,SAAQ,kCAAe;CAUrD;AAVD,8CAUC;AANC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;+CACF;AAKb;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;;sDACM"}
1
+ {"version":3,"file":"createWithdraw.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/createWithdraw.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,4DAAyD;AACzD,yDAAqD;AAErD,MAAa,iBAAkB,SAAQ,kCAAe;CAarD;AAbD,8CAaC;AAXC;IADC,IAAA,wBAAM,EAAC,2BAAY,CAAC;;+CACF;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;+CACF;AAKb;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;;sDACM"}
@@ -1,3 +1,11 @@
1
1
  export * from './baseWithdraw.dto';
2
2
  export * from './createWithdraw.dto';
3
+ export * from './preparedTransaction.dto';
4
+ export * from './preparedWithdraw.dto';
5
+ export * from './preparedWithdrawCall.dto';
6
+ export * from './preparedWithdrawResponse.dto';
7
+ export * from './preparedWithdrawSummary.dto';
8
+ export * from './preparedWithdrawTypedData.dto';
9
+ export * from './preparedWithdrawTypedDataDomain.dto';
10
+ export * from './preparedWithdrawTypedDataField.dto';
3
11
  export * from './updateWithdraw.dto';
@@ -16,5 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./baseWithdraw.dto"), exports);
18
18
  __exportStar(require("./createWithdraw.dto"), exports);
19
+ __exportStar(require("./preparedTransaction.dto"), exports);
20
+ __exportStar(require("./preparedWithdraw.dto"), exports);
21
+ __exportStar(require("./preparedWithdrawCall.dto"), exports);
22
+ __exportStar(require("./preparedWithdrawResponse.dto"), exports);
23
+ __exportStar(require("./preparedWithdrawSummary.dto"), exports);
24
+ __exportStar(require("./preparedWithdrawTypedData.dto"), exports);
25
+ __exportStar(require("./preparedWithdrawTypedDataDomain.dto"), exports);
26
+ __exportStar(require("./preparedWithdrawTypedDataField.dto"), exports);
19
27
  __exportStar(require("./updateWithdraw.dto"), exports);
20
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,iEAA+C;AAC/C,gEAA8C;AAC9C,kEAAgD;AAChD,wEAAsD;AACtD,uEAAqD;AACrD,uDAAqC"}
@@ -0,0 +1,19 @@
1
+ import { BlockchainSymbol } from '../../blockchain/constants/BlockchainSymbol';
2
+ import { SignedTransactionKind } from '../../broadcast/constants/SignedTransactionKind';
3
+ import { PreparedWithdrawTypedDataDto } from './preparedWithdrawTypedData.dto';
4
+ export type PreparedTransaction = PolymarketWalletPreparedTransaction | RawPreparedTransaction | UserOpPreparedTransaction;
5
+ export interface PolymarketWalletPreparedTransaction {
6
+ kind: SignedTransactionKind.POLYMARKET_WALLET;
7
+ typedData: PreparedWithdrawTypedDataDto;
8
+ }
9
+ export interface RawPreparedTransaction {
10
+ kind: SignedTransactionKind.RAW;
11
+ chain: BlockchainSymbol;
12
+ unsignedTx: string;
13
+ }
14
+ export interface UserOpPreparedTransaction {
15
+ kind: SignedTransactionKind.USER_OP;
16
+ chain: BlockchainSymbol;
17
+ userOp: Record<string, unknown>;
18
+ entryPoint: string;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=preparedTransaction.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedTransaction.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedTransaction.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export declare class PreparedWithdrawDto {
2
+ eoa: string;
3
+ depositWallet: string;
4
+ recipient: string;
5
+ amount: string;
6
+ dstChainId: number;
7
+ dstToken: string;
8
+ }
@@ -0,0 +1,44 @@
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.PreparedWithdrawDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class PreparedWithdrawDto {
15
+ }
16
+ exports.PreparedWithdrawDto = PreparedWithdrawDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsEthereumAddress)(),
19
+ __metadata("design:type", String)
20
+ ], PreparedWithdrawDto.prototype, "eoa", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsEthereumAddress)(),
23
+ __metadata("design:type", String)
24
+ ], PreparedWithdrawDto.prototype, "depositWallet", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ __metadata("design:type", String)
29
+ ], PreparedWithdrawDto.prototype, "recipient", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.Matches)(/^\d+$/),
32
+ __metadata("design:type", String)
33
+ ], PreparedWithdrawDto.prototype, "amount", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsInt)(),
36
+ (0, class_validator_1.IsPositive)(),
37
+ __metadata("design:type", Number)
38
+ ], PreparedWithdrawDto.prototype, "dstChainId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsNotEmpty)(),
42
+ __metadata("design:type", String)
43
+ ], PreparedWithdrawDto.prototype, "dstToken", void 0);
44
+ //# sourceMappingURL=preparedWithdraw.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdraw.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdraw.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,MAAa,mBAAmB;CA+B/B;AA/BD,kDA+BC;AA3BC;IADC,IAAA,mCAAiB,GAAE;;gDACR;AAKZ;IADC,IAAA,mCAAiB,GAAE;;0DACE;AAOtB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACK;AAKlB;IADC,IAAA,yBAAO,EAAC,OAAO,CAAC;;mDACF;AAIf;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;uDACM;AAKnB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACI"}
@@ -0,0 +1,5 @@
1
+ export declare class PreparedWithdrawCallDto {
2
+ target: string;
3
+ value: string;
4
+ data: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawCallDto = void 0;
4
+ class PreparedWithdrawCallDto {
5
+ }
6
+ exports.PreparedWithdrawCallDto = PreparedWithdrawCallDto;
7
+ //# sourceMappingURL=preparedWithdrawCall.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawCall.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawCall.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,uBAAuB;CAMnC;AAND,0DAMC"}
@@ -0,0 +1,7 @@
1
+ import { PreparedTransaction } from './preparedTransaction.dto';
2
+ import { PreparedWithdrawSummaryDto } from './preparedWithdrawSummary.dto';
3
+ export declare class PreparedWithdrawResponseDto {
4
+ token: string;
5
+ prepared: PreparedTransaction;
6
+ summary: PreparedWithdrawSummaryDto;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawResponseDto = void 0;
4
+ class PreparedWithdrawResponseDto {
5
+ }
6
+ exports.PreparedWithdrawResponseDto = PreparedWithdrawResponseDto;
7
+ //# sourceMappingURL=preparedWithdrawResponse.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawResponse.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawResponse.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,2BAA2B;CAMvC;AAND,kEAMC"}
@@ -0,0 +1,8 @@
1
+ export declare class PreparedWithdrawSummaryDto {
2
+ sourceToken: string;
3
+ sourceAmount: string;
4
+ destinationToken: string;
5
+ destinationAmount: string;
6
+ destinationAmountMin: string;
7
+ expiresAt: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawSummaryDto = void 0;
4
+ class PreparedWithdrawSummaryDto {
5
+ }
6
+ exports.PreparedWithdrawSummaryDto = PreparedWithdrawSummaryDto;
7
+ //# sourceMappingURL=preparedWithdrawSummary.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawSummary.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawSummary.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,0BAA0B;CAYtC;AAZD,gEAYC"}
@@ -0,0 +1,8 @@
1
+ import { PreparedWithdrawTypedDataDomainDto } from './preparedWithdrawTypedDataDomain.dto';
2
+ import { PreparedWithdrawTypedDataFieldDto } from './preparedWithdrawTypedDataField.dto';
3
+ export declare class PreparedWithdrawTypedDataDto {
4
+ domain: PreparedWithdrawTypedDataDomainDto;
5
+ types: Record<string, PreparedWithdrawTypedDataFieldDto[]>;
6
+ primaryType: string;
7
+ message: Record<string, unknown>;
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawTypedDataDto = void 0;
4
+ class PreparedWithdrawTypedDataDto {
5
+ }
6
+ exports.PreparedWithdrawTypedDataDto = PreparedWithdrawTypedDataDto;
7
+ //# sourceMappingURL=preparedWithdrawTypedData.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawTypedData.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawTypedData.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,4BAA4B;CAQxC;AARD,oEAQC"}
@@ -0,0 +1,6 @@
1
+ export declare class PreparedWithdrawTypedDataDomainDto {
2
+ name: string;
3
+ version: string;
4
+ chainId: number;
5
+ verifyingContract: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawTypedDataDomainDto = void 0;
4
+ class PreparedWithdrawTypedDataDomainDto {
5
+ }
6
+ exports.PreparedWithdrawTypedDataDomainDto = PreparedWithdrawTypedDataDomainDto;
7
+ //# sourceMappingURL=preparedWithdrawTypedDataDomain.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawTypedDataDomain.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawTypedDataDomain.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,kCAAkC;CAQ9C;AARD,gFAQC"}
@@ -0,0 +1,4 @@
1
+ export declare class PreparedWithdrawTypedDataFieldDto {
2
+ name: string;
3
+ type: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreparedWithdrawTypedDataFieldDto = void 0;
4
+ class PreparedWithdrawTypedDataFieldDto {
5
+ }
6
+ exports.PreparedWithdrawTypedDataFieldDto = PreparedWithdrawTypedDataFieldDto;
7
+ //# sourceMappingURL=preparedWithdrawTypedDataField.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparedWithdrawTypedDataField.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawTypedDataField.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,iCAAiC;CAI7C;AAJD,8EAIC"}
@@ -0,0 +1,9 @@
1
+ export declare class WithdrawCostBreakdown {
2
+ networkGasSource: bigint;
3
+ ataFunding: bigint | null;
4
+ decentBridgeFee: bigint;
5
+ platformFee: bigint;
6
+ affiliateFee: bigint;
7
+ networkGasDest: bigint | null;
8
+ currencyCode: string;
9
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithdrawCostBreakdown = void 0;
4
+ class WithdrawCostBreakdown {
5
+ }
6
+ exports.WithdrawCostBreakdown = WithdrawCostBreakdown;
7
+ //# sourceMappingURL=WithdrawCostBreakdown.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCostBreakdown.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawCostBreakdown.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,qBAAqB;CAcjC;AAdD,sDAcC"}
@@ -0,0 +1,7 @@
1
+ import { SlimCurrencyWithBlockchain } from '../../currency/entities/SlimCurrencyWithBlockchain.entity';
2
+ export declare class WithdrawCustomerSwapRoute {
3
+ id: string;
4
+ fromCurrencyId: string;
5
+ toCurrency: SlimCurrencyWithBlockchain;
6
+ available: boolean;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithdrawCustomerSwapRoute = void 0;
4
+ class WithdrawCustomerSwapRoute {
5
+ }
6
+ exports.WithdrawCustomerSwapRoute = WithdrawCustomerSwapRoute;
7
+ //# sourceMappingURL=WithdrawCustomerSwapRoute.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCustomerSwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawCustomerSwapRoute.entity.ts"],"names":[],"mappings":";;;AAYA,MAAa,yBAAyB;CAQrC;AARD,8DAQC"}
@@ -0,0 +1,4 @@
1
+ import { WithdrawCustomerSwapRoute } from './WithdrawCustomerSwapRoute.entity';
2
+ export declare class WithdrawCustomerSwapRoutesResponse {
3
+ routes: WithdrawCustomerSwapRoute[];
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithdrawCustomerSwapRoutesResponse = void 0;
4
+ class WithdrawCustomerSwapRoutesResponse {
5
+ }
6
+ exports.WithdrawCustomerSwapRoutesResponse = WithdrawCustomerSwapRoutesResponse;
7
+ //# sourceMappingURL=WithdrawCustomerSwapRoutesResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCustomerSwapRoutesResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawCustomerSwapRoutesResponse.entity.ts"],"names":[],"mappings":";;;AAMA,MAAa,kCAAkC;CAE9C;AAFD,gFAEC"}
@@ -1 +1,4 @@
1
1
  export * from './Withdraw.entity';
2
+ export * from './WithdrawCostBreakdown.entity';
3
+ export * from './WithdrawCustomerSwapRoute.entity';
4
+ export * from './WithdrawCustomerSwapRoutesResponse.entity';
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Withdraw.entity"), exports);
18
+ __exportStar(require("./WithdrawCostBreakdown.entity"), exports);
19
+ __exportStar(require("./WithdrawCustomerSwapRoute.entity"), exports);
20
+ __exportStar(require("./WithdrawCustomerSwapRoutesResponse.entity"), exports);
18
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,qEAAmD;AACnD,8EAA4D"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const BlockchainSymbol_1 = require("../blockchain/constants/BlockchainSymbol");
4
+ const SignedTransactionKind_1 = require("../broadcast/constants/SignedTransactionKind");
5
+ describe('PreparedTransaction discriminated union', () => {
6
+ it('narrows polymarket_wallet → typedData', () => {
7
+ const prepared = {
8
+ kind: SignedTransactionKind_1.SignedTransactionKind.POLYMARKET_WALLET,
9
+ typedData: {
10
+ domain: {
11
+ name: 'DepositWallet',
12
+ version: '1',
13
+ chainId: 137,
14
+ verifyingContract: '0xdw',
15
+ },
16
+ types: { Batch: [{ name: 'nonce', type: 'uint256' }] },
17
+ primaryType: 'Batch',
18
+ message: { nonce: '6' },
19
+ },
20
+ };
21
+ if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.POLYMARKET_WALLET) {
22
+ expect(prepared.typedData.primaryType).toBe('Batch');
23
+ }
24
+ else {
25
+ throw new Error('expected POLYMARKET_WALLET narrowing');
26
+ }
27
+ });
28
+ it('narrows raw → unsignedTx', () => {
29
+ const prepared = {
30
+ kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
31
+ chain: BlockchainSymbol_1.BlockchainSymbol.POLYGON,
32
+ unsignedTx: '0xdeadbeef',
33
+ };
34
+ if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.RAW) {
35
+ expect(prepared.unsignedTx).toBe('0xdeadbeef');
36
+ }
37
+ else {
38
+ throw new Error('expected RAW narrowing');
39
+ }
40
+ });
41
+ it('narrows userop → userOp + entryPoint', () => {
42
+ const prepared = {
43
+ kind: SignedTransactionKind_1.SignedTransactionKind.USER_OP,
44
+ chain: BlockchainSymbol_1.BlockchainSymbol.POLYGON,
45
+ userOp: { sender: '0xowner', nonce: '0x0' },
46
+ entryPoint: '0xEntryPoint',
47
+ };
48
+ if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.USER_OP) {
49
+ expect(prepared.entryPoint).toBe('0xEntryPoint');
50
+ expect(prepared.userOp).toEqual({ sender: '0xowner', nonce: '0x0' });
51
+ }
52
+ else {
53
+ throw new Error('expected USER_OP narrowing');
54
+ }
55
+ });
56
+ it('exhaustive switch over PreparedTransaction compiles', () => {
57
+ const describeKind = (prepared) => {
58
+ switch (prepared.kind) {
59
+ case SignedTransactionKind_1.SignedTransactionKind.POLYMARKET_WALLET:
60
+ return prepared.typedData.primaryType;
61
+ case SignedTransactionKind_1.SignedTransactionKind.RAW:
62
+ return prepared.unsignedTx;
63
+ case SignedTransactionKind_1.SignedTransactionKind.USER_OP:
64
+ return prepared.entryPoint;
65
+ default: {
66
+ const exhaustive = prepared;
67
+ return exhaustive;
68
+ }
69
+ }
70
+ };
71
+ const raw = {
72
+ kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
73
+ chain: BlockchainSymbol_1.BlockchainSymbol.ETH,
74
+ unsignedTx: '0xrawtx',
75
+ };
76
+ expect(describeKind(raw)).toBe('0xrawtx');
77
+ });
78
+ });
79
+ //# sourceMappingURL=preparedTransaction.spec.js.map