@heliofi/launchpad-common 1.7.32 → 1.7.34
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/constants/blockchain.d.ts +1 -2
- package/dist/src/domain/constants/blockchain.js +0 -2
- package/dist/src/domain/constants/blockchain.js.map +1 -1
- package/dist/src/domain/constants/chainId.d.ts +0 -2
- package/dist/src/domain/constants/chainId.js +0 -5
- package/dist/src/domain/constants/chainId.js.map +1 -1
- package/dist/src/domain/constants/dex.d.ts +1 -3
- package/dist/src/domain/constants/dex.js +2 -21
- package/dist/src/domain/constants/dex.js.map +1 -1
- package/dist/src/domain/constants/migrationDex.d.ts +3 -1
- package/dist/src/domain/constants/migrationDex.js +4 -0
- package/dist/src/domain/constants/migrationDex.js.map +1 -1
- package/dist/src/domain/constants/protocol.d.ts +0 -2
- package/dist/src/domain/constants/protocol.js +0 -2
- package/dist/src/domain/constants/protocol.js.map +1 -1
- package/dist/src/domain/curves/getDefaultCurveByBlockchain.js +1 -2
- package/dist/src/domain/curves/getDefaultCurveByBlockchain.js.map +1 -1
- package/dist/src/domain/model/bundle/index.d.ts +1 -0
- package/dist/src/domain/model/{swap-evm → bundle}/index.js +1 -5
- package/dist/src/domain/model/bundle/index.js.map +1 -0
- package/dist/src/domain/model/bundle/prepare/dtos/BundleMintWithMetadata.dto.d.ts +3 -0
- package/dist/src/domain/model/bundle/prepare/dtos/BundleMintWithMetadata.dto.js +8 -0
- package/dist/src/domain/model/bundle/prepare/dtos/BundleMintWithMetadata.dto.js.map +1 -0
- package/dist/src/domain/model/bundle/prepare/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/bundle/prepare/dtos/index.js +18 -0
- package/dist/src/domain/model/bundle/prepare/dtos/index.js.map +1 -0
- package/dist/src/domain/model/bundle/prepare/index.d.ts +1 -0
- package/dist/src/domain/model/bundle/prepare/index.js +18 -0
- package/dist/src/domain/model/bundle/prepare/index.js.map +1 -0
- package/dist/src/domain/model/index.d.ts +0 -1
- package/dist/src/domain/model/index.js +0 -1
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/permission/Permission.d.ts +1 -2
- package/dist/src/domain/model/permission/Permission.js +0 -1
- package/dist/src/domain/model/permission/Permission.js.map +1 -1
- package/dist/src/domain/model/rpc-abstraction/entities/RpcResponse.entity.d.ts +24 -0
- package/dist/src/domain/model/rpc-abstraction/entities/RpcResponse.entity.js +3 -0
- package/dist/src/domain/model/rpc-abstraction/entities/RpcResponse.entity.js.map +1 -0
- package/dist/src/domain/model/wallet-balance/dtos/GetEvmBalanceRequest.dto.d.ts +6 -0
- package/dist/src/domain/model/{swap-evm/dtos/SwapEvmSubmit.dto.js → wallet-balance/dtos/GetEvmBalanceRequest.dto.js} +9 -8
- package/dist/src/domain/model/wallet-balance/dtos/GetEvmBalanceRequest.dto.js.map +1 -0
- package/dist/src/domain/model/wallet-balance/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/wallet-balance/dtos/index.js +18 -0
- package/dist/src/domain/model/wallet-balance/dtos/index.js.map +1 -0
- package/dist/src/domain/model/wallet-balance/entities/EvmBalanceResponse.entity.d.ts +6 -0
- package/dist/src/domain/model/wallet-balance/entities/EvmBalanceResponse.entity.js +3 -0
- package/dist/src/domain/model/wallet-balance/entities/EvmBalanceResponse.entity.js.map +1 -0
- package/dist/src/domain/model/wallet-balance/entities/index.d.ts +1 -0
- package/dist/src/domain/model/wallet-balance/entities/index.js +18 -0
- package/dist/src/domain/model/wallet-balance/entities/index.js.map +1 -0
- package/dist/src/domain/model/wallet-balance/index.d.ts +2 -0
- package/dist/src/domain/model/wallet-balance/index.js +19 -0
- package/dist/src/domain/model/wallet-balance/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmGetPrice.dto.d.ts +0 -9
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmGetPrice.dto.js +0 -52
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmGetPrice.dto.js.map +0 -1
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmPrepare.dto.d.ts +0 -11
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmPrepare.dto.js +0 -62
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmPrepare.dto.js.map +0 -1
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmSubmit.dto.d.ts +0 -5
- package/dist/src/domain/model/swap-evm/dtos/SwapEvmSubmit.dto.js.map +0 -1
- package/dist/src/domain/model/swap-evm/index.d.ts +0 -5
- package/dist/src/domain/model/swap-evm/index.js.map +0 -1
- package/dist/src/domain/model/swap-evm/responses/SwapEvmPrepare.response.d.ts +0 -5
- package/dist/src/domain/model/swap-evm/responses/SwapEvmPrepare.response.js +0 -7
- package/dist/src/domain/model/swap-evm/responses/SwapEvmPrepare.response.js.map +0 -1
- package/dist/src/domain/model/swap-evm/responses/SwapEvmSubmit.response.d.ts +0 -5
- package/dist/src/domain/model/swap-evm/responses/SwapEvmSubmit.response.js +0 -7
- package/dist/src/domain/model/swap-evm/responses/SwapEvmSubmit.response.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliofi/launchpad-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.34",
|
|
5
5
|
"description": "Common package for launchpad",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"ts-loader": "^9.3.1",
|
|
32
32
|
"typescript": "^5.5"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "2c0c6b9fe7bb2afc5174ed6ac36390cbd9081de5"
|
|
35
35
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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.SwapEvmGetPriceDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const constants_1 = require("../../../constants");
|
|
16
|
-
const validations_1 = require("../../../validations");
|
|
17
|
-
class SwapEvmGetPriceDto {
|
|
18
|
-
}
|
|
19
|
-
exports.SwapEvmGetPriceDto = SwapEvmGetPriceDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], SwapEvmGetPriceDto.prototype, "mintFrom", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], SwapEvmGetPriceDto.prototype, "mintTo", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
-
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], SwapEvmGetPriceDto.prototype, "amount", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], SwapEvmGetPriceDto.prototype, "poolId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsEnum)(constants_1.BlockchainSymbol),
|
|
43
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], SwapEvmGetPriceDto.prototype, "blockchainSymbol", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.IsEnum)(constants_1.SwapType),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], SwapEvmGetPriceDto.prototype, "swapType", void 0);
|
|
52
|
-
//# sourceMappingURL=SwapEvmGetPrice.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapEvmGetPrice.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-evm/dtos/SwapEvmGetPrice.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAMyB;AACzB,kDAAgE;AAChE,sDAAiD;AAEjD,MAAa,kBAAkB;CA0B9B;AA1BD,gDA0BC;AAvBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAKf;IAHC,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;;kDACL;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAIf;IAFC,IAAA,wBAAM,EAAC,4BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;4DACsB;AAKnC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,oBAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;oDACO"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SwapType, BlockchainSymbol } from '../../../constants';
|
|
2
|
-
export declare class SwapEvmPrepareDto {
|
|
3
|
-
sender: string;
|
|
4
|
-
mintFrom: string;
|
|
5
|
-
mintTo: string;
|
|
6
|
-
amountIn: string;
|
|
7
|
-
amountOut: string;
|
|
8
|
-
blockchainSymbol: BlockchainSymbol;
|
|
9
|
-
poolId: string;
|
|
10
|
-
swapType?: SwapType;
|
|
11
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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.SwapEvmPrepareDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const constants_1 = require("../../../constants");
|
|
16
|
-
const validations_1 = require("../../../validations");
|
|
17
|
-
class SwapEvmPrepareDto {
|
|
18
|
-
}
|
|
19
|
-
exports.SwapEvmPrepareDto = SwapEvmPrepareDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], SwapEvmPrepareDto.prototype, "sender", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], SwapEvmPrepareDto.prototype, "mintFrom", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], SwapEvmPrepareDto.prototype, "mintTo", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
37
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
-
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], SwapEvmPrepareDto.prototype, "amountIn", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
|
|
43
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
-
(0, class_validator_1.Validate)(validations_1.MinBigInt),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], SwapEvmPrepareDto.prototype, "amountOut", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsEnum)(constants_1.BlockchainSymbol),
|
|
49
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], SwapEvmPrepareDto.prototype, "blockchainSymbol", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], SwapEvmPrepareDto.prototype, "poolId", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsEnum)(constants_1.SwapType),
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], SwapEvmPrepareDto.prototype, "swapType", void 0);
|
|
62
|
-
//# sourceMappingURL=SwapEvmPrepare.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapEvmPrepare.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-evm/dtos/SwapEvmPrepare.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAMyB;AACzB,kDAAgE;AAChE,sDAAiD;AAEjD,MAAa,iBAAiB;CAkC7B;AAlCD,8CAkCC;AA/BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAKf;IAHC,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;;mDACH;AAKjB;IAHC,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;;oDACF;AAIlB;IAFC,IAAA,wBAAM,EAAC,4BAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;2DACsB;AAInC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,wBAAM,EAAC,oBAAQ,CAAC;IAChB,IAAA,4BAAU,GAAE;;mDACO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapEvmSubmit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-evm/dtos/SwapEvmSubmit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACa;AAI1B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/swap-evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,sEAAoD;AACpD,qEAAmD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SwapEvmPrepareResponse = void 0;
|
|
4
|
-
class SwapEvmPrepareResponse {
|
|
5
|
-
}
|
|
6
|
-
exports.SwapEvmPrepareResponse = SwapEvmPrepareResponse;
|
|
7
|
-
//# sourceMappingURL=SwapEvmPrepare.response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapEvmPrepare.response.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-evm/responses/SwapEvmPrepare.response.ts"],"names":[],"mappings":";;;AAAA,MAAa,sBAAsB;CAMlC;AAND,wDAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwapEvmSubmit.response.js","sourceRoot":"","sources":["../../../../../../src/domain/model/swap-evm/responses/SwapEvmSubmit.response.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAIjC;AAJD,sDAIC"}
|