@sonarwatch/portfolio-plugins 0.11.189 → 0.11.191

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/CHANGELOG.md +1505 -1497
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/plugins/01/constants.d.ts +6 -1
  5. package/src/plugins/01/constants.js +21 -2
  6. package/src/plugins/01/constants.js.map +1 -1
  7. package/src/plugins/01/helpers.d.ts +0 -1
  8. package/src/plugins/01/helpers.js +3 -3
  9. package/src/plugins/01/helpers.js.map +1 -1
  10. package/src/plugins/aave/constants.js.map +1 -1
  11. package/src/plugins/aave/index.d.ts +2 -1
  12. package/src/plugins/aave/index.js +3 -1
  13. package/src/plugins/aave/index.js.map +1 -1
  14. package/src/plugins/aave/services.d.ts +30 -0
  15. package/src/plugins/aave/services.js +181 -0
  16. package/src/plugins/aave/services.js.map +1 -0
  17. package/src/plugins/aries/constants.d.ts +5 -2
  18. package/src/plugins/aries/constants.js +6 -3
  19. package/src/plugins/aries/constants.js.map +1 -1
  20. package/src/plugins/aries/depositsFetcher.js +102 -96
  21. package/src/plugins/aries/depositsFetcher.js.map +1 -1
  22. package/src/plugins/aries/helpers.d.ts +20 -1
  23. package/src/plugins/aries/helpers.js +94 -2
  24. package/src/plugins/aries/helpers.js.map +1 -1
  25. package/src/plugins/aries/reservesJob.js +1 -1
  26. package/src/plugins/aries/reservesJob.js.map +1 -1
  27. package/src/plugins/aries/types.d.ts +56 -33
  28. package/src/plugins/balancer/helpers/pools.js +21 -21
  29. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
  30. package/src/plugins/jupiter/pricingJob.js +20 -1
  31. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  32. package/src/plugins/kamino/airdropFetcher.js +21 -46
  33. package/src/plugins/kamino/airdropFetcher.js.map +1 -1
  34. package/src/plugins/kamino/constants.d.ts +4 -0
  35. package/src/plugins/kamino/constants.js +5 -1
  36. package/src/plugins/kamino/constants.js.map +1 -1
  37. package/src/plugins/meteora/multiTokenPools.json +9 -0
  38. package/src/plugins/saber/constants.js +1 -1
  39. package/src/plugins/saber/constants.js.map +1 -1
  40. package/src/plugins/sushiswap/helpers.js +24 -24
  41. package/src/plugins/uniswap-v2/helpers.js +22 -22
  42. package/src/utils/aptos/getTableItemsByKeys.d.ts +1 -1
  43. package/src/utils/aptos/getTableItemsByKeys.js.map +1 -1
  44. package/src/utils/misc/getLpTokenSource.js +6 -0
  45. package/src/utils/misc/getLpTokenSource.js.map +1 -1
  46. package/src/utils/misc/getLpUnderlyingTokenSource.js +5 -4
  47. package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
  48. package/src/utils/sei/constants.js +8 -8
  49. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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;
@@ -1,2 +1,2 @@
1
1
  import { AptosClient } from '../clients/types';
