@heliofi/launchpad-common 1.6.26 → 1.6.28

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.
Files changed (88) hide show
  1. package/dist/src/domain/constants/isMoonit.d.ts +1 -0
  2. package/dist/src/domain/constants/isMoonit.js +6 -0
  3. package/dist/src/domain/constants/isMoonit.js.map +1 -0
  4. package/dist/src/domain/constants/meteoraFees.d.ts +4 -2
  5. package/dist/src/domain/constants/meteoraFees.js +5 -3
  6. package/dist/src/domain/constants/meteoraFees.js.map +1 -1
  7. package/dist/src/domain/model/fun/constants.d.ts +1 -1
  8. package/dist/src/domain/model/fun/constants.js +1 -1
  9. package/dist/src/domain/model/fun/constants.js.map +1 -1
  10. package/dist/src/domain/model/fun/entities/FunTokensList.entity.d.ts +21 -0
  11. package/dist/src/domain/model/fun/entities/FunTokensList.entity.js +8 -0
  12. package/dist/src/domain/model/fun/entities/FunTokensList.entity.js.map +1 -0
  13. package/dist/src/domain/model/fun/entities/index.d.ts +1 -0
  14. package/dist/src/domain/model/fun/entities/index.js +18 -0
  15. package/dist/src/domain/model/fun/entities/index.js.map +1 -0
  16. package/dist/src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.d.ts +9 -0
  17. package/dist/src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.js +8 -0
  18. package/dist/src/domain/model/king-of-the-hill/entities/KingOfTheHillResponse.js.map +1 -0
  19. package/dist/src/domain/model/king-of-the-hill/entities/index.d.ts +1 -0
  20. package/dist/src/domain/model/king-of-the-hill/entities/index.js +18 -0
  21. package/dist/src/domain/model/king-of-the-hill/entities/index.js.map +1 -0
  22. package/dist/src/domain/model/king-of-the-hill/index.d.ts +1 -0
  23. package/dist/src/domain/model/king-of-the-hill/index.js +18 -0
  24. package/dist/src/domain/model/king-of-the-hill/index.js.map +1 -0
  25. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js +1 -0
  26. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js.map +1 -1
  27. package/dist/src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.js +1 -0
  28. package/dist/src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.js.map +1 -1
  29. package/dist/src/domain/model/mint/prepare/dtos/CreateAndPrepareMintTx.dto.d.ts +5 -0
  30. package/dist/src/domain/model/mint/prepare/dtos/CreateAndPrepareMintTx.dto.js +31 -0
  31. package/dist/src/domain/model/mint/prepare/dtos/CreateAndPrepareMintTx.dto.js.map +1 -0
  32. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.d.ts +5 -0
  33. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.js +35 -0
  34. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetCLMMPrice.dto.js.map +1 -0
  35. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.d.ts +1 -0
  36. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.js +10 -0
  37. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.js.map +1 -1
  38. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.d.ts +12 -0
  39. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.js +68 -0
  40. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepareCLMM.dto.js.map +1 -0
  41. package/dist/src/domain/model/router/dtos/GetRoutes.dto.d.ts +6 -0
  42. package/dist/src/domain/model/router/dtos/GetRoutes.dto.js +37 -0
  43. package/dist/src/domain/model/router/dtos/GetRoutes.dto.js.map +1 -0
  44. package/dist/src/domain/model/router/dtos/index.d.ts +1 -0
  45. package/dist/src/domain/model/router/dtos/index.js +18 -0
  46. package/dist/src/domain/model/router/dtos/index.js.map +1 -0
  47. package/dist/src/domain/model/router/entities/SwapRoute.entity.d.ts +8 -0
  48. package/dist/src/domain/model/router/entities/SwapRoute.entity.js +8 -0
  49. package/dist/src/domain/model/router/entities/SwapRoute.entity.js.map +1 -0
  50. package/dist/src/domain/model/router/entities/index.d.ts +1 -0
  51. package/dist/src/domain/model/router/entities/index.js +18 -0
  52. package/dist/src/domain/model/router/entities/index.js.map +1 -0
  53. package/dist/src/domain/model/router/index.d.ts +2 -0
  54. package/dist/src/domain/model/router/index.js +19 -0
  55. package/dist/src/domain/model/router/index.js.map +1 -0
  56. package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.d.ts +8 -0
  57. package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.js +3 -0
  58. package/dist/src/domain/model/shared/ControllerPaginatedResponse.interface.js.map +1 -0
  59. package/dist/src/domain/model/swap-router/dtos/CreateSwapRoute.dto.d.ts +11 -0
  60. package/dist/src/domain/model/swap-router/dtos/CreateSwapRoute.dto.js +66 -0
  61. package/dist/src/domain/model/swap-router/dtos/CreateSwapRoute.dto.js.map +1 -0
  62. package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.d.ts +8 -0
  63. package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.js +52 -0
  64. package/dist/src/domain/model/swap-router/dtos/SwapRouterGetQuote.dto.js.map +1 -0
  65. package/dist/src/domain/model/swap-router/dtos/index.d.ts +2 -0
  66. package/dist/src/domain/model/swap-router/dtos/index.js +2 -0
  67. package/dist/src/domain/model/swap-router/dtos/index.js.map +1 -1
  68. package/dist/src/domain/model/swap-router/entities/SwapRoute.entity.d.ts +2 -0
  69. package/dist/src/domain/model/swap-router/entities/SwapRoute.entity.js.map +1 -1
  70. package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.d.ts +8 -0
  71. package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.js +8 -0
  72. package/dist/src/domain/model/swap-router/entities/SwapRouterQuote.entity.js.map +1 -0
  73. package/dist/src/domain/model/swap-router/entities/index.d.ts +1 -0
  74. package/dist/src/domain/model/swap-router/entities/index.js +1 -0
  75. package/dist/src/domain/model/swap-router/entities/index.js.map +1 -1
  76. package/dist/src/domain/model/token-pair/entities/TokenPairWithMetadata.entity.d.ts +1 -0
  77. package/dist/src/domain/model/token-pair/entities/TokenPairWithMetadata.entity.js.map +1 -1
  78. package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.d.ts +8 -0
  79. package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.js +8 -0
  80. package/dist/src/domain/model/token-pair/entities/TokenPairWithTradingData.js.map +1 -0
  81. package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.d.ts +7 -0
  82. package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.js +8 -0
  83. package/dist/src/domain/model/trading-data/entities/KingOfTheHillData.js.map +1 -0
  84. package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.d.ts +8 -0
  85. package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.js +8 -0
  86. package/dist/src/domain/model/trading-data/entities/KingOfTheHillTradingData.js.map +1 -0
  87. package/dist/tsconfig.tsbuildinfo +1 -1
  88. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export declare const isMoonitToken: (tokenPair: Date) => boolean;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMoonitToken = void 0;
