@heliofi/launchpad-common 0.1.0 → 0.2.0-alpha

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 (98) hide show
  1. package/dist/src/domain/constants/ProtocolVersion.d.ts +4 -0
  2. package/dist/src/domain/constants/ProtocolVersion.js +9 -0
  3. package/dist/src/domain/constants/ProtocolVersion.js.map +1 -0
  4. package/dist/src/domain/constants/curveType.d.ts +2 -1
  5. package/dist/src/domain/constants/curveType.js +1 -0
  6. package/dist/src/domain/constants/curveType.js.map +1 -1
  7. package/dist/src/domain/constants/dex.d.ts +3 -0
  8. package/dist/src/domain/constants/dex.js +8 -0
  9. package/dist/src/domain/constants/dex.js.map +1 -0
  10. package/dist/src/domain/constants/index.d.ts +7 -0
  11. package/dist/src/domain/constants/index.js +7 -0
  12. package/dist/src/domain/constants/index.js.map +1 -1
  13. package/dist/src/domain/constants/lpTokenAllocationState.d.ts +4 -0
  14. package/dist/src/domain/constants/lpTokenAllocationState.js +9 -0
  15. package/dist/src/domain/constants/lpTokenAllocationState.js.map +1 -0
  16. package/dist/src/domain/constants/migrationDex.d.ts +4 -0
  17. package/dist/src/domain/constants/migrationDex.js +9 -0
  18. package/dist/src/domain/constants/migrationDex.js.map +1 -0
  19. package/dist/src/domain/constants/partner.d.ts +3 -0
  20. package/dist/src/domain/constants/partner.js +8 -0
  21. package/dist/src/domain/constants/partner.js.map +1 -0
  22. package/dist/src/domain/constants/solMintAddress.d.ts +2 -0
  23. package/dist/src/domain/constants/solMintAddress.js +6 -0
  24. package/dist/src/domain/constants/solMintAddress.js.map +1 -0
  25. package/dist/src/domain/constants/swapType.d.ts +4 -0
  26. package/dist/src/domain/constants/swapType.js +9 -0
  27. package/dist/src/domain/constants/swapType.js.map +1 -0
  28. package/dist/src/domain/constants/txType.d.ts +2 -1
  29. package/dist/src/domain/constants/txType.js +1 -0
  30. package/dist/src/domain/constants/txType.js.map +1 -1
  31. package/dist/src/domain/curves/BaseCurve.d.ts +2 -1
  32. package/dist/src/domain/curves/BaseCurve.js +2 -1
  33. package/dist/src/domain/curves/BaseCurve.js.map +1 -1
  34. package/dist/src/domain/curves/ConstantProductCurveV1.d.ts +15 -0
  35. package/dist/src/domain/curves/ConstantProductCurveV1.js +69 -0
  36. package/dist/src/domain/curves/ConstantProductCurveV1.js.map +1 -0
  37. package/dist/src/domain/curves/Curve.d.ts +4 -0
  38. package/dist/src/domain/curves/Curve.js +7 -0
  39. package/dist/src/domain/curves/Curve.js.map +1 -0
  40. package/dist/src/domain/curves/CurveMethods.d.ts +4 -0
  41. package/dist/src/domain/curves/CurveMethods.js +7 -0
  42. package/dist/src/domain/curves/CurveMethods.js.map +1 -0
  43. package/dist/src/domain/curves/LinearCurveV1.d.ts +2 -0
  44. package/dist/src/domain/curves/LinearCurveV1.js +7 -4
  45. package/dist/src/domain/curves/LinearCurveV1.js.map +1 -1
  46. package/dist/src/domain/curves/getCurve.d.ts +2 -1
  47. package/dist/src/domain/curves/getCurve.js +4 -0
  48. package/dist/src/domain/curves/getCurve.js.map +1 -1
  49. package/dist/src/domain/curves/index.d.ts +2 -0
  50. package/dist/src/domain/curves/index.js +2 -0
  51. package/dist/src/domain/curves/index.js.map +1 -1
  52. package/dist/src/domain/curves/types.d.ts +6 -3
  53. package/dist/src/domain/curves/types.js +3 -0
  54. package/dist/src/domain/curves/types.js.map +1 -1
  55. package/dist/src/domain/model/currency/dtos/createCurrency.dto.d.ts +1 -0
  56. package/dist/src/domain/model/currency/dtos/createCurrency.dto.js +5 -0
  57. package/dist/src/domain/model/currency/dtos/createCurrency.dto.js.map +1 -1
  58. package/dist/src/domain/model/index.d.ts +1 -0
  59. package/dist/src/domain/model/index.js +1 -0
  60. package/dist/src/domain/model/index.js.map +1 -1
  61. package/dist/src/domain/model/lpLockDetails/dtos/AddAllocation.dto.d.ts +7 -0
  62. package/dist/src/domain/model/lpLockDetails/dtos/AddAllocation.dto.js +38 -0
  63. package/dist/src/domain/model/lpLockDetails/dtos/AddAllocation.dto.js.map +1 -0
  64. package/dist/src/domain/model/lpLockDetails/index.d.ts +1 -0
  65. package/dist/src/domain/model/lpLockDetails/index.js +18 -0
  66. package/dist/src/domain/model/lpLockDetails/index.js.map +1 -0
  67. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.d.ts +2 -0
  68. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js +7 -0
  69. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js.map +1 -1
  70. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.d.ts +6 -0
  71. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.js +40 -0
  72. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapGetPrice.dto.js.map +1 -0
  73. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.d.ts +9 -4
  74. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.js +33 -8
  75. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.js.map +1 -1
  76. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapSubmit.dto.d.ts +1 -0
  77. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapSubmit.dto.js +5 -0
  78. package/dist/src/domain/model/raydium-swap/dtos/RaydiumSwapSubmit.dto.js.map +1 -1
  79. package/dist/src/domain/model/raydium-swap/dtos/index.d.ts +1 -0
  80. package/dist/src/domain/model/raydium-swap/dtos/index.js +1 -0
  81. package/dist/src/domain/model/raydium-swap/dtos/index.js.map +1 -1
  82. package/dist/src/domain/model/raydium-swap/entities/RaydiumSwapPrepareResponse.entity.d.ts +1 -2
  83. package/dist/src/domain/model/raydium-swap/entities/RaydiumSwapPrepareResponse.entity.js.map +1 -1
  84. package/dist/src/domain/model/raydium-swap/entities/RaydiumSwapSubmitResponse.entity.d.ts +3 -1
  85. package/dist/src/domain/model/raydium-swap/entities/RaydiumSwapSubmitResponse.entity.js.map +1 -1
  86. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.d.ts +3 -1
  87. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js +11 -0
  88. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js.map +1 -1
  89. package/dist/src/domain/model/token-pair/entities/TokenPair.entity.d.ts +2 -1
  90. package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js.map +1 -1
  91. package/dist/src/domain/model/tx-token-payload/SwapTxTokenPayload.d.ts +10 -0
  92. package/dist/src/domain/model/tx-token-payload/SwapTxTokenPayload.js +3 -0
  93. package/dist/src/domain/model/tx-token-payload/SwapTxTokenPayload.js.map +1 -0
  94. package/dist/src/domain/model/tx-token-payload/index.d.ts +1 -0
  95. package/dist/src/domain/model/tx-token-payload/index.js +1 -0
  96. package/dist/src/domain/model/tx-token-payload/index.js.map +1 -1
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,sDAAoC;AACpC,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,+CAA6B;AAC7B,uCAAqB;AACrB,qDAAmC;AACnC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,kDAAgC;AAChC,+CAA6B;AAC7B,sDAAoC;AACpC,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,+CAA6B;AAC7B,uCAAqB;AACrB,qDAAmC;AACnC,iDAA+B"}
@@ -0,0 +1,7 @@
1
+ import { LpTokenAllocationState } from '../../../constants';
2
+ export declare class AddAllocationDto {
3
+ state: LpTokenAllocationState;
4
+ walletAddress: string;
5
+ txHash: string;
6
+ allocationAmount: bigint;
7
+ }
@@ -0,0 +1,38 @@
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.AddAllocationDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../../constants");
15
+ class AddAllocationDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsEnum)(constants_1.LpTokenAllocationState),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], AddAllocationDto.prototype, "state", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], AddAllocationDto.prototype, "walletAddress", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsNotEmpty)(),
31
+ __metadata("design:type", String)
32
+ ], AddAllocationDto.prototype, "txHash", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", BigInt)
36
+ ], AddAllocationDto.prototype, "allocationAmount", void 0);
37
+ exports.AddAllocationDto = AddAllocationDto;
38
+ //# sourceMappingURL=AddAllocation.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddAllocation.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/lpLockDetails/dtos/AddAllocation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,kDAA4D;AAE5D,MAAa,gBAAgB;CAgB5B;AAfC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,kCAAsB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;+CACiB;AAE9B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACE;AAEf;IAAC,IAAA,4BAAU,GAAE;;0DACY;AAf3B,4CAgBC"}
@@ -0,0 +1 @@
1
+ export * from './dtos/AddAllocation.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("./dtos/AddAllocation.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/lpLockDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
@@ -1,6 +1,8 @@
1
+ import { MigrationDex } from '../../../../constants';
1
2
  export declare class CreateMintDto {
2
3
  symbol: string;
3
4
  name: string;
4
5
  uri: string;
5
6
  description?: string;
7
+ migrationDex?: MigrationDex;
6
8
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateMintDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../../../constants");
14
15
  class CreateMintDto {
15
16
  }
16
17
  __decorate([
@@ -33,5 +34,11 @@ __decorate([
33
34
  (0, class_validator_1.IsOptional)(),
34
35
  __metadata("design:type", String)
35
36
  ], CreateMintDto.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsEnum)(constants_1.MigrationDex),
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", String)
42
+ ], CreateMintDto.prototype, "migrationDex", void 0);
36
43
  exports.CreateMintDto = CreateMintDto;
37
44
  //# sourceMappingURL=CreateMint.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateMint.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMint.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,aAAa;CAgBzB;AAfC;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;AAfvB,sCAgBC"}
1
+ {"version":3,"file":"CreateMint.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/mint/create/dtos/CreateMint.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,qDAAqD;AAErD,MAAa,aAAa;CAqBzB;AApBC;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;AApB9B,sCAqBC"}
@@ -0,0 +1,6 @@
1
+ export declare class RaydiumSwapGetPriceDto {
2
+ poolId: string;
3
+ mintFrom: string;
4
+ mintTo: string;
5
+ amountIn: string;
6
+ }
@@ -0,0 +1,40 @@
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.RaydiumSwapGetPriceDto = 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 RaydiumSwapGetPriceDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], RaydiumSwapGetPriceDto.prototype, "poolId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], RaydiumSwapGetPriceDto.prototype, "mintFrom", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsNotEmpty)(),
31
+ __metadata("design:type", String)
32
+ ], RaydiumSwapGetPriceDto.prototype, "mintTo", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ (0, class_validator_1.Validate)(validations_1.MinBigInt),
37
+ __metadata("design:type", String)
38
+ ], RaydiumSwapGetPriceDto.prototype, "amountIn", void 0);
39
+ exports.RaydiumSwapGetPriceDto = RaydiumSwapGetPriceDto;
40
+ //# sourceMappingURL=RaydiumSwapGetPrice.dto.js.map
@@ -0,0 +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,8 +1,13 @@
1
- import { TradeDirection } from '../../../constants';
1
+ import { SwapType } from '../../../constants';
2
2
  export declare class RaydiumSwapPrepareDto {
3
3
  sender: string;
4
- mintAddress: string;
4
+ poolId: string;
5
+ mintFrom: string;
6
+ mintTo: string;
5
7
  amountIn: string;
6
- slippagePct: number;
7
- tradeDirection?: TradeDirection;
8
+ amountOut: string;
9
+ feeAmount: string;
10
+ feeMintAddress: string;
11
+ swapType?: SwapType;
12
+ priorityFee?: number;
8
13
  }
