@sonarwatch/portfolio-plugins 0.11.192 → 0.11.193

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/CHANGELOG.md +1513 -1509
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +5 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/aftermath/constants.d.ts +2 -0
  7. package/src/plugins/aftermath/constants.js +3 -1
  8. package/src/plugins/aftermath/constants.js.map +1 -1
  9. package/src/plugins/aftermath/index.js +2 -1
  10. package/src/plugins/aftermath/index.js.map +1 -1
  11. package/src/plugins/aftermath/stakingFetcher.d.ts +3 -0
  12. package/src/plugins/aftermath/stakingFetcher.js +102 -0
  13. package/src/plugins/aftermath/stakingFetcher.js.map +1 -0
  14. package/src/plugins/aftermath/types.d.ts +17 -0
  15. package/src/plugins/balancer/helpers/pools.js +21 -21
  16. package/src/plugins/drift/airdropFetcher.d.ts +3 -0
  17. package/src/plugins/drift/airdropFetcher.js +79 -0
  18. package/src/plugins/drift/airdropFetcher.js.map +1 -0
  19. package/src/plugins/drift/constants.d.ts +2 -0
  20. package/src/plugins/drift/constants.js +3 -1
  21. package/src/plugins/drift/constants.js.map +1 -1
  22. package/src/plugins/drift/index.js +2 -1
  23. package/src/plugins/drift/index.js.map +1 -1
  24. package/src/plugins/drift/types.d.ts +12 -0
  25. package/src/plugins/jito/airdropFetcher.js +1 -2
  26. package/src/plugins/jito/airdropFetcher.js.map +1 -1
  27. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -1
  28. package/src/plugins/kamino/airdropFetcher.js +1 -1
  29. package/src/plugins/parcl/airdropFetcher.js +1 -2
  30. package/src/plugins/parcl/airdropFetcher.js.map +1 -1
  31. package/src/plugins/sandglass/constants.d.ts +6 -0
  32. package/src/plugins/sandglass/constants.js +16 -0
  33. package/src/plugins/sandglass/constants.js.map +1 -0
  34. package/src/plugins/sandglass/depositFetcher.d.ts +3 -0
  35. package/src/plugins/sandglass/depositFetcher.js +82 -0
  36. package/src/plugins/sandglass/depositFetcher.js.map +1 -0
  37. package/src/plugins/sandglass/filters.d.ts +3 -0
  38. package/src/plugins/sandglass/filters.js +21 -0
  39. package/src/plugins/sandglass/filters.js.map +1 -0
  40. package/src/plugins/sandglass/index.d.ts +6 -0
  41. package/src/plugins/sandglass/index.js +13 -0
  42. package/src/plugins/sandglass/index.js.map +1 -0
  43. package/src/plugins/sandglass/marketsJob.d.ts +3 -0
  44. package/src/plugins/sandglass/marketsJob.js +96 -0
  45. package/src/plugins/sandglass/marketsJob.js.map +1 -0
  46. package/src/plugins/sandglass/structs.d.ts +150 -0
  47. package/src/plugins/sandglass/structs.js +144 -0
  48. package/src/plugins/sandglass/structs.js.map +1 -0
  49. package/src/plugins/sandglass/types.d.ts +7 -0
  50. package/src/plugins/sandglass/types.js +3 -0
  51. package/src/plugins/sandglass/types.js.map +1 -0
  52. package/src/plugins/sushiswap/helpers.js +24 -24
  53. package/src/plugins/tensor/airdropPowerUsersFetcher.d.ts +3 -0
  54. package/src/plugins/tensor/airdropPowerUsersFetcher.js +45 -0
  55. package/src/plugins/tensor/airdropPowerUsersFetcher.js.map +1 -0
  56. package/src/plugins/tensor/constants.d.ts +2 -0
  57. package/src/plugins/tensor/constants.js +3 -1
  58. package/src/plugins/tensor/constants.js.map +1 -1
  59. package/src/plugins/tensor/helpers.d.ts +1 -0
  60. package/src/plugins/tensor/helpers.js +16 -0
  61. package/src/plugins/tensor/helpers.js.map +1 -0
  62. package/src/plugins/tensor/index.js +6 -1
  63. package/src/plugins/tensor/index.js.map +1 -1
  64. package/src/plugins/tensor/powerUsers.json +2898 -0
  65. package/src/plugins/uniswap-v2/helpers.js +22 -22
  66. package/src/plugins/wormhole/airdropFetcher.js +1 -2
  67. package/src/plugins/wormhole/airdropFetcher.js.map +1 -1
  68. package/src/utils/sei/constants.js +8 -8
  69. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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;
@@ -31,10 +31,9 @@ function getPositionsV2Fetcher(networkId) {
31
31
  return [
32
32
  {
33
33
  type: portfolio_core_1.PortfolioElementType.multiple,
34
- label: 'Rewards',
34
+ label: 'Airdrop',
35
35
  networkId: portfolio_core_1.NetworkId.solana,
36
36
  platformId: constants_1.platformId,
37
- name: 'Airdrop',
38
37
  data: {
39
38
  assets: [Object.assign(Object.assign({}, asset), { attributes: { isClaimable: true } })],
40
39
  },
@@ -1 +1 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAgD;AAChD,iDAAsD;AACtD,uCAA4D;AAC5D,qGAA6E;AAE7E,SAAwB,qBAAqB,CAC3C,SAAwB;IAExB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzD,IAAI,UAAU,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC;QAErE,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iBAAK,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iBAAK,EACL,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;gBACnC,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE;oBACJ,MAAM,EAAE,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IAAG;iBAC1D;gBACD,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,UAAU;QAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;AACJ,CAAC;AAxCD,wCAwCC"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAgD;AAChD,iDAAsD;AACtD,uCAA4D;AAC5D,qGAA6E;AAE7E,SAAwB,qBAAqB,CAC3C,SAAwB;IAExB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzD,IAAI,UAAU,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC;QAErE,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iBAAK,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iBAAK,EACL,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;gBACnC,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE;oBACJ,MAAM,EAAE,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IAAG;iBAC1D;gBACD,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,UAAU;QAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;AACJ,CAAC;AAvCD,wCAuCC"}
@@ -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;