4
+ const isMoonitToken = (tokenPair) => tokenPair > new Date('2025-04-03T14:00:00Z');
5
+ exports.isMoonitToken = isMoonitToken;
6
+ //# sourceMappingURL=isMoonit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMoonit.js","sourceRoot":"","sources":["../../../../src/domain/constants/isMoonit.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAC,SAAe,EAAW,EAAE,CACxD,SAAS,GAAG,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAC;AADlC,QAAA,aAAa,iBACqB"}
@@ -1,2 +1,4 @@
1
- export declare const PARTNER_FEE_PERCENTAGE = 6;
2
- export declare const HELIO_FEE_PERCENTAGE = 4;
1
+ export declare const LEGACY_MOONSHOT_PARTNER_FEE_PERCENTAGE = 6;
2
+ export declare const LEGACY_MOONSHOT_HELIO_FEE_PERCENTAGE = 4;
3
+ export declare const MOONIT_HELIO_FEE_PERCENTAGE = 10;
4
+ export declare const MOONIT_PARTNER_FEE_PERCENTAGE = 0;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HELIO_FEE_PERCENTAGE = exports.PARTNER_FEE_PERCENTAGE = void 0;
4
- exports.PARTNER_FEE_PERCENTAGE = 6;
5
- exports.HELIO_FEE_PERCENTAGE = 4;
3
+ exports.MOONIT_PARTNER_FEE_PERCENTAGE = exports.MOONIT_HELIO_FEE_PERCENTAGE = exports.LEGACY_MOONSHOT_HELIO_FEE_PERCENTAGE = exports.LEGACY_MOONSHOT_PARTNER_FEE_PERCENTAGE = void 0;
4
+ exports.LEGACY_MOONSHOT_PARTNER_FEE_PERCENTAGE = 6;
5
+ exports.LEGACY_MOONSHOT_HELIO_FEE_PERCENTAGE = 4;
6
+ exports.MOONIT_HELIO_FEE_PERCENTAGE = 10;
7
+ exports.MOONIT_PARTNER_FEE_PERCENTAGE = 0;
6
8
  //# sourceMappingURL=meteoraFees.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meteoraFees.js","sourceRoot":"","sources":["../../../../src/domain/constants/meteoraFees.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAE3B,QAAA,oBAAoB,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"meteoraFees.js","sourceRoot":"","sources":["../../../../src/domain/constants/meteoraFees.ts"],"names":[],"mappings":";;;AAAa,QAAA,sCAAsC,GAAG,CAAC,CAAC;AAE3C,QAAA,oCAAoC,GAAG,CAAC,CAAC;AAEzC,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAEjC,QAAA,6BAA6B,GAAG,CAAC,CAAC"}
