@heliofi/launchpad-common 1.6.49 → 1.6.51
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/curveType.d.ts +2 -1
- package/dist/src/domain/constants/curveType.js +1 -0
- package/dist/src/domain/constants/curveType.js.map +1 -1
- package/dist/src/domain/curves/FlatCurveV1AntiSnipe.d.ts +4 -0
- package/dist/src/domain/curves/FlatCurveV1AntiSnipe.js +16 -0
- package/dist/src/domain/curves/FlatCurveV1AntiSnipe.js.map +1 -0
- package/dist/src/domain/curves/getCurve.js +5 -0
- package/dist/src/domain/curves/getCurve.js.map +1 -1
- package/dist/src/domain/curves/index.d.ts +1 -0
- package/dist/src/domain/curves/index.js +1 -0
- package/dist/src/domain/curves/index.js.map +1 -1
- package/dist/src/domain/curves/types.d.ts +2 -1
- package/dist/src/domain/curves/types.js +3 -0
- package/dist/src/domain/curves/types.js.map +1 -1
- package/dist/src/domain/model/base-tx/entities/SwapEvent.entity.d.ts +4 -0
- package/dist/src/domain/model/base-tx/entities/SwapEvent.entity.js.map +1 -1
- package/dist/src/domain/model/dexscreener/entities/DexScreenerAssetResponse.entity.d.ts +8 -0
- package/dist/src/domain/model/dexscreener/entities/DexScreenerAssetResponse.entity.js +8 -0
- package/dist/src/domain/model/dexscreener/entities/DexScreenerAssetResponse.entity.js.map +1 -0
- package/dist/src/domain/model/dexscreener/entities/DexScreenerPairResponse.entity.d.ts +11 -0
- package/dist/src/domain/model/dexscreener/entities/DexScreenerPairResponse.entity.js +8 -0
- package/dist/src/domain/model/dexscreener/entities/DexScreenerPairResponse.entity.js.map +1 -0
- package/dist/src/domain/model/dexscreener/entities/index.d.ts +2 -0
- package/dist/src/domain/model/dexscreener/entities/index.js +19 -0
- package/dist/src/domain/model/dexscreener/entities/index.js.map +1 -0
- package/dist/src/domain/model/dexscreener/index.d.ts +1 -0
- package/dist/src/domain/model/dexscreener/index.js +18 -0
- package/dist/src/domain/model/dexscreener/index.js.map +1 -0
- package/dist/src/domain/model/fun/dtos/GetAdvancedTokensList.dto.d.ts +2 -2
- package/dist/src/domain/model/fun/dtos/GetAdvancedTokensList.dto.js +2 -2
- package/dist/src/domain/model/fun/dtos/GetAdvancedTokensList.dto.js.map +1 -1
- package/dist/src/domain/model/hero-token/dtos/HeroTokenQuery.dto.d.ts +4 -0
- package/dist/src/domain/model/{wallet-points/dtos/TxRewardsRequest.dto.js → hero-token/dtos/HeroTokenQuery.dto.js} +9 -24
- package/dist/src/domain/model/hero-token/dtos/HeroTokenQuery.dto.js.map +1 -0
- package/dist/src/domain/model/hero-token/dtos/HeroTopTokensQuery.dto.d.ts +4 -0
- package/dist/src/domain/model/hero-token/dtos/HeroTopTokensQuery.dto.js +23 -0
- package/dist/src/domain/model/hero-token/dtos/HeroTopTokensQuery.dto.js.map +1 -0
- package/dist/src/domain/model/index.d.ts +1 -0
- package/dist/src/domain/model/index.js +1 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.d.ts +1 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js +5 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js.map +1 -1
- package/dist/src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.d.ts +1 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.js +5 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMintWithMetadata.dto.js.map +1 -1
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.d.ts +1 -0
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js +5 -0
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js.map +1 -1
- package/dist/src/domain/model/wallet-points/dtos/WalletPoints.dto.d.ts +3 -0
- package/dist/src/domain/model/wallet-points/dtos/{GetWalletRewards.dto.js → WalletPoints.dto.js} +5 -5
- package/dist/src/domain/model/wallet-points/dtos/WalletPoints.dto.js.map +1 -0
- package/dist/src/domain/model/wallet-points/entities/WalletPoints.entity.d.ts +5 -0
- package/dist/src/domain/model/wallet-points/entities/WalletPoints.entity.js +8 -0
- package/dist/src/domain/model/wallet-points/entities/WalletPoints.entity.js.map +1 -0
- package/dist/src/domain/model/wallet-points/index.d.ts +2 -6
- package/dist/src/domain/model/wallet-points/index.js +2 -6
- package/dist/src/domain/model/wallet-points/index.js.map +1 -1
- package/dist/src/utils/curves.js +3 -0
- package/dist/src/utils/curves.js.map +1 -1
- package/dist/src/utils/index.d.ts +2 -1
- package/dist/src/utils/index.js +2 -1
- package/dist/src/utils/index.js.map +1 -1
- package/dist/src/utils/isAntiSnipeCurve.d.ts +2 -0
- package/dist/src/utils/isAntiSnipeCurve.js +9 -0
- package/dist/src/utils/isAntiSnipeCurve.js.map +1 -0
- package/dist/src/utils/isFlatCurveV1.d.ts +2 -0
- package/dist/src/utils/isFlatCurveV1.js +9 -0
- package/dist/src/utils/isFlatCurveV1.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/wallet-points/constants.d.ts +0 -21
- package/dist/src/domain/model/wallet-points/constants.js +0 -37
- package/dist/src/domain/model/wallet-points/constants.js.map +0 -1
- package/dist/src/domain/model/wallet-points/dtos/GetWalletRewards.dto.d.ts +0 -3
- package/dist/src/domain/model/wallet-points/dtos/GetWalletRewards.dto.js.map +0 -1
- package/dist/src/domain/model/wallet-points/dtos/RewardBadge.dto.d.ts +0 -6
- package/dist/src/domain/model/wallet-points/dtos/RewardBadge.dto.js +0 -7
- package/dist/src/domain/model/wallet-points/dtos/RewardBadge.dto.js.map +0 -1
- package/dist/src/domain/model/wallet-points/dtos/TxRewardsRequest.dto.d.ts +0 -8
- package/dist/src/domain/model/wallet-points/dtos/TxRewardsRequest.dto.js.map +0 -1
- package/dist/src/domain/model/wallet-points/entities/Multiplier.entity.d.ts +0 -5
- package/dist/src/domain/model/wallet-points/entities/Multiplier.entity.js +0 -7
- package/dist/src/domain/model/wallet-points/entities/Multiplier.entity.js.map +0 -1
- package/dist/src/domain/model/wallet-points/entities/TxRewardsResponse.entity.d.ts +0 -6
- package/dist/src/domain/model/wallet-points/entities/TxRewardsResponse.entity.js +0 -7
- package/dist/src/domain/model/wallet-points/entities/TxRewardsResponse.entity.js.map +0 -1
- package/dist/src/domain/model/wallet-points/entities/WalletRewards.entity.d.ts +0 -8
- package/dist/src/domain/model/wallet-points/entities/WalletRewards.entity.js +0 -7
- package/dist/src/domain/model/wallet-points/entities/WalletRewards.entity.js.map +0 -1
- package/dist/src/utils/dates.d.ts +0 -1
- package/dist/src/utils/dates.js +0 -13
- package/dist/src/utils/dates.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.6.
|
|
4
|
+
"version": "1.6.51",
|
|
5
5
|
"description": "Common package for launchpad",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"ts-loader": "^9.3.1",
|
|
30
30
|
"typescript": "4.8.4"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "48da87dbd028cb7cbade577f0c721007f9cee86f"
|
|
33
33
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare enum RewardsTxType {
|
|
2
|
-
TRADE = "TRADE",
|
|
3
|
-
MINT = "MINT",
|
|
4
|
-
GRADUATE = "GRADUATE"
|
|
5
|
-
}
|
|
6
|
-
export declare enum MultiplierType {
|
|
7
|
-
CURRENT = "CURRENT",
|
|
8
|
-
STREAK = "STREAK",
|
|
9
|
-
RANDOM = "RANDOM",
|
|
10
|
-
MINT = "MINT",
|
|
11
|
-
GRADUATE = "GRADUATE"
|
|
12
|
-
}
|
|
13
|
-
export declare const StreakMultipliers: Record<number, number>;
|
|
14
|
-
export declare const getStreakMultiplier: (streakDays: number) => number;
|
|
15
|
-
export declare enum BadgeType {
|
|
16
|
-
MINTER = "MINTER",
|
|
17
|
-
GRADUATOR = "GRADUATOR",
|
|
18
|
-
BRONZE = "BRONZE",
|
|
19
|
-
SILVER = "SILVER",
|
|
20
|
-
GOLD = "GOLD"
|
|
21
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadgeType = exports.getStreakMultiplier = exports.StreakMultipliers = exports.MultiplierType = exports.RewardsTxType = void 0;
|
|
4
|
-
var RewardsTxType;
|
|
5
|
-
(function (RewardsTxType) {
|
|
6
|
-
RewardsTxType["TRADE"] = "TRADE";
|
|
7
|
-
RewardsTxType["MINT"] = "MINT";
|
|
8
|
-
RewardsTxType["GRADUATE"] = "GRADUATE";
|
|
9
|
-
})(RewardsTxType = exports.RewardsTxType || (exports.RewardsTxType = {}));
|
|
10
|
-
var MultiplierType;
|
|
11
|
-
(function (MultiplierType) {
|
|
12
|
-
MultiplierType["CURRENT"] = "CURRENT";
|
|
13
|
-
MultiplierType["STREAK"] = "STREAK";
|
|
14
|
-
MultiplierType["RANDOM"] = "RANDOM";
|
|
15
|
-
MultiplierType["MINT"] = "MINT";
|
|
16
|
-
MultiplierType["GRADUATE"] = "GRADUATE";
|
|
17
|
-
})(MultiplierType = exports.MultiplierType || (exports.MultiplierType = {}));
|
|
18
|
-
exports.StreakMultipliers = {
|
|
19
|
-
1: 1.0,
|
|
20
|
-
2: 1.2,
|
|
21
|
-
3: 1.5,
|
|
22
|
-
4: 2.0,
|
|
23
|
-
5: 3.0,
|
|
24
|
-
};
|
|
25
|
-
const getStreakMultiplier = (streakDays) => {
|
|
26
|
-
return exports.StreakMultipliers[Math.min(streakDays, 5)] || 1.0;
|
|
27
|
-
};
|
|
28
|
-
exports.getStreakMultiplier = getStreakMultiplier;
|
|
29
|
-
var BadgeType;
|
|
30
|
-
(function (BadgeType) {
|
|
31
|
-
BadgeType["MINTER"] = "MINTER";
|
|
32
|
-
BadgeType["GRADUATOR"] = "GRADUATOR";
|
|
33
|
-
BadgeType["BRONZE"] = "BRONZE";
|
|
34
|
-
BadgeType["SILVER"] = "SILVER";
|
|
35
|
-
BadgeType["GOLD"] = "GOLD";
|
|
36
|
-
})(BadgeType = exports.BadgeType || (exports.BadgeType = {}));
|
|
37
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/domain/model/wallet-points/constants.ts"],"names":[],"mappings":";;;AAEA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,sCAAqB,CAAA;AACvB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AAGY,QAAA,iBAAiB,GAA2B;IACvD,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACP,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAU,EAAE;IAChE,OAAO,yBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;AAC3D,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,0BAAa,CAAA;AACf,CAAC,EANW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetWalletRewards.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/dtos/GetWalletRewards.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,uBAAuB;CAInC;AAHC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AAHvB,0DAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RewardBadge.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/dtos/RewardBadge.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;CAIvB;AAJD,kCAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TxRewardsRequest.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/dtos/TxRewardsRequest.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,kDAA4C;AAE5C,MAAa,mBAAmB;CAkB/B;AAjBC;IAAC,IAAA,wBAAM,EAAC,kBAAM,CAAC;IACd,IAAA,4BAAU,GAAE;;4DACW;AAExB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACM;AAEnB;IAAC,IAAA,4BAAU,GAAE;;gEACe;AAE5B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACS;AAEtB;IAAC,IAAA,2BAAS,GAAE;;wDACS;AAjBvB,kDAkBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Multiplier.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/entities/Multiplier.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;CAItB;AAJD,gCAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TxRewardsResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/entities/TxRewardsResponse.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletRewards.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/wallet-points/entities/WalletRewards.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;CAUzB;AAVD,sCAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isYesterday(date?: Date): boolean;
|
package/dist/src/utils/dates.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isYesterday = void 0;
|
|
4
|
-
function isYesterday(date) {
|
|
5
|
-
if (!date) {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
const yesterday = new Date();
|
|
9
|
-
yesterday.setDate(yesterday.getDate() - 1);
|
|
10
|
-
return date.toDateString() === yesterday.toDateString();
|
|
11
|
-
}
|
|
12
|
-
exports.isYesterday = isYesterday;
|
|
13
|
-
//# sourceMappingURL=dates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../../../src/utils/dates.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,IAAW;IACrC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IAED,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC7B,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,IAAI,CAAC,YAAY,EAAE,KAAK,SAAS,CAAC,YAAY,EAAE,CAAC;AAC1D,CAAC;AARD,kCAQC"}
|