@sonarwatch/portfolio-plugins 0.12.9 → 0.12.10

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.9",
3
+ "version": "0.12.10",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -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;
@@ -16,6 +16,7 @@ exports.poolsPkeys = [
16
16
  new web3_js_1.PublicKey('HfF7GCcEc76xubFCHLLXRdYcgRzwjEPdfKWqzRS8Ncog'),
17
17
  new web3_js_1.PublicKey('KwhpybQPe9xuZFmAfcjLHj3ukownWex1ratyascAC1X'),
18
18
  new web3_js_1.PublicKey('D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH'),
19
+ new web3_js_1.PublicKey('6HukhSeVVLQekKaGJYkwztBacjhKLKywVPrmcvccaYMz'),
19
20
  ];
20
21
  exports.marketsKey = 'markets';
21
22
  exports.poolsKey = 'pools';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAG,OAAO,CAAC"}
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
13
  const clients_1 = require("../../utils/clients");
14
- const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
15
14
  const constants_1 = require("./constants");
16
15
  const structs_1 = require("./structs");
17
16
  const fetchTokenSupplyAndDecimals_1 = require("../../utils/solana/fetchTokenSupplyAndDecimals");
@@ -20,14 +19,7 @@ const constants_2 = require("../tokens/constants");
20
19
  const constants_3 = require("../jupiter/exchange/constants");
21
20
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
22
21
  const client = (0, clients_1.getClientSolana)();
