@heliofi/launchpad-common 1.6.22 → 1.6.23
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/king-of-the-hill/entities/KingOfTheHillResponse.d.ts +9 -0
- package/dist/src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.js +8 -0
- package/dist/src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.js.map +1 -0
- package/dist/src/domain/model/king-of-the-hill/entities/index.d.ts +1 -0
- package/dist/src/domain/model/{lpLockDetails → king-of-the-hill/entities}/index.js +1 -1
- package/dist/src/domain/model/king-of-the-hill/entities/index.js.map +1 -0
- package/dist/src/domain/model/king-of-the-hill/index.d.ts +1 -0
- package/dist/src/domain/model/king-of-the-hill/index.js +18 -0
- package/dist/src/domain/model/king-of-the-hill/index.js.map +1 -0
- package/dist/src/domain/model/meteora-swap/dtos/MeteoraSwapPrepare.dto.d.ts +2 -1
- package/dist/src/domain/model/meteora-swap/dtos/MeteoraSwapPrepare.dto.js +9 -2
- package/dist/src/domain/model/meteora-swap/dtos/MeteoraSwapPrepare.dto.js.map +1 -1
- package/dist/src/domain/model/pumpdex-swap/dtos/PumpDexSwapPrepare.dto.d.ts +2 -1
- package/dist/src/domain/model/pumpdex-swap/dtos/PumpDexSwapPrepare.dto.js +9 -2
- package/dist/src/domain/model/pumpdex-swap/dtos/PumpDexSwapPrepare.dto.js.map +1 -1
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.d.ts +5 -0
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.js +35 -0
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.js.map +1 -0
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.d.ts +2 -1
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.js +9 -2
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.js.map +1 -1
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.d.ts +12 -0
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.js +68 -0
- package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.js.map +1 -0
- package/dist/src/domain/model/router/dtos/GetRoutes.dto.d.ts +6 -0
- package/dist/src/domain/model/{lpLockDetails/dtos/AddAllocation.dto.js → router/dtos/GetRoutes.dto.js} +12 -13
- package/dist/src/domain/model/router/dtos/GetRoutes.dto.js.map +1 -0
- package/dist/src/domain/model/router/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/router/dtos/index.js +18 -0
- package/dist/src/domain/model/router/dtos/index.js.map +1 -0
- package/dist/src/domain/model/router/entities/SwapRoute.entity.d.ts +8 -0
- package/dist/src/domain/model/router/entities/SwapRoute.entity.js +8 -0
- package/dist/src/domain/model/router/entities/SwapRoute.entity.js.map +1 -0
- package/dist/src/domain/model/router/entities/index.d.ts +1 -0
- package/dist/src/domain/model/router/entities/index.js +18 -0
- package/dist/src/domain/model/router/entities/index.js.map +1 -0
- package/dist/src/domain/model/router/index.d.ts +2 -0
- package/dist/src/domain/model/router/index.js +19 -0
- package/dist/src/domain/model/router/index.js.map +1 -0
- package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.d.ts +8 -0
- package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.js +3 -0
- package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.js.map +1 -0
- package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.d.ts +8 -0
- package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.js +51 -0
- package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.js.map +1 -0
- package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.d.ts +8 -0
- package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.js +8 -0
- package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.js.map +1 -0
- package/dist/src/domain/model/token-pair/dtos/UpdateModeratedStatus.dto.d.ts +3 -0
- package/dist/src/domain/model/token-pair/dtos/UpdateModeratedStatus.dto.js +22 -0
- package/dist/src/domain/model/token-pair/dtos/UpdateModeratedStatus.dto.js.map +1 -0
- package/dist/src/domain/model/token-pair/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/token-pair/dtos/index.js +1 -0
- package/dist/src/domain/model/token-pair/dtos/index.js.map +1 -1
- package/dist/src/domain/model/token-pair/entities/TokenPair.entity.d.ts +1 -0
- package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js.map +1 -1
- package/dist/src/domain/model/token-pair/entities/TokenPairWithMetadata.entity.d.ts +1 -0
- package/dist/src/domain/model/token-pair/entities/TokenPairWithMetadata.entity.js.map +1 -1
- package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.d.ts +8 -0
- package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.js +8 -0
- package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.js.map +1 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.d.ts +7 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.js +8 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.js.map +1 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.d.ts +8 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.js +8 -0
- package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/constants/feeReceiver.d.ts +0 -6
- package/dist/src/domain/constants/feeReceiver.js +0 -11
- package/dist/src/domain/constants/feeReceiver.js.map +0 -1
- package/dist/src/domain/model/lpLockDetails/dtos/AddAllocation.dto.d.ts +0 -7
- package/dist/src/domain/model/lpLockDetails/dtos/AddAllocation.dto.js.map +0 -1
- package/dist/src/domain/model/lpLockDetails/index.d.ts +0 -1
- package/dist/src/domain/model/lpLockDetails/index.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KingOfTheHillResponse = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class KingOfTheHillResponse extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.KingOfTheHillResponse = KingOfTheHillResponse;
|
|
8
|
+
//# sourceMappingURL=KingOfTheHillResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KingOfTheHillResponse.js","sourceRoot":"","sources":["../../../../../../src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,qBAAsB,SAAQ,eAAM;CAYhD;AAZD,sDAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './KingOfTheHillResponse';
|
|
@@ -14,5 +14,5 @@ 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("./
|
|
17
|
+
__exportStar(require("./KingOfTheHillResponse"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/king-of-the-hill/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './entities';
|
|
@@ -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("./entities"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/king-of-the-hill/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -43,10 +43,17 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], MeteoraSwapPrepareDto.prototype, "amountIn", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
47
|
-
(0, class_validator_1.
|
|
46
|
+
(0, class_transformer_1.Transform)(({ value }) => value ?? BigInt(value)),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], MeteoraSwapPrepareDto.prototype, "feeAmount", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNumber)(),
|
|
52
|
+
(0, class_validator_1.Max)(10000),
|
|
53
|
+
(0, class_validator_1.Min)(0),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], MeteoraSwapPrepareDto.prototype, "feeBps", void 0);
|
|
50
57
|
__decorate([
|
|
51
58
|
(0, class_validator_1.IsString)(),
|
|
52
59
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeteoraSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/meteora-swap/dtos/MeteoraSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"MeteoraSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/meteora-swap/dtos/MeteoraSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDASyB;AACzB,sDAAiD;AACjD,iCAAyC;AAEzC,MAAa,qBAAqB;CAiDjC;AAhDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;uDACH;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,IAAA,4BAAU,GAAE;;wDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;qDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAa,CAAC;IACzB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACF,kBAAa;uDAAC;AAEzB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;wDACF;AAhDpB,sDAiDC"}
|
|
@@ -50,10 +50,17 @@ __decorate([
|
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], PumpDexSwapPrepareDto.prototype, "amountOut", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
54
|
-
(0, class_validator_1.
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => value ?? BigInt(value)),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], PumpDexSwapPrepareDto.prototype, "feeAmount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
(0, class_validator_1.Max)(10000),
|
|
60
|
+
(0, class_validator_1.Min)(0),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], PumpDexSwapPrepareDto.prototype, "feeBps", void 0);
|
|
57
64
|
__decorate([
|
|
58
65
|
(0, class_validator_1.IsString)(),
|
|
59
66
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PumpDexSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pumpdex-swap/dtos/PumpDexSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"PumpDexSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/pumpdex-swap/dtos/PumpDexSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAUyB;AACzB,kDAA8C;AAC9C,sDAAiD;AACjD,iCAAyC;AAEzC,MAAa,qBAAqB;CA0DjC;AAzDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;uDACH;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;wDACF;AAElB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,IAAA,4BAAU,GAAE;;wDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;qDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oBAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;uDACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAa,CAAC;IACzB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACF,kBAAa;uDAAC;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAzDtB,sDA0DC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.RaydiumSwapGetPriceCLMMDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const validations_1 = require("../../../validations");
|
|
16
|
+
class RaydiumSwapGetPriceCLMMDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], RaydiumSwapGetPriceCLMMDto.prototype, "poolId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], RaydiumSwapGetPriceCLMMDto.prototype, "mintFrom", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], RaydiumSwapGetPriceCLMMDto.prototype, "amountIn", void 0);
|
|
34
|
+
exports.RaydiumSwapGetPriceCLMMDto = RaydiumSwapGetPriceCLMMDto;
|
|
35
|
+
//# sourceMappingURL=RaydiumSwapGetCLMMPrice.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaydiumSwapGetCLMMPrice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAiE;AACjE,sDAAiD;AAEjD,MAAa,0BAA0B;CAatC;AAZC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACI;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;4DACH;AAZnB,gEAaC"}
|
|
@@ -50,10 +50,17 @@ __decorate([
|
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], RaydiumSwapPrepareDto.prototype, "amountOut", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
54
|
-
(0, class_validator_1.
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => value ?? BigInt(value)),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], RaydiumSwapPrepareDto.prototype, "feeAmount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
(0, class_validator_1.Max)(10000),
|
|
60
|
+
(0, class_validator_1.Min)(0),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], RaydiumSwapPrepareDto.prototype, "feeBps", void 0);
|
|
57
64
|
__decorate([
|
|
58
65
|
(0, class_validator_1.IsString)(),
|
|
59
66
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RaydiumSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"RaydiumSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAUyB;AACzB,kDAA8C;AAC9C,sDAAiD;AACjD,iCAAyC;AAEzC,MAAa,qBAAqB;CAsDjC;AArDC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;uDACH;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;wDACF;AAElB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,IAAA,4BAAU,GAAE;;wDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,KAAK,CAAC;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;qDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oBAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;uDACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAa,CAAC;IACzB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACF,kBAAa;uDAAC;AArD3B,sDAsDC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TxPriorityDto } from '../../tx';
|
|
2
|
+
export declare class RaydiumSwapPrepareCLMMDto {
|
|
3
|
+
sender: string;
|
|
4
|
+
poolId: string;
|
|
5
|
+
mintFrom: string;
|
|
6
|
+
amountIn: string;
|
|
7
|
+
amountOut: string;
|
|
8
|
+
feeAmount: string;
|
|
9
|
+
feeMintAddress: string;
|
|
10
|
+
priorityFee?: number;
|
|
11
|
+
priority?: TxPriorityDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.RaydiumSwapPrepareCLMMDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const validations_1 = require("../../../validations");
|
|
16
|
+
const tx_1 = require("../../tx");
|
|
17
|
+
class RaydiumSwapPrepareCLMMDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "sender", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "poolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "mintFrom", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "amountIn", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "amountOut", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "feeAmount", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "feeMintAddress", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsNumber)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "priorityFee", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Type)(() => tx_1.TxPriorityDto),
|
|
63
|
+
(0, class_validator_1.ValidateNested)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
__metadata("design:type", tx_1.TxPriorityDto)
|
|
66
|
+
], RaydiumSwapPrepareCLMMDto.prototype, "priority", void 0);
|
|
67
|
+
exports.RaydiumSwapPrepareCLMMDto = RaydiumSwapPrepareCLMMDto;
|
|
68
|
+
//# sourceMappingURL=RaydiumSwapPrepareCLMM.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RaydiumSwapPrepareCLMM.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,qDAOyB;AACzB,sDAAiD;AACjD,iCAAyC;AAEzC,MAAa,yBAAyB;CAuCrC;AAtCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACI;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;2DACH;AAEjB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;4DACF;AAElB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;4DACK;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACU;AAEvB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAa,CAAC;IACzB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACF,kBAAa;2DAAC;AAtC3B,8DAuCC"}
|
|
@@ -9,30 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.GetRoutesDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const validations_1 = require("../../../validations");
|
|
14
15
|
const constants_1 = require("../../../constants");
|
|
15
|
-
class
|
|
16
|
+
class GetRoutesDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsEnum)(constants_1.LpTokenAllocationState),
|
|
20
20
|
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, validations_1.SanitizeRegex)(),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
23
|
+
], GetRoutesDto.prototype, "mintFrom", void 0);
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, class_validator_1.IsString)(),
|
|
25
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, validations_1.SanitizeRegex)(),
|
|
26
28
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
29
|
+
], GetRoutesDto.prototype, "mintTo", void 0);
|
|
28
30
|
__decorate([
|
|
29
31
|
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, validations_1.SanitizeRegex)(),
|
|
31
34
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__metadata("design:type", BigInt)
|
|
36
|
-
], AddAllocationDto.prototype, "allocationAmount", void 0);
|
|
37
|
-
exports.AddAllocationDto = AddAllocationDto;
|
|
38
|
-
//# sourceMappingURL=AddAllocation.dto.js.map
|
|
35
|
+
], GetRoutesDto.prototype, "chainId", void 0);
|
|
36
|
+
exports.GetRoutesDto = GetRoutesDto;
|
|
37
|
+
//# sourceMappingURL=GetRoutes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetRoutes.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/router/dtos/GetRoutes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AACnE,sDAAqD;AACrD,kDAAsD;AAEtD,MAAa,YAAY;CAexB;AAdC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;8CACC;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;4CACD;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;6CACW;AAd7B,oCAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GetRoutes.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("./GetRoutes.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/router/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwapRoute = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class SwapRoute extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.SwapRoute = SwapRoute;
|
|
8
|
+
//# sourceMappingURL=SwapRoute.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapRoute.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/router/entities/SwapRoute.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,SAAU,SAAQ,eAAM;CAQpC;AARD,8BAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SwapRoute.entity';
|
|
@@ -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("./SwapRoute.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/router/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./entities"), exports);
|
|
18
|
+
__exportStar(require("./dtos"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/router/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerPaginatedResponse.interface.js","sourceRoot":"","sources":["../../../../../src/domain/model/shared/ControllerPaginatedResponse.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.SwapRouterQuoteDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const validations_1 = require("../../../validations");
|
|
16
|
+
const constants_1 = require("../../../constants");
|
|
17
|
+
class SwapRouterQuoteDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, validations_1.SanitizeRegex)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], SwapRouterQuoteDto.prototype, "mintFrom", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, validations_1.SanitizeRegex)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SwapRouterQuoteDto.prototype, "mintTo", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, validations_1.SanitizeRegex)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], SwapRouterQuoteDto.prototype, "chainId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SwapRouterQuoteDto.prototype, "amountIn", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_1.Min)(0),
|
|
47
|
+
(0, class_validator_1.Max)(10000),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], SwapRouterQuoteDto.prototype, "slippageBps", void 0);
|
|
50
|
+
exports.SwapRouterQuoteDto = SwapRouterQuoteDto;
|
|
51
|
+
//# sourceMappingURL=SwapRouterGetQuote.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapRouterGetQuote.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAA8C;AAC9C,sDAAgE;AAChE,kDAAsD;AAEtD,MAAa,kBAAkB;CA0B9B;AAzBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;oDACC;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;kDACD;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAa,GAAE;;mDACW;AAE3B;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;oDACH;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;;uDACS;AAzBtB,gDA0BC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwapRouterQuote = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class SwapRouterQuote extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.SwapRouterQuote = SwapRouterQuote;
|
|
8
|
+
//# sourceMappingURL=SwapRouterQuote.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapRouterQuote.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-router/entities/SwapRouterQuote.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,eAAgB,SAAQ,eAAM;CAQ1C;AARD,0CAQC"}
|