@@ -11,7 +11,7 @@ export declare enum SortBy {
11
11
  NEW = "NEW",
12
12
  PROGRESS = "PROGRESS",
13
13
  LAST_REPLY = "LAST_REPLY",
14
- LATEST_TRADED = "LATEST_TRADED"
14
+ LAST_TRADE = "LAST_TRADE"
15
15
  }
16
16
  export declare enum MinAge {
17
17
  OVER_ONE_HOUR = "1h",
@@ -17,7 +17,7 @@ var SortBy;
17
17
  SortBy["NEW"] = "NEW";
18
18
  SortBy["PROGRESS"] = "PROGRESS";
19
19
  SortBy["LAST_REPLY"] = "LAST_REPLY";
20
- SortBy["LATEST_TRADED"] = "LATEST_TRADED";
20
+ SortBy["LAST_TRADE"] = "LAST_TRADE";
21
21
  })(SortBy = exports.SortBy || (exports.SortBy = {}));
22
22
  var MinAge;
23
23
  (function (MinAge) {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/domain/model/fun/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACf,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,6CAA+B,CAAA;AACjC,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,+BAAqB,CAAA;IACrB,qBAAW,CAAA;IACX,+BAAqB,CAAA;IACrB,mCAAyB,CAAA;IACzB,yCAA+B,CAAA;AACjC,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,8BAAoB,CAAA;IACpB,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;IACnB,gCAAsB,CAAA;AACxB,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,kCAAwB,CAAA;IACxB,+BAAqB,CAAA;IACrB,kCAAwB,CAAA;IACxB,gCAAsB,CAAA;IACtB,yCAA+B,CAAA;AACjC,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAEY,QAAA,YAAY,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/domain/model/fun/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACf,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,6CAA+B,CAAA;AACjC,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,+BAAqB,CAAA;IACrB,qBAAW,CAAA;IACX,+BAAqB,CAAA;IACrB,mCAAyB,CAAA;IACzB,mCAAyB,CAAA;AAC3B,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,8BAAoB,CAAA;IACpB,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;IACnB,gCAAsB,CAAA;AACxB,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,kCAAwB,CAAA;IACxB,+BAAqB,CAAA;IACrB,kCAAwB,CAAA;IACxB,gCAAsB,CAAA;IACtB,yCAA+B,CAAA;AACjC,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAEY,QAAA,YAAY,GAAG,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class FunTokensListEntity extends Entity {
3
+ name: string;
4
+ description: string;
5
+ symbol: string;
6
+ icon: string;
7
+ x?: string;
8
+ telegram?: string;
9
+ dexScreenerUrl?: string;
10
+ createdAt: string;
11
+ volumeCount: number;
12
+ volumeUSD: string;
13
+ commentCount: string;
14
+ progressPercent: number;
15
+ mintAddress: string;
16
+ profileId: string;
17
+ migrationDex: string;
18
+ curveType: string;
19
+ marketcap: string;
20
+ }
21
+ export declare type FunTokensListResponseEntity = FunTokensListEntity[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FunTokensListEntity = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class FunTokensListEntity extends entity_1.Entity {
6
+ }
7
+ exports.FunTokensListEntity = FunTokensListEntity;
8
+ //# sourceMappingURL=FunTokensList.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunTokensList.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/fun/entities/FunTokensList.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,mBAAoB,SAAQ,eAAM;CAkC9C;AAlCD,kDAkCC"}
@@ -0,0 +1 @@
1
+ export * from './FunTokensList.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("./FunTokensList.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/fun/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
@@ -0,0 +1,9 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class KingOfTheHillResponse extends Entity {
3
+ mintAddress: string;
4
+ symbol: string;
5
+ name: string;
6
+ icon?: string;
7
+ commentCount: number;
8
+ marketcap: number;
9
+ }
@@ -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';
@@ -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("./KingOfTheHillResponse"), exports);
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"}
@@ -23,6 +23,7 @@ __decorate([
23
23
  ], CreateMintDto.prototype, "symbol", void 0);
24
24
  __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.MaxLength)(18),
26
27
  (0, class_validator_1.IsNotEmpty)(),
27
28
  __metadata("design:type", String)
28
29
  ], CreateMintDto.prototype, "name", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateMint.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMint.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,qDAAgE;AAChE,mDAA+C;AAE/C,MAAa,aAAa;CA0CzB;AAzCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACD;AAEZ;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;mDACe;AAE5B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gDACO;AAEpB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,4BAAY;gDAAC;AAEzB;IAAC,IAAA,wBAAM,EAAC,qBAAS,CAAC;IACjB,IAAA,4BAAU,GAAE;;gDACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACU;AAEvB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;0DACgB;AAzC/B,sCA0CC"}
