@heliofi/common 0.2.259 → 0.2.261
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.
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.d.ts +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js.map +1 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js +1 -0
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js.map +1 -1
- package/dist/src/domain/model/company/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/company/dtos/index.js +1 -0
- package/dist/src/domain/model/company/dtos/index.js.map +1 -1
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.d.ts +4 -0
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.js +24 -0
- package/dist/src/domain/model/company/dtos/updateRestrictedDepositEngines.dto.js.map +1 -0
- package/dist/src/domain/model/company/entities/BaseCompany.entity.d.ts +2 -0
- package/dist/src/domain/model/company/entities/BaseCompany.entity.js.map +1 -1
- package/dist/src/domain/model/currency/entities/CurrencyFeature.d.ts +2 -0
- package/dist/src/domain/model/currency/entities/CurrencyFeature.js +2 -0
- package/dist/src/domain/model/currency/entities/CurrencyFeature.js.map +1 -1
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.d.ts +3 -1
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.js +2 -0
- package/dist/src/domain/model/decent-swap/entities/DecentBridgeProvider.js.map +1 -1
- package/dist/src/domain/model/decent-swap/entities/DecentTransactionStatus.d.ts +1 -1
- package/dist/src/domain/model/helio-wallet-transaction/dtos/helioWalletRefund.dto.d.ts +6 -0
- package/dist/src/domain/model/{withdraw/dtos/submitWithdrawalSignedTx.dto.js → helio-wallet-transaction/dtos/helioWalletRefund.dto.js} +15 -11
- package/dist/src/domain/model/helio-wallet-transaction/dtos/helioWalletRefund.dto.js.map +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.js +1 -0
- package/dist/src/domain/model/helio-wallet-transaction/dtos/index.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +1 -0
- package/dist/src/domain/model/index.js +1 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.d.ts +3 -0
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.js +7 -0
- package/dist/src/domain/model/intercom-identity/entities/IntercomIdentityHash.entity.js.map +1 -0
- package/dist/src/domain/model/intercom-identity/entities/index.d.ts +1 -0
- package/dist/src/domain/model/intercom-identity/entities/index.js +18 -0
- package/dist/src/domain/model/intercom-identity/entities/index.js.map +1 -0
- package/dist/src/domain/model/intercom-identity/index.d.ts +1 -0
- package/dist/src/domain/model/intercom-identity/index.js +18 -0
- package/dist/src/domain/model/intercom-identity/index.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.d.ts +5 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js +35 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js +57 -0
- package/dist/src/domain/model/on-ramps/dtos/getMoonPayPlatformPaymentMethods.dto.spec.js.map +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js +1 -0
- package/dist/src/domain/model/on-ramps/dtos/index.js.map +1 -1
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.d.ts +16 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethodConfig.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.d.ts +6 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayPlatformPaymentMethods.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.d.ts +12 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayStoredPaymentMethod.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/index.d.ts +3 -0
- package/dist/src/domain/model/on-ramps/entities/index.js +3 -0
- package/dist/src/domain/model/on-ramps/entities/index.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.d.ts +1 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js +3 -0
- package/dist/src/domain/model/transaction-meta/constants/TransactionStatus.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js +36 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js +31 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/createWithdrawalHookByApiKey.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js +21 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js +23 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/sendWithdrawalHookTestEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.d.ts +7 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js +41 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/dtos/updateWithdrawalHook.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/WithdrawalHook.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.d.ts +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js +15 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.d.ts +4 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js +23 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook/query/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.d.ts +9 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js +48 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/createWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js +19 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/index.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js +33 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/dtos/updateWithdrawalHookEvent.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.d.ts +12 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/BaseWithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.d.ts +5 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvents.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.d.ts +13 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js +8 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEventsEnriched.entity.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.d.ts +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js +3 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.d.ts +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js +2 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.d.ts +6 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js +34 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js.map +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js +18 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.js.map +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.d.ts +2 -1
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.js +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalKind.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.js +38 -0
- package/dist/src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/index.d.ts +0 -1
- package/dist/src/domain/model/withdraw/dtos/index.js +0 -1
- package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js +5 -0
- package/dist/src/domain/model/withdraw/dtos/preparedWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.d.ts +1 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js +3 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.js +31 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.d.ts +2 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.d.ts +10 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js +1 -0
- package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js +7 -6
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.d.ts +0 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.js.map +0 -1
|
@@ -16,4 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./WithdrawalHookEvent.entity"), exports);
|
|
18
18
|
__exportStar(require("./WithdrawalHookEventStatus.entity"), exports);
|
|
19
|
+
__exportStar(require("./BaseWithdrawalHookEvents.entity"), exports);
|
|
20
|
+
__exportStar(require("./WithdrawalHookEvents.entity"), exports);
|
|
21
|
+
__exportStar(require("./WithdrawalHookEventsEnriched.entity"), exports);
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,qEAAmD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,qEAAmD;AACnD,oEAAkD;AAClD,gEAA8C;AAC9C,wEAAsD"}
|
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos"), exports);
|
|
17
18
|
__exportStar(require("./entities"), exports);
|
|
19
|
+
__exportStar(require("./query"), exports);
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,0CAAwB"}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseQueryDto } from '../../../../shared';
|
|
2
|
+
import { WithdrawalHookEvent, WithdrawalHookEventStatus } from '../entities';
|
|
3
|
+
export declare class GetAllWithdrawalHookEventsQueryDto extends BaseQueryDto {
|
|
4
|
+
status?: WithdrawalHookEventStatus[];
|
|
5
|
+
event?: WithdrawalHookEvent[];
|
|
6
|
+
}
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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.GetAllWithdrawalHookEventsQueryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const shared_1 = require("../../../../shared");
|
|
15
|
+
const entities_1 = require("../entities");
|
|
16
|
+
const decorators_1 = require("../../../../../decorators");
|
|
17
|
+
class GetAllWithdrawalHookEventsQueryDto extends shared_1.BaseQueryDto {
|
|
18
|
+
}
|
|
19
|
+
exports.GetAllWithdrawalHookEventsQueryDto = GetAllWithdrawalHookEventsQueryDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, decorators_1.TransformToArray)(),
|
|
22
|
+
(0, class_validator_1.IsArray)(),
|
|
23
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEventStatus, { each: true }),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], GetAllWithdrawalHookEventsQueryDto.prototype, "status", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, decorators_1.TransformToArray)(),
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.IsEnum)(entities_1.WithdrawalHookEvent, { each: true }),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetAllWithdrawalHookEventsQueryDto.prototype, "event", void 0);
|
|
34
|
+
//# sourceMappingURL=getAllQuery.dto.js.map
|
package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllQuery.dto.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/getAllQuery.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,+CAAkD;AAClD,0CAA6E;AAC7E,0DAA6D;AAE7D,MAAa,kCAAmC,SAAQ,qBAAY;CAYnE;AAZD,gFAYC;AAPC;IAJC,IAAA,6BAAgB,GAAE;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,oCAAyB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACjD,IAAA,4BAAU,GAAE;;kEACwB;AAMrC;IAJC,IAAA,6BAAgB,GAAE;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAM,EAAC,8BAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,4BAAU,GAAE;;iEACiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getAllQuery.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getAllQuery.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/domain/model/webhook/withdrawal/withdrawal-hook-event/query/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -4,5 +4,6 @@ exports.WithdrawalKind = void 0;
|
|
|
4
4
|
var WithdrawalKind;
|
|
5
5
|
(function (WithdrawalKind) {
|
|
6
6
|
WithdrawalKind["POLYMARKET"] = "polymarket";
|
|
7
|
+
WithdrawalKind["RAW"] = "raw";
|
|
7
8
|
})(WithdrawalKind || (exports.WithdrawalKind = WithdrawalKind = {}));
|
|
8
9
|
//# sourceMappingURL=WithdrawalKind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalKind.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawalKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"WithdrawalKind.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawalKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 createWithdrawalConfig_dto_1 = require("./createWithdrawalConfig.dto");
|
|
6
|
+
const WithdrawalKind_1 = require("../constants/WithdrawalKind");
|
|
7
|
+
const basePayload = {
|
|
8
|
+
name: 'My withdrawal config',
|
|
9
|
+
currencyIds: ['507f1f77bcf86cd799439011'],
|
|
10
|
+
};
|
|
11
|
+
describe('CreateWithdrawalConfigDto', () => {
|
|
12
|
+
it('accepts kind = WithdrawalKind.RAW', async () => {
|
|
13
|
+
const dto = (0, class_transformer_1.plainToInstance)(createWithdrawalConfig_dto_1.CreateWithdrawalConfigDto, {
|
|
14
|
+
...basePayload,
|
|
15
|
+
kind: WithdrawalKind_1.WithdrawalKind.RAW,
|
|
16
|
+
});
|
|
17
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
18
|
+
expect(errors).toHaveLength(0);
|
|
19
|
+
});
|
|
20
|
+
it('accepts kind = WithdrawalKind.POLYMARKET (regression guard)', async () => {
|
|
21
|
+
const dto = (0, class_transformer_1.plainToInstance)(createWithdrawalConfig_dto_1.CreateWithdrawalConfigDto, {
|
|
22
|
+
...basePayload,
|
|
23
|
+
kind: WithdrawalKind_1.WithdrawalKind.POLYMARKET,
|
|
24
|
+
});
|
|
25
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
26
|
+
expect(errors).toHaveLength(0);
|
|
27
|
+
});
|
|
28
|
+
it('rejects an unrecognized kind', async () => {
|
|
29
|
+
const dto = (0, class_transformer_1.plainToInstance)(createWithdrawalConfig_dto_1.CreateWithdrawalConfigDto, {
|
|
30
|
+
...basePayload,
|
|
31
|
+
kind: 'not-a-kind',
|
|
32
|
+
});
|
|
33
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
34
|
+
const error = errors.find((e) => e.property === 'kind');
|
|
35
|
+
expect(error?.constraints?.isEnum).toBeDefined();
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=createWithdrawalConfig.dto.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWithdrawalConfig.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/createWithdrawalConfig.dto.spec.ts"],"names":[],"mappings":";;AAAA,qDAA2C;AAC3C,yDAAoD;AACpD,6EAAyE;AACzE,gEAA6D;AAE7D,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,CAAC,0BAA0B,CAAC;CAC1C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,4 @@ export * from './preparedWithdrawalTypedData.dto';
|
|
|
8
8
|
export * from './preparedWithdrawalTypedDataDomain.dto';
|
|
9
9
|
export * from './preparedWithdrawalTypedDataField.dto';
|
|
10
10
|
export * from './submitWithdrawal.dto';
|
|
11
|
-
export * from './submitWithdrawalSignedTx.dto';
|
|
12
11
|
export * from './updateWithdrawalConfig.dto';
|
|
@@ -24,6 +24,5 @@ __exportStar(require("./preparedWithdrawalTypedData.dto"), exports);
|
|
|
24
24
|
__exportStar(require("./preparedWithdrawalTypedDataDomain.dto"), exports);
|
|
25
25
|
__exportStar(require("./preparedWithdrawalTypedDataField.dto"), exports);
|
|
26
26
|
__exportStar(require("./submitWithdrawal.dto"), exports);
|
|
27
|
-
__exportStar(require("./submitWithdrawalSignedTx.dto"), exports);
|
|
28
27
|
__exportStar(require("./updateWithdrawalConfig.dto"), exports);
|
|
29
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,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,yDAAuC;AACvC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAClD,0EAAwD;AACxD,yEAAuD;AACvD,yDAAuC;AACvC,+DAA6C"}
|
|
@@ -32,4 +32,9 @@ __decorate([
|
|
|
32
32
|
(0, class_validator_1.IsMongoId)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], PreparedWithdrawalDto.prototype, "toCurrencyId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsMongoId)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PreparedWithdrawalDto.prototype, "sourceCurrencyId", void 0);
|
|
35
40
|
//# sourceMappingURL=preparedWithdrawal.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"preparedWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/preparedWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,MAAa,qBAAqB;CAkCjC;AAlCD,sDAkCC;AA1BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACQ;AAOrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACK;AAKlB;IADC,IAAA,yBAAO,EAAC,OAAO,CAAC;;qDACF;AAKf;IADC,IAAA,2BAAS,GAAE;;2DACS;AAQrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;+DACc"}
|
|
@@ -10,9 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubmitWithdrawalDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const submitWithdrawalSignedTx_dto_1 = require("./submitWithdrawalSignedTx.dto");
|
|
16
14
|
class SubmitWithdrawalDto {
|
|
17
15
|
}
|
|
18
16
|
exports.SubmitWithdrawalDto = SubmitWithdrawalDto;
|
|
@@ -21,8 +19,8 @@ __decorate([
|
|
|
21
19
|
__metadata("design:type", String)
|
|
22
20
|
], SubmitWithdrawalDto.prototype, "token", void 0);
|
|
23
21
|
__decorate([
|
|
24
|
-
(0, class_validator_1.
|
|
25
|
-
(0,
|
|
26
|
-
__metadata("design:type",
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
27
25
|
], SubmitWithdrawalDto.prototype, "signedTx", void 0);
|
|
28
26
|
//# sourceMappingURL=submitWithdrawal.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,mBAAmB;CAe/B;AAfD,kDAeC;AARC;IADC,IAAA,uBAAK,GAAE;;kDACM;AAOd;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("reflect-metadata");
|
|
4
|
+
const class_validator_1 = require("class-validator");
|
|
5
|
+
const class_transformer_1 = require("class-transformer");
|
|
6
|
+
const submitWithdrawal_dto_1 = require("./submitWithdrawal.dto");
|
|
7
|
+
const TOKEN = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.c2lnbmF0dXJl';
|
|
8
|
+
describe('SubmitWithdrawalDto', () => {
|
|
9
|
+
it('accepts a non-empty signed payload', async () => {
|
|
10
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, {
|
|
11
|
+
token: TOKEN,
|
|
12
|
+
signedTx: `0x${'a'.repeat(130)}`,
|
|
13
|
+
});
|
|
14
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
15
|
+
expect(errors).toHaveLength(0);
|
|
16
|
+
});
|
|
17
|
+
it('rejects a missing signedTx', async () => {
|
|
18
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, { token: TOKEN });
|
|
19
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
20
|
+
expect(errors.find((e) => e.property === 'signedTx')).toBeDefined();
|
|
21
|
+
});
|
|
22
|
+
it('rejects an empty signedTx', async () => {
|
|
23
|
+
const dto = (0, class_transformer_1.plainToInstance)(submitWithdrawal_dto_1.SubmitWithdrawalDto, {
|
|
24
|
+
token: TOKEN,
|
|
25
|
+
signedTx: '',
|
|
26
|
+
});
|
|
27
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
28
|
+
expect(errors.find((e) => e.property === 'signedTx')).toBeDefined();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=submitWithdrawal.dto.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitWithdrawal.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.spec.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAC1B,qDAA2C;AAC3C,yDAAoD;AACpD,iEAA6D;AAG7D,MAAM,KAAK,GAAG,mDAAmD,CAAC;AAElE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,GAAG,GAAG,IAAA,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wapRoute } from './WithdrawalCustomerSwapRoute.entity';
|
|
2
|
+
import { SlimCurrencyWithBlockchain } from '../../currency/entities/SlimCurrencyWithBlockchain.entity';
|
|
2
3
|
export declare class WithdrawalCustomerSwapRoutesResponse {
|
|
4
|
+
fromCurrencies: SlimCurrencyWithBlockchain[];
|
|
3
5
|
routes: WithdrawalCustomerSwapRoute[];
|
|
4
6
|
}
|
package/dist/src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalCustomerSwapRoutesResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"WithdrawalCustomerSwapRoutesResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalCustomerSwapRoutesResponse.entity.ts"],"names":[],"mappings":";;;AAOA,MAAa,oCAAoC;CAIhD;AAJD,oFAIC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
import { BroadcastAck } from '../constants/BroadcastAck';
|
|
3
|
+
import { WithdrawalState } from '../constants/WithdrawalState';
|
|
4
|
+
export declare class WithdrawalDetailEntity extends Entity {
|
|
5
|
+
withdrawalDetailId: string;
|
|
6
|
+
state: WithdrawalState;
|
|
7
|
+
txHash: string | null;
|
|
8
|
+
broadcastAck: BroadcastAck | null;
|
|
9
|
+
errorReason: string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalDetailEntity = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class WithdrawalDetailEntity extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalDetailEntity = WithdrawalDetailEntity;
|
|
8
|
+
//# sourceMappingURL=WithdrawalDetail.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalDetail.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalDetail.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,sBAAuB,SAAQ,eAAM;CAUjD;AAVD,wDAUC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './PreparedWithdrawal.entity';
|
|
2
2
|
export * from './SubmitWithdrawal.entity';
|
|
3
|
+
export * from './WithdrawalDetail.entity';
|
|
3
4
|
export * from './WithdrawalBalancesResponse.entity';
|
|
4
5
|
export * from './WithdrawalConfig.entity';
|
|
5
6
|
export * from './WithdrawalCostBreakdown.entity';
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./PreparedWithdrawal.entity"), exports);
|
|
18
18
|
__exportStar(require("./SubmitWithdrawal.entity"), exports);
|
|
19
|
+
__exportStar(require("./WithdrawalDetail.entity"), exports);
|
|
19
20
|
__exportStar(require("./WithdrawalBalancesResponse.entity"), exports);
|
|
20
21
|
__exportStar(require("./WithdrawalConfig.entity"), exports);
|
|
21
22
|
__exportStar(require("./WithdrawalCostBreakdown.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,mEAAiD;AACjD,uEAAqD;AACrD,gFAA8D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,mEAAiD;AACjD,uEAAqD;AACrD,gFAA8D"}
|
|
@@ -28,11 +28,12 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
28
28
|
it('narrows raw → unsignedTx', () => {
|
|
29
29
|
const prepared = {
|
|
30
30
|
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
31
|
-
chain: BlockchainSymbol_1.BlockchainSymbol.
|
|
32
|
-
unsignedTx: '
|
|
31
|
+
chain: BlockchainSymbol_1.BlockchainSymbol.SOL,
|
|
32
|
+
unsignedTx: 'AQABBA==',
|
|
33
33
|
};
|
|
34
34
|
if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.RAW) {
|
|
35
|
-
expect(prepared.
|
|
35
|
+
expect(prepared.chain).toBe(BlockchainSymbol_1.BlockchainSymbol.SOL);
|
|
36
|
+
expect(prepared.unsignedTx).toBe('AQABBA==');
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
38
39
|
throw new Error('expected RAW narrowing');
|
|
@@ -70,10 +71,10 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
70
71
|
};
|
|
71
72
|
const raw = {
|
|
72
73
|
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
73
|
-
chain: BlockchainSymbol_1.BlockchainSymbol.
|
|
74
|
-
unsignedTx: '
|
|
74
|
+
chain: BlockchainSymbol_1.BlockchainSymbol.SOL,
|
|
75
|
+
unsignedTx: 'rawtx',
|
|
75
76
|
};
|
|
76
|
-
expect(describeKind(raw)).toBe('
|
|
77
|
+
expect(describeKind(raw)).toBe('rawtx');
|
|
77
78
|
});
|
|
78
79
|
});
|
|
79
80
|
//# sourceMappingURL=preparedTransaction.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":";;AAAA,+EAA4E;AAC5E,wFAAqF;AAGrF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,QAAQ,GAAwB;YACpC,IAAI,EAAE,6CAAqB,CAAC,iBAAiB;YAC7C,SAAS,EAAE;gBACT,MAAM,EAAE;oBACN,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,GAAG;oBACZ,iBAAiB,EAAE,MAAM;iBAC1B;gBACD,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE;gBACtD,WAAW,EAAE,OAAO;gBACpB,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;aACxB;SACF,CAAC;QACF,IAAI,QAAQ,CAAC,IAAI,KAAK,6CAAqB,CAAC,iBAAiB,EAAE,CAAC;YAC9D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,QAAQ,GAAwB;YACpC,IAAI,EAAE,6CAAqB,CAAC,GAAG;YAC/B,KAAK,EAAE,mCAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":";;AAAA,+EAA4E;AAC5E,wFAAqF;AAGrF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,Q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