@sonarwatch/portfolio-plugins 0.12.125 → 0.12.126
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2217 -2213
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +5 -1
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/jupiter/governance/asrAirdropFetcher.d.ts +2 -2
- package/src/plugins/jupiter/governance/asrAirdropFetcher.js +3 -2
- package/src/plugins/jupiter/governance/asrAirdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/index.js +4 -9
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/kamino/constants.js +12 -1
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/quarry/positionsFetcher.js +37 -5
- package/src/plugins/quarry/positionsFetcher.js.map +1 -1
- package/src/plugins/quarry/types.d.ts +1 -0
- package/src/plugins/sanctum/constants.d.ts +1 -1
- package/src/plugins/sanctum/constants.js +2 -2
- package/src/plugins/sanctum/constants.js.map +1 -1
- package/src/plugins/sanctum/index.d.ts +2 -2
- package/src/plugins/sanctum/index.js +4 -11
- package/src/plugins/sanctum/index.js.map +1 -1
- package/src/plugins/sanctum/s1AirdropFetcher.d.ts +3 -0
- package/src/plugins/sanctum/{airdropFetcher.js → s1AirdropFetcher.js} +7 -6
- package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/thevault/constants.d.ts +3 -0
- package/src/plugins/thevault/constants.js +12 -0
- package/src/plugins/thevault/constants.js.map +1 -0
- package/src/plugins/thevault/index.d.ts +6 -0
- package/src/plugins/thevault/index.js +8 -0
- package/src/plugins/thevault/index.js.map +1 -0
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/sanctum/airdropFetcher.d.ts +0 -3
- package/src/plugins/sanctum/airdropFetcher.js.map +0 -1
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# @sonarwatch/portfolio-plugins
|
2
|
-
|
3
|
-
This library is @sonarwatch/portfolio-plugins
|
1
|
+
# @sonarwatch/portfolio-plugins
|
2
|
+
|
3
|
+
This library is @sonarwatch/portfolio-plugins
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -131,6 +131,7 @@ const echelon_1 = require("./plugins/echelon");
|
|
131
131
|
const solayer_1 = require("./plugins/solayer");
|
132
132
|
const picasso_1 = require("./plugins/picasso");
|
133
133
|
const quarry_1 = require("./plugins/quarry");
|
134
|
+
const thevault_1 = require("./plugins/thevault");
|
134
135
|
var constants_1 = require("./plugins/tokens/constants");
|
135
136
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
136
137
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -255,6 +256,7 @@ exports.platforms = [
|
|
255
256
|
...solayer_1.platforms,
|
256
257
|
...picasso_1.platforms,
|
257
258
|
...quarry_1.platforms,
|
259
|
+
...thevault_1.platforms,
|
258
260
|
];
|
259
261
|
// JOBS //
|
260
262
|
exports.jobs = [
|
@@ -362,6 +364,7 @@ exports.jobs = [
|
|
362
364
|
...solayer_1.jobs,
|
363
365
|
...picasso_1.jobs,
|
364
366
|
...quarry_1.jobs,
|
367
|
+
...thevault_1.jobs,
|
365
368
|
];
|
366
369
|
// FETCHERS //
|
367
370
|
exports.fetchers = [
|
@@ -471,14 +474,15 @@ exports.fetchers = [
|
|
471
474
|
...solayer_1.fetchers,
|
472
475
|
...picasso_1.fetchers,
|
473
476
|
...quarry_1.fetchers,
|
477
|
+
...thevault_1.fetchers,
|
474
478
|
];
|
475
479
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
476
480
|
exports.airdropFetchers = [
|
477
481
|
...jupiter_1.airdropFetchers,
|
478
482
|
...kamino_1.airdropFetchers,
|
483
|
+
...sanctum_1.airdropFetchers,
|
479
484
|
drift_1.airdropFetcher,
|
480
485
|
parcl_1.airdropFetcher,
|
481
|
-
sanctum_1.airdropFetcher,
|
482
486
|
];
|
483
487
|
exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
|
484
488
|
//# 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,yCAIwB;AACxB,+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,6CAK0B;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,+CAK2B;AAC3B,mDAI6B;AAC7B,uEAIuC;AACvC,mDAI6B;AAC7B,+CAI2B;AAC3B,+CAI2B;AAC3B,+CAI2B;AAC3B,6CAI0B;
|
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,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B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,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;IAClB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AirdropFetcher } from '../../../AirdropFetcher';
|
2
|
-
declare const airdropFetcher: AirdropFetcher;
|
3
|
-
export
|
2
|
+
export declare const airdropFetcher: AirdropFetcher;
|
3
|
+
export declare const fetcher: import("../../..").Fetcher;
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.fetcher = exports.airdropFetcher = void 0;
|
15
16
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
17
|
const axios_1 = __importDefault(require("axios"));
|
17
18
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
@@ -93,10 +94,10 @@ const fetchAirdropExecutor = (owner) => __awaiter(void 0, void 0, void 0, functi
|
|
93
94
|
.flat(),
|
94
95
|
});
|
95
96
|
});
|
96
|
-
|
97
|
+
exports.airdropFetcher = {
|
97
98
|
id: constants_1.asr1Statics.id,
|
98
99
|
networkId: portfolio_core_1.NetworkId.solana,
|
99
100
|
executor: fetchAirdropExecutor,
|
100
101
|
};
|
101
|
-
exports.
|
102
|
+
exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_1.platformId, `${constants_1.platformId}-asr-1`, constants_1.asr1Statics.claimEnd);
|
102
103
|
//# sourceMappingURL=asrAirdropFetcher.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asrAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/asrAirdropFetcher.ts"],"names":[],"mappings":"
|
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,2CAA6E;AAC7E,4DAKiC;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,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2B,EACrD,MAAM,EACN,cAAc,CACf,CAAC;IAEF,OAAO,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;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,uBAAW,CAAC,EAAE;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,sBAAU,EACV,GAAG,sBAAU,QAAQ,EACrB,uBAAW,CAAC,QAAQ,CACrB,CAAC"}
|
@@ -14,7 +14,7 @@ const voteFetcher_1 = __importDefault(require("./governance/voteFetcher"));
|
|
14
14
|
const constants_2 = require("./governance/constants");
|
15
15
|
const pricingJob_1 = __importDefault(require("./pricingJob"));
|
16
16
|
const constants_3 = require("./exchange/constants");
|
17
|
-
const asrAirdropFetcher_1 =
|
17
|
+
const asrAirdropFetcher_1 = require("./governance/asrAirdropFetcher");
|
18
18
|
const launchpad_1 = require("./launchpad");
|
19
19
|
exports.platforms = [
|
20
20
|
constants_1.platform,
|
@@ -28,16 +28,11 @@ exports.fetchers = [
|
|
28
28
|
limitFetcher_1.default,
|
29
29
|
dcaFetcher_1.default,
|
30
30
|
voteFetcher_1.default,
|
31
|
-
|
32
|
-
|
33
|
-
// governancePlatform.id,
|
34
|
-
// `${governancePlatform.id}-asr-1`,
|
35
|
-
// asr1Statics.claimEnd
|
36
|
-
// ),
|
37
|
-
// ...lfgFetchers,
|
31
|
+
asrAirdropFetcher_1.fetcher,
|
32
|
+
...launchpad_1.lfgFetchers,
|
38
33
|
];
|
39
34
|
exports.airdropFetchers = [
|
40
|
-
asrAirdropFetcher_1.
|
35
|
+
asrAirdropFetcher_1.airdropFetcher,
|
41
36
|
...launchpad_1.lfgAirdropFetchers,
|
42
37
|
];
|
43
38
|
//# 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,qDAAsE;AACtE,2EAAmD;AACnD,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,
|
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,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,sEAGwC;AACxC,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,2BAAU;IACV,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,GAAG,8BAAkB;CACtB,CAAC"}
|
@@ -81,7 +81,18 @@ exports.lendingConfigs = new Map([
|
|
81
81
|
],
|
82
82
|
},
|
83
83
|
],
|
84
|
-
[
|
84
|
+
[
|
85
|
+
'DxXdAyU3kCjnyggvHmY5nAwg5cRbbmdyX3npfDMjjMek',
|
86
|
+
{
|
87
|
+
name: 'JLP Market',
|
88
|
+
multiplyPairs: [
|
89
|
+
[
|
90
|
+
'27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4',
|
91
|
+
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
92
|
+
],
|
93
|
+
],
|
94
|
+
},
|
95
|
+
],
|
85
96
|
['ByYiZxp8QrdN9qbdtaAiePN8AAr3qvTPppNJDpf5DVJ5', { name: 'Altcoins Market' }],
|
86
97
|
]);
|
87
98
|
exports.marketsKey = `markets`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAK/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,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAE5D,QAAA,cAAc,GAAqC,IAAI,GAAG,CAAC;IACtE;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,aAAa;YACnB,aAAa,EAAE;gBACb;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,8CAA8C;oBAC9C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;aACF;YACD,aAAa,EAAE;gBACb;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AA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C7C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,YAAY;YAClB,aAAa,EAAE;gBACb;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC9E,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,WAAW,GAAG,UAAU,CAAC;AACzB,QAAA,gBAAgB,GAAmB;IAC9C,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,SAAS;IACnB,EAAE,EAAE,WAAW;IACf,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,6CAA6C;IACxD,KAAK,EAAE,+CAA+C;IACtD,IAAI,EAAE,IAAI;CACX,CAAC"}
|
@@ -16,11 +16,14 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
16
16
|
const web3_js_1 = require("@solana/web3.js");
|
17
17
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
18
|
const constants_1 = require("./constants");
|
19
|
+
const constants_2 = require("../thevault/constants");
|
20
|
+
const constants_3 = require("../saber/constants");
|
19
21
|
const clients_1 = require("../../utils/clients");
|
20
22
|
const solana_1 = require("../../utils/solana");
|
21
23
|
const helpers_1 = require("./helpers");
|
22
24
|
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
23
25
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
26
|
+
const tokenPriceToAssetTokens_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetTokens"));
|
24
27
|
const rewardersMemo = new MemoizedCache_1.MemoizedCache(constants_1.rewardersCacheKey, {
|
25
28
|
prefix: constants_1.platformId,
|
26
29
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -66,9 +69,27 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
66
69
|
const assets = [];
|
67
70
|
const rewardAssets = [];
|
68
71
|
const stakedTokenPrice = tokenPrices.get(quarry.stakedToken.mint);
|
69
|
-
|
70
|
-
.
|
71
|
-
|
72
|
+
if (stakedTokenPrice)
|
73
|
+
assets.push(...(0, tokenPriceToAssetTokens_1.default)(stakedTokenPrice.address, new bignumber_js_1.default(account.balance)
|
74
|
+
.dividedBy(Math.pow(10, stakedTokenPrice.decimals))
|
75
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, stakedTokenPrice));
|
76
|
+
else {
|
77
|
+
assets.push({
|
78
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
79
|
+
type: 'token',
|
80
|
+
value: null,
|
81
|
+
attributes: {},
|
82
|
+
name: quarry.primaryTokenInfo.symbol,
|
83
|
+
data: {
|
84
|
+
amount: new bignumber_js_1.default(account.balance)
|
85
|
+
.dividedBy(Math.pow(10, quarry.primaryTokenInfo.decimals))
|
86
|
+
.toNumber(),
|
87
|
+
address: quarry.stakedToken.mint,
|
88
|
+
price: null,
|
89
|
+
},
|
90
|
+
imageUri: quarry.primaryTokenInfo.logoURI,
|
91
|
+
});
|
92
|
+
}
|
72
93
|
const rewardTokenPrice = tokenPrices.get(rewarder.rewardsTokenInfo.address);
|
73
94
|
if (account.rewardsEarned !== '0' && rewardTokenPrice) {
|
74
95
|
rewardAssets.push((0, tokenPriceToAssetToken_1.default)(rewardTokenPrice.address, new bignumber_js_1.default(account.rewardsEarned)
|
@@ -78,13 +99,24 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
78
99
|
const assetsValue = (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value));
|
79
100
|
const rewardAssetsValue = (0, portfolio_core_1.getUsdValueSum)(rewardAssets.map((a) => a.value));
|
80
101
|
const value = assetsValue;
|
102
|
+
let elementPlatformId;
|
103
|
+
switch (rewarder.slug) {
|
104
|
+
case 'vault':
|
105
|
+
elementPlatformId = constants_2.platformId;
|
106
|
+
break;
|
107
|
+
case 'saber':
|
108
|
+
elementPlatformId = constants_3.platformId;
|
109
|
+
break;
|
110
|
+
default:
|
111
|
+
elementPlatformId = constants_1.platformId;
|
112
|
+
}
|
81
113
|
elements.push({
|
82
114
|
networkId: portfolio_core_1.NetworkId.solana,
|
83
115
|
label: 'Deposit',
|
84
|
-
platformId:
|
116
|
+
platformId: elementPlatformId,
|
85
117
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
86
118
|
value,
|
87
|
-
name: (_a = rewarder.info) === null || _a === void 0 ? void 0 : _a.name,
|
119
|
+
name: elementPlatformId === constants_1.platformId ? (_a = rewarder.info) === null || _a === void 0 ? void 0 : _a.name : constants_1.platform.name,
|
88
120
|
data: {
|
89
121
|
liquidities: [
|
90
122
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAKqB;AACrB,qDAAyE;AACzE,kDAAmE;AAEnE,iDAAsD;AACtD,+CAAuE;AACvE,uCAA0C;AAE1C,kEAA+D;AAC/D,qGAA6E;AAC7E,uGAA+E;AAE/E,MAAM,aAAa,GAAG,IAAI,6BAAa,CAAa,6BAAiB,EAAE;IACrE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM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iBACF;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -7,4 +7,4 @@ export declare const platform: Platform;
|
|
7
7
|
export declare const lstsKey = "lsts";
|
8
8
|
export declare const cloudMint = "CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu";
|
9
9
|
export declare const cloudDecimals = 9;
|
10
|
-
export declare const
|
10
|
+
export declare const s1AirdropStatics: AirdropStatics;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.s1AirdropStatics = exports.cloudDecimals = exports.cloudMint = exports.lstsKey = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'sanctum';
|
5
5
|
exports.platformImage = 'https://sonar.watch/img/platforms/sanctum.webp';
|
6
6
|
exports.platformWebsite = 'https://www.sanctum.so/';
|
@@ -15,7 +15,7 @@ exports.platform = {
|
|
15
15
|
exports.lstsKey = 'lsts';
|
16
16
|
exports.cloudMint = 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu';
|
17
17
|
exports.cloudDecimals = 9;
|
18
|
-
exports.
|
18
|
+
exports.s1AirdropStatics = {
|
19
19
|
id: 'sanctum',
|
20
20
|
claimStart: 1721314800000,
|
21
21
|
claimEnd: 1744588800000,
|
@@ -1 +1 @@
|
|
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,SAAS,GAAG,8CAA8C,CAAC;AAC3D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,
|
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,SAAS,GAAG,8CAA8C,CAAC;AAC3D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,gBAAgB,GAAmB;IAC9C,EAAE,EAAE,SAAS;IACb,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,uBAAe;IAC5B,SAAS,EAAE,4BAA4B;IACvC,KAAK,EAAE,qBAAa;CACrB,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,19 +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 constants_1 = require("./constants");
|
8
8
|
const lstsJob_1 = __importDefault(require("./lstsJob"));
|
9
|
-
const
|
10
|
-
exports.airdropFetcher = airdropFetcher_1.default;
|
9
|
+
const s1AirdropFetcher_1 = require("./s1AirdropFetcher");
|
11
10
|
exports.platforms = [constants_1.platform];
|
12
11
|
exports.jobs = [lstsJob_1.default];
|
13
|
-
exports.fetchers = [
|
14
|
-
|
15
|
-
// airdropFetcher,
|
16
|
-
// platform.id,
|
17
|
-
// `${platform.id}-airdrop`,
|
18
|
-
// airdropStatics.claimEnd
|
19
|
-
// ),
|
20
|
-
];
|
12
|
+
exports.fetchers = [s1AirdropFetcher_1.fetcher];
|
13
|
+
exports.airdropFetchers = [s1AirdropFetcher_1.airdropFetcher];
|
21
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wDAAgC;AAChC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wDAAgC;AAChC,yDAG4B;AAGf,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,iBAAO,CAAC,CAAC;AACxB,QAAA,QAAQ,GAAc,CAAC,0BAAS,CAAC,CAAC;AAClC,QAAA,eAAe,GAAqB,CAAC,iCAAgB,CAAC,CAAC"}
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.fetcher = exports.airdropFetcher = void 0;
|
15
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
16
17
|
const axios_1 = __importDefault(require("axios"));
|
17
18
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
@@ -33,7 +34,7 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
34
|
});
|
34
35
|
if (!claimProofBase || typeof claimProofBase.data === 'string')
|
35
36
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
36
|
-
statics: constants_2.
|
37
|
+
statics: constants_2.s1AirdropStatics,
|
37
38
|
items: [
|
38
39
|
{
|
39
40
|
amount: 0,
|
@@ -81,14 +82,14 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
81
82
|
});
|
82
83
|
}
|
83
84
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
84
|
-
statics: constants_2.
|
85
|
+
statics: constants_2.s1AirdropStatics,
|
85
86
|
items,
|
86
87
|
});
|
87
88
|
});
|
88
|
-
|
89
|
-
id: constants_2.
|
89
|
+
exports.airdropFetcher = {
|
90
|
+
id: constants_2.s1AirdropStatics.id,
|
90
91
|
networkId: portfolio_core_1.NetworkId.solana,
|
91
92
|
executor,
|
92
93
|
};
|
93
|
-
exports.
|
94
|
-
//# sourceMappingURL=
|
94
|
+
exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_2.platform.id, `${constants_2.platform.id}-airdrop`, constants_2.s1AirdropStatics.claimEnd);
|
95
|
+
//# sourceMappingURL=s1AirdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"s1AirdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/s1AirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAC7C,+DAAuD;AACvD,yDAK8B;AAC9B,oFAAiF;AACjF,iDAAsD;AAEtD,8DAA8E;AAC9E,2CAKqB;AAErB,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,cAAc,GAA6C,MAAM,eAAK;SACzE,GAAG,CACF,GAAG,yBAAa,iDAAiD,KAAK,EAAE,EACxE;QACE,OAAO,EAAE,IAAI;KACd,CACF;SACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACX,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACL,IAAI,CAAC,cAAc,IAAI,OAAO,cAAc,CAAC,IAAI,KAAK,QAAQ;QAC5D,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,4BAAgB;YACzB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,OAAO;oBACd,OAAO,EAAE,qBAAS;iBACnB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,kBAAkB,GAAG,IAAA,qCAAiB,EAC1C,KAAK,EACL,cAAc,CAAC,IAAI,CAAC,WAAW,EAC/B,yBAAa,C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AuB,KAAK,IAAI;YAC3C,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,qBAAS;SACnB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,4BAAgB;QACzB,KAAK;KACN,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,4BAAgB,CAAC,EAAE;IACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,GAAG,oBAAQ,CAAC,EAAE,UAAU,EACxB,4BAAgB,CAAC,QAAQ,CAC1B,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.platform = exports.platformId = void 0;
|
4
|
+
exports.platformId = 'thevault';
|
5
|
+
exports.platform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'The Vault',
|
8
|
+
image: 'https://sonar.watch/img/platforms/thevault.webp',
|
9
|
+
defiLlamaId: 'the-vault',
|
10
|
+
website: 'https://thevault.finance/',
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thevault/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AAExB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,2BAA2B;CACrC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
4
|
+
const constants_1 = require("./constants");
|
5
|
+
exports.platforms = [constants_1.platform];
|
6
|
+
exports.jobs = [];
|
7
|
+
exports.fetchers = [];
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thevault/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|