1
+ {"version":3,"file":"CreateMint.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMint.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,yDAAoD;AACpD,qDAAgE;AAChE,mDAA+C;AAE/C,MAAa,aAAa;CA2CzB;AA1CC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;2CACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACD;AAEZ;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;mDACe;AAE5B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;gDACO;AAEpB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,4BAAY;gDAAC;AAEzB;IAAC,IAAA,wBAAM,EAAC,qBAAS,CAAC;IACjB,IAAA,4BAAU,GAAE;;gDACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACU;AAEvB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;0DACgB;AA1C/B,sCA2CC"}
@@ -24,6 +24,7 @@ __decorate([
24
24
  ], CreateMintWithMetadataDto.prototype, "symbol", void 0);
25
25
  __decorate([
26
26
  (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.MaxLength)(18),
27
28
  (0, class_validator_1.IsNotEmpty)(),
28
29
  __metadata("design:type", String)
29
30
  ], CreateMintWithMetadataDto.prototype, "name", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"CreateMintWithMetadata.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AACzB,yDAAoD;AACpD,yDAAqD;AACrD,qDAAgE;AAChE,mDAA+C;AAE/C,MAAa,yBAAyB;CA8DrC;AA7DC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;+DACe;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,4BAAY;4DAAC;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,SAAS,CAAC,CAAC;;0DACjB;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,GAAG,CAAC,CAAC;;oDACjB;AAEX;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,UAAU,CAAC,CAAC;;2DACjB;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,SAAS,CAAC,CAAC;;0DACjB;AAEjB;IAAC,IAAA,wBAAM,EAAC,qBAAS,CAAC;IACjB,IAAA,4BAAU,GAAE;;4DACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACU;AAEvB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;sEACgB;AA7D/B,8DA8DC"}
