@sonarwatch/portfolio-plugins 0.14.128 → 0.14.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/CHANGELOG.md +2124 -2120
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +5 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/adrena/positionsFetcher.js +1 -0
  7. package/src/plugins/adrena/positionsFetcher.js.map +1 -1
  8. package/src/plugins/allbridge/positionsFetcher.js +9 -1
  9. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  10. package/src/plugins/armada-staking/stakingFetcher.js +4 -1
  11. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  12. package/src/plugins/aurory/stakingFetcher.js +5 -1
  13. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  14. package/src/plugins/balancer/helpers/pools.js +21 -21
  15. package/src/plugins/bonfida/offersFetcher.js +30 -37
  16. package/src/plugins/bonfida/offersFetcher.js.map +1 -1
  17. package/src/plugins/bonkrewards/positionFetcher.js +16 -22
  18. package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
  19. package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
  20. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
  21. package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
  22. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  23. package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
  24. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  25. package/src/plugins/defiland/stakingFetcher.js +8 -1
  26. package/src/plugins/defiland/stakingFetcher.js.map +1 -1
  27. package/src/plugins/defituna/lendingFetcher.js +3 -0
  28. package/src/plugins/defituna/lendingFetcher.js.map +1 -1
  29. package/src/plugins/defituna/positionsFetcher.js +7 -1
  30. package/src/plugins/defituna/positionsFetcher.js.map +1 -1
  31. package/src/plugins/defituna/structs.d.ts +1 -0
  32. package/src/plugins/defituna/structs.js.map +1 -1
  33. package/src/plugins/divvy/constants.d.ts +1 -0
  34. package/src/plugins/divvy/constants.js +2 -1
  35. package/src/plugins/divvy/constants.js.map +1 -1
  36. package/src/plugins/divvy/housePoolFetcher.js +3 -0
  37. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  38. package/src/plugins/divvy/stakingFetcher.js +3 -1
  39. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  40. package/src/plugins/drift/depositsFetcher.js +15 -0
  41. package/src/plugins/drift/depositsFetcher.js.map +1 -1
  42. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
  43. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  44. package/src/plugins/elemental/depositFetcher.js +3 -0
  45. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  46. package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
  47. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  48. package/src/plugins/exponent/liquidityFetcher.js +1 -0
  49. package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
  50. package/src/plugins/exponent/tradeFetcher.js +1 -0
  51. package/src/plugins/exponent/tradeFetcher.js.map +1 -1
  52. package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
  53. package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
  54. package/src/plugins/flash/perpetualFetcher.js +1 -1
  55. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  56. package/src/plugins/fragmetric/pricingJob.js +6 -0
  57. package/src/plugins/fragmetric/pricingJob.js.map +1 -1
  58. package/src/plugins/francium/lendingFetcher.js +1 -0
  59. package/src/plugins/francium/lendingFetcher.js.map +1 -1
  60. package/src/plugins/futarchy/daosJob.js +9 -0
  61. package/src/plugins/futarchy/daosJob.js.map +1 -1
  62. package/src/plugins/genesysgo/stakingFetcher.js +12 -25
  63. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  64. package/src/plugins/goosefx/stakingFetcher.js +18 -27
  65. package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
  66. package/src/plugins/gpool/stakingFetcher.js +5 -1
  67. package/src/plugins/gpool/stakingFetcher.js.map +1 -1
  68. package/src/plugins/guano/constants.d.ts +8 -0
  69. package/src/plugins/guano/constants.js +15 -0
  70. package/src/plugins/guano/constants.js.map +1 -0
  71. package/src/plugins/guano/filters.d.ts +20 -0
  72. package/src/plugins/guano/filters.js +41 -0
  73. package/src/plugins/guano/filters.js.map +1 -0
  74. package/src/plugins/guano/index.d.ts +6 -0
  75. package/src/plugins/guano/index.js +10 -0
  76. package/src/plugins/guano/index.js.map +1 -0
  77. package/src/plugins/guano/stakingFetcher.d.ts +3 -0
  78. package/src/plugins/guano/stakingFetcher.js +70 -0
  79. package/src/plugins/guano/stakingFetcher.js.map +1 -0
  80. package/src/plugins/guano/structs.d.ts +34 -0
  81. package/src/plugins/guano/structs.js +33 -0
  82. package/src/plugins/guano/structs.js.map +1 -0
  83. package/src/plugins/guano/types.d.ts +15 -0
  84. package/src/plugins/guano/types.js +3 -0
  85. package/src/plugins/guano/types.js.map +1 -0
  86. package/src/plugins/hedgehog/ammJob.js +8 -0
  87. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  88. package/src/plugins/hxro/stakingFetcher.js +2 -0
  89. package/src/plugins/hxro/stakingFetcher.js.map +1 -1
  90. package/src/plugins/iloop/depositsFetcher.js +8 -0
  91. package/src/plugins/iloop/depositsFetcher.js.map +1 -1
  92. package/src/plugins/jupiter/exchange/dcaFetcher.js +5 -1
  93. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  94. package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
  95. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  96. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
  97. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  98. package/src/plugins/kamino/lendsFetcher.js +6 -0
  99. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  100. package/src/plugins/kamino/ordersFetcher.js +2 -1
  101. package/src/plugins/kamino/ordersFetcher.js.map +1 -1
  102. package/src/plugins/layer3/stakingFetcher.js +1 -0
  103. package/src/plugins/layer3/stakingFetcher.js.map +1 -1
  104. package/src/plugins/lifinity/lockerFetcher.js +14 -17
  105. package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
  106. package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
  107. package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
  108. package/src/plugins/magiceden/escrowFetcher.js +12 -18
  109. package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
  110. package/src/plugins/marginfi/helpers.d.ts +2 -1
  111. package/src/plugins/marginfi/helpers.js +8 -2
  112. package/src/plugins/marginfi/helpers.js.map +1 -1
  113. package/src/plugins/marinade/ticketsFetcher.js +14 -31
  114. package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
  115. package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
  116. package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
  117. package/src/plugins/nxfinance/positionsFetcher.js +19 -2
  118. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  119. package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
  120. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  121. package/src/plugins/parcl/depositsFetcher.js +1 -1
  122. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  123. package/src/plugins/parcl/marginFetcher.js +1 -1
  124. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  125. package/src/plugins/parcl/stakingFetcher.js +6 -3
  126. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  127. package/src/plugins/photofinish/stakingFetcher.js +6 -1
  128. package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
  129. package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
  130. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  131. package/src/plugins/quarry/calculatePositions.js +7 -1
  132. package/src/plugins/quarry/calculatePositions.js.map +1 -1
  133. package/src/plugins/quarry/positionsFetcher.js +2 -0
  134. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  135. package/src/plugins/quarry/types.d.ts +3 -0
  136. package/src/plugins/ratex/positionsFetcher.js +2 -0
  137. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  138. package/src/plugins/saber/lpTokensJob.js +1 -0
  139. package/src/plugins/saber/lpTokensJob.js.map +1 -1
  140. package/src/plugins/sandglass/depositFetcher.js +3 -0
  141. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  142. package/src/plugins/sharky/loansFetcher.js +1 -0
  143. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  144. package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
  145. package/src/plugins/solayer/airdropFetcher.js +55 -0
  146. package/src/plugins/solayer/airdropFetcher.js.map +1 -0
  147. package/src/plugins/solayer/constants.d.ts +5 -0
  148. package/src/plugins/solayer/constants.js +13 -1
  149. package/src/plugins/solayer/constants.js.map +1 -1
  150. package/src/plugins/solayer/index.d.ts +2 -0
  151. package/src/plugins/solayer/index.js +4 -2
  152. package/src/plugins/solayer/index.js.map +1 -1
  153. package/src/plugins/solayer/proofsFetcher.js +7 -6
  154. package/src/plugins/solayer/proofsFetcher.js.map +1 -1
  155. package/src/plugins/solayer/types.d.ts +8 -0
  156. package/src/plugins/solayer/types.js +3 -0
  157. package/src/plugins/solayer/types.js.map +1 -0
  158. package/src/plugins/spdr/stakingFetcher.js +3 -0
  159. package/src/plugins/spdr/stakingFetcher.js.map +1 -1
  160. package/src/plugins/stabble/poolsJob.js +1 -0
  161. package/src/plugins/stabble/poolsJob.js.map +1 -1
  162. package/src/plugins/staratlas/lockersFetcher.js +2 -0
  163. package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
  164. package/src/plugins/staratlas/stakingFetcher.js +2 -1
  165. package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
  166. package/src/plugins/streamflow/vestingFetcher.js +1 -1
  167. package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
  168. package/src/plugins/sushiswap/helpers.js +24 -24
  169. package/src/plugins/tensor/bidsFetcher.js +1 -1
  170. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  171. package/src/plugins/texture/loansFetcher.js +2 -1
  172. package/src/plugins/texture/loansFetcher.js.map +1 -1
  173. package/src/plugins/tulip/depositsFetcher.js +3 -1
  174. package/src/plugins/tulip/depositsFetcher.js.map +1 -1
  175. package/src/plugins/uniswap-v2/helpers.js +22 -22
  176. package/src/plugins/uxd/stakingFetcher.js +4 -3
  177. package/src/plugins/uxd/stakingFetcher.js.map +1 -1
  178. package/src/plugins/vaultka/lendingFetcher.js +5 -0
  179. package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
  180. package/src/plugins/vaultka/strategyFetcher.js +3 -0
  181. package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
  182. package/src/plugins/whalesmarket/depositFetcher.js +7 -5
  183. package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
  184. package/src/plugins/zelo/positionsFetcher.js +2 -0
  185. package/src/plugins/zelo/positionsFetcher.js.map +1 -1
  186. package/src/plugins/zeta/airdropFetcher.js +14 -14
  187. package/src/plugins/zeta/depositsFetcher.js +5 -1
  188. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  189. package/src/utils/sei/constants.js +8 -8
  190. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -1,6 +1,7 @@
