@heliofi/common 0.2.245 → 0.2.246
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/deposit/dtos/createDepositSwapQuote.dto.d.ts +7 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js +45 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js.map +1 -0
- package/dist/src/domain/model/deposit/dtos/depositSwapQuoteResponse.dto.d.ts +16 -0
- package/dist/src/domain/model/deposit/dtos/depositSwapQuoteResponse.dto.js +7 -0
- package/dist/src/domain/model/deposit/dtos/depositSwapQuoteResponse.dto.js.map +1 -0
- package/dist/src/domain/model/deposit/dtos/index.d.ts +2 -0
- package/dist/src/domain/model/deposit/dtos/index.js +2 -0
- package/dist/src/domain/model/deposit/dtos/index.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/entities/UpdateTransactionMeta.d.ts +3 -0
- package/dist/src/domain/model/transaction-meta/entities/UpdateTransactionMeta.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,45 @@
|
|
|
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.CreateDepositSwapQuoteDto = exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = 100;
|
|
15
|
+
class CreateDepositSwapQuoteDto {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.slippageBps = exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CreateDepositSwapQuoteDto = CreateDepositSwapQuoteDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateDepositSwapQuoteDto.prototype, "fromCurrencyId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.Matches)(/^[1-9]\d*$/, {
|
|
29
|
+
message: 'amountIn must be a positive integer string (minimal units).',
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateDepositSwapQuoteDto.prototype, "amountIn", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateDepositSwapQuoteDto.prototype, "senderAddress", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsInt)(),
|
|
40
|
+
(0, class_validator_1.Min)(0),
|
|
41
|
+
(0, class_validator_1.Max)(10000),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreateDepositSwapQuoteDto.prototype, "slippageBps", void 0);
|
|
45
|
+
//# sourceMappingURL=createDepositSwapQuote.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDepositSwapQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositSwapQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEZ,QAAA,uCAAuC,GAAG,GAAG,CAAC;AAE3D,MAAa,yBAAyB;IAAtC;QAmBE,gBAAW,GAAY,+CAAuC,CAAC;IACjE,CAAC;CAAA;AApBD,8DAoBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACU;AAMvB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,YAAY,EAAE;QACrB,OAAO,EAAE,6DAA6D;KACvE,CAAC;;2DACe;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACS;AAMtB;IAJC,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,4BAAU,GAAE;;8DACkD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Currency } from '../../currency/entities/Currency.entity';
|
|
2
|
+
export declare class DepositSwapQuoteResponseDto {
|
|
3
|
+
fromCurrency: Currency;
|
|
4
|
+
toCurrency: Currency;
|
|
5
|
+
amountIn: string;
|
|
6
|
+
amountOutGross: string;
|
|
7
|
+
amountOutNet: string;
|
|
8
|
+
platformFeeBps: number;
|
|
9
|
+
platformFeeAmount: string;
|
|
10
|
+
affiliateFeeBps: number;
|
|
11
|
+
affiliateFeeAmount: string;
|
|
12
|
+
slippageBps: number;
|
|
13
|
+
exchangeRate?: number;
|
|
14
|
+
estimatedPriceImpact?: number;
|
|
15
|
+
expiresAt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DepositSwapQuoteResponseDto = void 0;
|
|
4
|
+
class DepositSwapQuoteResponseDto {
|
|
5
|
+
}
|
|
6
|
+
exports.DepositSwapQuoteResponseDto = DepositSwapQuoteResponseDto;
|
|
7
|
+
//# sourceMappingURL=depositSwapQuoteResponse.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositSwapQuoteResponse.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/depositSwapQuoteResponse.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,2BAA2B;CAiFvC;AAjFD,kEAiFC"}
|
|
@@ -7,3 +7,5 @@ export * from './updateDeposit.dto';
|
|
|
7
7
|
export * from './setDepositCustomerVirtualAccountEmail.dto';
|
|
8
8
|
export * from './setDepositCustomerVirtualAccountCountry.dto';
|
|
9
9
|
export * from './assignDepositCustomerWallet.dto';
|
|
10
|
+
export * from './createDepositSwapQuote.dto';
|
|
11
|
+
export * from './depositSwapQuoteResponse.dto';
|
|
@@ -23,4 +23,6 @@ __exportStar(require("./updateDeposit.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./setDepositCustomerVirtualAccountEmail.dto"), exports);
|
|
24
24
|
__exportStar(require("./setDepositCustomerVirtualAccountCountry.dto"), exports);
|
|
25
25
|
__exportStar(require("./assignDepositCustomerWallet.dto"), exports);
|
|
26
|
+
__exportStar(require("./createDepositSwapQuote.dto"), exports);
|
|
27
|
+
__exportStar(require("./depositSwapQuoteResponse.dto"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D;AAC9D,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D;AAC9D,oEAAkD;AAClD,+DAA6C;AAC7C,iEAA+C"}
|
|
@@ -4,6 +4,7 @@ import { ProductDetailsDto } from '../../product-details';
|
|
|
4
4
|
import { IntegrationDetails } from '../../integrations-details';
|
|
5
5
|
import type { PaymentCheckoutType } from '../../charge';
|
|
6
6
|
import { HashAlgorithm } from '../../hash-algorithm';
|
|
7
|
+
import { TokenQuoteMeta } from './TokenQuoteMeta';
|
|
7
8
|
export declare class UpdateTransactionMeta {
|
|
8
9
|
transactionSignature?: string;
|
|
9
10
|
transactionStatus?: TransactionStatus;
|
|
@@ -24,4 +25,6 @@ export declare class UpdateTransactionMeta {
|
|
|
24
25
|
withdrawTransactionStatus?: TransactionStatus;
|
|
25
26
|
decentSwapRoute?: string;
|
|
26
27
|
sponsoredCallId?: string;
|
|
28
|
+
tokenQuote?: TokenQuoteMeta;
|
|
29
|
+
prepareGeolocation?: string;
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/UpdateTransactionMeta.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"UpdateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/UpdateTransactionMeta.ts"],"names":[],"mappings":";;;AAQA,MAAa,qBAAqB;CA0CjC;AA1CD,sDA0CC"}
|