@heliofi/common 0.2.330 → 0.2.332
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 +6 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js +28 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.d.ts +8 -0
- package/dist/src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.js.map +1 -1
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.d.ts +1 -0
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.js +1 -0
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.js.map +1 -1
- package/dist/src/domain/model/on-ramps/entities/MoonPayExchangeRateType.d.ts +4 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayExchangeRateType.js +9 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayExchangeRateType.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayQuoteChallenge.entity.d.ts +4 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayQuoteChallenge.entity.js +7 -0
- package/dist/src/domain/model/on-ramps/entities/MoonPayQuoteChallenge.entity.js.map +1 -0
- package/dist/src/domain/model/on-ramps/entities/index.d.ts +2 -0
- package/dist/src/domain/model/on-ramps/entities/index.js +2 -0
- package/dist/src/domain/model/on-ramps/entities/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/constants/WithdrawalProvider.d.ts +4 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalProvider.js +9 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalProvider.js.map +1 -0
- package/dist/src/domain/model/withdraw/constants/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/constants/index.js +1 -0
- package/dist/src/domain/model/withdraw/constants/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DepositSwapProvider } from '../constants/DepositSwapProvider';
|
|
2
|
+
import { MoonPayPaymentMethodType } from '../../on-ramps/entities/MoonPayPaymentMethodType';
|
|
2
3
|
export declare const DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = 100;
|
|
3
4
|
export declare const CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS: readonly DepositSwapProvider[];
|
|
4
5
|
export declare class CreateDepositSwapQuoteDto {
|
|
@@ -7,4 +8,9 @@ export declare class CreateDepositSwapQuoteDto {
|
|
|
7
8
|
amountIn: string;
|
|
8
9
|
senderAddress: string;
|
|
9
10
|
slippageBps?: number;
|
|
11
|
+
accessToken?: string;
|
|
12
|
+
paymentMethodType?: MoonPayPaymentMethodType;
|
|
13
|
+
paymentMethodId?: string;
|
|
14
|
+
quoteCurrencyCode?: string;
|
|
15
|
+
depositCustomerId?: string;
|
|
10
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateDepositSwapQuoteDto = exports.CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS = exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const DepositSwapProvider_1 = require("../constants/DepositSwapProvider");
|
|
15
|
+
const MoonPayPaymentMethodType_1 = require("../../on-ramps/entities/MoonPayPaymentMethodType");
|
|
15
16
|
exports.DEPOSIT_SWAP_QUOTE_DEFAULT_SLIPPAGE_BPS = 100;
|
|
16
17
|
exports.CLIENT_SELECTABLE_DEPOSIT_SWAP_PROVIDERS = [DepositSwapProvider_1.DepositSwapProvider.MOONPAY, DepositSwapProvider_1.DepositSwapProvider.IRON];
|
|
17
18
|
class CreateDepositSwapQuoteDto {
|
|
@@ -49,4 +50,31 @@ __decorate([
|
|
|
49
50
|
(0, class_validator_1.IsOptional)(),
|
|
50
51
|
__metadata("design:type", Number)
|
|
51
52
|
], CreateDepositSwapQuoteDto.prototype, "slippageBps", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateDepositSwapQuoteDto.prototype, "accessToken", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsEnum)(MoonPayPaymentMethodType_1.MoonPayPaymentMethodType),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreateDepositSwapQuoteDto.prototype, "paymentMethodType", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateDepositSwapQuoteDto.prototype, "paymentMethodId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CreateDepositSwapQuoteDto.prototype, "quoteCurrencyCode", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsMongoId)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateDepositSwapQuoteDto.prototype, "depositCustomerId", void 0);
|
|
52
80
|
//# sourceMappingURL=createDepositSwapQuote.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDepositSwapQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositSwapQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"createDepositSwapQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositSwapQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAUyB;AACzB,0EAAuE;AACvE,+FAA4F;AAE/E,QAAA,uCAAuC,GAAG,GAAG,CAAC;AAI9C,QAAA,wCAAwC,GACnD,CAAC,yCAAmB,CAAC,OAAO,EAAE,yCAAmB,CAAC,IAAI,CAAC,CAAC;AAE1D,MAAa,yBAAyB;IAAtC;QA+BE,gBAAW,GAAY,+CAAuC,CAAC;IAuCjE,CAAC;CAAA;AAtED,8DAsEC;AA3DC;IAFC,IAAA,wBAAM,EAAC,yCAAmB,CAAC;IAC3B,IAAA,4BAAU,GAAE;;2DACkB;AAI/B;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;AAO/D;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;8DACQ;AAMrB;IAFC,IAAA,wBAAM,EAAC,mDAAwB,CAAC;IAChC,IAAA,4BAAU,GAAE;;oEACgC;AAK7C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACY;AAczB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;oEACc;AAM3B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACc"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
2
|
import { Currency } from '../../currency/entities/Currency.entity';
|
|
3
3
|
import { DepositSwapProvider } from '../constants/DepositSwapProvider';
|
|
4
|
+
import { MoonPayExchangeRateType } from '../../on-ramps/entities/MoonPayExchangeRateType';
|
|
5
|
+
import { MoonPayPaymentDisclosure } from '../../on-ramps/entities/MoonPayPaymentDisclosure.entity';
|
|
6
|
+
import { MoonPayQuoteChallenge } from '../../on-ramps/entities/MoonPayQuoteChallenge.entity';
|
|
4
7
|
export declare class BaseDepositSwapQuote extends Entity {
|
|
5
8
|
provider: DepositSwapProvider;
|
|
6
9
|
fromCurrency: Currency;
|
|
@@ -22,4 +25,9 @@ export declare class BaseDepositSwapQuote extends Entity {
|
|
|
22
25
|
estimatedPriceImpact?: number;
|
|
23
26
|
etaSeconds?: number;
|
|
24
27
|
expiresAt: string;
|
|
28
|
+
exchangeRateType?: MoonPayExchangeRateType;
|
|
29
|
+
signature?: string;
|
|
30
|
+
quoteId?: string;
|
|
31
|
+
paymentDisclosures?: MoonPayPaymentDisclosure[];
|
|
32
|
+
challenge?: MoonPayQuoteChallenge;
|
|
25
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDepositSwapQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"BaseDepositSwapQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAOtC,MAAa,oBAAqB,SAAQ,eAAM;CA6K/C;AA7KD,oDA6KC"}
|
|
@@ -2,6 +2,7 @@ export declare enum BetaFeature {
|
|
|
2
2
|
SWAP = "SWAP",
|
|
3
3
|
MOONPAY_HEADLESS_FRAMES = "MOONPAY_HEADLESS_FRAMES",
|
|
4
4
|
GLIDE_DEPOSITS = "GLIDE_DEPOSITS",
|
|
5
|
+
GLIDE_WITHDRAWALS = "GLIDE_WITHDRAWALS",
|
|
5
6
|
CHECKOUT_V2 = "checkout_v2",
|
|
6
7
|
TRON_ENERGY_RENTAL_DISABLED = "TRON_ENERGY_RENTAL_DISABLED",
|
|
7
8
|
THEMES_V2 = "themesV2",
|
|
@@ -6,6 +6,7 @@ var BetaFeature;
|
|
|
6
6
|
BetaFeature["SWAP"] = "SWAP";
|
|
7
7
|
BetaFeature["MOONPAY_HEADLESS_FRAMES"] = "MOONPAY_HEADLESS_FRAMES";
|
|
8
8
|
BetaFeature["GLIDE_DEPOSITS"] = "GLIDE_DEPOSITS";
|
|
9
|
+
BetaFeature["GLIDE_WITHDRAWALS"] = "GLIDE_WITHDRAWALS";
|
|
9
10
|
BetaFeature["CHECKOUT_V2"] = "checkout_v2";
|
|
10
11
|
BetaFeature["TRON_ENERGY_RENTAL_DISABLED"] = "TRON_ENERGY_RENTAL_DISABLED";
|
|
11
12
|
BetaFeature["THEMES_V2"] = "themesV2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BetaFeature.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/feature-flags/entities/BetaFeature.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"BetaFeature.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/feature-flags/entities/BetaFeature.entity.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kEAAmD,CAAA;IACnD,gDAAiC,CAAA;IACjC,sDAAuC,CAAA;IACvC,0CAA2B,CAAA;IAC3B,0EAA2D,CAAA;IAC3D,qCAAsB,CAAA;IAEtB,4EAA6D,CAAA;IAC7D,4DAA6C,CAAA;AAC/C,CAAC,EAXW,WAAW,2BAAX,WAAW,QAWtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoonPayExchangeRateType = void 0;
|
|
4
|
+
var MoonPayExchangeRateType;
|
|
5
|
+
(function (MoonPayExchangeRateType) {
|
|
6
|
+
MoonPayExchangeRateType["FIXED"] = "fixed";
|
|
7
|
+
MoonPayExchangeRateType["FLOATING"] = "floating";
|
|
8
|
+
})(MoonPayExchangeRateType || (exports.MoonPayExchangeRateType = MoonPayExchangeRateType = {}));
|
|
9
|
+
//# sourceMappingURL=MoonPayExchangeRateType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoonPayExchangeRateType.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/MoonPayExchangeRateType.ts"],"names":[],"mappings":";;;AAEA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,gDAAqB,CAAA;AACvB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoonPayQuoteChallenge = void 0;
|
|
4
|
+
class MoonPayQuoteChallenge {
|
|
5
|
+
}
|
|
6
|
+
exports.MoonPayQuoteChallenge = MoonPayQuoteChallenge;
|
|
7
|
+
//# sourceMappingURL=MoonPayQuoteChallenge.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoonPayQuoteChallenge.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/MoonPayQuoteChallenge.entity.ts"],"names":[],"mappings":";;;AAMA,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from './MoonPayExchangeRateType';
|
|
1
2
|
export * from './MoonPayPaymentDisclosure.entity';
|
|
3
|
+
export * from './MoonPayQuoteChallenge.entity';
|
|
2
4
|
export * from './MoonPayPaymentMethodConfig.entity';
|
|
3
5
|
export * from './MoonPayPaymentMethodType';
|
|
4
6
|
export * from './MoonPayPlatformQuote.entity';
|
|
@@ -14,7 +14,9 @@ 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("./MoonPayExchangeRateType"), exports);
|
|
17
18
|
__exportStar(require("./MoonPayPaymentDisclosure.entity"), exports);
|
|
19
|
+
__exportStar(require("./MoonPayQuoteChallenge.entity"), exports);
|
|
18
20
|
__exportStar(require("./MoonPayPaymentMethodConfig.entity"), exports);
|
|
19
21
|
__exportStar(require("./MoonPayPaymentMethodType"), exports);
|
|
20
22
|
__exportStar(require("./MoonPayPlatformQuote.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,sEAAoD;AACpD,6DAA2C;AAC3C,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,8EAA4D;AAC5D,yEAAuD;AACvD,sEAAoD;AACpD,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/on-ramps/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oEAAkD;AAClD,iEAA+C;AAC/C,sEAAoD;AACpD,6DAA2C;AAC3C,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,8EAA4D;AAC5D,yEAAuD;AACvD,sEAAoD;AACpD,+DAA6C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalProvider = void 0;
|
|
4
|
+
var WithdrawalProvider;
|
|
5
|
+
(function (WithdrawalProvider) {
|
|
6
|
+
WithdrawalProvider["DECENT"] = "decent";
|
|
7
|
+
WithdrawalProvider["GLIDE"] = "glide";
|
|
8
|
+
})(WithdrawalProvider || (exports.WithdrawalProvider = WithdrawalProvider = {}));
|
|
9
|
+
//# sourceMappingURL=WithdrawalProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalProvider.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawalProvider.ts"],"names":[],"mappings":";;;AAKA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./WithdrawalState"), exports);
|
|
|
22
22
|
__exportStar(require("./WithdrawalTransactionDirection"), exports);
|
|
23
23
|
__exportStar(require("./WithdrawalTransactionStatus"), exports);
|
|
24
24
|
__exportStar(require("./WithdrawalKind"), exports);
|
|
25
|
+
__exportStar(require("./WithdrawalProvider"), exports);
|
|
25
26
|
//# 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,sDAAoC;AACpC,oDAAkC;AAClC,mEAAiD;AACjD,gEAA8C;AAC9C,mDAAiC"}
|
|
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,sDAAoC;AACpC,oDAAkC;AAClC,mEAAiD;AACjD,gEAA8C;AAC9C,mDAAiC;AACjC,uDAAqC"}
|