1
1
  /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
+ import { SourceRef } from '@sonarwatch/portfolio-core';
4
5
  import BigNumber from 'bignumber.js';
5
6
  export type TokenInfo = {
6
7
  decimals: number;
@@ -86,6 +87,8 @@ export type Redeemer = {
86
87
  redemptionMint: string;
87
88
  };
88
89
  export type Position = {
90
+ ref: string;
91
+ sourceRefs: SourceRef[];
89
92
  primaryRewarder: {
90
93
  slug: string;
91
94
  name?: string;
@@ -45,6 +45,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
45
45
  if (marginPosition.balance !== 0) {
46
46
  const element = elementRegistry.addElementMultiple({
47
47
  label: 'Margin',
48
+ link: 'https://app.rate-x.io/trade',
48
49
  ref: user.pubkey,
49
50
  });
50
51
  element.addAsset({
@@ -69,6 +70,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
69
70
  const o = (0, tokenPricesFromSqrt_1.sqrtPriceX64ToPrice)(new bignumber_js_1.default(ammpool.pool.sqrtPrice), 9, 9);
70
71
  const element = elementRegistry.addElementMultiple({
71
72
  label: 'LiquidityPool',
73
+ link: 'https://app.rate-x.io/liquidity',
72
74
  ref: lpData.pubkey,
73
75
  sourceRefs: [
74
76
  {
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ratex/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAA2D;AAE3D,gFAA6E;AAC7E,kEAA+D;AAE/D,wFAAyF;AACzF,uCAKmB;AACnB,8EAA2E;AAE3E,MAAM,YAAY,GAAG,IAAI,6BAAa,CAAY,4BAAgB,EAAE;IAClE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAEnD,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,kBAAkB,GAAG,MAAM,IAAA,+BAAqB,EAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;I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AC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -108,6 +108,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
108
108
  price: lpTokenPrice.toNumber(),
109
109
  underlyings,
110
110
  timestamp: Date.now(),
111
+ sourceRefs: [{ address: swap.addresses.swapAccount, name: 'Pool' }],
111
112
  });
112
113
  }
113
114
  });
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,kDAA6C;AAC7C,+DAIoC;AAGpC,iDAAsD;AACtD,2CAAsD;AACtD,gGAA6F;AAC7F,+CAA2E;AAG3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,aAAa,GAAsC,MAAM,eAAK;SACjE,GAAG,CAAC,uBAAW,CAAC;SAChB,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,aAAa;QAAE,OAAO;IAC3B,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC;IAEjC,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CA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AAQ,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;aAC3D;YACD;gBACE,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;aAC3D;SACF,CAAC;QAEF,MAAM,KAAK,CAAC,mBAAmB,CAAC;YAC9B,EAAE,EAAE,sBAAU;YACd,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,KAAK,EAAE,YAAY,CAAC,QAAQ,EAAE;YAC9B,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACpE,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -38,6 +38,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
38
38
  const element = registry.addElementMultiple({
39
39
  label: 'Staked',
40
40
  name: marketName,
41
+ ref: account.pubkey,
42
+ link: 'https://sandglass.so/markets',
43
+ sourceRefs: [{ name: 'Market', address: market.pubkey }],
41
44
  });
42
45
  const { stakePtAmount, stakeYtAmount, stakeLpAmount } = account.stakeInfo;
43
46
  element.addAsset({ address: market.ptMint, amount: stakePtAmount });
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAKqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAmD;AACnD,uCAA+C;AAE/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,gCAAsB,EACtB,qBAAS,EACT,IAAA,4BAAkB,EAAC,KAAK,CAAC,CAC1B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,0BAAc,EAAE;QACrE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7B,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAClC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,UAAU,CAAC,CAC7D,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEnE,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,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CAAC;SACzD,CAAC,CAAC;QACH,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC;QAC1E,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -127,6 +127,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
127
127
  rewardValue,
128
128
  healthRatio: null,
129
129
  value,
130
+ ref: acc.pubkey.toString(),
130
131
  expireOn: acc.loanState.taken
131
132
  ? (Number(acc.loanState.taken.taken.terms.time.start) +
132
133
  Number(acc.loanState.taken.taken.terms.time.duration)) *
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AACtD,+CAG4B;AAE5B,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,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AC,CAAC,KAAK,CAAC;SACb,CAAC,CAAC;QAEL,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,KAAK;YACL,IAAI;YACJ,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,EAAE;gBAClB,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,EAAE;gBAClB,YAAY,EAAE,EAAE;gBAChB,WAAW;gBACX,WAAW,EAAE,IAAI;gBACjB,KAAK;gBACL,QAAQ,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK;oBAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;wBACjD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBACxD,IAAI;oBACN,CAAC,CAAC,SAAS;aACd;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AACtD,+CAG4B;AAE5B,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uC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K,CAAC,cAAc,KAAK,KAAK,CAAC,QAAQ,EAAE;oBAC/D,CAAC,CAAC,KAAK,CAAC;SACb,CAAC,CAAC;QAEL,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,KAAK;YACL,IAAI;YACJ,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,EAAE;gBAClB,cAAc;gBACd,aAAa;gBACb,cAAc,EAAE,EAAE;gBAClB,YAAY,EAAE,EAAE;gBAChB,WAAW;gBACX,WAAW,EAAE,IAAI;gBACjB,KAAK;gBACL,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC1B,QAAQ,EAAE,GAAG,CAAC,SAAS,CAAC,KAAK;oBAC3B,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;wBACjD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBACxD,IAAI;oBACN,CAAC,CAAC,SAAS;aACd;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ export declare const airdropFetcher: AirdropFetcher;
3
+ export declare const fetcher: import("../..").Fetcher;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.fetcher = exports.airdropFetcher = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const axios_1 = __importDefault(require("axios"));
18
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
20
+ const constants_1 = require("./constants");
21
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const res = yield axios_1.default.get(constants_1.airdropApi + owner);
23
+ if (!res.data || res.data.totalAmount === '0')
24
+ return (0, AirdropFetcher_1.getAirdropRaw)({
25
+ statics: constants_1.airdropStatics,
26
+ items: [
27
+ {
28
+ amount: 0,
29
+ isClaimed: false,
30
+ label: 'LAYER',
31
+ address: constants_1.layerMint,
32
+ },
33
+ ],
34
+ });
35
+ const amount = (0, bignumber_js_1.default)(res.data.totalAmount);
36
+ const isClaimed = amount.isEqualTo(Number(res.data.claimedAmount));
37
+ return (0, AirdropFetcher_1.getAirdropRaw)({
38
+ statics: constants_1.airdropStatics,
39
+ items: [
40
+ {
41
+ amount: amount.dividedBy(Math.pow(10, constants_1.layerDecimals)).toNumber(),
42
+ isClaimed,
43
+ label: 'LAYER',
44
+ address: constants_1.layerMint,
45
+ },
46
+ ],
47
+ });
48
+ });
49
+ exports.airdropFetcher = {
50
+ id: constants_1.airdropStatics.id,
51
+ networkId: portfolio_core_1.NetworkId.solana,
52
+ executor,
53
+ };
54
+ exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_1.platform.id, 'solayer-airdrop', constants_1.airdropStatics.claimEnd);
55
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,yDAK8B;AAC9B,2CAMqB;AAGrB,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,KAAK,CACnB,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,GAAG;QAC3C,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,OAAO;oBACd,OAAO,EAAE,qBAAS;iBACnB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,MAAM,GAAG,IAAA,sBAAS,EAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IAEnE,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE;gBACxD,SAAS;gBACT,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,qBAAS;aACnB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AACW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,iBAAiB,EACjB,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
@@ -2,10 +2,15 @@
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
4
  import { Platform } from '@sonarwatch/portfolio-core';
5
+ import { AirdropStatics } from '../../AirdropFetcher';
5
6
  export declare const platformId = "solayer";
6
7
  export declare const platform: Platform;
7
8
  export declare const programId: PublicKey;
8
9
  export declare const solayersUSDCPid: PublicKey;
10
+ export declare const airdropApi = "https://airdrop-apis-101797961016.us-central1.run.app/airdrop?walletAddr=";
11
+ export declare const layerMint = "LAYER4xPpTCb3QL8S9u41EAhAX7mhBn8Q6xMTwY2Yzc";
12
+ export declare const layerDecimals = 9;
13
+ export declare const airdropStatics: AirdropStatics;
9
14
  export declare const solayerLstPool = "po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2";
10
15
  export declare const solayerLstMint = "sSo1wxKKr6zW2hqf5hZrp2CawLibcwi1pMBqk5bg2G4";
11
16
  export declare const solayerRstMint = "sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.avsTokens = exports.solayerLstDecimals = exports.solayersUSDMint = exports.solayerRstMint = exports.solayerLstMint = exports.solayerLstPool = exports.solayersUSDCPid = exports.programId = exports.platform = exports.platformId = void 0;
3
+ exports.avsTokens = exports.solayerLstDecimals = exports.solayersUSDMint = exports.solayerRstMint = exports.solayerLstMint = exports.solayerLstPool = exports.airdropStatics = exports.layerDecimals = exports.layerMint = exports.airdropApi = exports.solayersUSDCPid = exports.programId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'solayer';
6
6
  exports.platform = {
@@ -13,6 +13,18 @@ exports.platform = {
13
13
  };
14
14
  exports.programId = new web3_js_1.PublicKey('sSo1iU21jBrU9VaJ8PJib1MtorefUV4fzC9GURa2KNn');
15
15
  exports.solayersUSDCPid = new web3_js_1.PublicKey('s1aysqpEyZyijPybUV89oBGeooXrR22wMNLjnG2SWJA');
16
+ exports.airdropApi = 'https://airdrop-apis-101797961016.us-central1.run.app/airdrop?walletAddr=';
17
+ exports.layerMint = 'LAYER4xPpTCb3QL8S9u41EAhAX7mhBn8Q6xMTwY2Yzc';
18
+ exports.layerDecimals = 9;
19
+ exports.airdropStatics = {
20
+ claimLink: 'https://claim.solayer.foundation/',
21
+ emitterLink: 'https://solayer.foundation/',
22
+ emitterName: exports.platform.name,
23
+ id: 'solayer-airdrop',
24
+ image: 'https://sonar.watch/img/platforms/solayer.webp',
25
+ claimStart: 1739275200000,
26
+ claimEnd: 1741089600000,
27
+ };
16
28
  // export const stakePoolProgramId = 'SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy'
17
29
  exports.solayerLstPool = 'po1osKDWYF9oiVEGmzKA4eTs8eMveFRMox3bUKazGN2';
18
30
  exports.solayerLstMint = 'sSo1wxKKr6zW2hqf5hZrp2CawLibcwi1pMBqk5bg2G4';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEF,kFAAkF;AACrE,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,eAAe,GAAG,6CAA6C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEvB,QAAA,SAAS,GAAG;IACvB,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GACrB,2EAA2E,CAAC;AACjE,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,mCAAmC;IAC9C,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE,gBAAQ,CAAC,IAAI;IAC1B,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,gDAAgD;IACvD,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC;AAEF,kFAAkF;AACrE,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,eAAe,GAAG,6CAA6C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEvB,QAAA,SAAS,GAAG;IACvB,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Fetcher } from '../../Fetcher';
3
3
  import { Job } from '../../Job';
4
+ import { airdropFetcher } from './airdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
8
+ export { airdropFetcher };
@@ -3,12 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetchers = exports.jobs = exports.platforms = void 0;
6
+ exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const poolsJob_1 = __importDefault(require("./poolsJob"));
9
9
  const delegateJob_1 = __importDefault(require("./delegateJob"));
10
10
  const proofsFetcher_1 = __importDefault(require("./proofsFetcher"));
11
+ const airdropFetcher_1 = require("./airdropFetcher");
12
+ Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
11
13
  exports.platforms = [constants_1.platform];
12
14
  exports.jobs = [poolsJob_1.default, delegateJob_1.default];
13
- exports.fetchers = [proofsFetcher_1.default];
15
+ exports.fetchers = [proofsFetcher_1.default, airdropFetcher_1.fetcher];
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,gEAAwC;AACxC,oEAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,uBAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAkC;AAClC,gEAAwC;AACxC,oEAA4C;AAC5C,qDAA2D;AAKlD,+FALA,+BAAc,OAKA;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,qBAAW,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,wBAAO,CAAC,CAAC"}
@@ -35,20 +35,19 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  const element = registry.addElementMultiple({
36
36
  label: 'Deposit',
37
37
  name: 'sUSD Restaking',
38
+ link: 'https://app.solayer.org/',
38
39
  });
39
40
  accounts.forEach((account) => {
40
41
  const isDeposit = account.mint.toString() === solana_1.usdcSolanaMint;
42
+ if (!pool)
43
+ return;
41
44
  // If batchId of the pool is greater than batchId from account and it's a deposit
42
45
  // It means the deposits have all been processed and user receive it's sUSD in the wallet
43
- if (pool &&
44
- isDeposit &&
45
- pool.currentDepositId.isGreaterThan(account.batchId))
46
+ if (isDeposit && pool.currentDepositId.isGreaterThan(account.batchId))
46
47
  return;
47
48
  // If batchId of the pool is greater than batchId from account and it's a withdraw
48
49
  // It means the user can claim it's USDC
49
- const isClaimable = !!(pool &&
50
- !isDeposit &&
51
- pool.currentWithdrawId.isGreaterThan(account.batchId));
50
+ const isClaimable = !!(!isDeposit && pool.currentWithdrawId.isGreaterThan(account.batchId));
52
51
  element.addAsset({
53
52
  address: account.mint.toString(),
54
53
  amount: account.amount,
@@ -56,6 +55,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
56
55
  isClaimable,
57
56
  tags: [isDeposit ? 'Deposit' : 'Withdraw'],
58
57
  },
58
+ ref: account.pubkey,
59
+ sourceRefs: [{ name: 'Pool', address: pool.pubkey.toString() }],
59
60
  });
60
61
  });
61
62
  return registry.getElements(cache);
@@ -1 +1 @@
1
- {"version":3,"file":"proofsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/proofsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAC1D,iDAAsD;AACtD,gFAA6E;AAC7E,+CAA8E;AAC9E,uCAAwD;AACxD,wDAA4D;AAE5D,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,qBAAW,EACX,2BAAe,EACf;QACE,GAAG,IAAA,wBAAc,EAAC,GAAG,CAAC;QACtB;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAwB,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GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"proofsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/proofsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAC1D,iDAAsD;AACtD,gFAA6E;AAC7E,+CAA8E;AAC9E,uCAAwD;AACxD,wDAA4D;AAE5D,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,qBAAW,EACX,2BAAe,EACf;QACE,GAAG,IAAA,wBAAc,EAAC,GAAG,CAAC;QACtB;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAwB,EAChD,MAAM,EACN,wBAAc,EACd,2BAAe,EACf,CAAC,GAAG,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAC,CACzB,CAAC;IACF,MAAM,IAAI,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,0BAA0B;KACjC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,uBAAc,CAAC;QAC7D,IAAI,CAAC,IAAI;YAAE,OAAO;QAElB,iFAAiF;QACjF,yFAAyF;QACzF,IAAI,SAAS,IAAI,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC;YACnE,OAAO;QAET,kFAAkF;QAClF,wCAAwC;QACxC,MAAM,WAAW,GAAG,CAAC,CAAC,CACpB,CAAC,SAAS,IAAI,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,CACpE,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE;gBACV,WAAW;gBACX,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;aAC3C;YACD,GAAG,EAAE,OAAO,CAAC,MAAM;YACnB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type AirdropResponse = {
2
+ owner: string;
3
+ mint: string;
4
+ totalAmount: string;
5
+ claimedAmount: string;
6
+ startEpoch: number;
7
+ endEpoch: number;
8
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/types.ts"],"names":[],"mappings":""}
@@ -46,11 +46,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
46
  const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
47
47
  const element = elementRegistry.addElementMultiple({
48
48
  label: 'Staked',
49
+ link: 'https://www.spiderswap.io/staking',
49
50
  });
50
51
  stakeAccounts.forEach((acc) => {
51
52
  element.addAsset({
52
53
  address: constants_1.spdrMint,
53
54
  amount: acc.depositAmount.minus(acc.multiplierAmount),
55
+ ref: acc.pubkey.toString(),
54
56
  });
55
57
  });
56
58
  stakeLockAccounts.forEach((acc) => {
@@ -64,6 +66,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
66
  .times(1000)
65
67
  .toNumber(),
66
68
  },
69
+ ref: acc.pubkey.toString(),
67
70
  });
68
71
  });
