@sonarwatch/portfolio-plugins 0.14.38 → 0.14.40
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1752 -1744
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bonkrewards/positionFetcher.js +0 -2
- package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.js +37 -44
- package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/meteora/struct.d.ts +3 -3
- package/src/plugins/meteora/struct.js +3 -3
- package/src/plugins/meteora/struct.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js +4 -4
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js.map +1 -1
- package/src/plugins/pyth/pricingJob.js +12 -1
- package/src/plugins/pyth/pricingJob.js.map +1 -1
- package/src/plugins/scallop/obligationsFetcher.js +1 -0
- package/src/plugins/scallop/obligationsFetcher.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/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
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;
|
@@ -32,8 +32,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
32
|
1000;
|
33
33
|
if (account.depositAmount.isZero())
|
34
34
|
continue;
|
35
|
-
if (account.effectiveStake.isZero())
|
36
|
-
continue;
|
37
35
|
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.bonkMint, account.depositAmount.dividedBy(Math.pow(10, constants_1.bonkDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, bonkTokenPrice)), { attributes: {
|
38
36
|
lockedUntil,
|
39
37
|
} }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA2E;AAE3E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,WAAW,GACf,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE;YAClC,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,CAAC;QACP,IAAI,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;
|
1
|
+
{"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bonkrewards/positionFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA2E;AAE3E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;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,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -21,9 +21,10 @@ const constants_1 = require("./constants");
|
|
21
21
|
const solana_1 = require("../../utils/solana");
|
22
22
|
const struct_1 = require("./struct");
|
23
23
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
-
const slotTtl = 30000;
|
25
|
-
|
26
|
-
|
24
|
+
// const slotTtl = 30000;
|
25
|
+
// const slot: number | null = null;
|
26
|
+
// const slotUpdate = 0;
|
27
|
+
const dustFilter = 0.00001;
|
27
28
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
29
|
const client = (0, clients_1.getClientSolana)();
|
29
30
|
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.escrowStruct, constants_1.dlmmVaultProgramId, [
|
@@ -34,18 +35,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
34
35
|
bytes: owner,
|
35
36
|
},
|
36
37
|
},
|
37
|
-
// {
|
38
|
-
// memcmp: {
|
39
|
-
// offset: 8,
|
40
|
-
// bytes: 'CGZvC5MWsu1bc3vRis619ZBEtvuPqoXrtBMeV9RrKFJp',
|
41
|
-
// },
|
42
|
-
// },
|
43
|
-
// {
|
44
|
-
// memcmp: {
|
45
|
-
// offset: 96,
|
46
|
-
// bytes: '1', // refunded === false
|
47
|
-
// },
|
48
|
-
// },
|
49
38
|
]);
|
50
39
|
if (accounts.length === 0)
|
51
40
|
return [];
|
@@ -55,12 +44,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
55
44
|
});
|
56
45
|
if (!vaults)
|
57
46
|
return [];
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
47
|
+
const time = Date.now();
|
48
|
+
// Looks like Meteora is using timesteamp instead of slot now inside their accounts
|
49
|
+
// if (!slot || Date.now() - slotTtl > slotUpdate) {
|
50
|
+
// slot = await client.getSlot();
|
51
|
+
// slotUpdate = Date.now();
|
52
|
+
// }
|
53
|
+
// if (!slot) return [];
|
64
54
|
const tokenPrices = yield cache.getTokenPricesAsMap(accounts
|
65
55
|
.map((a) => {
|
66
56
|
const v = vaults[a.dlmmVault.toString()];
|
@@ -69,13 +59,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
69
59
|
.flat(), portfolio_core_1.NetworkId.solana);
|
70
60
|
const assets = [];
|
71
61
|
accounts.forEach((escrow) => {
|
72
|
-
if (!slot)
|
73
|
-
return;
|
74
62
|
const vault = vaults[escrow.dlmmVault.toString()];
|
75
|
-
if (!vault)
|
63
|
+
if (!vault || !vault.endVestingTs || !vault.startVestingTs)
|
64
|
+
return;
|
65
|
+
if (time > Number(vault.endVestingTs))
|
76
66
|
return;
|
77
67
|
// Vesting not started yet
|
78
|
-
if (
|
68
|
+
if (Date.now() < Number(vault.startVestingTs)) {
|
79
69
|
const tpQuote = tokenPrices.get(vault.quoteMint);
|
80
70
|
if (!tpQuote)
|
81
71
|
return;
|
@@ -95,11 +85,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
95
85
|
return;
|
96
86
|
const amount = new bignumber_js_1.default(escrow.totalDeposit)
|
97
87
|
.div(Math.pow(10, tpQuote.decimals))
|
98
|
-
.times(1 - 1 / filledRatio)
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
88
|
+
.times(1 - 1 / filledRatio);
|
89
|
+
if (amount.isGreaterThan(dustFilter))
|
90
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, amount.toNumber(), portfolio_core_1.NetworkId.solana, tpQuote, undefined, {
|
91
|
+
isClaimable: true,
|
92
|
+
}));
|
103
93
|
}
|
104
94
|
const tpBase = tokenPrices.get(vault.baseMint);
|
105
95
|
if (!tpBase)
|
@@ -107,26 +97,29 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
107
97
|
const shares = new bignumber_js_1.default(escrow.totalDeposit).div(vault.totalDeposit);
|
108
98
|
const totalAmount = new bignumber_js_1.default(vault.boughtToken).times(shares);
|
109
99
|
const remainingAmount = totalAmount.minus(escrow.claimedToken);
|
110
|
-
if (remainingAmount.
|
100
|
+
if (remainingAmount.isLessThan(dustFilter))
|
111
101
|
return;
|
112
102
|
let claimableAmount = new bignumber_js_1.default(remainingAmount.toString());
|
113
|
-
if (
|
114
|
-
const
|
115
|
-
let
|
116
|
-
? Number(vault.
|
117
|
-
: escrow.
|
118
|
-
if (
|
119
|
-
|
120
|
-
claimableAmount =
|
103
|
+
if (time < Number(vault.endVestingTs)) {
|
104
|
+
const amountPerSec = new bignumber_js_1.default(totalAmount).div(Number(vault.endVestingTs) - Number(vault.startVestingTs));
|
105
|
+
let lastClaimedTs = escrow.lastClaimedTs.isZero()
|
106
|
+
? Number(vault.startVestingTs)
|
107
|
+
: escrow.lastClaimedTs.toNumber();
|
108
|
+
if (lastClaimedTs > time)
|
109
|
+
lastClaimedTs = time;
|
110
|
+
claimableAmount = amountPerSec.times(Math.min(time, Number(vault.endVestingTs)) - lastClaimedTs);
|
121
111
|
}
|
122
|
-
|
123
|
-
|
112
|
+
claimableAmount = claimableAmount.div(Math.pow(10, tpBase.decimals));
|
113
|
+
if (claimableAmount.isGreaterThan(dustFilter)) {
|
114
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, claimableAmount.toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
124
115
|
isClaimable: true,
|
125
116
|
}));
|
126
117
|
}
|
127
|
-
const vestingAmount = remainingAmount
|
128
|
-
|
129
|
-
|
118
|
+
const vestingAmount = remainingAmount
|
119
|
+
.minus(claimableAmount)
|
120
|
+
.div(Math.pow(10, tpBase.decimals));
|
121
|
+
if (vestingAmount.isGreaterThan(dustFilter)) {
|
122
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, vestingAmount.toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
130
123
|
tags: ['Vesting'],
|
131
124
|
}));
|
132
125
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,yBAAyB;AACzB,oCAAoC;AACpC,wBAAwB;AAExB,MAAM,UAAU,GAAG,OAAO,CAAC;AAE3B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,qBAAY,EACZ,8BAAkB,EAClB;QACE,EAAE,QAAQ,EAAE,qBAAY,CAAC,QAAQ,EAAE;QACnC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;QAClE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAA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259
|
totalDeposit: BigNumber;
|
260
260
|
claimedToken: BigNumber;
|
261
|
-
|
261
|
+
lastClaimedTs: BigNumber;
|
262
262
|
refunded: number;
|
263
263
|
padding1: number[];
|
264
264
|
padding: BigNumber[];
|
@@ -280,8 +280,8 @@ export type DlmmVault = {
|
|
280
280
|
boughtToken: string;
|
281
281
|
totalRefund: string;
|
282
282
|
totalClaimedToken: string;
|
283
|
-
|
284
|
-
|
283
|
+
startVestingTs: string;
|
284
|
+
endVestingTs: string;
|
285
285
|
bump: number;
|
286
286
|
padding0: number[];
|
287
287
|
padding: Buffer;
|
@@ -256,7 +256,7 @@ exports.escrowStruct = new beet_1.BeetStruct([
|
|
256
256
|
['owner', beet_solana_1.publicKey],
|
257
257
|
['totalDeposit', solana_1.u64],
|
258
258
|
['claimedToken', solana_1.u64],
|
259
|
-
['
|
259
|
+
['lastClaimedTs', solana_1.u64],
|
260
260
|
['refunded', beet_1.u8],
|
261
261
|
['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
262
262
|
['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 2)],
|
@@ -277,8 +277,8 @@ exports.dlmmVaultStruct = new beet_1.BeetStruct([
|
|
277
277
|
['boughtToken', solana_1.u64Str],
|
278
278
|
['totalRefund', solana_1.u64Str],
|
279
279
|
['totalClaimedToken', solana_1.u64Str],
|
280
|
-
['
|
281
|
-
['
|
280
|
+
['startVestingTs', solana_1.u64Str],
|
281
|
+
['endVestingTs', solana_1.u64Str],
|
282
282
|
['bump', beet_1.u8],
|
283
283
|
['padding0', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
284
284
|
['padding', (0, solana_1.blob)(160)],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB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B,CAAC"}
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,wBAAgB,CAAC;IAC3B,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,YAAY,EAAE,IAAA,4BAAqB,EAAC,uBAAS,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,uBAAuB,EAAE,iCAAyB,CAAC;CACrD,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAOW,QAAA,aAAa,GAAG,IAA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IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
@@ -30,10 +30,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
30
|
voter: r.vote_identity,
|
31
31
|
name: r.name,
|
32
32
|
imageUri: r.image,
|
33
|
-
baseApy: r.apy_estimate,
|
34
|
-
jitoApy: r.jito_apy,
|
35
|
-
stakingApy: r.staking_apy,
|
36
|
-
totalApy: r.total_apy,
|
33
|
+
baseApy: r.apy_estimate / 100,
|
34
|
+
jitoApy: r.jito_apy / 100,
|
35
|
+
stakingApy: r.staking_apy / 100,
|
36
|
+
totalApy: r.total_apy / 100,
|
37
37
|
stakeCommission: r.commission / 100,
|
38
38
|
mevCommission: r.jito_commission_bps / 10000,
|
39
39
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,aAAa;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,KAAK;QACjB,OAAO,EAAE,CAAC,CAAC,YAAY;
|
1
|
+
{"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,aAAa;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,KAAK;QACjB,OAAO,EAAE,CAAC,CAAC,YAAY,GAAG,GAAG;QAC7B,OAAO,EAAE,CAAC,CAAC,QAAQ,GAAG,GAAG;QACzB,UAAU,EAAE,CAAC,CAAC,WAAW,GAAG,GAAG;QAC/B,QAAQ,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;QAC3B,eAAe,EAAE,CAAC,CAAC,UAAU,GAAG,GAAG;QACnC,aAAa,EAAE,CAAC,CAAC,mBAAmB,GAAG,KAAK;KAC7C,CAAC,CAAC,CAAC;IAEJ,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,oBAAoB;IACrC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -114,6 +114,17 @@ const feedsToFetch = [
|
|
114
114
|
},
|
115
115
|
],
|
116
116
|
},
|
117
|
+
// USDS
|
118
|
+
{
|
119
|
+
address: new web3_js_1.PublicKey('95CJ8Jd54H97mBPuZnRWajUsaZnP2VFV522WYxJ5ppsz'),
|
120
|
+
tokens: [
|
121
|
+
{
|
122
|
+
decimals: 6,
|
123
|
+
mint: 'USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA',
|
124
|
+
networkdId: portfolio_core_1.NetworkId.solana,
|
125
|
+
},
|
126
|
+
],
|
127
|
+
},
|
117
128
|
];
|
118
129
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
119
130
|
const connection = (0, clients_1.getClientSolana)();
|
@@ -123,7 +134,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
123
134
|
const job = {
|
124
135
|
id: `${constants_1.platformId}-pricing`,
|
125
136
|
executor,
|
126
|
-
label: '
|
137
|
+
label: 'realtime',
|
127
138
|
};
|
128
139
|
exports.default = job;
|
129
140
|
//# sourceMappingURL=pricingJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DASoC;AAGpC,2CAAyC;AACzC,iDAA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2BAAkB;gBAC5B,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IAED,OAAO;IACP;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,8CAA8C;gBACpD,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IACD,QAAQ;IACR;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,6CAA6C;gBACnD,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IACD,MAAM;IACN;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,mFAAmF;gBACzF,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,0BAAS,CAAC,KAAK;aAC5B;SACF;KACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,OAAO,GAAG,MAAM,IAAA,kCAAwB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACzE,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DASoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,6DAGyC;AACzC,yDAKmC;AACnC,+CAAw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 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
145
145
|
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(address, collaterals[coinType]
|
146
146
|
.shiftedBy(-1 * ((_b = (_a = metadata === null || metadata === void 0 ? void 0 : metadata.metadata) === null || _a === void 0 ? void 0 : _a.decimals) !== null && _b !== void 0 ? _b : 0))
|
147
147
|
.toNumber(), portfolio_core_1.NetworkId.sui, tokenPrices.get(address)));
|
148
|
+
suppliedYields.push([]);
|
148
149
|
}
|
149
150
|
for (const coinType of Object.keys(debts)) {
|
150
151
|
const metadata = ctmValues.find((value) => value.coinType === (0, utils_1.normalizeStructTag)(coinType));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAA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AI,CAC7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAA,0BAAkB,EAAC,QAAQ,CAAC,CAC3D,CAAC;YACF,MAAM,OAAO,GAAG,IAAA,uCAAsB,EAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;YACxD,cAAc,CAAC,IAAI,CACjB,IAAA,gCAAsB,EACpB,OAAO,EACP,WAAW,CAAC,QAAQ,CAAC;iBAClB,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,0CAAE,QAAQ,mCAAI,CAAC,CAAC,CAAC;iBACnD,QAAQ,EAAE,EACb,0BAAS,CAAC,GAAG,EACb,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CACzB,CACF,CAAC;
|
1
|
+
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAA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AAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,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;
|
@@ -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;
|
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
42
42
|
const clients_1 = require("../../utils/clients");
|
43
43
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
44
44
|
const helpers_1 = require("./helpers");
|
45
|
-
const query = (0, graphql_request_1.gql) `
|
46
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
-
getAirdropFinalFrontend(authority: $authority) {
|
48
|
-
authority
|
49
|
-
community_allocation
|
50
|
-
eligibility
|
51
|
-
main_allocation
|
52
|
-
og_allocation
|
53
|
-
s1_allocation
|
54
|
-
s2_allocation
|
55
|
-
total_allocation
|
56
|
-
__typename
|
57
|
-
}
|
58
|
-
}
|
45
|
+
const query = (0, graphql_request_1.gql) `
|
46
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
+
getAirdropFinalFrontend(authority: $authority) {
|
48
|
+
authority
|
49
|
+
community_allocation
|
50
|
+
eligibility
|
51
|
+
main_allocation
|
52
|
+
og_allocation
|
53
|
+
s1_allocation
|
54
|
+
s2_allocation
|
55
|
+
total_allocation
|
56
|
+
__typename
|
57
|
+
}
|
58
|
+
}
|
59
59
|
`;
|
60
60
|
const networkId = portfolio_core_1.NetworkId.solana;
|
61
61
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -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
|