@sonarwatch/portfolio-plugins 0.14.130 → 0.14.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2132 -2128
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/debridge/airdropFetcher.js +7 -1
- package/src/plugins/debridge/airdropFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +1 -16
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/lulo/depositsFetcher.js +0 -2
- package/src/plugins/lulo/depositsFetcher.js.map +1 -1
- package/src/plugins/meteora/dlmmPositionsFetcher.js +9 -3
- package/src/plugins/meteora/dlmmPositionsFetcher.js.map +1 -1
- package/src/plugins/meteora/filters.d.ts +0 -2
- package/src/plugins/meteora/filters.js +1 -21
- package/src/plugins/meteora/filters.js.map +1 -1
- package/src/plugins/nxfinance/stakingFetcher.js +2 -2
- package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
- package/src/plugins/solayer/airdropFetcher.js +8 -3
- package/src/plugins/solayer/airdropFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +16 -2
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/beets/ParsedGpa.d.ts +18 -0
- package/src/utils/solana/beets/ParsedGpa.js +49 -0
- package/src/utils/solana/beets/ParsedGpa.js.map +1 -0
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
@@ -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;
|
@@ -19,6 +19,7 @@ const AirdropFetcher_1 = require("../../AirdropFetcher");
|
|
19
19
|
const constants_1 = require("./constants");
|
20
20
|
const clients_1 = require("../../utils/clients");
|
21
21
|
const distributions_json_1 = __importDefault(require("./distributions.json"));
|
22
|
+
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
22
23
|
const distributionByWallet = distributions_json_1.default;
|
23
24
|
const executorDis1 = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
24
25
|
const isEvm = (0, portfolio_core_1.isEvmAddress)(owner);
|
@@ -55,6 +56,11 @@ const executorDis1 = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
56
|
const executorDis2 = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
56
57
|
const isEvm = (0, portfolio_core_1.isEvmAddress)(owner);
|
57
58
|
const walletDistributions = distributionByWallet[owner];
|
59
|
+
const pdas = isEvm
|
60
|
+
? [getEvmPda(owner, 2), getEvmPda(owner, 3)]
|
61
|
+
: [getSolPda(owner, 2), getSolPda(owner, 3)];
|
62
|
+
const receipts = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)((0, clients_1.getClientSolana)(), pdas);
|
63
|
+
const isClaimed = receipts.some((receipt) => !!receipt);
|
58
64
|
if (!walletDistributions || !walletDistributions.two) {
|
59
65
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
60
66
|
statics: constants_1.secondDistribStatics,
|
@@ -74,7 +80,7 @@ const executorDis2 = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
80
|
items: [
|
75
81
|
{
|
76
82
|
amount: walletDistributions.two,
|
77
|
-
isClaimed
|
83
|
+
isClaimed,
|
78
84
|
label: 'DBR',
|
79
85
|
address: isEvm ? undefined : constants_1.dbrMint,
|
80
86
|
imageUri: isEvm ? constants_1.platform.image : undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAqE;AACrE,6CAAyD;AACzD,yDAK8B;AAC9B,2CAQqB;AACrB,iDAAsD;AACtD,8EAAiD;
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge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Y;CACvB,CAAC;AAEW,QAAA,qBAAqB,GAAmB;IACnD,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,MAAM;IACpC,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ,EAAE,YAAY;CACvB,CAAC;AAEW,QAAA,wBAAwB,GAAmB;IACtD,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,SAAS;IACvC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,YAAY;CACvB,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,wCAAuB,EAChD,gCAAwB,EACxB,oBAAQ,CAAC,EAAE,EACX,uBAAuB,EACvB,+BAAmB,CAAC,QAAQ,CAC7B,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,wCAAuB,EAChD,gCAAwB,EACxB,oBAAQ,CAAC,EAAE,EACX,uBAAuB,EACvB,gCAAoB,CAAC,QAAQ,CAC9B,CAAC"}
|
@@ -58,7 +58,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
58
58
|
label: 'Vesting',
|
59
59
|
link: 'https://debridge.foundation/lfg',
|
60
60
|
});
|
61
|
-
const assets = [];
|
62
61
|
for (const escrow of accounts) {
|
63
62
|
const vault = vaults[escrow.dlmmVault.toString()];
|
64
63
|
if (!vault)
|
@@ -81,21 +80,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
81
80
|
attributes: { lockedUntil: 1744876800000 },
|
82
81
|
});
|
83
82
|
}
|
84
|
-
|
85
|
-
return [];
|
86
|
-
return [
|
87
|
-
{
|
88
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
89
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
90
|
-
label: 'Vesting',
|
91
|
-
platformId: constants_1.platformId,
|
92
|
-
name: 'LFG Vault',
|
93
|
-
data: {
|
94
|
-
assets,
|
95
|
-
},
|
96
|
-
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
97
|
-
},
|
98
|
-
];
|
83
|
+
return registry.getElements(cache);
|
99
84
|
});
|
100
85
|
const fetcher = {
|
101
86
|
id: `${constants_1.platformId}-dlmm-vaults`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;AAEnB,+
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;AAEnB,+DAAuD;AAGvD,iDAAsD;AACtD,2CAA0E;AAC1E,+CAA8D;AAC9D,8CAAiD;AAEjD,oDAAqD;AACrD,gFAA6E;AAE7E,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;QAClE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,GAAG,UAAU,EAAE,CAAC;QAC/C,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,UAAU,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/B,MAAM,kBAAkB,GAAG,MAAM,CAAC,YAAY;aAC3C,SAAS,CAAC,SAAA,EAAE,EAAI,eAAe,CAAC,QAAQ,CAAA,CAAC;aACzC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAE/B,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,KAAK,CACvD,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CACjD,CAAC;QAEF,IAAI,wBAAwB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAAE,SAAS;QAE9D,cAAc,CAAC,QAAQ,CAAC;YACtB,OAAO,EAAE,KAAK,CAAC,QAAQ;YACvB,MAAM,EAAE,wBAAwB;YAChC,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;YACtD,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -104,8 +104,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
104
104
|
portfolioElements.push(element);
|
105
105
|
}
|
106
106
|
}
|
107
|
-
if (portfolioElements.length === 0)
|
108
|
-
return [];
|
109
107
|
const elements = [];
|
110
108
|
for (const element of portfolioElements) {
|
111
109
|
const tmpElement = element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo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ACf,kBAAkB,EAClB,cAAc,CACf,CAAC;YACF,IAAI,OAAO;gBAAE,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,2CAAmD;AACnD,uCAA0E;AAC1E,+EAA4D;AAC5D,0EAA8D;AAC9D,mFAA6D;AAC7D,mDAA2D;AAC3D,kFAA+E;AAC/E,iDAAsD;AACtD,qCAAsE;AACtE,6CAAmD;AACnD,iDAA8E;AAE9E,6CAA6D;AAC7D,yEAA4E;AAC5E,+CAG4B;AAE5B,qDAA2D;AAC3D,iDAA4D;AAE5D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,GAAG,GAAG,IAAA,2BAAiB,EAAC,KAAK,CAAC,CAAC;IAErC,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,IAAA,2CAAoB,EAAC,MAAM,EAAE,0BAAiB,EAAE,IAAI,mBAAS,CAAC,GAAG,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAmB,oBAAQ,EAAE;YACxC,MAAM,EAAE,sBAAU;SACnB,CAAC;KACH,CAAC,CAAC;IACH,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,iBAAiB,GACrB,WAAW,CAAC,iBAAiB,CAAC,QAAQ,EAAE;QACxC,kCAAkC,CAAC;IAErC,MAAM,mBAAmB,GACvB,WAAW,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,kCAAkC,CAAC;IAE5E,MAAM,iBAAiB,GAA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EAAE,qBAAqB,CAAC,QAAQ,EAAE;gBACxC,UAAU,EAAE;oBACV,IAAI,EAAE,CAAC,SAAS,CAAC;iBAClB;aACF,CAAC,CAAC;YACH,cAAc,CAAC,gBAAgB,CAAC;gBAC9B;oBACE,GAAG,EAAE,cAAc,CAAC,IAAI;oBACxB,GAAG,EAAE,IAAA,yBAAQ,EAAC,cAAc,CAAC,IAAI,CAAC;iBACnC;aACF,CAAC,CAAC;YAEH,MAAM,uBAAuB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;YAEpE,cAAc,CAAC,gBAAgB,CAAC;gBAC9B,OAAO,EAAE,cAAc,CAAC,IAAI;gBAC5B,MAAM,EAAE,uBAAuB,CAAC,QAAQ,EAAE;gBAC1C,UAAU,EAAE;oBACV,IAAI,EAAE,CAAC,WAAW,CAAC;iBACpB;aACF,CAAC,CAAC;YACH,cAAc,CAAC,gBAAgB,CAAC;gBAC9B;oBACE,GAAG,EAAE,cAAc,CAAC,IAAI;oBACxB,GAAG,EAAE,IAAA,yBAAQ,EAAC,cAAc,CAAC,IAAI,CAAC;iBACnC;aACF,CAAC,CAAC;QACL,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACtD,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -19,17 +19,23 @@ const constants_1 = require("./constants");
|
|
19
19
|
const clients_1 = require("../../utils/clients");
|
20
20
|
const solana_1 = require("../../utils/solana");
|
21
21
|
const struct_1 = require("./struct");
|
22
|
-
const filters_1 = require("./filters");
|
23
22
|
const dlmmHelper_1 = require("./dlmmHelper");
|
24
23
|
const types_1 = require("./types");
|
25
24
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
26
25
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
26
|
+
const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
|
27
27
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
28
|
const client = (0, clients_1.getClientSolana)();
|
29
29
|
const userPubKey = new web3_js_1.PublicKey(owner);
|
30
30
|
const [positionsV1, positionsV2] = yield Promise.all([
|
31
|
-
|
32
|
-
|
31
|
+
ParsedGpa_1.ParsedGpa.build(client, struct_1.dlmmPositionV1Struct, constants_1.dlmmProgramId)
|
32
|
+
.addFilter('owner', userPubKey)
|
33
|
+
.addDataSizeFilter(7560)
|
34
|
+
.run(),
|
35
|
+
ParsedGpa_1.ParsedGpa.build(client, struct_1.dlmmPositionV2Struct, constants_1.dlmmProgramId)
|
36
|
+
.addFilter('owner', userPubKey)
|
37
|
+
.addDataSizeFilter(8120)
|
38
|
+
.run(),
|
33
39
|
]);
|
34
40
|
const positions = [...positionsV1, ...positionsV2];
|
35
41
|
if (positions.length === 0)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,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IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -6,8 +6,6 @@ export declare const constantPoolsFilters: GetProgramAccountsFilter[];
|
|
6
6
|
export declare const stablePoolsFilters: GetProgramAccountsFilter[];
|
7
7
|
export declare const memePoolsFilters: GetProgramAccountsFilter[];
|
8
8
|
export declare const farmAccountFilter: (owner: string) => GetProgramAccountsFilter[];
|
9
|
-
export declare const dlmmPositionAccountFilter: (owner: string) => GetProgramAccountsFilter[];
|
10
|
-
export declare const dlmmPositionV2AccountFilter: (owner: string) => GetProgramAccountsFilter[];
|
11
9
|
export declare const stakeEscrowFilter: (owner: string) => GetProgramAccountsFilter[];
|
12
10
|
export declare const feeVaultFilter: () => GetProgramAccountsFilter[];
|
13
11
|
export declare const unstakeFilter: (stakeEscrow: string) => GetProgramAccountsFilter[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.unstakeFilter = exports.feeVaultFilter = exports.stakeEscrowFilter = exports.
|
3
|
+
exports.unstakeFilter = exports.feeVaultFilter = exports.stakeEscrowFilter = exports.farmAccountFilter = exports.memePoolsFilters = exports.stablePoolsFilters = exports.constantPoolsFilters = exports.vaultsFilters = void 0;
|
4
4
|
exports.vaultsFilters = [{ dataSize: 10240 }];
|
5
5
|
exports.constantPoolsFilters = [
|
6
6
|
{ dataSize: 944 },
|
@@ -19,26 +19,6 @@ const farmAccountFilter = (owner) => [
|
|
19
19
|
},
|
20
20
|
];
|
21
21
|
exports.farmAccountFilter = farmAccountFilter;
|
22
|
-
const dlmmPositionAccountFilter = (owner) => [
|
23
|
-
{ dataSize: 7560 },
|
24
|
-
{
|
25
|
-
memcmp: {
|
26
|
-
offset: 40,
|
27
|
-
bytes: owner,
|
28
|
-
},
|
29
|
-
},
|
30
|
-
];
|
31
|
-
exports.dlmmPositionAccountFilter = dlmmPositionAccountFilter;
|
32
|
-
const dlmmPositionV2AccountFilter = (owner) => [
|
33
|
-
{ dataSize: 8120 },
|
34
|
-
{
|
35
|
-
memcmp: {
|
36
|
-
offset: 40,
|
37
|
-
bytes: owner,
|
38
|
-
},
|
39
|
-
},
|
40
|
-
];
|
41
|
-
exports.dlmmPositionV2AccountFilter = dlmmPositionV2AccountFilter;
|
42
22
|
const stakeEscrowFilter = (owner) => [
|
43
23
|
{
|
44
24
|
memcmp: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/filters.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAA+B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAElE,QAAA,oBAAoB,GAA+B;IAC9D,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAA+B;IAC5D,EAAE,QAAQ,EAAE,IAAI,EAAE;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAA+B,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAEzE,MAAM,iBAAiB,GAAG,CAC/B,KAAa,EACe,EAAE,CAAC;IAC/B,EAAE,QAAQ,EAAE,GAAG,EAAE;IACjB;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAVW,QAAA,iBAAiB,qBAU5B;AAEK,MAAM,
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/filters.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAA+B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAElE,QAAA,oBAAoB,GAA+B;IAC9D,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAA+B;IAC5D,EAAE,QAAQ,EAAE,IAAI,EAAE;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAA+B,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAEzE,MAAM,iBAAiB,GAAG,CAC/B,KAAa,EACe,EAAE,CAAC;IAC/B,EAAE,QAAQ,EAAE,GAAG,EAAE;IACjB;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAVW,QAAA,iBAAiB,qBAU5B;AAEK,MAAM,iBAAiB,GAAG,CAC/B,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD;QACE,QAAQ,EAAE,GAAG;KACd;CACF,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AAEK,MAAM,cAAc,GAAG,GAA+B,EAAE,CAAC;IAC9D;QACE,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAJW,QAAA,cAAc,kBAIzB;AAEK,MAAM,aAAa,GAAG,CAC3B,WAAmB,EACS,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,WAAW;SACnB;KACF;IACD;QACE,QAAQ,EAAE,GAAG;KACd;CACF,CAAC;AAZW,QAAA,aAAa,iBAYxB"}
|
@@ -28,14 +28,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
28
28
|
new web3_js_1.PublicKey(owner).toBuffer(),
|
29
29
|
], new web3_js_1.PublicKey(constants_1.stakingProgramId))[0],
|
30
30
|
]))[0];
|
31
|
-
if (!stakingAccount
|
31
|
+
if (!stakingAccount)
|
32
32
|
return [];
|
33
33
|
const stakePoolAccount = yield cache.getItem(constants_1.stakingPoolKey, {
|
34
34
|
prefix: constants_1.platformId,
|
35
35
|
networkId: portfolio_core_1.NetworkId.solana,
|
36
36
|
});
|
37
37
|
if (!stakePoolAccount)
|
38
|
-
|
38
|
+
throw new Error('Stake pool not found in cache.');
|
39
39
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
40
40
|
const element = elementRegistry.addElementMultiple({
|
41
41
|
label: 'Staked',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,cAAc,GAAG,CACrB,MAAM,IAAA,0CAAiC,EACrC,UAAU,EACV,mCAAuB,EACvB;QACE,mBAAS,CAAC,sBAAsB,CAC9B;YACE,IAAI,mBAAS,CAAC,qBAAS,CAAC,CAAC,QAAQ,EAAE;YACnC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC;YACjC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;SAChC,EACD,IAAI,mBAAS,CAAC,4BAAgB,CAAC,CAChC,CAAC,CAAC,CAAC;KACL,CACF,CACF,CAAC,CAAC,CAAC,CAAC;IACL,IAAI,CAAC,cAAc
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,G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AmB;QAC5B,MAAM,EAAE,cAAc,CAAC,eAAe;QACtC,UAAU,EAAE;YACV,WAAW,EAAE,IAAI;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,gBAAgB,CAAC,cAAc;QACxC,MAAM,EAAE,cAAc,CAAC,iBAAiB;QACxC,UAAU,EAAE;YACV,WAAW,EAAE,IAAI,sBAAS,CAAC,cAAc,CAAC,mBAAmB,CAAC;iBAC3D,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU;iBAClC,YAAY,CAAC,IAAI,sBAAS,CAAC,GAAG,CAAC,CAAC;iBAChC,QAAQ,EAAE;SACd;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -33,13 +33,18 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
],
|
34
34
|
});
|
35
35
|
const amount = (0, bignumber_js_1.default)(res.data.totalAmount);
|
36
|
-
const
|
36
|
+
const isFullyClaimed = amount.isEqualTo(Number(res.data.claimedAmount));
|
37
37
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
38
38
|
statics: constants_1.airdropStatics,
|
39
39
|
items: [
|
40
40
|
{
|
41
|
-
amount:
|
42
|
-
|
41
|
+
amount: isFullyClaimed
|
42
|
+
? amount.dividedBy(Math.pow(10, constants_1.layerDecimals)).toNumber()
|
43
|
+
: amount
|
44
|
+
.minus(res.data.claimedAmount)
|
45
|
+
.dividedBy(Math.pow(10, constants_1.layerDecimals))
|
46
|
+
.toNumber(),
|
47
|
+
isClaimed: isFullyClaimed,
|
43
48
|
label: 'LAYER',
|
44
49
|
address: constants_1.layerMint,
|
45
50
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,yDAK8B;AAC9B,2CAMqB;AAGrB,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,KAAK,CACnB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,GAAG;QAC3C,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,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,sBAAS,EAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/C,MAAM,
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,yDAK8B;AAC9B,2CAMqB;AAGrB,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,KAAK,CACnB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,GAAG;QA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, 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;
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -40,20 +40,20 @@ const clients_1 = require("../../utils/clients");
|
|
40
40
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
41
41
|
const helpers_1 = require("./helpers");
|
42
42
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
-
getAirdropFinalFrontend(authority: $authority) {
|
46
|
-
authority
|
47
|
-
community_allocation
|
48
|
-
eligibility
|
49
|
-
main_allocation
|
50
|
-
og_allocation
|
51
|
-
s1_allocation
|
52
|
-
s2_allocation
|
53
|
-
total_allocation
|
54
|
-
__typename
|
55
|
-
}
|
56
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
+
getAirdropFinalFrontend(authority: $authority) {
|
46
|
+
authority
|
47
|
+
community_allocation
|
48
|
+
eligibility
|
49
|
+
main_allocation
|
50
|
+
og_allocation
|
51
|
+
s1_allocation
|
52
|
+
s2_allocation
|
53
|
+
total_allocation
|
54
|
+
__typename
|
55
|
+
}
|
56
|
+
}
|
57
57
|
`;
|
58
58
|
const networkId = portfolio_core_1.NetworkId.solana;
|
59
59
|
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -61,10 +61,24 @@ class ElementBorrowlendBuilder extends ElementBuilder_1.ElementBuilder {
|
|
61
61
|
get(networkId, platformId, tokenPrices) {
|
62
62
|
var _a;
|
63
63
|
const suppliedAssets = this.suppliedAssets
|
64
|
-
.map((
|
64
|
+
.map((sAB, i) => {
|
65
|
+
const sA = sAB.get(networkId, tokenPrices);
|
66
|
+
if (sA === null) {
|
67
|
+
this.suppliedYields.splice(i, 1);
|
68
|
+
this.suppliedLtvs.splice(i, 1);
|
69
|
+
}
|
70
|
+
return sA;
|
71
|
+
})
|
65
72
|
.filter((a) => a !== null);
|
66
73
|
const borrowedAssets = this.borrowedAssets
|
67
|
-
.map((
|
74
|
+
.map((bAB, i) => {
|
75
|
+
const bA = bAB.get(networkId, tokenPrices);
|
76
|
+
if (bA === null) {
|
77
|
+
this.borrowedYields.splice(i, 1);
|
78
|
+
this.borrowedWeights.splice(i, 1);
|
79
|
+
}
|
80
|
+
return bA;
|
81
|
+
})
|
68
82
|
.filter((a) => a !== null && a.value && a.value > 0.002);
|
69
83
|
const rewardAssets = this.rewardAssets
|
70
84
|
.map((a) => a.get(networkId, tokenPrices))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAQoC;AACpC,qDAAkD;AAQlD,2DAAwD;AACxD,+DAA4D;AAE5D,MAAa,wBAAyB,SAAQ,+BAAc;IAU1D,YAAY,MAAc;QACxB,KAAK,CAAC,MAA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C;IAC7D,CAAC;IAED,gBAAgB,CAAC,MAAe;QAC9B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,gBAAgB,CAAC,MAAe;QAC9B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,cAAc,CAAC,GAAW;QACxB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,iBAAiB,CAAC,cAAsB;QACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,cAAc;QACZ,OAAO;YACL,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YACrD,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YACrD,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YACnD,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;SACvD,CAAC,IAAI,EAAE,CAAC;IACX,CAAC;IAED,GAAG,CACD,SAAwB,EACxB,UAAkB,EAClB,WAA0B;;QAE1B,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc;aACvC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"ElementBorrowlendBuilder.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/elementbuilder/ElementBorrowlendBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAQoC;AACpC,qDAAkD;AAQlD,2DAAwD;AACxD,+DAA4D;AAE5D,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;gBAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB;YACD,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;CACF;AA1KD,4DA0KC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|