69
72
  });
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spdr/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA2D;AAC3D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,IAAA,iCAAwB,EAAC,UAAU,EAAE,qBAAW,EAAE,eAAG,EAAE;YACrD;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EA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,CAAC,CAAC;IACH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spdr/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA2D;AAC3D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,IAAA,iCAAwB,EAAC,UAAU,EAAE,qBAAW,EAAE,eAAG,EAAE;YACrD;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,CAAC;iBACV;aACF;SACF,CAAC;QACF,IAAA,iCAAwB,EAAC,UAAU,EAAE,2BAAiB,EAAE,eAAG,EAAE;YAC3D;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,CAAC;iBACV;aACF;SACF,CAAC;KACH,CAAC,CAAC;IACH,IAAI,CAAC,GAAG,aAAa,EAAE,GAAG,iBAAiB,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,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: 1,
76
76
  underlyings,
77
+ sourceRefs: [{ address: pool.pubkey.toString(), name: 'Pool' }],
77
78
  });
78
79
  });
79
80
  yield cache.setTokenPriceSources(sources);
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,gEAAqC;AAGrC,2CAAyE;AACzE,iDAAsD;AACtD,+CAAkE;AAClE,uCAAyD;AAEzD,8EAAgF;AAChF,oGAA4E;AAE5E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,KAAK,GAAG,CACZ,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAC1B,UAAU,EACV,yBAAa,EACb,sBAAY,CACb;QACD,IAAA,qCAA4B,EAC1B,UAAU,EACV,2BAAe,EACf,wBAAc,CACf;KACF,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IAET,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,MAAM,OAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;IAEvC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC5B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpD,KAAK,CAAC,mBAAmB,CAAC,KAA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W,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,WAAW;YACX,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -40,6 +40,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
40
40
  platformId: constants_1.platformId,