@@ -25,7 +25,17 @@ __decorate([
25
25
  (0, class_validator_1.IsString)(),
26
26
  (0, class_validator_1.IsNotEmpty)(),
27
27
  __metadata("design:type", String)
28
- ], RaydiumSwapPrepareDto.prototype, "mintAddress", void 0);
28
+ ], RaydiumSwapPrepareDto.prototype, "poolId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", String)
33
+ ], RaydiumSwapPrepareDto.prototype, "mintFrom", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ __metadata("design:type", String)
38
+ ], RaydiumSwapPrepareDto.prototype, "mintTo", void 0);
29
39
  __decorate([
30
40
  (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
31
41
  (0, class_validator_1.IsNotEmpty)(),
@@ -33,17 +43,32 @@ __decorate([
33
43
  __metadata("design:type", String)
34
44
  ], RaydiumSwapPrepareDto.prototype, "amountIn", void 0);
35
45
  __decorate([
36
- (0, class_validator_1.IsNumber)(),
46
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
37
47
  (0, class_validator_1.IsNotEmpty)(),
38
- (0, class_validator_1.Min)(0),
39
- (0, class_validator_1.Max)(100),
40
- __metadata("design:type", Number)
41
- ], RaydiumSwapPrepareDto.prototype, "slippagePct", void 0);
48
+ (0, class_validator_1.Validate)(validations_1.MinBigInt),
49
+ __metadata("design:type", String)
50
+ ], RaydiumSwapPrepareDto.prototype, "amountOut", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
53
+ (0, class_validator_1.IsNotEmpty)(),
54
+ (0, class_validator_1.Validate)(validations_1.MinBigInt),
55
+ __metadata("design:type", String)
56
+ ], RaydiumSwapPrepareDto.prototype, "feeAmount", void 0);
42
57
  __decorate([
43
58
  (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.IsEnum)(constants_1.TradeDirection),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ __metadata("design:type", String)
61
+ ], RaydiumSwapPrepareDto.prototype, "feeMintAddress", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsString)(),
64
+ (0, class_validator_1.IsEnum)(constants_1.SwapType),
45
65
  (0, class_validator_1.IsOptional)(),
