@sonarwatch/portfolio-plugins 0.11.191 → 0.11.193
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -1
- package/package.json +2 -2
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/orphanPlatorms.js +0 -8
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/aftermath/constants.d.ts +2 -0
- package/src/plugins/aftermath/constants.js +3 -1
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/aftermath/index.js +2 -1
- package/src/plugins/aftermath/index.js.map +1 -1
- package/src/plugins/aftermath/stakingFetcher.d.ts +3 -0
- package/src/plugins/aftermath/stakingFetcher.js +102 -0
- package/src/plugins/aftermath/stakingFetcher.js.map +1 -0
- package/src/plugins/aftermath/types.d.ts +17 -0
- package/src/plugins/drift/airdropFetcher.d.ts +3 -0
- package/src/plugins/drift/airdropFetcher.js +79 -0
- package/src/plugins/drift/airdropFetcher.js.map +1 -0
- package/src/plugins/drift/constants.d.ts +2 -0
- package/src/plugins/drift/constants.js +3 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift/types.d.ts +12 -0
- package/src/plugins/flash/stakeFetcher.js +9 -10
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flexlend/constants.js +4 -4
- package/src/plugins/flexlend/constants.js.map +1 -1
- package/src/plugins/jito/airdropFetcher.js +1 -2
- package/src/plugins/jito/airdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -1
- package/src/plugins/kamino/airdropFetcher.js +1 -1
- package/src/plugins/parcl/airdropFetcher.js +1 -2
- package/src/plugins/parcl/airdropFetcher.js.map +1 -1
- package/src/plugins/sandglass/constants.d.ts +6 -0
- package/src/plugins/sandglass/constants.js +16 -0
- package/src/plugins/sandglass/constants.js.map +1 -0
- package/src/plugins/sandglass/depositFetcher.d.ts +3 -0
- package/src/plugins/sandglass/depositFetcher.js +82 -0
- package/src/plugins/sandglass/depositFetcher.js.map +1 -0
- package/src/plugins/sandglass/filters.d.ts +3 -0
- package/src/plugins/sandglass/filters.js +21 -0
- package/src/plugins/sandglass/filters.js.map +1 -0
- package/src/plugins/sandglass/index.d.ts +6 -0
- package/src/plugins/sandglass/index.js +13 -0
- package/src/plugins/sandglass/index.js.map +1 -0
- package/src/plugins/{jupiter/exchange/poolJob.d.ts → sandglass/marketsJob.d.ts} +1 -1
- package/src/plugins/sandglass/marketsJob.js +96 -0
- package/src/plugins/sandglass/marketsJob.js.map +1 -0
- package/src/plugins/sandglass/structs.d.ts +150 -0
- package/src/plugins/sandglass/structs.js +144 -0
- package/src/plugins/sandglass/structs.js.map +1 -0
- package/src/plugins/sandglass/types.d.ts +7 -0
- package/src/plugins/sandglass/types.js +3 -0
- package/src/plugins/sandglass/types.js.map +1 -0
- package/src/plugins/tensor/airdropPowerUsersFetcher.d.ts +3 -0
- package/src/plugins/tensor/airdropPowerUsersFetcher.js +45 -0
- package/src/plugins/tensor/airdropPowerUsersFetcher.js.map +1 -0
- package/src/plugins/tensor/constants.d.ts +2 -0
- package/src/plugins/tensor/constants.js +3 -1
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/helpers.d.ts +1 -0
- package/src/plugins/tensor/helpers.js +16 -0
- package/src/plugins/tensor/helpers.js.map +1 -0
- package/src/plugins/tensor/index.js +6 -1
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/tensor/powerUsers.json +2898 -0
- package/src/plugins/wormhole/airdropFetcher.js +1 -2
- package/src/plugins/wormhole/airdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/poolJob.js +0 -77
- package/src/plugins/jupiter/exchange/poolJob.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -2,10 +2,18 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.11.
|
5
|
+
## [0.11.193](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.192...plugins-0.11.193) (2024-05-02)
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
## [0.11.192](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.191...plugins-0.11.192) (2024-05-02)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.11.191](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.190...plugins-0.11.191) (2024-04-30)
|
14
|
+
|
15
|
+
|
16
|
+
|
9
17
|
## [0.11.190](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.189...plugins-0.11.190) (2024-04-26)
|
10
18
|
|
11
19
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.193",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.193"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -107,6 +107,7 @@ const nosana_1 = require("./plugins/nosana");
|
|
107
107
|
const jito_1 = require("./plugins/jito");
|
108
108
|
const magiceden_1 = require("./plugins/magiceden");
|
109
109
|
const clone_1 = require("./plugins/clone");
|
110
|
+
const sandglass_1 = require("./plugins/sandglass");
|
110
111
|
var constants_1 = require("./plugins/tokens/constants");
|
111
112
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
112
113
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -206,6 +207,7 @@ exports.platforms = [
|
|
206
207
|
...jito_1.platforms,
|
207
208
|
...magiceden_1.platforms,
|
208
209
|
...clone_1.platforms,
|
210
|
+
...sandglass_1.platforms,
|
209
211
|
];
|
210
212
|
// JOBS //
|
211
213
|
exports.jobs = [
|
@@ -289,6 +291,7 @@ exports.jobs = [
|
|
289
291
|
...magiceden_1.jobs,
|
290
292
|
...clone_1.jobs,
|
291
293
|
...switchboard_1.jobs,
|
294
|
+
...sandglass_1.jobs,
|
292
295
|
];
|
293
296
|
// FETCHERS //
|
294
297
|
exports.fetchers = [
|
@@ -308,6 +311,7 @@ exports.fetchers = [
|
|
308
311
|
...turbos_1.fetchers,
|
309
312
|
...staking_aptos_1.fetchers,
|
310
313
|
...pancakeswap_1.fetchers,
|
314
|
+
...aftermath_1.fetchers,
|
311
315
|
...aave_1.fetchers,
|
312
316
|
...orders_1.fetchers,
|
313
317
|
...morpho_1.fetchers,
|
@@ -373,6 +377,7 @@ exports.fetchers = [
|
|
373
377
|
...jito_1.fetchers,
|
374
378
|
...magiceden_1.fetchers,
|
375
379
|
...clone_1.fetchers,
|
380
|
+
...sandglass_1.fetchers,
|
376
381
|
];
|
377
382
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
378
383
|
//# 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":";;;;;;;;;;;;;;;;;;;;AAGA,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,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,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,2CAIyB;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,+CAI2B;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,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CA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;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;IACzB,GAAG,yBAAkB;IACrB,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;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;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
package/src/orphanPlatorms.js
CHANGED
@@ -57,14 +57,6 @@ const otphanPlatforms = [
|
|
57
57
|
image: 'https://sonar.watch/img/platforms/stakewise.png',
|
58
58
|
website: 'https://stakewise.io/',
|
59
59
|
},
|
60
|
-
{
|
61
|
-
id: 'cloneprotocol',
|
62
|
-
defiLlamaId: 'clone-protocol',
|
63
|
-
name: 'Clone Protocol',
|
64
|
-
image: 'https://sonar.watch/img/platforms/cloneprotocol.webp',
|
65
|
-
website: 'https://clone.so/',
|
66
|
-
twitter: 'https://twitter.com/CloneProtocol',
|
67
|
-
},
|
68
60
|
{
|
69
61
|
id: 'sanctum',
|
70
62
|
defiLlamaId: 'parent#sanctum', // from https://defillama.com/docs/api
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,wDAAwD;QAC/D,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,iDAAiD;QACxD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,M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KAAK,EAAE,gDAAgD;QACvD,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE,+BAA+B;KACzC;CACF,CAAC;AACF,kBAAe,eAAe,CAAC"}
|
@@ -2,3 +2,5 @@ import { Platform } from '@sonarwatch/portfolio-core';
|
|
2
2
|
export declare const platformId = "aftermath";
|
3
3
|
export declare const platform: Platform;
|
4
4
|
export declare const lpCoinsTable = "0x7f3bb65251feccacc7f48461239be1008233b85594114f7bf304e5e5b340bf59";
|
5
|
+
export declare const stakingPackageId = "0x4f0a1a923dd063757fd37e04a9c2cee8980008e94433c9075c390065f98e9e4b";
|
6
|
+
export declare const stakingType = "0x4f0a1a923dd063757fd37e04a9c2cee8980008e94433c9075c390065f98e9e4b::staked_position::StakedPosition";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lpCoinsTable = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.stakingType = exports.stakingPackageId = exports.lpCoinsTable = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'aftermath';
|
5
5
|
exports.platform = {
|
6
6
|
id: exports.platformId,
|
@@ -10,4 +10,6 @@ exports.platform = {
|
|
10
10
|
website: 'https://aftermath.finance/',
|
11
11
|
};
|
12
12
|
exports.lpCoinsTable = '0x7f3bb65251feccacc7f48461239be1008233b85594114f7bf304e5e5b340bf59';
|
13
|
+
exports.stakingPackageId = '0x4f0a1a923dd063757fd37e04a9c2cee8980008e94433c9075c390065f98e9e4b';
|
14
|
+
exports.stakingType = `${exports.stakingPackageId}::staked_position::StakedPosition`;
|
13
15
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,0BAA0B;IACvC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GACvB,oEAAoE,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,0BAA0B;IACvC,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,wBAAgB,mCAAmC,CAAC"}
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
8
|
const constants_1 = require("./constants");
|
9
|
+
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
9
10
|
exports.platforms = [constants_1.platform];
|
10
11
|
exports.jobs = [poolsJob_1.default];
|
11
|
-
exports.fetchers = [];
|
12
|
+
exports.fetchers = [stakingFetcher_1.default];
|
12
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,2CAAuC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -0,0 +1,102 @@
|
|
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 constants_1 = require("./constants");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
|
20
|
+
const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
|
21
|
+
const aptos_1 = require("../../utils/aptos");
|
22
|
+
const tokenPriceToAssetTokens_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetTokens"));
|
23
|
+
const farmFactor = new bignumber_js_1.default(Math.pow(10, 9));
|
24
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
+
var _a;
|
26
|
+
const client = (0, clients_1.getClientSui)();
|
27
|
+
const stakedPositions = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
|
28
|
+
filter: {
|
29
|
+
StructType: constants_1.stakingType,
|
30
|
+
},
|
31
|
+
options: {
|
32
|
+
showContent: true,
|
33
|
+
},
|
34
|
+
});
|
35
|
+
if (stakedPositions.length === 0)
|
36
|
+
return [];
|
37
|
+
const burnerVaults = stakedPositions.map((object) => {
|
38
|
+
var _a, _b;
|
39
|
+
if ((_b = (_a = object.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.afterburner_vault_id)
|
40
|
+
return object.data.content.fields.afterburner_vault_id;
|
41
|
+
return '';
|
42
|
+
});
|
43
|
+
const burnerVaultsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, burnerVaults);
|
44
|
+
const burnerVaultsTypes = burnerVaultsObjects.map((vault) => { var _a; return (_a = vault.data) === null || _a === void 0 ? void 0 : _a.type; });
|
45
|
+
const lpMints = burnerVaultsTypes
|
46
|
+
.map((type) => {
|
47
|
+
var _a, _b;
|
48
|
+
if (!type)
|
49
|
+
return undefined;
|
50
|
+
const lp = (_b = (_a = (0, aptos_1.parseTypeString)(type).keys) === null || _a === void 0 ? void 0 : _a.at(0)) === null || _b === void 0 ? void 0 : _b.type;
|
51
|
+
if (!lp || !lp.includes('af_lp'))
|
52
|
+
return undefined;
|
53
|
+
return (0, portfolio_core_1.formatTokenAddress)(lp, portfolio_core_1.NetworkId.sui);
|
54
|
+
})
|
55
|
+
.flat();
|
56
|
+
const lpTokenPriceById = yield cache.getTokenPricesAsMap(lpMints.map((lp) => (lp !== undefined ? lp : [])).flat(), portfolio_core_1.NetworkId.sui);
|
57
|
+
const liquidities = [];
|
58
|
+
for (let i = 0; i < stakedPositions.length; i++) {
|
59
|
+
const object = stakedPositions[i];
|
60
|
+
if (!((_a = object.data) === null || _a === void 0 ? void 0 : _a.content))
|
61
|
+
continue;
|
62
|
+
const lp = lpMints[i];
|
63
|
+
if (!lp)
|
64
|
+
continue;
|
65
|
+
const lpPrice = lpTokenPriceById.get(lp);
|
66
|
+
if (!lpPrice)
|
67
|
+
continue;
|
68
|
+
const position = object.data.content.fields;
|
69
|
+
const amount = new bignumber_js_1.default(position.balance)
|
70
|
+
.dividedBy(farmFactor)
|
71
|
+
.toNumber();
|
72
|
+
const assets = (0, tokenPriceToAssetTokens_1.default)(lpPrice.address, amount, portfolio_core_1.NetworkId.sui, lpPrice);
|
73
|
+
const value = (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value));
|
74
|
+
liquidities.push({
|
75
|
+
assets,
|
76
|
+
assetsValue: value,
|
77
|
+
rewardAssets: [],
|
78
|
+
rewardAssetsValue: null,
|
79
|
+
value,
|
80
|
+
yields: [],
|
81
|
+
});
|
82
|
+
}
|
83
|
+
if (liquidities.length === 0)
|
84
|
+
return [];
|
85
|
+
return [
|
86
|
+
{
|
87
|
+
type: 'liquidity',
|
88
|
+
data: { liquidities },
|
89
|
+
label: 'Farming',
|
90
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
91
|
+
platformId: constants_1.platformId,
|
92
|
+
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((liq) => liq.value)),
|
93
|
+
},
|
94
|
+
];
|
95
|
+
});
|
96
|
+
const fetcher = {
|
97
|
+
id: `${constants_1.platformId}-staking`,
|
98
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
99
|
+
executor,
|
100
|
+
};
|
101
|
+
exports.default = fetcher;
|
102
|
+
//# sourceMappingURL=stakingFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAsD;AACtD,iDAAmD;AACnD,qEAAkE;AAElE,qEAAkE;AAClE,6CAAoD;AACpD,uGAA+E;AAE/E,MAAM,UAAU,GAAG,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,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAEjE,WAAW,CAAC,IAAI,CAAC;YACf,MAAM;YACN,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,IAAI;YACvB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE;YACrB,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC3D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -31,3 +31,20 @@ export type PoolInfo = {
|
|
31
31
|
type_names: string[];
|
32
32
|
weights: string[];
|
33
33
|
};
|
34
|
+
export type StakingPosition = {
|
35
|
+
afterburner_vault_id: string;
|
36
|
+
balance: string;
|
37
|
+
base_rewards_accumulated: string[];
|
38
|
+
base_rewards_debt: string[];
|
39
|
+
id: ID;
|
40
|
+
last_reward_timestamp_ms: string;
|
41
|
+
lock_duration_ms: string;
|
42
|
+
lock_multiplier: string;
|
43
|
+
lock_start_timestamp_ms: string;
|
44
|
+
multiplier_rewards_accumulated: string[];
|
45
|
+
multiplier_rewards_debt: string[];
|
46
|
+
multiplier_staked_amount: string;
|
47
|
+
};
|
48
|
+
export type ID = {
|
49
|
+
id: string;
|
50
|
+
};
|
@@ -0,0 +1,79 @@
|
|
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 constants_1 = require("./constants");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const driftFactor = new bignumber_js_1.default(Math.pow(10, constants_1.driftDecimals));
|
21
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
const res = yield axios_1.default
|
23
|
+
.get(constants_1.airdropUrl + owner, {
|
24
|
+
headers: {
|
25
|
+
Origin: 'https://drift.foundation',
|
26
|
+
Referer: 'https://drift.foundation/',
|
27
|
+
},
|
28
|
+
timeout: 1000,
|
29
|
+
})
|
30
|
+
.catch(() => null);
|
31
|
+
if (!res || res.data.error || res.data.start_amount === 0)
|
32
|
+
return [];
|
33
|
+
// const client = getClientSolana();
|
34
|
+
// const claimStatus = deriveClaimStatus(owner, res.data.merkle_tree, '');
|
35
|
+
// const account = await client.getAccountInfo(claimStatus);
|
36
|
+
// if (account) return [];
|
37
|
+
const { mint } = res.data;
|
38
|
+
const tokenPrice = mint !== portfolio_core_1.solanaNativeAddress
|
39
|
+
? yield cache.getTokenPrice(res.data.mint, portfolio_core_1.NetworkId.solana)
|
40
|
+
: undefined;
|
41
|
+
const amount = new bignumber_js_1.default(res.data.start_amount)
|
42
|
+
.dividedBy(driftFactor)
|
43
|
+
.toNumber();
|
44
|
+
const asset = tokenPrice
|
45
|
+
? (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, portfolio_core_1.NetworkId.solana, tokenPrice)
|
46
|
+
: {
|
47
|
+
type: 'generic',
|
48
|
+
data: {
|
49
|
+
amount,
|
50
|
+
name: 'DRIFT',
|
51
|
+
price: null,
|
52
|
+
imageUri: constants_1.platform.image,
|
53
|
+
},
|
54
|
+
attributes: {
|
55
|
+
lockedUntil: 0,
|
56
|
+
},
|
57
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
58
|
+
value: null,
|
59
|
+
};
|
60
|
+
return [
|
61
|
+
{
|
62
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
63
|
+
platformId: constants_1.platformId,
|
64
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
65
|
+
data: {
|
66
|
+
assets: [asset],
|
67
|
+
},
|
68
|
+
value: null,
|
69
|
+
label: 'Airdrop',
|
70
|
+
},
|
71
|
+
];
|
72
|
+
});
|
73
|
+
const fetcher = {
|
74
|
+
id: `${constants_1.platformId}-airdrop`,
|
75
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
76
|
+
executor,
|
77
|
+
};
|
78
|
+
exports.default = fetcher;
|
79
|
+
//# sourceMappingURL=airdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/air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ACH,CAAC,CAAC;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,IAAI;gBACX,QAAQ,EAAE,oBAAQ,CAAC,KAAK;aACzB;YACD,UAAU,EAAE;gBACV,WAAW,EAAE,CAAC;aACf;YACD,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,IAAI;SACZ,CAAC;IAEN,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,SAAS;SACjB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -5,3 +5,5 @@ export declare const platform: Platform;
|
|
5
5
|
export declare const prefixSpotMarkets = "drift-spotMarkets";
|
6
6
|
export declare const driftProgram: PublicKey;
|
7
7
|
export declare const preMarketPriceKey = "premarketPrice";
|
8
|
+
export declare const airdropUrl = "https://airdrop.drift.trade/eligibility/";
|
9
|
+
export declare const driftDecimals = 6;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.driftDecimals = exports.airdropUrl = exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'drift';
|
6
6
|
exports.platform = {
|
@@ -13,4 +13,6 @@ exports.platform = {
|
|
13
13
|
exports.prefixSpotMarkets = `${exports.platformId}-spotMarkets`;
|
14
14
|
exports.driftProgram = new web3_js_1.PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH');
|
15
15
|
exports.preMarketPriceKey = 'premarketPrice';
|
16
|
+
exports.airdropUrl = 'https://airdrop.drift.trade/eligibility/';
|
17
|
+
exports.driftDecimals = 6;
|
16
18
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AAErC,QAAA,UAAU,GAAG,0CAA0C,CAAC;AACxD,QAAA,aAAa,GAAG,CAAC,CAAC"}
|
@@ -8,7 +8,8 @@ const constants_1 = require("./constants");
|
|
8
8
|
const spotMarketsJob_1 = __importDefault(require("./spotMarketsJob"));
|
9
9
|
const deposits_1 = __importDefault(require("./deposits"));
|
10
10
|
const premarketJob_1 = __importDefault(require("./premarketJob"));
|
11
|
+
const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
13
|
exports.jobs = [spotMarketsJob_1.default, premarketJob_1.default];
|
13
|
-
exports.fetchers = [deposits_1.default];
|
14
|
+
exports.fetchers = [deposits_1.default, airdropFetcher_1.default];
|
14
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,0DAA8C;AAC9C,kEAA0C;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,0DAA8C;AAC9C,kEAA0C;AAC1C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,kBAAoB,EAAE,wBAAc,CAAC,CAAC"}
|
@@ -7,3 +7,15 @@ export type PreMarketPrice = {
|
|
7
7
|
id: string;
|
8
8
|
price: number;
|
9
9
|
};
|
10
|
+
export type AirdropResponse = {
|
11
|
+
claimant: string;
|
12
|
+
merkle_tree: string;
|
13
|
+
mint: string;
|
14
|
+
start_ts: number;
|
15
|
+
end_ts: number;
|
16
|
+
start_amount: number;
|
17
|
+
end_amount: number;
|
18
|
+
unvested_amount: number;
|
19
|
+
claimed_amount: number;
|
20
|
+
error: string;
|
21
|
+
};
|
@@ -72,17 +72,16 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
72
72
|
tags: ['Deactivation Pending'],
|
73
73
|
}));
|
74
74
|
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
75
|
+
const watermark = stakeAccount.stakeStats.activeAmount
|
76
|
+
.multipliedBy(poolInfo.rewardPerLp)
|
77
|
+
.dividedBy(flpFacotr);
|
78
|
+
const unclaimedAmount = watermark
|
79
|
+
.minus(stakeAccount.rewardSnapshot)
|
80
|
+
.plus(stakeAccount.unclaimedRewards)
|
81
|
+
.times(stakeAccount.feeShareBps)
|
82
|
+
.dividedBy(Math.pow(10, 10));
|
83
|
+
if (!unclaimedAmount.isZero())
|
84
84
|
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(solana_1.usdcSolanaMint, unclaimedAmount.toNumber(), portfolio_core_1.NetworkId.solana, usdcTokenPrice)), { attributes: { isClaimable: true } }));
|
85
|
-
}
|
86
85
|
if (assets.length !== 0)
|
87
86
|
elements.push({
|
88
87
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,6DAA6D;AAE7D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IA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,EACrB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,MAAM,EAChB,aAAa,EACb,SAAS,EACT;gBACE,IAAI,EAAE,CAAC,oBAAoB,CAAC;aAC7B,CACF,CACF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1D,MAAM,MAAM,GACV,YAAY,CAAC,UAAU,CAAC,mBAAmB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,aAAa,CAAC,OAAO,EACrB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,MAAM,EAChB,aAAa,EACb,SAAS,EACT;gBACE,IAAI,EAAE,CAAC,sBAAsB,CAAC;aAC/B,CACF,CACF,CAAC;QACJ,CAAC;QAED,
|
1
|
+
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,+CAG4B;AAC5B,uCAA2C;AAC3C,qGAA6E;AAC7E,uCAAoC;AAEpC,6DAA6D;AAE7D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACvD,MAAM,EACN,wBAAc,EACd,IAAA,iBAAO,EAAC,KAAK,CAAC,CACf,CAAC;IACF,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QAC1D,MAAM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C,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -5,11 +5,11 @@ const web3_js_1 = require("@solana/web3.js");
|
|
5
5
|
exports.platformId = 'flexlend';
|
6
6
|
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
|
-
name: '
|
9
|
-
image: 'https://sonar.watch/img/platforms/
|
8
|
+
name: 'LuLo',
|
9
|
+
image: 'https://sonar.watch/img/platforms/lulo.webp',
|
10
10
|
defiLlamaId: 'flexlend',
|
11
|
-
website: 'https://
|
12
|
-
twitter: 'https://twitter.com/
|
11
|
+
website: 'https://www.lulo.fi',
|
12
|
+
twitter: 'https://twitter.com/uselulo',
|
13
13
|
};
|
14
14
|
exports.flexProgramId = new web3_js_1.PublicKey('FL3X2pRsQ9zHENpZSKDRREtccwJuei8yg9fwDu9UN69Q');
|
15
15
|
exports.AUTOMATION_PUBLIC_KEY = new web3_js_1.PublicKey('8PWR75ppAGonv9dXStjficjXmdsuDKmDoVNcy4oYhAMs');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flexlend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC"}
|
@@ -47,10 +47,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
47
47
|
return [
|
48
48
|
{
|
49
49
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
50
|
-
label: '
|
50
|
+
label: 'Airdrop',
|
51
51
|
networkId: portfolio_core_1.NetworkId.solana,
|
52
52
|
platformId: constants_1.platformId,
|
53
|
-
name: 'Airdrop',
|
54
53
|
data: {
|
55
54
|
assets,
|
56
55
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jito/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AACrC,kDAA0B;AAG1B,2CAA2E;AAC3E,qGAA6E;AAG7E,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,mBAAmB;AACvD,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,eAAe;AACjD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,UAAU;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1C,eAAK,CAAC,GAAG,CAAC,sBAAU,GAAG,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAA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CAAC"}
|
@@ -65,7 +65,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
65
65
|
return [
|
66
66
|
{
|
67
67
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
68
|
-
label: '
|
68
|
+
label: 'Airdrop',
|
69
69
|
networkId: portfolio_core_1.NetworkId.solana,
|
70
70
|
platformId: constants_1.platformId,
|
71
71
|
name: 'Allocation',
|
@@ -42,7 +42,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
42
42
|
platformId: constants_1.platformId,
|
43
43
|
name: 'Season 1 Airdrop',
|
44
44
|
networkId: portfolio_core_1.NetworkId.solana,
|
45
|
-
label: '
|
45
|
+
label: 'Airdrop',
|
46
46
|
data: { assets: [asset] },
|
47
47
|
value: asset.value,
|
48
48
|
},
|
@@ -71,9 +71,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
71
71
|
value: asset.value,
|
72
72
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
73
73
|
platformId: constants_1.platformId,
|
74
|
-
name: 'Allocation',
|
75
74
|
networkId: portfolio_core_1.NetworkId.solana,
|
76
|
-
label: '
|
75
|
+
label: 'Airdrop',
|
77
76
|
data: { assets: [asset] },
|
78
77
|
},
|
79
78
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAOqB;AAErB,gDAAuD;AACvD,kFAA+E;AAC/E,iDAAsD;AACtD,0DAAiE;AACjE,qGAA6E;AAE7E,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,UAAU,GAAG,aAAa,CAAC;AACjC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAA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,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAG,IAAA,2BAAiB,EACzC,KAAK,EACL,UAAU,EACV,8BAAkB,CACnB,CAAC;IAEF,MAAM,mBAAmB,GAAG,MAAM,IAAA,2CAAoB,EACpD,MAAM,EACN,2BAAiB,EACjB,iBAAiB,CAClB,CAAC;IACF,IAAI,mBAAmB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oBAAQ,EACR,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;IAEF,OAAO;QACL;YACE,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,UAAU,EAAV,sBAAU;YACV,
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAOqB;AAErB,gDAAuD;AACvD,kFAA+E;AAC/E,iDAAsD;AACtD,0DAAiE;AACjE,qGAA6E;AAE7E,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,UAAU,GAAG,aAAa,CAAC;AACjC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,UAAU;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAA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