41
41
  data: {
42
42
  assets: [asset],
43
+ ref: account.pubkey.toString(),
44
+ link: 'https://govern.staratlas.com/lockers/polis',
43
45
  },
44
46
  value: asset.value,
45
47
  },
@@ -1 +1 @@
1
- {"version":3,"file":"lockersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/lockersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAE7E,2CAAmE;AAEnE,iDAAsD;AACtD,uCAImB;AACnB,kFAA+E;AAC/E,uCAAyC;AACzC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,kBAAkB,GAAG,IAAA,+BAAqB,EAAC,KAAK,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,IA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AE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC9B,IAAI,EAAE,4CAA4C;aACnD;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -37,7 +37,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
37
37
  if (!account.pendingRewards.isZero()) {
38
38
  asset.attributes = { isClaimable: true };
39
39
  }
40
- assets.push(asset);
40
+ assets.push(Object.assign(Object.assign({}, asset), { ref: account.pubkey.toString() }));
41
41
  });
42
42
  if (assets.length === 0)
43
43
  return [];
@@ -49,6 +49,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
49
49
  platformId: constants_1.platformId,
50
50
  data: {
51
51
  assets,
52
+ link: 'https://govern.staratlas.com/lockers/atlas',
52
53
  },
53
54
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
54
55
  },
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA+E;AAE/E,iDAAsD;AACtD,qGAA6E;AAC7E,+CAA8D;AAC9D,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QA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C,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA+E;AAE/E,iDAAsD;AACtD,qGAA6E;AAC7E,+CAA8D;AAC9D,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,uBAAa,CAAC,QAAQ,EAAE;QACpC;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE;SACpC;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE;YAAE,OAAO;QAExC,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,qBAAS,EACT,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,eAAe,CAChB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC;YACrC,KAAK,CAAC,UAAU,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAC3C,CAAC;QAED,MAAM,CAAC,IAAI,iCAAM,KAAK,KAAE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAG,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,4CAA4C;aACnD;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  const asset = (0, tokenPriceToAssetToken_1.default)(tokenMint, amount, portfolio_core_1.NetworkId.solana, tokenInCache);
58
58
  assets.push(Object.assign(Object.assign({}, asset), { attributes: {
59
59
  lockedUntil: vestingAccount.endTime.multipliedBy(1000).toNumber(),
60
- } }));
60
+ }, ref: vestingAccount.pubkey.toString(), link: `https://app.streamflow.finance/contract/solana/mainnet/${vestingAccount.pubkey.toString()}` }));
61
61
  }
