@sonarwatch/portfolio-plugins 0.11.192 → 0.11.194

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +2 -2
  3. package/src/AirdropFetcher.d.ts +11 -0
  4. package/src/AirdropFetcher.js +92 -0
  5. package/src/AirdropFetcher.js.map +1 -0
  6. package/src/index.d.ts +3 -0
  7. package/src/index.js +11 -1
  8. package/src/index.js.map +1 -1
  9. package/src/plugins/aftermath/constants.d.ts +2 -0
  10. package/src/plugins/aftermath/constants.js +3 -1
  11. package/src/plugins/aftermath/constants.js.map +1 -1
  12. package/src/plugins/aftermath/index.js +2 -1
  13. package/src/plugins/aftermath/index.js.map +1 -1
  14. package/src/plugins/aftermath/stakingFetcher.d.ts +3 -0
  15. package/src/plugins/aftermath/stakingFetcher.js +102 -0
  16. package/src/plugins/aftermath/stakingFetcher.js.map +1 -0
  17. package/src/plugins/aftermath/types.d.ts +17 -0
  18. package/src/plugins/drift/airdropFetcher.d.ts +3 -0
  19. package/src/plugins/drift/airdropFetcher.js +65 -0
  20. package/src/plugins/drift/airdropFetcher.js.map +1 -0
  21. package/src/plugins/drift/constants.d.ts +6 -0
  22. package/src/plugins/drift/constants.js +10 -4
  23. package/src/plugins/drift/constants.js.map +1 -1
  24. package/src/plugins/drift/helpersAirdrop.d.ts +3 -0
  25. package/src/plugins/drift/helpersAirdrop.js +59 -0
  26. package/src/plugins/drift/helpersAirdrop.js.map +1 -0
  27. package/src/plugins/drift/index.d.ts +1 -0
  28. package/src/plugins/drift/index.js +5 -2
  29. package/src/plugins/drift/index.js.map +1 -1
  30. package/src/plugins/drift/types.d.ts +12 -0
  31. package/src/plugins/jito/airdropFetcher.js +1 -2
  32. package/src/plugins/jito/airdropFetcher.js.map +1 -1
  33. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -1
  34. package/src/plugins/kamino/airdropFetcher.js +1 -1
  35. package/src/plugins/parcl/airdropFetcher.js +8 -47
  36. package/src/plugins/parcl/airdropFetcher.js.map +1 -1
  37. package/src/plugins/parcl/constants.d.ts +3 -0
  38. package/src/plugins/parcl/constants.js +7 -4
  39. package/src/plugins/parcl/constants.js.map +1 -1
  40. package/src/plugins/parcl/helpersAirdrop.d.ts +19 -0
  41. package/src/plugins/parcl/helpersAirdrop.js +99 -0
  42. package/src/plugins/parcl/helpersAirdrop.js.map +1 -0
  43. package/src/plugins/parcl/index.d.ts +1 -0
  44. package/src/plugins/parcl/index.js +3 -1
  45. package/src/plugins/parcl/index.js.map +1 -1
  46. package/src/plugins/parcl/types.d.ts +6 -1
  47. package/src/plugins/sandglass/constants.d.ts +6 -0
  48. package/src/plugins/sandglass/constants.js +16 -0
  49. package/src/plugins/sandglass/constants.js.map +1 -0
  50. package/src/plugins/sandglass/depositFetcher.d.ts +3 -0
  51. package/src/plugins/sandglass/depositFetcher.js +82 -0
  52. package/src/plugins/sandglass/depositFetcher.js.map +1 -0
  53. package/src/plugins/sandglass/filters.d.ts +3 -0
  54. package/src/plugins/sandglass/filters.js +21 -0
  55. package/src/plugins/sandglass/filters.js.map +1 -0
  56. package/src/plugins/sandglass/index.d.ts +6 -0
  57. package/src/plugins/sandglass/index.js +13 -0
  58. package/src/plugins/sandglass/index.js.map +1 -0
  59. package/src/plugins/sandglass/marketsJob.d.ts +3 -0
  60. package/src/plugins/sandglass/marketsJob.js +97 -0
  61. package/src/plugins/sandglass/marketsJob.js.map +1 -0
  62. package/src/plugins/sandglass/structs.d.ts +150 -0
  63. package/src/plugins/sandglass/structs.js +144 -0
  64. package/src/plugins/sandglass/structs.js.map +1 -0
  65. package/src/plugins/sandglass/types.d.ts +7 -0
  66. package/src/plugins/sandglass/types.js +3 -0
  67. package/src/plugins/sandglass/types.js.map +1 -0
  68. package/src/plugins/tensor/airdropPowerUsersFetcher.d.ts +3 -0
  69. package/src/plugins/tensor/airdropPowerUsersFetcher.js +45 -0
  70. package/src/plugins/tensor/airdropPowerUsersFetcher.js.map +1 -0
  71. package/src/plugins/tensor/constants.d.ts +2 -0
  72. package/src/plugins/tensor/constants.js +3 -1
  73. package/src/plugins/tensor/constants.js.map +1 -1
  74. package/src/plugins/tensor/helpers.d.ts +1 -0
  75. package/src/plugins/tensor/helpers.js +16 -0
  76. package/src/plugins/tensor/helpers.js.map +1 -0
  77. package/src/plugins/tensor/index.js +6 -1
  78. package/src/plugins/tensor/index.js.map +1 -1
  79. package/src/plugins/tensor/powerUsers.json +2898 -0
  80. package/src/plugins/wormhole/airdropFetcher.js +1 -2
  81. package/src/plugins/wormhole/airdropFetcher.js.map +1 -1
@@ -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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