@sonarwatch/portfolio-plugins 0.12.66 → 0.12.68
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/Cache.js +1 -1
- package/src/Cache.js.map +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/plugins/holdium/airdropFetcher.js +1 -1
- package/src/plugins/holdium/airdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/asrAirdropFetcher.js +2 -2
- package/src/plugins/jupiter/governance/asrAirdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/constants.d.ts +1 -0
- package/src/plugins/jupiter/governance/constants.js +2 -1
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/index.d.ts +2 -2
- package/src/plugins/jupiter/index.js +7 -4
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.d.ts +4 -11
- package/src/plugins/jupiter/launchpad/constants.js +90 -16
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/index.d.ts +4 -0
- package/src/plugins/jupiter/launchpad/index.js +12 -0
- package/src/plugins/jupiter/launchpad/index.js.map +1 -0
- package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.d.ts +3 -0
- package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js +63 -0
- package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js.map +1 -0
- package/src/plugins/jupiter/launchpad/types.d.ts +10 -0
- package/src/plugins/jupiter/launchpad/types.js +3 -0
- package/src/plugins/jupiter/launchpad/types.js.map +1 -0
- package/src/plugins/jupiter/types.d.ts +3 -2
- package/src/plugins/kamino/constants.d.ts +0 -3
- package/src/plugins/kamino/constants.js +1 -4
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/index.js +1 -2
- package/src/plugins/kamino/index.js.map +1 -1
- package/src/plugins/sanctum/airdropFetcher.d.ts +3 -0
- package/src/plugins/sanctum/airdropFetcher.js +34 -0
- package/src/plugins/sanctum/airdropFetcher.js.map +1 -0
- package/src/plugins/sanctum/constants.d.ts +4 -0
- package/src/plugins/sanctum/constants.js +14 -3
- package/src/plugins/sanctum/constants.js.map +1 -1
- package/src/plugins/sanctum/index.d.ts +2 -0
- package/src/plugins/sanctum/index.js +3 -1
- package/src/plugins/sanctum/index.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.d.ts +0 -3
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js +0 -87
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +0 -1
- package/src/plugins/kamino/airdropFetcher.d.ts +0 -3
- package/src/plugins/kamino/airdropFetcher.js +0 -57
- package/src/plugins/kamino/airdropFetcher.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.68](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.67...plugins-0.12.68) (2024-07-16)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.67](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.66...plugins-0.12.67) (2024-07-15)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.66](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.65...plugins-0.12.66) (2024-07-15)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Cache.js
CHANGED
@@ -323,7 +323,7 @@ function getCacheConfig() {
|
|
323
323
|
.map((base) => ({
|
324
324
|
base,
|
325
325
|
headers: {
|
326
|
-
Authorization: `Bearer ${portfolio_core_1.publicBearerToken}`,
|
326
|
+
Authorization: `Bearer ${process.env['CACHE_CONFIG_HTTP_BEARER'] || portfolio_core_1.publicBearerToken}`,
|
327
327
|
},
|
328
328
|
})),
|
329
329
|
},
|
package/src/Cache.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
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,QAAQ;IACtB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;AAHD,4BAGC"}
|
package/src/index.js
CHANGED
@@ -466,10 +466,11 @@ exports.fetchers = [
|
|
466
466
|
];
|
467
467
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
468
468
|
exports.airdropFetchers = [
|
469
|
+
...jupiter_1.airdropFetchers,
|
469
470
|
drift_1.airdropFetcher,
|
470
471
|
parcl_1.airdropFetcher,
|
471
|
-
jupiter_1.asrAirdropFetcher,
|
472
472
|
holdium_1.airdropFetcher,
|
473
|
+
sanctum_1.airdropFetcher,
|
473
474
|
];
|
474
475
|
exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
|
475
476
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCAIwB;AACxB,mDAI6B;AAC7B,6CAI0B;AAC1B,iEAIoC;AACpC,6DAIkC;AAClC,yCAIwB;AACxB,uCAIuB;AACvB,+CAI2B;AAC3B,iDAI4B;AAC5B,mDAI6B;AAC7B,2CAIyB;AACzB,+CAI2B;AAC3B,uCAIuB;AACvB,iDAI4B;AAC5B,yCAIwB;AACxB,6CAI0B;AAC1B,yCAIwB;AACxB,mDAI6B;AAC7B,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,+CAI2B;AAC3B,iDAI4B;AAC5B,yDAIgC;AAChC,iDAI4B;AAC5B,6CAI0B;AAC1B,iDAI4B;AAC5B,+CAI2B;AAC3B,6CAI0B;AAC1B,6CAI0B;AAC1B,+
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,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BAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,8BAA2B;IAC9B,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,kBAAe;CACnB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,wBAAqB;IACrB,wBAAqB;CACtB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -13,7 +13,7 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
13
13
|
const constants_1 = require("./constants");
|
14
14
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
15
15
|
const fetchAirdropExecutor = () => __awaiter(void 0, void 0, void 0, function* () {
|
16
|
-
throw new Error('myerror happened');
|
16
|
+
throw new Error('myerror holdium happened');
|
17
17
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
18
18
|
statics: constants_1.airdropStatics,
|
19
19
|
items: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/holdium/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAA6C;AAC7C,yDAI8B;AAE9B,MAAM,oBAAoB,GAA2B,GAAS,EAAE;IAC9D,MAAM,IAAI,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/holdium/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAA6C;AAC7C,yDAI8B;AAE9B,MAAM,oBAAoB,GAA2B,GAAS,EAAE;IAC9D,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC5C,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,CAAC;gBACT,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,IAAI;aACZ;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
@@ -48,9 +48,9 @@ const ineligibleItems = Array.from(asr1Items).map(([address, { label }]) => ({
|
|
48
48
|
}));
|
49
49
|
function asrDeriveClaimStatus(claimant, claimProof) {
|
50
50
|
if (claimProof.mint === constants_2.jupMint) {
|
51
|
-
return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree,
|
51
|
+
return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree, constants_1.jupDisProgram);
|
52
52
|
}
|
53
|
-
return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree, constants_2.
|
53
|
+
return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree, constants_2.lfgDisProgram);
|
54
54
|
}
|
55
55
|
const fetchAirdropExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
56
56
|
const claimsProof = yield axios_1.default
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asrAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/asrAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,
|
1
|
+
{"version":3,"file":"asrAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/asrAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,2CAAiE;AACjE,4DAIiC;AAEjC,mGAAgG;AAChG,oDAAyD;AACzD,sDAAgE;AAChE,uFAAoF;AAEpF,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,CAAC,mBAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACxC;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC/B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC9B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC9B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE;KAChC;CACF,CAAC,CAAC;AACH,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,C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IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,uBAAW;QACpB,KAAK,EAAE,aAAa;aACjB,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;YACnB,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,aAAa,CAAC,IAAI;gBAAE,OAAO,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,CAAC,OAAO;gBAAE,OAAO,EAAE,CAAC;YACxB,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;YACpC,OAAO;gBACL;oBACE,MAAM,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,MAAM,CAAC;yBACxC,GAAG,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;yBACnB,QAAQ,EAAE;oBACb,SAAS,EAAE,CAAC,CAAC,QAAQ;oBACrB,KAAK;oBACL,OAAO,EAAE,aAAa,CAAC,IAAI;iBAC5B;aACF,CAAC;QACJ,CAAC,CAAC;aACD,IAAI,EAAE;KACV,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,uBAAW,CAAC,EAAE;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { AirdropStatics } from '../../../AirdropFetcher';
|
3
3
|
export declare const platformId = "jupiter-governance";
|
4
|
+
export declare const jupDisProgram = "Dis2TfkFnXFkrtvAktEkw37sdb7qwJgY6H7YZJwk51wK";
|
4
5
|
export declare const platform: Platform;
|
5
6
|
export declare const asrApi = "https://worker.jup.ag/jup-asr-july-2024-claim-proof";
|
6
7
|
export declare const asr1Statics: AirdropStatics;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.asr1Statics = exports.asrApi = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.asr1Statics = exports.asrApi = exports.platform = exports.jupDisProgram = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'jupiter-governance';
|
5
5
|
const platformName = 'Jupiter Governance';
|
6
6
|
const platformImage = 'https://sonar.watch/img/platforms/jupiter.webp';
|
7
7
|
const platformWebsite = 'https://vote.jup.ag/';
|
8
|
+
exports.jupDisProgram = 'Dis2TfkFnXFkrtvAktEkw37sdb7qwJgY6H7YZJwk51wK';
|
8
9
|
exports.platform = {
|
9
10
|
id: exports.platformId,
|
10
11
|
name: platformName,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AACvE,MAAM,eAAe,GAAG,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AACvE,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAElC,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,MAAM,GAAG,qDAAqD,CAAC;AAC/D,QAAA,WAAW,GAAmB;IACzC,EAAE,EAAE,WAAW;IACf,SAAS,EAAE,yBAAyB;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,IAAI,EAAE,QAAQ;CACf,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { Fetcher } from '../../Fetcher';
|
3
3
|
import { Job } from '../../Job';
|
4
|
-
import
|
4
|
+
import { AirdropFetcher } from '../../AirdropFetcher';
|
5
5
|
export declare const platforms: Platform[];
|
6
6
|
export declare const jobs: Job[];
|
7
7
|
export declare const fetchers: Fetcher[];
|
8
|
-
export
|
8
|
+
export declare const airdropFetchers: AirdropFetcher[];
|
@@ -3,13 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const perpetualFetcher_1 = __importDefault(require("./exchange/perpetualFetcher"));
|
8
8
|
const valueAverageFetcher_1 = __importDefault(require("./exchange/valueAverageFetcher"));
|
9
9
|
const limitFetcher_1 = __importDefault(require("./exchange/limitFetcher"));
|
10
10
|
const dcaFetcher_1 = __importDefault(require("./exchange/dcaFetcher"));
|
11
11
|
const custodiesJob_1 = __importDefault(require("./exchange/custodiesJob"));
|
12
|
-
const allocationsFetcher_1 = __importDefault(require("./launchpad/allocationsFetcher"));
|
13
12
|
const constants_1 = require("./launchpad/constants");
|
14
13
|
const voteFetcher_1 = __importDefault(require("./governance/voteFetcher"));
|
15
14
|
const constants_2 = require("./governance/constants");
|
@@ -17,7 +16,7 @@ const pricingJob_1 = __importDefault(require("./pricingJob"));
|
|
17
16
|
const constants_3 = require("./exchange/constants");
|
18
17
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
19
18
|
const asrAirdropFetcher_1 = __importDefault(require("./governance/asrAirdropFetcher"));
|
20
|
-
|
19
|
+
const launchpad_1 = require("./launchpad");
|
21
20
|
exports.platforms = [
|
22
21
|
constants_1.platform,
|
23
22
|
constants_2.platform,
|
@@ -29,8 +28,12 @@ exports.fetchers = [
|
|
29
28
|
valueAverageFetcher_1.default,
|
30
29
|
limitFetcher_1.default,
|
31
30
|
dcaFetcher_1.default,
|
32
|
-
allocationsFetcher_1.default,
|
33
31
|
voteFetcher_1.default,
|
34
32
|
(0, AirdropFetcher_1.airdropFetcherToFetcher)(asrAirdropFetcher_1.default, constants_2.platform.id, `${constants_2.platform.id}-asr-1`, constants_2.asr1Statics.claimEnd),
|
33
|
+
...launchpad_1.lfgFetchers,
|
34
|
+
];
|
35
|
+
exports.airdropFetchers = [
|
36
|
+
asrAirdropFetcher_1.default,
|
37
|
+
...launchpad_1.lfgAirdropFetchers,
|
35
38
|
];
|
36
39
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,2EAAmD;AAEnD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,2EAAmD;AAEnD,qDAAsE;AACtE,2EAAmD;AACnD,sDAGgC;AAChC,8DAAsC;AACtC,oDAAoE;AACpE,yDAA+E;AAC/E,uFAA+D;AAC/D,2CAA8D;AAEjD,QAAA,SAAS,GAAe;IACnC,oBAAiB;IACjB,oBAAkB;IAClB,oBAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,oBAAU,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,6BAAmB;IACnB,sBAAY;IACZ,oBAAU;IACV,qBAAW;IACX,IAAA,wCAAuB,EACrB,2BAAiB,EACjB,oBAAkB,CAAC,EAAE,EACrB,GAAG,oBAAkB,CAAC,EAAE,QAAQ,EAChC,uBAAW,CAAC,QAAQ,CACrB;IACD,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,2BAAiB;IACjB,GAAG,8BAAkB;CACtB,CAAC"}
|
@@ -1,19 +1,12 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
import { AirdropConfig } from './types';
|
3
4
|
export declare const platformId = "jupiter-launchpad";
|
4
5
|
export declare const platform: Platform;
|
5
6
|
export declare const voteProgramId: PublicKey;
|
6
7
|
export declare const lockerPubkey: PublicKey;
|
7
8
|
export declare const jupMint = "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN";
|
8
9
|
export declare const jupDecimals = 6;
|
9
|
-
export declare const
|
10
|
-
export declare const
|
11
|
-
export declare const
|
12
|
-
export type AirdropInfo = {
|
13
|
-
mint: string;
|
14
|
-
decimals: number;
|
15
|
-
claimStarts?: number;
|
16
|
-
claimUntilTs: number;
|
17
|
-
distributorProgram: string;
|
18
|
-
};
|
19
|
-
export declare const airdropsInfo: AirdropInfo[];
|
10
|
+
export declare const lfgApiBaseUrl = "https://worker.jup.ag/jup-claim-proof";
|
11
|
+
export declare const lfgDisProgram = "DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j";
|
12
|
+
export declare const airdropConfigs: AirdropConfig[];
|
@@ -1,12 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.airdropConfigs = exports.lfgDisProgram = exports.lfgApiBaseUrl = exports.jupDecimals = exports.jupMint = exports.lockerPubkey = exports.voteProgramId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const constants_1 = require("../../kamino/constants");
|
5
6
|
exports.platformId = 'jupiter-launchpad';
|
7
|
+
const platformImage = 'https://sonar.watch/img/platforms/jupiter.webp';
|
6
8
|
exports.platform = {
|
7
9
|
id: exports.platformId,
|
8
10
|
name: 'Jupiter Launchpad',
|
9
|
-
image:
|
11
|
+
image: platformImage,
|
10
12
|
website: 'https://lfg.jup.ag/',
|
11
13
|
twitter: 'https://twitter.com/JupiterExchange',
|
12
14
|
};
|
@@ -14,40 +16,112 @@ exports.voteProgramId = new web3_js_1.PublicKey('voTpe3tHQ7AjQHMapgSue2HJFAh2cGs
|
|
14
16
|
exports.lockerPubkey = new web3_js_1.PublicKey('CVMdMd79no569tjc5Sq7kzz8isbfCcFyBS5TLGsrZ5dN');
|
15
17
|
exports.jupMint = 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN';
|
16
18
|
exports.jupDecimals = 6;
|
17
|
-
exports.
|
18
|
-
exports.
|
19
|
-
exports.
|
20
|
-
exports.airdropsInfo = [
|
19
|
+
exports.lfgApiBaseUrl = 'https://worker.jup.ag/jup-claim-proof';
|
20
|
+
exports.lfgDisProgram = 'DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j';
|
21
|
+
exports.airdropConfigs = [
|
21
22
|
{
|
22
23
|
mint: 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN',
|
23
24
|
decimals: 6,
|
24
|
-
claimUntilTs: 1722430800000,
|
25
25
|
distributorProgram: 'meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb',
|
26
|
+
label: 'JUP',
|
27
|
+
platformId: exports.platformId,
|
28
|
+
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN/${owner}`,
|
29
|
+
statics: {
|
30
|
+
claimStart: 1706659200000,
|
31
|
+
claimEnd: 1722430800000,
|
32
|
+
id: 'lfg-jup-s1',
|
33
|
+
name: 'Season #1',
|
34
|
+
emitterName: 'Jupiter',
|
35
|
+
emitterLink: 'https://jup.ag/',
|
36
|
+
claimLink: 'https://lfg.jup.ag/jup',
|
37
|
+
image: platformImage,
|
38
|
+
},
|
26
39
|
},
|
27
40
|
{
|
28
41
|
mint: 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq',
|
29
42
|
decimals: 6,
|
30
|
-
|
31
|
-
|
43
|
+
distributorProgram: exports.lfgDisProgram,
|
44
|
+
label: 'ZEUS',
|
45
|
+
platformId: exports.platformId,
|
46
|
+
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq/${owner}`,
|
47
|
+
statics: {
|
48
|
+
claimStart: 1712235600000,
|
49
|
+
claimEnd: 1713445200000,
|
50
|
+
id: 'lfg-zeus',
|
51
|
+
emitterName: 'Zeus',
|
52
|
+
emitterLink: 'https://zeusnetwork.xyz/',
|
53
|
+
claimLink: 'https://lfg.jup.ag/zeus',
|
54
|
+
image: 'https://sonar.watch/img/platforms/zeus.webp',
|
55
|
+
},
|
32
56
|
},
|
33
57
|
{
|
34
58
|
mint: 'TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6',
|
35
59
|
decimals: 9,
|
36
|
-
|
37
|
-
|
60
|
+
distributorProgram: exports.lfgDisProgram,
|
61
|
+
label: 'TNSR',
|
62
|
+
platformId: exports.platformId,
|
63
|
+
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6/${owner}`,
|
64
|
+
statics: {
|
65
|
+
claimStart: 1712534400000,
|
66
|
+
claimEnd: 1728086400000,
|
67
|
+
id: 'lfg-tensor',
|
68
|
+
emitterName: 'Tensor',
|
69
|
+
emitterLink: 'https://www.tensor.trade/',
|
70
|
+
claimLink: 'https://claim.jup.ag/tnsr',
|
71
|
+
image: 'https://sonar.watch/img/platforms/tensor.webp',
|
72
|
+
},
|
38
73
|
},
|
39
74
|
{
|
40
75
|
mint: 'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s',
|
41
76
|
decimals: 6,
|
42
|
-
|
43
|
-
|
77
|
+
distributorProgram: exports.lfgDisProgram,
|
78
|
+
label: 'SHARKY',
|
79
|
+
platformId: exports.platformId,
|
80
|
+
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6/${owner}`,
|
81
|
+
statics: {
|
82
|
+
claimStart: 1713225600000,
|
83
|
+
claimEnd: 1714435200000,
|
84
|
+
id: 'lfg-sharky',
|
85
|
+
emitterName: 'Sharky',
|
86
|
+
emitterLink: 'https://sharky.fi/',
|
87
|
+
claimLink: 'https://lfg.jup.ag/sharky',
|
88
|
+
image: 'https://sonar.watch/img/platforms/sharky.webp',
|
89
|
+
},
|
44
90
|
},
|
45
91
|
{
|
46
92
|
mint: 'UPTx1d24aBWuRgwxVnFmX4gNraj3QGFzL3QqBgxtWQG',
|
47
93
|
decimals: 9,
|
48
|
-
|
49
|
-
|
50
|
-
|
94
|
+
distributorProgram: exports.lfgDisProgram,
|
95
|
+
label: 'UPT',
|
96
|
+
platformId: exports.platformId,
|
97
|
+
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6/${owner}`,
|
98
|
+
statics: {
|
99
|
+
claimStart: 1717077600000,
|
100
|
+
claimEnd: 1719878400000,
|
101
|
+
id: 'lfg-uprock',
|
102
|
+
emitterName: 'Uprock',
|
103
|
+
emitterLink: 'https://uprock.com/',
|
104
|
+
claimLink: 'https://lfg.jup.ag/uprock',
|
105
|
+
image: 'https://sonar.watch/img/platforms/uprock.webp',
|
106
|
+
},
|
107
|
+
},
|
108
|
+
{
|
109
|
+
mint: 'KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS',
|
110
|
+
decimals: 6,
|
111
|
+
distributorProgram: 'KdisqEcXbXKaTrBFqeDLhMmBvymLTwj9GmhDcdJyGat',
|
112
|
+
label: 'KMNO',
|
113
|
+
platformId: constants_1.platformId,
|
114
|
+
getApiPath: (owner) => `https://api.kamino.finance/distributor/user/${owner}`,
|
115
|
+
statics: {
|
116
|
+
claimStart: 1714478400000,
|
117
|
+
claimEnd: undefined,
|
118
|
+
id: 'kamino-s1',
|
119
|
+
emitterName: 'Kamino',
|
120
|
+
emitterLink: 'https://app.kamino.finance/',
|
121
|
+
claimLink: 'https://app.kamino.finance/genesis',
|
122
|
+
image: 'https://sonar.watch/img/platforms/kamino.webp',
|
123
|
+
name: 'Season #1',
|
124
|
+
},
|
51
125
|
},
|
52
126
|
];
|
53
127
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,sDAAwE;AAE3D,QAAA,UAAU,GAAG,mBAAmB,CAAC;AAC9C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AAC1D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,mBAA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EAAE,2BAA2B;YACtC,KAAK,EAAE,+CAA+C;SACvD;KACF;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,6CAA6C;QACjE,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,sBAAgB;QAC5B,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,+CAA+C,KAAK,EAAE;QACxD,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,WAAW;YACf,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6BAA6B;YAC1C,SAAS,EAAE,oCAAoC;YAC/C,KAAK,EAAE,+CAA+C;YACtD,IAAI,EAAE,WAAW;SAClB;KACF;CACF,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lfgFetchers = exports.lfgAirdropFetchers = void 0;
|
4
|
+
const AirdropFetcher_1 = require("../../../AirdropFetcher");
|
5
|
+
const constants_1 = require("./constants");
|
6
|
+
const lfgAirdropFetcher_1 = require("./lfgAirdropFetcher");
|
7
|
+
exports.lfgAirdropFetchers = constants_1.airdropConfigs.map((aConfig) => (0, lfgAirdropFetcher_1.getLfgAirdropFetcher)(aConfig));
|
8
|
+
exports.lfgFetchers = exports.lfgAirdropFetchers.map((aFetcher, i) => {
|
9
|
+
const aConfig = constants_1.airdropConfigs[i];
|
10
|
+
return (0, AirdropFetcher_1.airdropFetcherToFetcher)(aFetcher, aConfig.platformId, aConfig.statics.id, aConfig.statics.claimEnd);
|
11
|
+
});
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/index.ts"],"names":[],"mappings":";;;AAAA,4DAGiC;AAEjC,2CAA6C;AAC7C,2DAA2D;AAE9C,QAAA,kBAAkB,GAAqB,0BAAc,CAAC,GAAG,CACpE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,wCAAoB,EAAC,OAAO,CAAC,CAC3C,CAAC;AACW,QAAA,WAAW,GAAc,0BAAkB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;IAC3E,MAAM,OAAO,GAAG,0BAAc,CAAC,CAAC,CAAC,CAAC;IAClC,OAAO,IAAA,wCAAuB,EAC5B,QAAQ,EACR,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,OAAO,CAAC,EAAE,EAClB,OAAO,CAAC,OAAO,CAAC,QAAQ,CACzB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.getLfgAirdropFetcher = void 0;
|
16
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
+
const axios_1 = __importDefault(require("axios"));
|
18
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
19
|
+
const AirdropFetcher_1 = require("../../../AirdropFetcher");
|
20
|
+
const deriveClaimStatus_1 = require("../../../utils/solana/jupiter/deriveClaimStatus");
|
21
|
+
const clients_1 = require("../../../utils/clients");
|
22
|
+
function getLfgAirdropFetcher(aConfig) {
|
23
|
+
const executor = (owner) => __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const client = (0, clients_1.getClientSolana)();
|
25
|
+
const claimProof = yield axios_1.default
|
26
|
+
.get(aConfig.getApiPath(owner), {
|
27
|
+
timeout: 5000,
|
28
|
+
})
|
29
|
+
.catch((e) => {
|
30
|
+
if (e.response && e.response.status === 404) {
|
31
|
+
return null;
|
32
|
+
}
|
33
|
+
throw new Error(`Failed to get claim proof: ${aConfig.mint}`);
|
34
|
+
});
|
35
|
+
if (!claimProof || typeof claimProof.data === 'string')
|
36
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
37
|
+
statics: aConfig.statics,
|
38
|
+
items: [{ amount: 0, isClaimed: false, label: aConfig.label }],
|
39
|
+
});
|
40
|
+
const claimStatusAddress = (0, deriveClaimStatus_1.deriveClaimStatus)(owner, claimProof.data.merkle_tree, aConfig.distributorProgram);
|
41
|
+
const claimStatusAaccount = yield client.getAccountInfo(claimStatusAddress);
|
42
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
43
|
+
statics: aConfig.statics,
|
44
|
+
items: [
|
45
|
+
{
|
46
|
+
amount: new bignumber_js_1.default(claimProof.data.amount)
|
47
|
+
.div(Math.pow(10, aConfig.decimals))
|
48
|
+
.toNumber(),
|
49
|
+
isClaimed: claimStatusAaccount !== null,
|
50
|
+
label: aConfig.label,
|
51
|
+
address: aConfig.mint,
|
52
|
+
},
|
53
|
+
],
|
54
|
+
});
|
55
|
+
});
|
56
|
+
return {
|
57
|
+
id: aConfig.statics.id,
|
58
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
59
|
+
executor,
|
60
|
+
};
|
61
|
+
}
|
62
|
+
exports.getLfgAirdropFetcher = getLfgAirdropFetcher;
|
63
|
+
//# sourceMappingURL=lfgAirdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lfgAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/lfgAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,4DAIiC;AAGjC,uFAAoF;AACpF,oDAAyD;AAEzD,SAAgB,oBAAoB,CAAC,OAAsB;IACzD,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;QAC/D,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,UAAU,GAA6C,MAAM,eAAK;aACrE,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC9B,OAAO,EAAE,IAAI;SACd,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5C,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QAEL,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ;YACpD,OAAO,IAAA,8BAAa,EAAC;gBACnB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;aAC/D,CAAC,CAAC;QAEL,MAAM,kBAAkB,GAAG,IAAA,qCAAiB,EAC1C,KAAK,EACL,UAAU,CAAC,IAAI,CAAC,WAAW,EAC3B,OAAO,CAAC,kBAAkB,CAC3B,CAAC;QACF,MAAM,mBAAmB,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAE5E,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,IAAI,sBAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;yBAC1C,GAAG,CAAC,SAAA,EAAE,EAAI,OAAO,CAAC,QAAQ,CAAA,CAAC;yBAC3B,QAAQ,EAAE;oBACb,SAAS,EAAE,mBAAmB,KAAK,IAAI;oBACvC,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,OAAO,EAAE,OAAO,CAAC,IAAI;iBACtB;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;QACtB,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;AACJ,CAAC;AA/CD,oDA+CC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { AirdropStatics } from '../../../AirdropFetcher';
|
2
|
+
export type AirdropConfig = {
|
3
|
+
statics: AirdropStatics;
|
4
|
+
label: string;
|
5
|
+
mint: string;
|
6
|
+
decimals: number;
|
7
|
+
distributorProgram: string;
|
8
|
+
platformId: string;
|
9
|
+
getApiPath: (owner: string) => string;
|
10
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/types.ts"],"names":[],"mappings":""}
|
@@ -84,14 +84,15 @@ type FundingRateState = {
|
|
84
84
|
lastUpdate: string;
|
85
85
|
hourlyFundingBps: string;
|
86
86
|
};
|
87
|
-
export type
|
87
|
+
export type ClaimProof = {
|
88
88
|
merkle_tree: string;
|
89
89
|
amount: string;
|
90
90
|
proof: number[][];
|
91
91
|
mint?: string;
|
92
92
|
};
|
93
|
+
export type ClaimProofResponse = ClaimProof | string;
|
93
94
|
export type AsrResponse = {
|
94
|
-
claim:
|
95
|
+
claim: ClaimProof[];
|
95
96
|
};
|
96
97
|
export type PriceResponse = {
|
97
98
|
data: Record<string, {
|
@@ -7,9 +7,6 @@ export declare const kmnoMint = "KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS";
|
|
7
7
|
export declare const kmnoDecimals = 6;
|
8
8
|
export declare const programId: PublicKey;
|
9
9
|
export declare const allocationApiUrl = "https://api.hubbleprotocol.io/v2/airdrop/users/";
|
10
|
-
export declare const distributorApi = "https://api.kamino.finance/distributor/user/";
|
11
|
-
export declare const distributorProgram = "KdisqEcXbXKaTrBFqeDLhMmBvymLTwj9GmhDcdJyGat";
|
12
|
-
export declare const allocationPrefix = "kamino/allocation";
|
13
10
|
export declare const klendProgramId: PublicKey;
|
14
11
|
export declare const farmProgramId: PublicKey;
|
15
12
|
export declare const farmsKey = "farms";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservesKey = exports.marketsKey = exports.lendingConfigs = exports.mainMarket = exports.farmsKey = exports.farmProgramId = exports.klendProgramId = exports.
|
3
|
+
exports.reservesKey = exports.marketsKey = exports.lendingConfigs = exports.mainMarket = exports.farmsKey = exports.farmProgramId = exports.klendProgramId = exports.allocationApiUrl = exports.programId = exports.kmnoDecimals = exports.kmnoMint = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'kamino';
|
6
6
|
exports.platform = {
|
@@ -14,9 +14,6 @@ exports.kmnoMint = 'KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS';
|
|
14
14
|
exports.kmnoDecimals = 6;
|
15
15
|
exports.programId = new web3_js_1.PublicKey('6LtLpnUFNByNXLyCoK9wA2MykKAmQNZKBdY8s47dehDc');
|
16
16
|
exports.allocationApiUrl = 'https://api.hubbleprotocol.io/v2/airdrop/users/';
|
17
|
-
exports.distributorApi = 'https://api.kamino.finance/distributor/user/';
|
18
|
-
exports.distributorProgram = 'KdisqEcXbXKaTrBFqeDLhMmBvymLTwj9GmhDcdJyGat';
|
19
|
-
exports.allocationPrefix = `${exports.platformId}/allocation`;
|
20
17
|
exports.klendProgramId = new web3_js_1.PublicKey('KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD');
|
21
18
|
exports.farmProgramId = new web3_js_1.PublicKey('FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr');
|
22
19
|
exports.farmsKey = 'farms';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,iDAAiD,CAAC;AAEvC,QAAA,cAAc,GAAG,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,OAAO,EAAE,yBAAyB;IAClC,WA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,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC9E,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,WAAW,GAAG,UAAU,CAAC"}
|
@@ -11,8 +11,7 @@ const reservesJob_1 = __importDefault(require("./reservesJob"));
|
|
11
11
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
12
12
|
const lendsFetcher_1 = __importDefault(require("./lendsFetcher"));
|
13
13
|
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
14
|
-
const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
|
15
14
|
exports.platforms = [constants_1.platform];
|
16
15
|
exports.jobs = [poolsJob_1.default, reservesJob_1.default, farmsJob_1.default, marketsJob_1.default];
|
17
|
-
exports.fetchers = [lendsFetcher_1.default, farmsFetcher_1.default
|
16
|
+
exports.fetchers = [lendsFetcher_1.default, farmsFetcher_1.default];
|
18
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,0DAAkC;AAClC,gEAAwC;AACxC,8DAAsC;AACtC,kEAA0C;AAC1C,kEAA0C;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,0DAAkC;AAClC,gEAAwC;AACxC,8DAAsC;AACtC,kEAA0C;AAC1C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,EAAE,kBAAQ,EAAE,oBAAU,CAAC,CAAC;AAC5D,QAAA,QAAQ,GAAc,CAAC,sBAAY,EAAE,sBAAY,CAAC,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const constants_1 = require("./constants");
|
14
|
+
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
15
|
+
const fetchAirdropExecutor = () => __awaiter(void 0, void 0, void 0, function* () {
|
16
|
+
throw new Error('myerror sanctum happened');
|
17
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
18
|
+
statics: constants_1.airdropStatics,
|
19
|
+
items: [
|
20
|
+
{
|
21
|
+
amount: 0,
|
22
|
+
isClaimed: false,
|
23
|
+
label: 'CLOUD',
|
24
|
+
},
|
25
|
+
],
|
26
|
+
});
|
27
|
+
});
|
28
|
+
const airdropFetcher = {
|
29
|
+
id: constants_1.airdropStatics.id,
|
30
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
31
|
+
executor: fetchAirdropExecutor,
|
32
|
+
};
|
33
|
+
exports.default = airdropFetcher;
|
34
|
+
//# sourceMappingURL=airdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAA6C;AAC7C,yDAI8B;AAE9B,MAAM,oBAAoB,GAA2B,GAAS,EAAE;IAC9D,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC5C,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,CAAC;gBACT,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,OAAO;aACf;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
@@ -1,4 +1,8 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
import { AirdropStatics } from '../../AirdropFetcher';
|
2
3
|
export declare const platformId = "sanctum";
|
4
|
+
export declare const platformImage = "https://sonar.watch/img/platforms/sanctum.webp";
|
5
|
+
export declare const platformWebsite = "https://www.sanctum.so/";
|
3
6
|
export declare const platform: Platform;
|
4
7
|
export declare const lstsKey = "lsts";
|
8
|
+
export declare const airdropStatics: AirdropStatics;
|
@@ -1,14 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lstsKey = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.airdropStatics = exports.lstsKey = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'sanctum';
|
5
|
+
exports.platformImage = 'https://sonar.watch/img/platforms/sanctum.webp';
|
6
|
+
exports.platformWebsite = 'https://www.sanctum.so/';
|
5
7
|
exports.platform = {
|
6
8
|
id: exports.platformId,
|
7
9
|
defiLlamaId: 'parent#sanctum', // from https://defillama.com/docs/api
|
8
10
|
name: 'Sanctum',
|
9
|
-
image:
|
10
|
-
website:
|
11
|
+
image: exports.platformImage,
|
12
|
+
website: exports.platformWebsite,
|
11
13
|
twitter: 'https://twitter.com/sanctumso',
|
12
14
|
};
|
13
15
|
exports.lstsKey = 'lsts';
|
16
|
+
exports.airdropStatics = {
|
17
|
+
id: 'sanctum',
|
18
|
+
claimLink: 'https://app.sanctum.so/wonderland',
|
19
|
+
image: exports.platformImage,
|
20
|
+
emitterLink: exports.platformWebsite,
|
21
|
+
emitterName: 'Sanctum',
|
22
|
+
claimStart: undefined,
|
23
|
+
claimEnd: undefined,
|
24
|
+
};
|
14
25
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,aAAa,GAAG,gDAAgD,CAAC;AACjE,QAAA,eAAe,GAAG,yBAAyB,CAAC;AAC5C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;IACrE,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qBAAa;IACpB,OAAO,EAAE,uBAAe;IACxB,OAAO,EAAE,+BAA+B;CACzC,CAAC;AACW,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,mCAAmC;IAC9C,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,uBAAe;IAC5B,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,SAAS;CACpB,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { Fetcher } from '../../Fetcher';
|
3
3
|
import { Job } from '../../Job';
|
4
|
+
import airdropFetcher from './airdropFetcher';
|
4
5
|
export declare const platforms: Platform[];
|
5
6
|
export declare const jobs: Job[];
|
6
7
|
export declare const fetchers: Fetcher[];
|
8
|
+
export { airdropFetcher };
|
@@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
6
|
+
exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const lstsJob_1 = __importDefault(require("./lstsJob"));
|
9
|
+
const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
|
10
|
+
exports.airdropFetcher = airdropFetcher_1.default;
|
9
11
|
exports.platforms = [constants_1.platform];
|
10
12
|
exports.jobs = [lstsJob_1.default];
|
11
13
|
exports.fetchers = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wDAAgC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wDAAgC;AAChC,sEAA8C;AAKrC,yBALF,wBAAc,CAKE;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,iBAAO,CAAC,CAAC;AACxB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -1,87 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const axios_1 = __importDefault(require("axios"));
|
17
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
-
const clients_1 = require("../../../utils/clients");
|
19
|
-
const deriveClaimStatus_1 = require("../../../utils/solana/jupiter/deriveClaimStatus");
|
20
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../../utils/misc/tokenPriceToAssetToken"));
|
21
|
-
const structs_1 = require("./structs");
|
22
|
-
const constants_1 = require("./constants");
|
23
|
-
const solana_1 = require("../../../utils/solana");
|
24
|
-
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
-
const client = (0, clients_1.getClientSolana)();
|
26
|
-
const claimsProof = yield Promise.all(constants_1.airdropsInfo.map((info) => {
|
27
|
-
if (info.claimUntilTs > Date.now()) {
|
28
|
-
return axios_1.default
|
29
|
-
.get(`${constants_1.merkleApi}/${info.mint}/${owner}`, { timeout: 1000 })
|
30
|
-
.catch(() => null);
|
31
|
-
}
|
32
|
-
return null;
|
33
|
-
}));
|
34
|
-
const eligibleAirdrops = [];
|
35
|
-
const proofs = [];
|
36
|
-
const claimsPubkeys = [];
|
37
|
-
for (let i = 0; i < claimsProof.length; i++) {
|
38
|
-
const proof = claimsProof[i];
|
39
|
-
if (!proof || !proof.data)
|
40
|
-
continue;
|
41
|
-
eligibleAirdrops.push(constants_1.airdropsInfo[i]);
|
42
|
-
proofs.push(proof.data);
|
43
|
-
claimsPubkeys.push((0, deriveClaimStatus_1.deriveClaimStatus)(owner, proof.data.merkle_tree, constants_1.airdropsInfo[i].distributorProgram));
|
44
|
-
}
|
45
|
-
if (proofs.length === 0)
|
46
|
-
return [];
|
47
|
-
const [claimStatusAccounts, tokenPriceById] = yield Promise.all([
|
48
|
-
(0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.claimStatusStruct, claimsPubkeys),
|
49
|
-
cache.getTokenPricesAsMap(eligibleAirdrops.map((info) => info.mint), portfolio_core_1.NetworkId.solana),
|
50
|
-
]);
|
51
|
-
const assets = [];
|
52
|
-
for (let j = 0; j < claimStatusAccounts.length; j++) {
|
53
|
-
const claimStatus = claimStatusAccounts[j];
|
54
|
-
if (claimStatus)
|
55
|
-
continue;
|
56
|
-
const proof = proofs[j];
|
57
|
-
const { decimals, mint, claimStarts } = eligibleAirdrops[j];
|
58
|
-
const tokenPrice = tokenPriceById.get(mint);
|
59
|
-
const amount = new bignumber_js_1.default(proof.amount)
|
60
|
-
.dividedBy(Math.pow(10, decimals))
|
61
|
-
.toNumber();
|
62
|
-
const asset = (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, { lockedUntil: claimStarts });
|
63
|
-
assets.push(asset);
|
64
|
-
}
|
65
|
-
if (assets.length === 0)
|
66
|
-
return [];
|
67
|
-
return [
|
68
|
-
{
|
69
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
70
|
-
label: 'Airdrop',
|
71
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
72
|
-
platformId: constants_1.platformId,
|
73
|
-
name: 'Allocation',
|
74
|
-
data: {
|
75
|
-
assets,
|
76
|
-
},
|
77
|
-
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
78
|
-
},
|
79
|
-
];
|
80
|
-
});
|
81
|
-
const fetcher = {
|
82
|
-
id: `${constants_1.platformId}-allocation`,
|
83
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
84
|
-
executor,
|
85
|
-
};
|
86
|
-
exports.default = fetcher;
|
87
|
-
//# sourceMappingURL=allocationsFetcher.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"allocationsFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/allocationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAE7C,gEAAqC;AAGrC,oDAAyD;AAEzD,uFAAoF;AACpF,wGAAgF;AAChF,uCAA8C;AAC9C,2CAA+E;AAC/E,kDAAsE;AAEtE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GACf,MAAM,OAAO,CAAC,GAAG,CACf,wBAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACnC,OAAO,eAAK;iBACT,GAAG,CAAC,GAAG,qBAAS,IAAI,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iBAC5D,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACH,CAAC;IAEJ,MAAM,gBAAgB,GAAkB,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAyB,EAAE,CAAC;IACxC,MAAM,aAAa,GAAgB,EAAE,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC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,CAAC;QAE5D,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,KAAK,CAAC,MAAM,CAAC;aACvC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;aACzB,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,IAAI,EACJ,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,WAAW,EAAE,CAC7B,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
-
const axios_1 = __importDefault(require("axios"));
|
18
|
-
const constants_1 = require("./constants");
|
19
|
-
const deriveClaimStatus_1 = require("../../utils/solana/jupiter/deriveClaimStatus");
|
20
|
-
const clients_1 = require("../../utils/clients");
|
21
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
-
const kmnoFactor = new bignumber_js_1.default(Math.pow(10, constants_1.kmnoDecimals));
|
23
|
-
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
-
const allocation = yield axios_1.default
|
25
|
-
.get(constants_1.distributorApi + owner)
|
26
|
-
.catch(() => null);
|
27
|
-
if (!allocation)
|
28
|
-
return [];
|
29
|
-
const pda = (0, deriveClaimStatus_1.deriveClaimStatus)(owner, allocation.data.merkle_tree, constants_1.distributorProgram);
|
30
|
-
const client = (0, clients_1.getClientSolana)();
|
31
|
-
const claimStatus = yield client.getAccountInfo(pda);
|
32
|
-
if (claimStatus)
|
33
|
-
return [];
|
34
|
-
const kmnoTokenPrice = yield cache.getTokenPrice(constants_1.kmnoMint, portfolio_core_1.NetworkId.solana);
|
35
|
-
const amount = (0, bignumber_js_1.default)(allocation.data.amount)
|
36
|
-
.dividedBy(kmnoFactor)
|
37
|
-
.toNumber();
|
38
|
-
const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.kmnoMint, amount, portfolio_core_1.NetworkId.solana, kmnoTokenPrice, undefined, { isClaimable: true });
|
39
|
-
return [
|
40
|
-
{
|
41
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
42
|
-
platformId: constants_1.platformId,
|
43
|
-
name: 'Season 1',
|
44
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
45
|
-
label: 'Airdrop',
|
46
|
-
data: { assets: [asset] },
|
47
|
-
value: asset.value,
|
48
|
-
},
|
49
|
-
];
|
50
|
-
});
|
51
|
-
const fetcher = {
|
52
|
-
id: `${constants_1.platformId}-airdrop`,
|
53
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
54
|
-
executor,
|
55
|
-
};
|
56
|
-
exports.default = fetcher;
|
57
|
-
//# sourceMappingURL=airdropFetcher.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AACrC,kDAA6C;AAG7C,2CAMqB;AACrB,oFAAiF;AAEjF,iDAAsD;AACtD,qGAA6E;AAE7E,MAAM,UAAU,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC;AACrD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAA6C,MAAM,eAAK;SACrE,GAAG,CAAC,0BAAc,GAAG,KAAK,CAAC;SAC3B,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,CAAC;IAE3B,MAAM,GAAG,GAAG,IAAA,qCAAiB,EAC3B,KAAK,EACL,UAAU,CAAC,IAAI,CAAC,WAAW,EAC3B,8BAAkB,CACnB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