62
62
  if (assets.length === 0)
63
63
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"vestingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/vestingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,6CAA4C;AAG5C,2CAA8D;AAC9D,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4D;AAC5D,uCAAiD;AACjD,6FAAoE;AACpE,qGAA6E;AAC7E,+FAAuE;AAEvE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,+BAAmB,EACnB,IAAA,yCAA+B,EAAC,KAAK,CAAC,CACvC,CAAC;IAEF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,eAAe,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACtE,MAAM,cAAc,GAAG,MAAM,IAAA,4BAAiB,EAC5C,eAAe,EACf,0BAAS,CAAC,MAAM,EAChB,KAAK,CACN,CAAC;IAEF,MAAM,gBAAgB,GAAG,MAAM,IAAA,6BAAmB,EAChD,eAAe,EACf,0BAAS,CAAC,MAAM,EAChB,KAAK,CACN,CAAC;IAEF,MAAM,MAAM,GAAqB,EAAE,CAAC;IAEpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,MAAM,cAAc,GAAG,eAAe,CAAC,CA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AM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"vestingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/vestingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,6CAA4C;AAG5C,2CAA8D;AAC9D,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4D;AAC5D,uCAAiD;AACjD,6FAAoE;AACpE,qGAA6E;AAC7E,+FAAuE;AAEvE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,+BAAmB,EACnB,IAAA,yCAA+B,EAAC,KAAK,CAAC,CACvC,CAAC;IAEF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,eAAe,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE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,eAAe;aACnD,GAAG,CAAC,WAAW,CAAC;aAChB,QAAQ,EAAE,CAAC;QACd,MAAM,MAAM,GAAG,SAAS,GAAG,eAAe,CAAC;QAE3C,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,SAAS,EACT,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,YAAY,CACb,CAAC;QACF,MAAM,CAAC,IAAI,iCACN,KAAK,KACR,UAAU,EAAE;gBACV,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;aAClE,EACD,GAAG,EAAE,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,EACrC,IAAI,EAAE,0DAA0D,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAClG,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,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;
@@ -46,7 +46,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
46
  platformId: constants_1.platformId,