1
+ {"version":3,"file":"CreateMintWithMetadata.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,yDAAoD;AACpD,yDAAqD;AACrD,qDAAgE;AAChE,mDAA+C;AAE/C,MAAa,yBAAyB;CA+DrC;AA9DC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;uDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;+DACe;AAE5B;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;IACxB,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,4BAAY;4DAAC;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,SAAS,CAAC,CAAC;;0DACjB;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,GAAG,CAAC,CAAC;;oDACjB;AAEX;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,UAAU,CAAC,CAAC;;2DACjB;AAElB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,wBAAU,EAAE,CAAC,SAAS,CAAC,CAAC;;0DACjB;AAEjB;IAAC,IAAA,wBAAM,EAAC,qBAAS,CAAC;IACjB,IAAA,4BAAU,GAAE;;4DACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACU;AAEvB;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;;sEACgB;AA9D/B,8DA+DC"}
@@ -0,0 +1,5 @@
1
+ import { CreateMintDto } from '../../create';
2
+ export declare class CreateAndPrepareMintTxDto extends CreateMintDto {
3
+ amount?: string;
4
+ creatorPK: string;
5
+ }
@@ -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.CreateAndPrepareMintTxDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const create_1 = require("../../create");
16
+ const validations_1 = require("../../../../validations");
17
+ class CreateAndPrepareMintTxDto extends create_1.CreateMintDto {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.Validate)(validations_1.MinBigInt),
23
+ __metadata("design:type", String)
24
+ ], CreateAndPrepareMintTxDto.prototype, "amount", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ __metadata("design:type", String)
29
+ ], CreateAndPrepareMintTxDto.prototype, "creatorPK", void 0);
30
+ exports.CreateAndPrepareMintTxDto = CreateAndPrepareMintTxDto;
31
+ //# sourceMappingURL=CreateAndPrepareMintTx.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAndPrepareMintTx.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/prepare/dtos/CreateAndPrepareMintTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA6E;AAC7E,yCAA6C;AAC7C,yDAAoD;AAEpD,MAAa,yBAA0B,SAAQ,sBAAa;CAS3D;AARC;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;;yDACJ;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACK;AARpB,8DASC"}
@@ -0,0 +1,5 @@
1
+ export declare class RaydiumSwapGetPriceCLMMDto {
2
+ poolId: string;
3
+ mintFrom: string;
4
+ amountIn: string;
5
+ }
@@ -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"}
@@ -3,4 +3,5 @@ export declare class RaydiumSwapGetPriceDto {
3
3
  mintFrom: string;
4
4
  mintTo: string;
5
5
  amountIn: string;
6
+ slippageBps: number;
6
7
  }
@@ -14,6 +14,9 @@ const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const validations_1 = require("../../../validations");
16
16
  class RaydiumSwapGetPriceDto {
17
+ constructor() {
18
+ this.slippageBps = 0;
19
+ }
17
20
  }
18
21
  __decorate([
19
22
  (0, class_validator_1.IsString)(),
@@ -36,5 +39,12 @@ __decorate([
36
39
  (0, class_validator_1.Validate)(validations_1.MinBigInt),
37
40
  __metadata("design:type", String)
38
41
  ], RaydiumSwapGetPriceDto.prototype, "amountIn", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsNumber)(),
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.Min)(0),
46
+ (0, class_validator_1.Max)(10000),
47
+ __metadata("design:type", Number)
48
+ ], RaydiumSwapGetPriceDto.prototype, "slippageBps", void 0);
39
49
  exports.RaydiumSwapGetPriceDto = RaydiumSwapGetPriceDto;
40
50
  //# sourceMappingURL=RaydiumSwapGetPrice.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RaydiumSwapGetPrice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAiE;AACjE,sDAAiD;AAEjD,MAAa,sBAAsB;CAiBlC;AAhBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;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;;wDACH;AAhBnB,wDAiBC"}
1
+ {"version":3,"file":"RaydiumSwapGetPrice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAQyB;AACzB,sDAAiD;AAEjD,MAAa,sBAAsB;IAAnC;QAsBE,gBAAW,GAAW,CAAC,CAAC;IAC1B,CAAC;CAAA;AAtBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;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;;wDACH;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,KAAK,CAAC;;2DACa;AAtB1B,wDAuBC"}
@@ -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"}
@@ -0,0 +1,6 @@
1
+ import { BlockchainSymbol } from '../../../constants';
2
+ export declare class GetRoutesDto {
3
+ mintFrom: string;
4
+ mintTo: string;
5
+ chainId?: BlockchainSymbol;
6
+ }
@@ -0,0 +1,37 @@
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.GetRoutesDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const validations_1 = require("../../../validations");
15
+ const constants_1 = require("../../../constants");
16
+ class GetRoutesDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, validations_1.SanitizeRegex)(),
22
+ __metadata("design:type", String)
23
+ ], GetRoutesDto.prototype, "mintFrom", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ (0, validations_1.SanitizeRegex)(),
28
+ __metadata("design:type", String)
29
+ ], GetRoutesDto.prototype, "mintTo", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, validations_1.SanitizeRegex)(),
34
+ __metadata("design:type", String)
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
+ import { Entity } from '../../entity';
2
+ import { Dex, SwapRouterPoolType } from '../../../constants';
3
+ export declare class SwapRoute extends Entity {
4
+ poolId: string;
5
+ weight: number;
6
+ dex: Dex;
7
+ poolType: SwapRouterPoolType;
8
+ }
@@ -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,2 @@
1
+ export * from './entities';
2
+ export * from './dtos';
@@ -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