@heliofi/common 0.2.259 → 0.2.260
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/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/helio-wallet-transaction/dtos/helioWalletRefund.dto.js +33 -0
- 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/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/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 +3 -0
- package/dist/src/domain/model/withdraw/dtos/index.js +3 -0
- package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.d.ts +7 -0
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.js +39 -0
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.spec.js +43 -0
- package/dist/src/domain/model/withdraw/dtos/rawPreparedWithdrawal.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.d.ts +6 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.js +31 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.js +76 -0
- package/dist/src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.d.ts +4 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.js +27 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.d.ts +0 -2
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.js +0 -5
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.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/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
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.RawSubmitWithdrawalSignedTxDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const SignedTransactionKind_1 = require("../../broadcast/constants/SignedTransactionKind");
|
|
16
|
+
const submitWithdrawalRawStep_dto_1 = require("./submitWithdrawalRawStep.dto");
|
|
17
|
+
class RawSubmitWithdrawalSignedTxDto {
|
|
18
|
+
}
|
|
19
|
+
exports.RawSubmitWithdrawalSignedTxDto = RawSubmitWithdrawalSignedTxDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.Equals)(SignedTransactionKind_1.SignedTransactionKind.RAW),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RawSubmitWithdrawalSignedTxDto.prototype, "kind", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsArray)(),
|
|
26
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
27
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
28
|
+
(0, class_transformer_1.Type)(() => submitWithdrawalRawStep_dto_1.SubmitWithdrawalRawStepDto),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], RawSubmitWithdrawalSignedTxDto.prototype, "steps", void 0);
|
|
31
|
+
//# sourceMappingURL=rawSubmitWithdrawalSignedTx.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawSubmitWithdrawalSignedTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAgF;AAChF,2FAAwF;AACxF,+EAA2E;AAE3E,MAAa,8BAA8B;CAS1C;AATD,wEASC;AAPC;IADC,IAAA,wBAAM,EAAC,6CAAqB,CAAC,GAAG,CAAC;;4DACF;AAMhC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wDAA0B,CAAC;;6DACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
@@ -0,0 +1,76 @@
|
|
|
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 SignedTransactionKind_1 = require("../../broadcast/constants/SignedTransactionKind");
|
|
7
|
+
const rawSubmitWithdrawalSignedTx_dto_1 = require("./rawSubmitWithdrawalSignedTx.dto");
|
|
8
|
+
const validPayload = {
|
|
9
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
10
|
+
steps: [
|
|
11
|
+
{ order: 0, signedTx: '0xapprove' },
|
|
12
|
+
{ order: 1, signedTx: '0xswap' },
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
describe('RawSubmitWithdrawalSignedTxDto', () => {
|
|
16
|
+
it('accepts a well-formed multi-step raw signedTx', async () => {
|
|
17
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, validPayload);
|
|
18
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
19
|
+
expect(errors).toHaveLength(0);
|
|
20
|
+
});
|
|
21
|
+
it('accepts a single-step payload (native / no-approval source)', async () => {
|
|
22
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
23
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
24
|
+
steps: [{ order: 0, signedTx: 'AQwABase64Tx' }],
|
|
25
|
+
});
|
|
26
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
27
|
+
expect(errors).toHaveLength(0);
|
|
28
|
+
});
|
|
29
|
+
it('rejects a non-raw kind discriminator', async () => {
|
|
30
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
31
|
+
...validPayload,
|
|
32
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.POLYMARKET_WALLET,
|
|
33
|
+
});
|
|
34
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
35
|
+
expect(errors.find((e) => e.property === 'kind')).toBeDefined();
|
|
36
|
+
});
|
|
37
|
+
it('rejects an empty steps array', async () => {
|
|
38
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
39
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
40
|
+
steps: [],
|
|
41
|
+
});
|
|
42
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
43
|
+
expect(errors.find((e) => e.property === 'steps')).toBeDefined();
|
|
44
|
+
});
|
|
45
|
+
it('rejects a step with a negative order', async () => {
|
|
46
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
47
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
48
|
+
steps: [{ order: -1, signedTx: '0xswap' }],
|
|
49
|
+
});
|
|
50
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
51
|
+
expect(errors.find((e) => e.property === 'steps')).toBeDefined();
|
|
52
|
+
});
|
|
53
|
+
it('rejects a missing kind discriminator', async () => {
|
|
54
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
55
|
+
steps: [{ order: 0, signedTx: '0xswap' }],
|
|
56
|
+
});
|
|
57
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
58
|
+
expect(errors.find((e) => e.property === 'kind')).toBeDefined();
|
|
59
|
+
});
|
|
60
|
+
it('rejects a missing steps field', async () => {
|
|
61
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
62
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
63
|
+
});
|
|
64
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
65
|
+
expect(errors.find((e) => e.property === 'steps')).toBeDefined();
|
|
66
|
+
});
|
|
67
|
+
it('rejects a step with a missing order', async () => {
|
|
68
|
+
const dto = (0, class_transformer_1.plainToInstance)(rawSubmitWithdrawalSignedTx_dto_1.RawSubmitWithdrawalSignedTxDto, {
|
|
69
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.RAW,
|
|
70
|
+
steps: [{ signedTx: '0xswap' }],
|
|
71
|
+
});
|
|
72
|
+
const errors = await (0, class_validator_1.validate)(dto);
|
|
73
|
+
expect(errors.find((e) => e.property === 'steps')).toBeDefined();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=rawSubmitWithdrawalSignedTx.dto.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rawSubmitWithdrawalSignedTx.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/rawSubmitWithdrawalSignedTx.dto.spec.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAC1B,qDAA2C;AAC3C,yDAAoD;AACpD,2FAAwF;AACxF,uFAAmF;AAEnF,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,6CAAqB,CAAC,GAAG;IAC/B,KAAK,EAAE;QACL,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;QACnC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACjC;CACF,CAAC;AAEF,QAAQ,CAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,EAAE,CAAC,+CAA+C,EAAE,KAAK,IAAI,EAAE;QAC7D,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,gEAA8B,EAAE,YAAY,CAAC,CAAC;QAC1E,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6DAA6D,EAAE,KAAK,IAAI,EAAE;QAC3E,MAAM,GAAG,GAAG,IAAA,mCAAe,EAAC,gEAA8B,EAAE;YAC1D,IAAI,EAAE,6CAAqB,CAAC,GAAG;YAC/B,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC;SAChD,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;Q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,EAAE,CAAC;SAChC,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.SubmitWithdrawalRawStepDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SubmitWithdrawalRawStepDto {
|
|
15
|
+
}
|
|
16
|
+
exports.SubmitWithdrawalRawStepDto = SubmitWithdrawalRawStepDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsInt)(),
|
|
19
|
+
(0, class_validator_1.Min)(0),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], SubmitWithdrawalRawStepDto.prototype, "order", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SubmitWithdrawalRawStepDto.prototype, "signedTx", void 0);
|
|
27
|
+
//# sourceMappingURL=submitWithdrawalRawStep.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitWithdrawalRawStep.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawalRawStep.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AALC;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACO;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACI"}
|
|
@@ -11,14 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubmitWithdrawalSignedTxDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const SignedTransactionKind_1 = require("../../broadcast/constants/SignedTransactionKind");
|
|
15
14
|
class SubmitWithdrawalSignedTxDto {
|
|
16
15
|
}
|
|
17
16
|
exports.SubmitWithdrawalSignedTxDto = SubmitWithdrawalSignedTxDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsEnum)(SignedTransactionKind_1.SignedTransactionKind),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], SubmitWithdrawalSignedTxDto.prototype, "kind", void 0);
|
|
22
17
|
__decorate([
|
|
23
18
|
(0, class_validator_1.IsString)(),
|
|
24
19
|
(0, class_validator_1.Matches)(/^0x[0-9a-fA-F]{130}$/, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitWithdrawalSignedTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"submitWithdrawalSignedTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawalSignedTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAEpD,MAAa,2BAA2B;CAOvC;AAPD,kEAOC;AADC;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,sBAAsB,EAAE;QAC/B,OAAO,EACL,4EAA4E;KAC/E,CAAC;;8DACgB"}
|
|
@@ -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"}
|