47
47
  name: 'Bids',
48
48
  value: asset.value,
49
- data: { assets: [asset] },
49
+ data: { assets: [asset], link: 'https://www.tensor.trade/portfolio' },
50
50
  },
51
51
  ];
52
52
  });
@@ -1 +1 @@
1
- {"version":3,"file":"bidsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/bidsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAoD;AACpD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAuC;AACvC,gGAA6F;AAC7F,qCAAsC;AACtC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,mBAAU,EACV,qBAAS,EACT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,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,EACrE,CAAC,CACF,CAAC;IAEF,IAAI,aAAa,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,aAAa,CAAC;SACxC,SAAS,CAAC,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;SAC9C,QAAQ,EAAE,CAAC;IAEd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,oCAAoC,EAAE;SACtE;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -43,7 +43,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
43
43
  .div(Math.pow(10, portfolio_core_1.solanaNativeDecimals))
44
44
  .toNumber();
45
45
  const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, amount, portfolio_core_1.NetworkId.solana, solTokenPrice);
46
- assets.push(asset);
46
+ assets.push(Object.assign(Object.assign({}, asset), { ref: acc.pubkey.toString() }));
47
47
  });
48
48
  if (assets.length === 0)
49
49
  return [];
@@ -55,6 +55,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
55
55
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
56
56
  data: {
57
57
  assets,
58
+ link: 'https://texture.finance/lendy/my_loans',
58
59
  },
59
60
  };
60
61
  return [element];
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,IAAI,GAAG,CAAC,eAAe,CAAC,MAAM,EAAE;YAAE,OAAO;QACzC,MAAM,MAAM,GAAG,GAAG,CAAC,eAAe;aAC/B,GAAG,CAAC,SAAA,EAAE,EAAI,qCAAoB,CAAA,CAAC;aAC/B,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,OAAO,GAA6B;QACxC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,KAAK,EAAE,SAAS;QAChB,UAAU,EAAV,sBAAU;QACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,EAAE;YACJ,MAAM;SACP;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,mBAAmB;IACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACt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