46
66
  __metadata("design:type", String)
47
- ], RaydiumSwapPrepareDto.prototype, "tradeDirection", void 0);
67
+ ], RaydiumSwapPrepareDto.prototype, "swapType", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsNumber)(),
70
+ (0, class_validator_1.IsOptional)(),
71
+ __metadata("design:type", Number)
72
+ ], RaydiumSwapPrepareDto.prototype, "priorityFee", void 0);
48
73
  exports.RaydiumSwapPrepareDto = RaydiumSwapPrepareDto;
49
74
  //# sourceMappingURL=RaydiumSwapPrepare.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RaydiumSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDASyB;AACzB,kDAAoD;AACpD,sDAAiD;AAEjD,MAAa,qBAAqB;CAwBjC;AAvBC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAEpB;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,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;0DACW;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,0BAAc,CAAC;IACtB,IAAA,4BAAU,GAAE;;6DACmB;AAvBlC,sDAwBC"}
1
+ {"version":3,"file":"RaydiumSwapPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAOyB;AACzB,kDAA8C;AAC9C,sDAAiD;AAEjD,MAAa,qBAAqB;CA4CjC;AA3CC;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,MAAM,CAAC,KAAK,CAAC,CAAC;IACvC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,uBAAS,CAAC;;wDACF;AAElB;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;AA3CvB,sDA4CC"}
@@ -1,3 +1,4 @@
1
1
  export declare class RaydiumSwapSubmitDto {
2
2
  signedTransaction: string;
3
+ token: string;
3
4
  }