2
- export declare function getTableItemsByKeys<T>(client: AptosClient, handle: string, keys: string[], keyType: string, valueType: string): Promise<(Awaited<NonNullable<Awaited<T>>> | null)[]>;
2
+ export declare function getTableItemsByKeys<T>(client: AptosClient, handle: string, keys: (object | string)[], keyType: string, valueType: string): Promise<(Awaited<NonNullable<Awaited<T>>> | null)[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"getTableItemsByKeys.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItemsByKeys.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAA8C;AAE9C,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,SAAsB,mBAAmB,CACvC,MAAmB,EACnB,MAAc,EACd,IAAc,EACd,OAAe,EACf,SAAiB;;QAEjB,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;QAC9B,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChC,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACnD,MAAM,SAAS,GAAG,MAAM,oBAAoB,CAC1C,MAAM,EACN,MAAM,EACN,eAAe,EACf,OAAO,EACP,SAAS,CACV,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AArBD,kDAqBC;AAED,SAAe,oBAAoB,CACjC,MAAmB,EACnB,MAAc,EACd,IAAc,EACd,OAAe,EACf,SAAiB;;QAEjB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAChC,IAAA,2BAAY,EAAI,MAAM,EAAE,MAAM,EAAE;YAC9B,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,UAAU,EAAE,SAAS;SACtB,CAAC,CACH,CAAC;QACF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA"}
1
+ {"version":3,"file":"getTableItemsByKeys.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItemsByKeys.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAA8C;AAE9C,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,SAAsB,mBAAmB,CACvC,MAAmB,EACnB,MAAc,EACd,IAAyB,EACzB,OAAe,EACf,SAAiB;;QAEjB,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;QAC9B,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChC,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACnD,MAAM,SAAS,GAAG,MAAM,oBAAoB,CAC1C,MAAM,EACN,MAAM,EACN,eAAe,EACf,OAAO,EACP,SAAS,CACV,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AArBD,kDAqBC;AAED,SAAe,oBAAoB,CACjC,MAAmB,EACnB,MAAc,EACd,IAAyB,EACzB,OAAe,EACf,SAAiB;;QAEjB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAChC,IAAA,2BAAY,EAAI,MAAM,EAAE,MAAM,EAAE;YAC9B,GAAG;YACH,QAAQ,EAAE,OAAO;YACjB,UAAU,EAAE,SAAS;SACtB,CAAC,CACH,CAAC;QACF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA"}
@@ -6,6 +6,12 @@ const getLpUnderlyingTokenSource_1 = require("./getLpUnderlyingTokenSource");
6
6
  function getLpTokenSource(params) {
7
7
  const { poolUnderlyings, liquidityName, elementName, lpDetails, platformId, sourceId, networkId, priceUnderlyings, } = params;
8
8
  const sources = [];
9
+ // Verify underlyings weights
10
+ const totalWeight = poolUnderlyings.reduce((partialSum, p) => partialSum + p.weight, 0);
11
+ if (totalWeight > 1.01)
12
+ throw new Error(`Weights are greater than 1: ${totalWeight}`);
13
+ if (totalWeight < 0.99)
14
+ throw new Error(`Weights are smaller than 1: ${totalWeight}`);
9
15
  // Price underlyings
10
16
  if (priceUnderlyings) {
11
17
  const uSources = (0, getLpUnderlyingTokenSource_1.getLpUnderlyingTokenSource)({
@@ -1 +1 @@
1
- {"version":3,"file":"getLpTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpTokenSource.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AACpC,6EAGsC;AAmBtC,SAAgB,gBAAgB,CAC9B,MAA8B;IAE9B,MAAM,EACJ,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,oBAAoB;IACpB,IAAI,gBAAgB,EAAE,CAAC;QACrB,MAAM,QAAQ,GAAG,IAAA,uDAA0B,EAAC;YAC1C,SAAS;YACT,QAAQ,EAAE,SAAS,CAAC,OAAO;YAC3B,eAAe;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;QAAE,OAAO,OAAO,CAAC;IAC/D,WAAW;IACX,MAAM,KAAK,GACT,eAAe,CAAC,MAAM;IACpB,oEAAoE;IACpE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,UAAW,CAAC,KAAK,EACvD,CAAC,CACF,GAAG,SAAS,CAAC,MAAM,CAAC;IACvB,MAAM,QAAQ,GAAqB;QACjC,SAAS;QACT,UAAU;QACV,EAAE,EAAE,QAAQ;QACZ,WAAW;QACX,aAAa;QACb,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,IAAA,mCAAkB,EAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;QACzD,KAAK;QACL,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,WAAW,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvC,SAAS;YACT,OAAO,EAAE,IAAA,mCAAkB,EAAC,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC;YACjD,oEAAoE;YACpE,KAAK,EAAE,CAAC,CAAC,UAAW,CAAC,KAAK;YAC1B,WAAW,EAAE,CAAC,CAAC,aAAa,GAAG,SAAS,CAAC,MAAM;YAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ;SACrB,CAAC,CAAC;QACH,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAvDD,4CAuDC"}
1
+ {"version":3,"file":"getLpTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpTokenSource.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AACpC,6EAGsC;AAmBtC,SAAgB,gBAAgB,CAC9B,MAA8B;IAE9B,MAAM,EACJ,eAAe,EACf,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,GAAG,MAAM,CAAC;IACX,MAAM,OAAO,GAAuB,EAAE,CAAC;IAEvC,6BAA6B;IAC7B,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CACxC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM,EACxC,CAAC,CACF,CAAC;IACF,IAAI,WAAW,GAAG,IAAI;QACpB,MAAM,IAAI,KAAK,CAAC,+BAA+B,WAA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;YAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ;SACrB,CAAC,CAAC;QACH,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAjED,4CAiEC"}
@@ -56,11 +56,12 @@ function getLpUnderlyingTokenSource(params) {
56
56
  return [];
57
57
  if (!minReserveValue)
58
58
  minReserveValue = 2500;
59
+ // Verify underlyings weights
59
60
  const totalWeight = poolUnderlyings.reduce((partialSum, p) => partialSum + p.weight, 0);
60
- if (totalWeight > 1.02)
61
- throw new Error('Weights greater than 1');
62
- if (totalWeight < 0.98)
63
- throw new Error('Weights are less than 1');
61
+ if (totalWeight > 1.01)
62
+ throw new Error(`Weights are greater than 1: ${totalWeight}`);
63
+ if (totalWeight < 0.99)
64
+ throw new Error(`Weights are smaller than 1: ${totalWeight}`);
64
65
  let knownUnderlaying;
65
66
  const fAddresses = poolUnderlyings.map((u) => (0, portfolio_core_1.formatTokenAddress)(u.address, networkId));
66
67
  let knownReserveValue;
@@ -1 +1 @@
1
- {"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OA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C,GAAG,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,uBAAuB,KAAK,UAAU,CAAC,CAAC,CAAC;YAAE,SAAS;QACxD,IAAI,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAAE,SAAS;QACpD,IACE,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,kCAAiB,CAAC;YAE5D,SAAS;QAEX,MAAM,KAAK,GACT,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC;YAC1D,CAAC,CAAC,aAAa,CAAC;QAElB,MAAM,MAAM,GAAqB;YAC/B,EAAE,EAAE,QAAQ;YACZ,SAAS;YACT,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,KAAK;YACL,MAAM,EAAE,IAAA,yBAAe,EAAC,iBAAiB,CAAC;YAC1C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AA3ED,gEA2EC"}
1
+ {"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;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AAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AA9ED,gEA8EC"}
@@ -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;