23
- const pools = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, constants_1.poolsPkeys);
24
- if (!pools[0] || !pools[1] || !pools[2])
25
- return;
26
- const poolsAccounts = [
27
- structs_1.pool1Struct.deserialize(pools[0].data)[0],
28
- structs_1.pool2Struct.deserialize(pools[1].data)[0],
29
- structs_1.pool3Struct.deserialize(pools[2].data)[0],
30
- ];
22
+ const poolsAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.flpStruct, constants_1.poolsPkeys);
31
23
  const custodiesInfo = yield cache.getItem(constants_3.custodiesKey, {
32
24
  prefix: constants_1.platformId,
33
25
  networkId: portfolio_core_1.NetworkId.solana,
@@ -39,6 +31,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
39
31
  const poolsInfo = [];
40
32
  for (let i = 0; i < poolsAccounts.length; i++) {
41
33
  const pool = poolsAccounts[i];
34
+ if (!pool)
35
+ continue;
42
36
  const { custodies } = pool;
43
37
  let rewardPerLp;
44
38
  custodies.forEach((custodyPkey) => {
@@ -1 +1 @@
1
- {"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,gGAA6F;AAC7F,2CAA+D;AAC/D,uCAAkE;AAClE,gGAA6F;AAC7F,+CAAqE;AACrE,mDAA2D;AAE3D,6DAA6D;AAE7D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,yDAA2B,EAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEpE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO;IAEhD,MAAM,aAAa,GAAG;QACpB,qBAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzC,qBAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzC,qBAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC1C,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,OAAO,CAAgB,wBAAY,EAAE;QACrE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,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Struct } from '@metaplex-foundation/beet';
2
+ import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import BigNumber from 'bignumber.js';
5
5
  import { OracleType, Side } from '../jupiter/exchange/structs';
@@ -211,9 +211,8 @@ export type TokenRatios = {
211
211
  max: BigNumber;
212
212
  };
213
213
  export declare const tokenRatiosStruct: BeetStruct<TokenRatios, Partial<TokenRatios>>;
214
- export type Pool = {
214
+ export type PoolBis = {
215
215
  buffer: Buffer;
216
- nameLength: number;
217
216
  name: number[];
218
217
  permissions: Permissions;
219
218
  inceptionTime: BigNumber;
@@ -221,11 +220,8 @@ export type Pool = {
221
220
  oracleAuthority: PublicKey;
222
221
  flpTokenAccount: PublicKey;
223
222
  rewardCustody: PublicKey;
224
- custodiesLength: number;
225
223
  custodies: PublicKey[];
226
- ratiosLength: number;
227
224
  ratios: TokenRatios[];
228
- marketsLength: number;
229
225
  markets: PublicKey[];
230
226
  maxAumUsd: BigNumber;
231
227
  aumUsd: BigNumber;
@@ -236,6 +232,4 @@ export type Pool = {
236
232
  flpTokenAccountBump: number;
237
233
  vpVolumeFactor: number;
238
234
  };
239
- export declare const pool1Struct: BeetStruct<Pool, Partial<Pool>>;
240
- export declare const pool2Struct: BeetStruct<Pool, Partial<Pool>>;
241
- export declare const pool3Struct: BeetStruct<Pool, Partial<Pool>>;
235
+ export declare const flpStruct: FixableBeetStruct<PoolBis, Partial<PoolBis>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pool3Struct = exports.pool2Struct = exports.pool1Struct = exports.tokenRatiosStruct = exports.positionStruct = exports.marketStruct = exports.positionStatsStruct = exports.oraclePriceStruct = exports.marketPermissionsStruct = exports.flpStakeStruct = exports.stakeStatsStruct = exports.custodyStruct = exports.permissionsStruct = exports.feesStatsStruct = exports.borrowRateStateStruct = exports.assetsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.ratioFeesStruct = exports.FeesMode = exports.pricingParamsStruct = exports.oracleParamsStruct = void 0;
3
+ exports.flpStruct = exports.tokenRatiosStruct = exports.positionStruct = exports.marketStruct = exports.positionStatsStruct = exports.oraclePriceStruct = exports.marketPermissionsStruct = exports.flpStakeStruct = exports.stakeStatsStruct = exports.custodyStruct = exports.permissionsStruct = exports.feesStatsStruct = exports.borrowRateStateStruct = exports.assetsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.ratioFeesStruct = exports.FeesMode = exports.pricingParamsStruct = exports.oracleParamsStruct = void 0;
4
4
  const beet_1 = require("@metaplex-foundation/beet");
5
5
  const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
6
  const solana_1 = require("../../utils/solana");
@@ -195,72 +195,18 @@ exports.tokenRatiosStruct = new beet_1.BeetStruct([
195
195
  ['min', solana_1.u64],
196
196
  ['max', solana_1.u64],
197
197
  ], (args) => args);
198
- exports.pool1Struct = new beet_1.BeetStruct([
198
+ exports.flpStruct = new beet_1.FixableBeetStruct([
199
199
  ['buffer', (0, solana_1.blob)(8)],
200
- ['nameLength', beet_1.u32],
201
- ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
200
+ ['name', (0, beet_1.array)(beet_1.u8)],
202
201
  ['permissions', exports.permissionsStruct],
203
202
  ['inceptionTime', solana_1.i64],
204
203
  ['flpMint', beet_solana_1.publicKey],
205
204
  ['oracleAuthority', beet_solana_1.publicKey],
206
205
  ['flpTokenAccount', beet_solana_1.publicKey],
207
206
  ['rewardCustody', beet_solana_1.publicKey],
208
- ['custodiesLength', beet_1.u32],
209
- ['custodies', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 4)],
210
- ['ratiosLength', beet_1.u32],
211
- ['ratios', (0, beet_1.uniformFixedSizeArray)(exports.tokenRatiosStruct, 4)],
212
- ['marketsLength', beet_1.u32],
213
- ['markets', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 6)],
214
- ['maxAumUsd', solana_1.u128],
215
- ['aumUsd', solana_1.u128],
216
- ['totalStaked', exports.stakeStatsStruct],
217
- ['stakingFeeShareBps', solana_1.u64],
218
- ['bump', beet_1.u8],
219
- ['flpMintBump', beet_1.u8],
220
- ['flpTokenAccountBump', beet_1.u8],
221
- ['vpVolumeFactor', beet_1.u8],
222
- ], (args) => args);
223
- exports.pool2Struct = new beet_1.BeetStruct([
224
- ['buffer', (0, solana_1.blob)(8)],
225
- ['nameLength', beet_1.u32],
226
- ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 9)],
227
- ['permissions', exports.permissionsStruct],
228
- ['inceptionTime', solana_1.i64],
229
- ['flpMint', beet_solana_1.publicKey],
230
- ['oracleAuthority', beet_solana_1.publicKey],
231
- ['flpTokenAccount', beet_solana_1.publicKey],
232
- ['rewardCustody', beet_solana_1.publicKey],
233
- ['custodiesLength', beet_1.u32],
234
- ['custodies', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 6)],
235
- ['ratiosLength', beet_1.u32],
236
- ['ratios', (0, beet_1.uniformFixedSizeArray)(exports.tokenRatiosStruct, 6)],
237
- ['marketsLength', beet_1.u32],
238
- ['markets', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 10)],
239
- ['maxAumUsd', solana_1.u128],
240
- ['aumUsd', solana_1.u128],
241
- ['totalStaked', exports.stakeStatsStruct],
242
- ['stakingFeeShareBps', solana_1.u64],
243
- ['bump', beet_1.u8],
244
- ['flpMintBump', beet_1.u8],
245
- ['flpTokenAccountBump', beet_1.u8],
246
- ['vpVolumeFactor', beet_1.u8],
247
- ], (args) => args);
248
- exports.pool3Struct = new beet_1.BeetStruct([
249
- ['buffer', (0, solana_1.blob)(8)],
250
- ['nameLength', beet_1.u32],
251
- ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 12)],
252
- ['permissions', exports.permissionsStruct],
253
- ['inceptionTime', solana_1.i64],
254
- ['flpMint', beet_solana_1.publicKey],
255
- ['oracleAuthority', beet_solana_1.publicKey],
256
- ['flpTokenAccount', beet_solana_1.publicKey],
257
- ['rewardCustody', beet_solana_1.publicKey],
258
- ['custodiesLength', beet_1.u32],
259
- ['custodies', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 5)],
260
- ['ratiosLength', beet_1.u32],
261
- ['ratios', (0, beet_1.uniformFixedSizeArray)(exports.tokenRatiosStruct, 5)],
262
- ['marketsLength', beet_1.u32],
263
- ['markets', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 8)],
207
+ ['custodies', (0, beet_1.array)(beet_solana_1.publicKey)],
208
+ ['ratios', (0, beet_1.array)(exports.tokenRatiosStruct)],
209
+ ['markets', (0, beet_1.array)(beet_solana_1.publicKey)],
264
210
  ['maxAumUsd', solana_1.u128],
265
211
  ['aumUsd', solana_1.u128],
266
212
  ['totalStaked', exports.stakeStatsStruct],
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AAGnC,kEAA6D;AAC7D,+CAA0D;AAY7C,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,qBAAqB,EAAE,uBAAS,CAAC;IAClC,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,oBAAoB,EAAE,YAAG,CAA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
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;
@@ -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
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getQueryBalanceByOwner(owner) {
4
- return JSON.parse(`{
5
- "balance": {
6
- "address": "${owner}"
7
- }
4
+ return JSON.parse(`{
5
+ "balance": {
6
+ "address": "${owner}"
7
+ }
8
8
  }`);
9
9
  }
10
10
  exports.default = getQueryBalanceByOwner;