@@ -18,5 +18,10 @@ __decorate([
18
18
  (0, class_validator_1.IsNotEmpty)(),
19
19
  __metadata("design:type", String)
20
20
  ], RaydiumSwapSubmitDto.prototype, "signedTransaction", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ __metadata("design:type", String)
25
+ ], RaydiumSwapSubmitDto.prototype, "token", void 0);
21
26
  exports.RaydiumSwapSubmitDto = RaydiumSwapSubmitDto;
22
27
  //# sourceMappingURL=RaydiumSwapSubmit.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RaydiumSwapSubmit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapSubmit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,oBAAoB;CAIhC;AAHC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACa;AAH5B,oDAIC"}
1
+ {"version":3,"file":"RaydiumSwapSubmit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/RaydiumSwapSubmit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,oBAAoB;CAQhC;AAPC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACC;AAPhB,oDAQC"}
@@ -1,2 +1,3 @@
1
1
  export * from './RaydiumSwapPrepare.dto';
2
2
  export * from './RaydiumSwapSubmit.dto';
3
+ export * from './RaydiumSwapGetPrice.dto';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RaydiumSwapPrepare.dto"), exports);
18
18
  __exportStar(require("./RaydiumSwapSubmit.dto"), exports);
19
+ __exportStar(require("./RaydiumSwapGetPrice.dto"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C"}
@@ -1,6 +1,5 @@
1
1
  import { Entity } from '../../entity';
2
2
  export declare class RaydiumSwapPrepareResponse extends Entity {
3
3
  serializedTx: string;
4
- amountOut: string;
5
- minAmountOut: string;
4
+ token?: string;
6
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RaydiumSwapPrepareResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/entities/RaydiumSwapPrepareResponse.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,0BAA2B,SAAQ,eAAM;CAMrD;AAND,gEAMC"}
1
+ {"version":3,"file":"RaydiumSwapPrepareResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/entities/RaydiumSwapPrepareResponse.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,0BAA2B,SAAQ,eAAM;CAIrD;AAJD,gEAIC"}
@@ -1,4 +1,6 @@
1
1
  import { Entity } from '../../entity';
2
+ import { TxStatus } from '../../../constants';
2
3
  export declare class RaydiumSwapSubmitResponse extends Entity {
3
- amountOut: string;
4
+ transactionSignature: string;
5
+ status: TxStatus;
4
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RaydiumSwapSubmitResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/entities/RaydiumSwapSubmitResponse.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,yBAA0B,SAAQ,eAAM;CAEpD;AAFD,8DAEC"}
1
+ {"version":3,"file":"RaydiumSwapSubmitResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/raydium-swap/entities/RaydiumSwapSubmitResponse.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAUtC,MAAa,yBAA0B,SAAQ,eAAM;CAIpD;AAJD,8DAIC"}
@@ -1,4 +1,4 @@
1
- import { TokenType } from '../../../constants';
1
+ import { TokenType, MigrationDex } from '../../../constants';
2
2
  import { CreateCurveDto } from '../../curve';
3
3
  export declare class CreateTokenPairDto {
4
4
  symbol: string;
@@ -9,4 +9,6 @@ export declare class CreateTokenPairDto {
9
9
  blockchainId: string;
10
10
  curve: CreateCurveDto;
11
11
  description?: string;
12
+ contractVersion?: string;
13
+ migrationDex?: MigrationDex;
12
14
  }
@@ -56,5 +56,16 @@ __decorate([
56
56
  (0, class_validator_1.IsOptional)(),
57
57
  __metadata("design:type", String)
58
58
  ], CreateTokenPairDto.prototype, "description", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsString)(),
61
+ (0, class_validator_1.IsOptional)(),
62
+ __metadata("design:type", String)
63
+ ], CreateTokenPairDto.prototype, "contractVersion", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.IsEnum)(constants_1.MigrationDex),
67
+ (0, class_validator_1.IsOptional)(),
68
+ __metadata("design:type", String)
69
+ ], CreateTokenPairDto.prototype, "migrationDex", void 0);
59
70
  exports.CreateTokenPairDto = CreateTokenPairDto;
60
71
  //# sourceMappingURL=CreateTokenPair.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateTokenPair.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/dtos/CreateTokenPair.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAKyB;AACzB,yDAAyC;AACzC,kDAA+C;AAC/C,uCAA6C;AAE7C,MAAa,kBAAkB;CAgC9B;AA/BC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACD;AAEZ;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;8BACV,sBAAc;iDAAC;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AA/BvB,gDAgCC"}
1
+ {"version":3,"file":"CreateTokenPair.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/dtos/CreateTokenPair.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAyC;AACzC,kDAA6D;AAC7D,uCAA6C;AAE7C,MAAa,kBAAkB;CAyC9B;AAxCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACD;AAEZ;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;8BACV,sBAAc;iDAAC;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAErB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACY;AAEzB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,wBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;wDACe;AAxC9B,gDAyCC"}
@@ -1,6 +1,6 @@
1
1
  import { Entity } from '../../entity';
2
2
  import { Curve } from '../../curve';
3
- import { TokenType } from '../../../constants';
3
+ import { MigrationDex, TokenType } from '../../../constants';
4
4
  import { BaseBlockchain } from '../../blockchain';
5
5
  import { TokenPairState } from '../constants';
6
6
  export declare class TokenPair extends Entity {
@@ -18,4 +18,5 @@ export declare class TokenPair extends Entity {
18
18
  state: TokenPairState;
19
19
  migrated: boolean;
20
20
  disabled: boolean;
21
+ migrationDex: MigrationDex;
21
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TokenPair.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/entities/TokenPair.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAMtC,MAAa,SAAU,SAAQ,eAAM;CA4BpC;AA5BD,8BA4BC"}
1
+ {"version":3,"file":"TokenPair.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/entities/TokenPair.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAMtC,MAAa,SAAU,SAAQ,eAAM;CA8BpC;AA9BD,8BA8BC"}
@@ -0,0 +1,10 @@
1
+ import { TxType } from '../../constants';
2
+ export interface SwapTxTokenPayload {
3
+ txId: string;
4
+ sessionHash: string;
5
+ txHash: string;
6
+ txType: TxType;
7
+ helioFee: string;
8
+ partnerFee: string;
9
+ feeMintAddress: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SwapTxTokenPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapTxTokenPayload.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx-token-payload/SwapTxTokenPayload.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from './TxTokenPayload';
2
+ export * from './SwapTxTokenPayload';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./TxTokenPayload"), exports);
18
+ __exportStar(require("./SwapTxTokenPayload"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx-token-payload/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx-token-payload/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC"}