@sonarwatch/portfolio-plugins 0.11.149 → 0.11.151

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/CHANGELOG.md +1331 -1323
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +8 -12
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/armada-staking/constants.js.map +1 -0
  7. package/src/plugins/armada-staking/filters.js.map +1 -0
  8. package/src/plugins/{spl-staking → armada-staking}/index.js +7 -1
  9. package/src/plugins/armada-staking/index.js.map +1 -0
  10. package/src/plugins/armada-staking/poolsJob.js.map +1 -0
  11. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -0
  12. package/src/plugins/armada-staking/structs.js.map +1 -0
  13. package/src/plugins/armada-staking/types.js.map +1 -0
  14. package/src/plugins/balancer/helpers/pools.js +21 -21
  15. package/src/plugins/{realms → daos}/constants.d.ts +4 -2
  16. package/src/plugins/{realms → daos}/constants.js +10 -3
  17. package/src/plugins/daos/constants.js.map +1 -0
  18. package/src/plugins/daos/filters.js.map +1 -0
  19. package/src/plugins/daos/helpers.d.ts +10 -0
  20. package/src/plugins/{realms → daos}/helpers.js +21 -29
  21. package/src/plugins/daos/helpers.js.map +1 -0
  22. package/src/plugins/daos/index.js +13 -0
  23. package/src/plugins/daos/index.js.map +1 -0
  24. package/src/plugins/{realms/depositsFetcher.js → daos/realmsDepositsFetcher.js} +1 -1
  25. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -0
  26. package/src/plugins/{realms/programsJob.js → daos/realmsProgramsJob.js} +4 -4
  27. package/src/plugins/daos/realmsProgramsJob.js.map +1 -0
  28. package/src/plugins/daos/structs/realms.js.map +1 -0
  29. package/src/plugins/{realms → daos}/types.d.ts +1 -1
  30. package/src/plugins/daos/types.js.map +1 -0
  31. package/src/plugins/flexlend/depositsFetcher.js +63 -4
  32. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  33. package/src/plugins/flexlend/struct.d.ts +18 -0
  34. package/src/plugins/flexlend/struct.js +18 -0
  35. package/src/plugins/flexlend/struct.js.map +1 -0
  36. package/src/plugins/hawksight/positionsFetcher.js +31 -13
  37. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  38. package/src/plugins/meteora/poolsJob.js +25 -3
  39. package/src/plugins/meteora/poolsJob.js.map +1 -1
  40. package/src/plugins/orca/getWhirlpoolPositions.d.ts +2 -3
  41. package/src/plugins/orca/getWhirlpoolPositions.js +2 -14
  42. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  43. package/src/plugins/orca/helpers.d.ts +2 -2
  44. package/src/plugins/orca/helpers.js +1 -1
  45. package/src/plugins/orca/helpers.js.map +1 -1
  46. package/src/plugins/raydium/getRaydiumCLMMPositions.d.ts +2 -3
  47. package/src/plugins/raydium/getRaydiumCLMMPositions.js +3 -3
  48. package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
  49. package/src/plugins/raydium/helpers.d.ts +2 -2
  50. package/src/plugins/raydium/helpers.js +6 -1
  51. package/src/plugins/raydium/helpers.js.map +1 -1
  52. package/src/plugins/solend/constants.d.ts +1 -0
  53. package/src/plugins/solend/constants.js +2 -1
  54. package/src/plugins/solend/constants.js.map +1 -1
  55. package/src/plugins/solend/helpers.d.ts +6 -0
  56. package/src/plugins/solend/helpers.js +132 -1
  57. package/src/plugins/solend/helpers.js.map +1 -1
  58. package/src/plugins/solend/marketsJob.js +6 -0
  59. package/src/plugins/solend/marketsJob.js.map +1 -1
  60. package/src/plugins/solend/obligationsFetcher.js +27 -156
  61. package/src/plugins/solend/obligationsFetcher.js.map +1 -1
  62. package/src/plugins/solend/reservesJob.js +15 -6
  63. package/src/plugins/solend/reservesJob.js.map +1 -1
  64. package/src/plugins/solend/types.d.ts +1 -1
  65. package/src/plugins/suilend/obligationsFetcher.js +2 -0
  66. package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
  67. package/src/plugins/sushiswap/helpers.js +24 -24
  68. package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js +26 -15
  69. package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js.map +1 -1
  70. package/src/plugins/tokens/fetchers/solana.js +3 -1
  71. package/src/plugins/tokens/fetchers/solana.js.map +1 -1
  72. package/src/plugins/uniswap-v2/helpers.js +22 -22
  73. package/src/utils/sei/constants.js +8 -8
  74. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  75. package/src/utils/solana/das/getAssetsByOwnerDas.d.ts +2 -2
  76. package/src/utils/solana/das/getAssetsByOwnerDas.js +3 -9
  77. package/src/utils/solana/das/getAssetsByOwnerDas.js.map +1 -1
  78. package/src/utils/solana/das/getDisplayOptions.d.ts +2 -0
  79. package/src/utils/solana/das/getDisplayOptions.js +16 -0
  80. package/src/utils/solana/das/getDisplayOptions.js.map +1 -0
  81. package/src/utils/solana/das/types.d.ts +8 -0
  82. package/src/plugins/phoenix/constants.d.ts +0 -7
  83. package/src/plugins/phoenix/constants.js +0 -17
  84. package/src/plugins/phoenix/constants.js.map +0 -1
  85. package/src/plugins/phoenix/helpers.d.ts +0 -6
  86. package/src/plugins/phoenix/helpers.js +0 -46
  87. package/src/plugins/phoenix/helpers.js.map +0 -1
  88. package/src/plugins/phoenix/helpers2.d.ts +0 -0
  89. package/src/plugins/phoenix/helpers2.js +0 -179
  90. package/src/plugins/phoenix/helpers2.js.map +0 -1
  91. package/src/plugins/phoenix/index.js +0 -10
  92. package/src/plugins/phoenix/index.js.map +0 -1
  93. package/src/plugins/phoenix/marketsJob.js +0 -39
  94. package/src/plugins/phoenix/marketsJob.js.map +0 -1
  95. package/src/plugins/phoenix/positionsFetcher.js +0 -64
  96. package/src/plugins/phoenix/positionsFetcher.js.map +0 -1
  97. package/src/plugins/phoenix/structs.d.ts +0 -67
  98. package/src/plugins/phoenix/structs.js +0 -82
  99. package/src/plugins/phoenix/structs.js.map +0 -1
  100. package/src/plugins/phoenix/types.d.ts +0 -29
  101. package/src/plugins/phoenix/types.js.map +0 -1
  102. package/src/plugins/realms/constants.js.map +0 -1
  103. package/src/plugins/realms/depositsFetcher.d.ts +0 -3
  104. package/src/plugins/realms/depositsFetcher.js.map +0 -1
  105. package/src/plugins/realms/filters.js.map +0 -1
  106. package/src/plugins/realms/helpers.d.ts +0 -11
  107. package/src/plugins/realms/helpers.js.map +0 -1
  108. package/src/plugins/realms/index.js +0 -13
  109. package/src/plugins/realms/index.js.map +0 -1
  110. package/src/plugins/realms/programsJob.d.ts +0 -3
  111. package/src/plugins/realms/programsJob.js.map +0 -1
  112. package/src/plugins/realms/structs/realms.js.map +0 -1
  113. package/src/plugins/realms/types.js.map +0 -1
  114. package/src/plugins/spl-staking/constants.js.map +0 -1
  115. package/src/plugins/spl-staking/filters.js.map +0 -1
  116. package/src/plugins/spl-staking/index.d.ts +0 -6
  117. package/src/plugins/spl-staking/index.js.map +0 -1
  118. package/src/plugins/spl-staking/poolsJob.js.map +0 -1
  119. package/src/plugins/spl-staking/stakingFetcher.js.map +0 -1
  120. package/src/plugins/spl-staking/structs.js.map +0 -1
  121. package/src/plugins/spl-staking/types.js +0 -3
  122. package/src/plugins/spl-staking/types.js.map +0 -1
  123. /package/src/plugins/{spl-staking → armada-staking}/constants.d.ts +0 -0
  124. /package/src/plugins/{spl-staking → armada-staking}/constants.js +0 -0
  125. /package/src/plugins/{spl-staking → armada-staking}/filters.d.ts +0 -0
  126. /package/src/plugins/{spl-staking → armada-staking}/filters.js +0 -0
  127. /package/src/plugins/{phoenix → armada-staking}/index.d.ts +0 -0
  128. /package/src/plugins/{spl-staking → armada-staking}/poolsJob.d.ts +0 -0
  129. /package/src/plugins/{spl-staking → armada-staking}/poolsJob.js +0 -0
  130. /package/src/plugins/{spl-staking → armada-staking}/stakingFetcher.d.ts +0 -0
  131. /package/src/plugins/{spl-staking → armada-staking}/stakingFetcher.js +0 -0
  132. /package/src/plugins/{spl-staking → armada-staking}/structs.d.ts +0 -0
  133. /package/src/plugins/{spl-staking → armada-staking}/structs.js +0 -0
  134. /package/src/plugins/{spl-staking → armada-staking}/types.d.ts +0 -0
  135. /package/src/plugins/{phoenix → armada-staking}/types.js +0 -0
  136. /package/src/plugins/{realms → daos}/filters.d.ts +0 -0
  137. /package/src/plugins/{realms → daos}/filters.js +0 -0
  138. /package/src/plugins/{realms → daos}/index.d.ts +0 -0
  139. /package/src/plugins/{phoenix/positionsFetcher.d.ts → daos/realmsDepositsFetcher.d.ts} +0 -0
  140. /package/src/plugins/{phoenix/marketsJob.d.ts → daos/realmsProgramsJob.d.ts} +0 -0
  141. /package/src/plugins/{realms → daos}/structs/realms.d.ts +0 -0
  142. /package/src/plugins/{realms → daos}/structs/realms.js +0 -0
  143. /package/src/plugins/{realms → daos}/types.js +0 -0
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.11.149",
3
+ "version": "0.11.151",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
@@ -41,7 +41,7 @@
41
41
  "web3-v1": "npm:web3@^1.5.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@sonarwatch/portfolio-core": "0.11.149"
44
+ "@sonarwatch/portfolio-core": "0.11.151"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
package/src/index.js CHANGED
@@ -61,7 +61,7 @@ const uniswap_v2_1 = require("./plugins/uniswap-v2");
61
61
  const balancer_1 = require("./plugins/balancer");
62
62
  const paraswap_1 = require("./plugins/paraswap");
63
63
  const hawksight_1 = require("./plugins/hawksight");
64
- const realms_1 = require("./plugins/realms");
64
+ const daos_1 = require("./plugins/daos");
65
65
  const maple_1 = require("./plugins/maple");
66
66
  const flexlend_1 = require("./plugins/flexlend");
67
67
  const fluxbeam_1 = require("./plugins/fluxbeam");
@@ -90,13 +90,12 @@ const bskt_1 = require("./plugins/bskt");
90
90
  const genesysgo_1 = require("./plugins/genesysgo");
91
91
  const aurory_1 = require("./plugins/aurory");
92
92
  const x_staking_solana_1 = require("./plugins/x-staking-solana");
93
- const spl_staking_1 = require("./plugins/spl-staking");
93
+ const armada_staking_1 = require("./plugins/armada-staking");
94
94
  const abex_1 = require("./plugins/abex");
95
95
  const kai_1 = require("./plugins/kai");
96
96
  const suilend_1 = require("./plugins/suilend");
97
97
  const symmetry_1 = require("./plugins/symmetry");
98
98
  const staratlas_1 = require("./plugins/staratlas");
99
- const phoenix_1 = require("./plugins/phoenix");
100
99
  var constants_1 = require("./plugins/tokens/constants");
101
100
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
102
101
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -151,7 +150,7 @@ exports.platforms = [
151
150
  ...balancer_1.platforms,
152
151
  ...paraswap_1.platforms,
153
152
  ...hawksight_1.platforms,
154
- ...realms_1.platforms,
153
+ ...daos_1.platforms,
155
154
  ...maple_1.platforms,
156
155
  ...flexlend_1.platforms,
157
156
  ...fluxbeam_1.platforms,
@@ -180,13 +179,12 @@ exports.platforms = [
180
179
  ...genesysgo_1.platforms,
181
180
  ...aurory_1.platforms,
182
181
  ...x_staking_solana_1.platforms,
183
- ...spl_staking_1.platforms,
182
+ ...armada_staking_1.platforms,
184
183
  ...abex_1.platforms,
185
184
  ...kai_1.platforms,
186
185
  ...suilend_1.platforms,
187
186
  ...symmetry_1.platforms,
188
187
  ...staratlas_1.platforms,
189
- ...phoenix_1.platforms,
190
188
  ];
191
189
  // JOBS //
192
190
  exports.jobs = [
@@ -224,7 +222,7 @@ exports.jobs = [
224
222
  ...uniswap_1.jobs,
225
223
  ...balancer_1.jobs,
226
224
  ...paraswap_1.jobs,
227
- ...realms_1.jobs,
225
+ ...daos_1.jobs,
228
226
  ...maple_1.jobs,
229
227
  ...flexlend_1.jobs,
230
228
  ...fluxbeam_1.jobs,
@@ -253,13 +251,12 @@ exports.jobs = [
253
251
  ...genesysgo_1.jobs,
254
252
  ...aurory_1.jobs,
255
253
  ...x_staking_solana_1.jobs,
256
- ...spl_staking_1.jobs,
254
+ ...armada_staking_1.jobs,
257
255
  ...abex_1.jobs,
258
256
  ...kai_1.jobs,
259
257
  ...suilend_1.jobs,
260
258
  ...symmetry_1.jobs,
261
259
  ...staratlas_1.jobs,
262
- ...phoenix_1.jobs,
263
260
  ];
264
261
  // FETCHERS //
265
262
  exports.fetchers = [
@@ -298,7 +295,7 @@ exports.fetchers = [
298
295
  ...balancer_1.fetchers,
299
296
  ...paraswap_1.fetchers,
300
297
  ...hawksight_1.fetchers,
301
- ...realms_1.fetchers,
298
+ ...daos_1.fetchers,
302
299
  ...maple_1.fetchers,
303
300
  ...flexlend_1.fetchers,
304
301
  ...fluxbeam_1.fetchers,
@@ -328,13 +325,12 @@ exports.fetchers = [
328
325
  ...genesysgo_1.fetchers,
329
326
  ...aurory_1.fetchers,
330
327
  ...x_staking_solana_1.fetchers,
331
- ...spl_staking_1.fetchers,
328
+ ...armada_staking_1.fetchers,
332
329
  ...abex_1.fetchers,
333
330
  ...kai_1.fetchers,
334
331
  ...suilend_1.fetchers,
335
332
  ...symmetry_1.fetchers,
336
333
  ...staratlas_1.fetchers,
337
- ...phoenix_1.fetchers,
338
334
  ];
339
335
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
340
336
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGy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AG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;IACzB,GAAG,sBAAkB;IACrB,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,kBAAe;CACnB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mD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B,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;IACzB,GAAG,yBAAkB;IACrB,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,kDAAkD;CAC1D,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AAEnB,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,kCAAkC;IAC3C,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,sBAAc;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,kBAAkB,GAAG,UAAU,CAAC;AAChC,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,0BAAkB;IACtB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,GAAG,CAAC;IACpC,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,sBAAc,CAAC;IAChE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;CACrE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/filters.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,YAAY,gBAQvB"}
@@ -7,7 +7,13 @@ 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 stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
10
- exports.platforms = [constants_1.flowmaticPlatform];
10
+ exports.platforms = [
11
+ constants_1.flowmaticPlatform,
12
+ constants_1.yakuPlatform,
13
+ constants_1.madbearsPlatform,
14
+ constants_1.kishuPlatform,
15
+ constants_1.splStakingPlatform,
16
+ ];
11
17
  exports.jobs = [poolsJob_1.default];
12
18
  exports.fetchers = [stakingFetcher_1.default];
13
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAMqB;AACrB,0DAAkC;AAClC,sEAA8C;AAEjC,QAAA,SAAS,GAAe;IACnC,6BAAiB;IACjB,wBAAY;IACZ,4BAAgB;IAChB,yBAAa;IACb,8BAAkB;CACnB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAA6D;AAC7D,uCAA4C;AAG5C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,iCAAwB,EAC1C,MAAM,EACN,yBAAe,EACf,oBAAQ,EACR,IAAA,wBAAc,EAAC,yBAAe,CAAC,QAAQ,CAAC,CACzC,CAAC;IAEF,MAAM,SAAS,GAAe,EAAE,CAAC;IACjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,SAAS,CAAC,IAAI,CAAC;YACb,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,SAAS,EAAE;QACvC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAA6E;AAC7E,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAG7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,UAAU,GAAwB,IAAI,GAAG,EAAE,CAAC;IAClD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAEhE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAE9C,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACrD,KAAK,EACL,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM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qB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,GAAG,CAAC,CAAC;CAC9C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/types.ts"],"names":[],"mappings":""}
@@ -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;
@@ -3,8 +3,10 @@ import { Platform } from '@sonarwatch/portfolio-core';
3
3
  import { VSRInfos } from './types';
4
4
  export declare const platformId = "realms";
5
5
  export declare const realmsPlatform: Platform;
6
+ export declare const heliumPlatformId = "helium";
7
+ export declare const heliumPlatform: Platform;
6
8
  export declare const splGovProgramsKey = "splGovernancePrograms";
7
9
  export declare const registrarKey = "registrars";
8
- export declare const customVsrInfo: VSRInfos[];
9
- export declare const vsrProgram: PublicKey;
10
+ export declare const realmsCustomVsrInfo: VSRInfos[];
11
+ export declare const realmsVsrProgram: PublicKey;
10
12
  export declare const splGovernanceUrl = "https://app.realms.today/api/splGovernancePrograms";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.splGovernanceUrl = exports.vsrProgram = exports.customVsrInfo = exports.registrarKey = exports.splGovProgramsKey = exports.realmsPlatform = exports.platformId = void 0;
3
+ exports.splGovernanceUrl = exports.realmsVsrProgram = exports.realmsCustomVsrInfo = exports.registrarKey = exports.splGovProgramsKey = exports.heliumPlatform = exports.heliumPlatformId = exports.realmsPlatform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'realms';
6
6
  exports.realmsPlatform = {
@@ -10,9 +10,16 @@ exports.realmsPlatform = {
10
10
  defiLlamaId: 'spl-governance',
11
11
  website: 'https://app.realms.today/',
12
12
  };
13
+ exports.heliumPlatformId = 'helium';
14
+ exports.heliumPlatform = {
15
+ id: exports.heliumPlatformId,
16
+ name: 'Helium',
17
+ image: 'https://sonar.watch/img/platforms/helium.png',
18
+ website: 'https://heliumvote.com/',
19
+ };
13
20
  exports.splGovProgramsKey = 'splGovernancePrograms';
14
21
  exports.registrarKey = 'registrars';
15
- exports.customVsrInfo = [
22
+ exports.realmsCustomVsrInfo = [
16
23
  {
17
24
  programId: new web3_js_1.PublicKey('VoteMBhDCqGLRgYpp9o7DGyq81KNmwjXQRAHStjtJsS'), // Marinade
18
25
  mint: 'MNDEFzGvMt87ueuHvVU9VcTqsAP5b3fTGPsHuuPA5ey',
@@ -30,6 +37,6 @@ exports.customVsrInfo = [
30
37
  mint: '2j437Lt84XvysJiYbXTSJfAMy26Et9HiVGFvGFp8nYWH',
31
38
  },
32
39
  ];
33
- exports.vsrProgram = new web3_js_1.PublicKey('vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ');
40
+ exports.realmsVsrProgram = new web3_js_1.PublicKey('vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ');
34
41
  exports.splGovernanceUrl = 'https://app.realms.today/api/splGovernancePrograms';
35
42
  //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAE5B,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,wBAAgB;IACpB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,iBAAiB,GAAG,uBAAuB,CAAC;AAC5C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,mBAAmB,GAAe;IAC7C;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,WAAW;QACpF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,QAAQ;QAClF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,QAAQ;QACjF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,aAAa;QACvF,IAAI,EAAE,8CAA8C;KACrD;CACF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/filters.ts"],"names":[],"mappings":";;;AAAA,6CAA2D;AAEpD,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACrD,EAAE,QAAQ,EAAE,mBAAU,CAAC,QAAQ,EAAE;IACjC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACtD,EAAE,QAAQ,EAAE,oBAAW,CAAC,QAAQ,EAAE;IAClC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,mBAAmB,uBAQ9B;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC;IAC3C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;SACX;KACF;CACF,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAAnD,QAAA,sBAAsB,0BAA6B"}
@@ -0,0 +1,10 @@
1
+ import { PortfolioAssetCollectible, PortfolioElement } from '@sonarwatch/portfolio-core';
2
+ import BigNumber from 'bignumber.js';
3
+ import { PublicKey } from '@solana/web3.js';
4
+ import { Cache } from '../../Cache';
5
+ import { LockupKind } from './structs/realms';
6
+ export declare const nftIdentifier = "Voting Escrow Token Position";
7
+ export declare function isAnHeliumNFTVote(nft: PortfolioAssetCollectible): boolean;
8
+ export declare function getVoterPda(owner: string, registrar: string, vsr: string): PublicKey;
9
+ export declare function getHeliumElementsFromNFTs(cache: Cache, nfts: PortfolioAssetCollectible[]): Promise<PortfolioElement[]>;
10
+ export declare function getLockedUntil(startTs: BigNumber, endTs: BigNumber, lockupKind: LockupKind): number | undefined;
@@ -12,21 +12,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.getLockedUntil = exports.getPositionFromVotingEscrowNFT = exports.getVoterPda = exports.isAVotingEscrowPosition = exports.votingEscrowIdentifier = void 0;
16
- const js_1 = require("@metaplex-foundation/js");
15
+ exports.getLockedUntil = exports.getHeliumElementsFromNFTs = exports.getVoterPda = exports.isAnHeliumNFTVote = exports.nftIdentifier = void 0;
17
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
18
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
18
  const web3_js_1 = require("@solana/web3.js");
20
- const clients_1 = require("../../utils/clients");
21
19
  const realms_1 = require("./structs/realms");
22
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
23
21
  const constants_1 = require("./constants");
24
- const getTokensPricesMap_1 = __importDefault(require("../../utils/misc/getTokensPricesMap"));
25
- exports.votingEscrowIdentifier = 'Voting Escrow Token Position';
26
- function isAVotingEscrowPosition(nft) {
27
- return nft && nft.name === exports.votingEscrowIdentifier;
22
+ exports.nftIdentifier = 'Voting Escrow Token Position';
23
+ function isAnHeliumNFTVote(nft) {
24
+ return nft.data.name === exports.nftIdentifier;
28
25
  }
29
- exports.isAVotingEscrowPosition = isAVotingEscrowPosition;
26
+ exports.isAnHeliumNFTVote = isAnHeliumNFTVote;
30
27
  function getVoterPda(owner, registrar, vsr) {
31
28
  return web3_js_1.PublicKey.findProgramAddressSync([
32
29
  new web3_js_1.PublicKey(registrar).toBuffer(),
@@ -35,32 +32,27 @@ function getVoterPda(owner, registrar, vsr) {
35
32
  ], new web3_js_1.PublicKey(vsr))[0];
36
33
  }
37
34
  exports.getVoterPda = getVoterPda;
38
- function getPositionFromVotingEscrowNFT(cache, nfts) {
35
+ function getHeliumElementsFromNFTs(cache, nfts) {
39
36
  return __awaiter(this, void 0, void 0, function* () {
40
- const client = (0, clients_1.getClientSolana)();
41
- const metaplex = new js_1.Metaplex(client);
42
37
  const assets = [];
43
38
  const amountByMint = new Map();
44
39
  for (const nft of nfts) {
45
- if ((0, js_1.isMetadata)(nft)) {
46
- const metadata = yield metaplex.nfts().load({ metadata: nft });
47
- if (!metadata.json)
48
- continue;
49
- const { attributes } = metadata.json;
50
- const votersValues = getNftValues(attributes);
51
- if (votersValues && !votersValues.amountDepositedNative.isZero()) {
52
- const existingAmount = amountByMint.get(votersValues.votingMint);
53
- if (existingAmount) {
54
- amountByMint.set(votersValues.votingMint, existingAmount.plus(votersValues.amountDepositedNative));
55
- }
56
- else {
57
- amountByMint.set(votersValues.votingMint, votersValues.amountDepositedNative);
58
- }
40
+ const { attributes } = nft.data;
41
+ if (!attributes)
42
+ continue;
43
+ const votersValues = getNftValues(attributes);
44
+ if (votersValues && !votersValues.amountDepositedNative.isZero()) {
45
+ const existingAmount = amountByMint.get(votersValues.votingMint);
46
+ if (existingAmount) {
47
+ amountByMint.set(votersValues.votingMint, existingAmount.plus(votersValues.amountDepositedNative));
48
+ }
49
+ else {
50
+ amountByMint.set(votersValues.votingMint, votersValues.amountDepositedNative);
59
51
  }
60
52
  }
61
53
  }
62
54
  const mints = Array.from(amountByMint.keys());
63
- const tokenPriceById = yield (0, getTokensPricesMap_1.default)(mints, portfolio_core_1.NetworkId.solana, cache);
55
+ const tokenPriceById = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana);
64
56
  for (const mint of mints) {
65
57
  const amount = amountByMint.get(mint);
66
58
  if (amount) {
@@ -74,7 +66,7 @@ function getPositionFromVotingEscrowNFT(cache, nfts) {
74
66
  return [
75
67
  {
76
68
  networkId: portfolio_core_1.NetworkId.solana,
77
- platformId: constants_1.platformId,
69
+ platformId: constants_1.heliumPlatformId,
78
70
  type: 'multiple',
79
71
  label: 'Deposit',
80
72
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
@@ -85,7 +77,7 @@ function getPositionFromVotingEscrowNFT(cache, nfts) {
85
77
  ];
86
78
  });
87
79
  }
88
- exports.getPositionFromVotingEscrowNFT = getPositionFromVotingEscrowNFT;
80
+ exports.getHeliumElementsFromNFTs = getHeliumElementsFromNFTs;
89
81
  function getLockedUntil(startTs, endTs, lockupKind) {
90
82
  let lockedUntil;
91
83
  if (lockupKind === realms_1.LockupKind.Constant) {
@@ -126,7 +118,7 @@ function getNftValues(items) {
126
118
  registrar,
127
119
  amountDeposited: new bignumber_js_1.default(amountDeposited),
128
120
  amountDepositedNative: new bignumber_js_1.default(amountDepositedNative),
129
- votingMintConfigIdx: Number(votingMintConfigIdx),
121
+ votingMintConfigIdx,
130
122
  votingMint,
131
123
  startTs: new bignumber_js_1.default(startTs),
132
124
  endTs: new bignumber_js_1.default(endTs),
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,6CAA8C;AAC9C,qGAA6E;AAC7E,2CAA+C;AAElC,QAAA,aAAa,GAAG,8BAA8B,CAAC;AAE5D,SAAgB,iBAAiB,CAAC,GAA8B;IAC9D,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,qBAAa,CAAC;AACzC,CAAC;AAFD,8CAEC;AAED,SAAgB,WAAW,CACzB,KAAa,EACb,SAAiB,EACjB,GAAW;IAEX,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,IAAI,mBAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QACnC,MAAM,CAAC,IAAI,C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e,EAAE,IAAI,sBAAS,CAAC,eAAe,CAAC;YAC/C,qBAAqB,EAAE,IAAI,sBAAS,CAAC,qBAAqB,CAAC;YAC3D,mBAAmB;YACnB,UAAU;YACV,OAAO,EAAE,IAAI,sBAAS,CAAC,OAAO,CAAC;YAC/B,KAAK,EAAE,IAAI,sBAAS,CAAC,KAAK,CAAC;YAC3B,IAAI;YACJ,UAAU;YACV,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;SACb,CAAC;IAC9B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.platforms = exports.fetchers = exports.jobs = void 0;
7
+ const realmsDepositsFetcher_1 = __importDefault(require("./realmsDepositsFetcher"));
8
+ const constants_1 = require("./constants");
9
+ const realmsProgramsJob_1 = __importDefault(require("./realmsProgramsJob"));
10
+ exports.jobs = [realmsProgramsJob_1.default];
11
+ exports.fetchers = [realmsDepositsFetcher_1.default];
12
+ exports.platforms = [constants_1.realmsPlatform, constants_1.heliumPlatform];
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/index.ts"],"names":[],"mappings":";;;;;;AAGA,oFAAsD;AACtD,2CAA6D;AAC7D,4EAA8C;AAEjC,QAAA,IAAI,GAAU,CAAC,2BAAW,CAAC,CAAC;AAC5B,QAAA,QAAQ,GAAc,CAAC,+BAAe,CAAC,CAAC;AACxC,QAAA,SAAS,GAAe,CAAC,0BAAc,EAAE,0BAAc,CAAC,CAAC"}
@@ -107,4 +107,4 @@ const fetcher = {
107
107
  executor,
108
108
  };
109
109
  exports.default = fetcher;
110
- //# sourceMappingURL=depositsFetcher.js.map
110
+ //# sourceMappingURL=realmsDepositsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAA+C;AAC/C,qGAA6E;AAC7E,uCAAwD;AAGxD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAY,MAAM,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAC7C,MAAM,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IAExC,MAAM,oBAAoB,GAAgB,EAAE,CAAC;IAC7C,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;QAC7C,oBAAoB,CAAC,IAAI,CACvB,IAAA,qBAAW,EAAC,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAC5D,CAAC;QACF,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,MAAM,IAAA,sCAA6B,EAC3D,MAAM,EACN,oBAAW,EACX,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EACrE,0BAAS,CAAC,MAAM,EAChB,EAAE,CACH,CAAC;gBACF,MAAM,WAAW,GAAG,IAAA,wBAAc,EAChC,OAAO,CAAC,MAAM,CAAC,OAAO,EACtB,OAAO,CAAC,MAAM,CAAC,KAAK,EACpB,OAAO,CAAC,MAAM,CAAC,IAAI,CACpB,CAAC;gBAEF,YAAY,CAAC,IAAI,CACf,WAAW,CAAC,CAAC,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAG,CAAC,CAAC,KAAK,CAChE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACvD,IAAI,EAAE;gBACJ,MAAM,EAAE,YAAY;aACrB;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -24,13 +24,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  const splGovPrograms = yield axios_1.default.get(constants_1.splGovernanceUrl);
25
25
  const client = (0, clients_1.getClientSolana)();
26
26
  const registrars = [];
27
- const allRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, constants_1.vsrProgram, (0, filters_1.registratAccountFilter)());
27
+ const allRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, constants_1.realmsVsrProgram, (0, filters_1.registratAccountFilter)());
28
28
  allRegistrars.forEach((account) => registrars.push({
29
- vsr: constants_1.vsrProgram.toString(),
29
+ vsr: constants_1.realmsVsrProgram.toString(),
30
30
  pubkey: account.pubkey.toString(),
31
31
  mint: account.realmGoverningTokenMint.toString(),
32
32
  }));
33
- for (const vsrInfo of constants_1.customVsrInfo) {
33
+ for (const vsrInfo of constants_1.realmsCustomVsrInfo) {
34
34
  const customRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, new web3_js_1.PublicKey(vsrInfo.programId), (0, filters_1.registratAccountFilter)());
35
35
  customRegistrars.forEach((registrar) => registrars.push({
36
36
  pubkey: registrar.pubkey.toString(),
@@ -53,4 +53,4 @@ const job = {
53
53
  label: 'normal',
54
54
  };
55
55
  exports.default = job;
56
- //# sourceMappingURL=programsJob.js.map
56
+ //# sourceMappingURL=realmsProgramsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realmsProgramsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsProgramsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AACvD,6CAA4C;AAG5C,2CAKqB;AACrB,+CAA8D;AAC9D,iDAAsD;AACtD,6CAAmD;AACnD,uCAAmD;AAGnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,cAAc,GAA4B,MAAM,eAAK,CAAC,GAAG,CAC7D,4BAAgB,CACjB,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,UAAU,GAAoB,EAAE,CAAC;IACvC,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,wBAAe,EACf,4BAAgB,EAChB,IAAA,gCAAs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C,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC,aAAa,EAAE,IAAA,4BAAqB,EAAC,8BAAsB,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC;CAC9C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC;AAQW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,EAAE,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC"}
@@ -4,7 +4,7 @@ export type VSRInfos = {
4
4
  programId: PublicKey;
5
5
  mint: string;
6
6
  };
7
- export type NftVoterMetadata = {
7
+ export type HeliumNftVoterMetadata = {
8
8
  registrar: string;
9
9
  amountDepositedNative: BigNumber;
10
10
  amountDeposited: BigNumber;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/types.ts"],"names":[],"mappings":""}
@@ -13,23 +13,82 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const web3_js_1 = require("@solana/web3.js");
16
17
  const constants_1 = require("./constants");
17
18
  const helpers_1 = require("./helpers");
18
- const obligationsFetcher_1 = __importDefault(require("../solend/obligationsFetcher"));
19
19
  const deposits_1 = __importDefault(require("../drift/deposits"));
20
20
  const lendsFetcher_1 = __importDefault(require("../kamino/lendsFetcher"));
21
21
  const collateralFetcher_1 = __importDefault(require("../mango/collateralFetcher"));
22
22
  const index_1 = require("../marginfi/index");
23
23
  const constants_2 = require("../tokens/constants");
24
+ const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
25
+ const clients_1 = require("../../utils/clients");
26
+ const struct_1 = require("./struct");
27
+ const structs_1 = require("../solend/structs");
28
+ const constants_3 = require("../solend/constants");
29
+ const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
30
+ const helpers_2 = require("../solend/helpers");
24
31
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
32
+ const client = (0, clients_1.getClientSolana)();
25
33
  const pda = (0, helpers_1.getDerivedAccount)(owner);
26
- const portfolioElements = (yield Promise.all([
34
+ const userAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, struct_1.userAccountStruct, new web3_js_1.PublicKey(pda));
35
+ if (!userAccount)
36
+ return [];
37
+ const portfolioElements = [];
38
+ const [marginElements, driftElements, kaminoElements, mangoElements, solendObligation,] = yield Promise.all([
27
39
  index_1.fetchers[0].executor(pda, cache),
28
- obligationsFetcher_1.default.executor(pda, cache),
29
40
  deposits_1.default.executor(pda, cache),
30
41
  lendsFetcher_1.default.executor(pda, cache),
31
42
  collateralFetcher_1.default.executor(pda, cache),
32
- ])).flat();
43
+ (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.obligationStruct, userAccount.solend_obligation),
44
+ ]);
45
+ portfolioElements.push(...[
46
+ ...marginElements,
47
+ ...driftElements,
48
+ ...kaminoElements,
49
+ ...mangoElements,
50
+ ]);
51
+ if (solendObligation) {
52
+ const mainMarketInfo = yield cache.getItem(constants_3.mainMarket, {
53
+ prefix: constants_3.marketsPrefix,
54
+ networkId: portfolio_core_1.NetworkId.solana,
55
+ });
56
+ if (mainMarketInfo) {
57
+ const reserveAddresses = new Set();
58
+ mainMarketInfo.reserves.forEach((reserve) => {
59
+ reserveAddresses.add(reserve.address);
60
+ });
61
+ const reservesInfos = yield cache.getItems(Array.from(reserveAddresses), {
62
+ prefix: constants_3.reservesPrefix,
63
+ networkId: portfolio_core_1.NetworkId.solana,
64
+ });
65
+ if (reservesInfos.length !== 0) {
66
+ const mints = [];
67
+ const pythAddresses = [];
68
+ const reserveByAddress = new Map();
69
+ reservesInfos.forEach((reserve) => {
70
+ if (!reserve)
71
+ return;
72
+ pythAddresses.push(new web3_js_1.PublicKey(reserve.reserve.liquidity.pythOracle));
73
+ mints.push(reserve.reserve.liquidity.mintPubkey);
74
+ reserveByAddress.set(reserve.pubkey, reserve);
75
+ });
76
+ const [pythAccounts, tokenPriceByAddress] = yield Promise.all([
77
+ (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, pythAddresses),
78
+ cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana),
79
+ ]);
80
+ const pythAccByAddress = new Map();
81
+ for (let i = 0; i < pythAddresses.length; i++) {
82
+ const account = pythAccounts[i];
83
+ if (account === null)
84
+ continue;
85
+ pythAccByAddress.set(pythAddresses[i].toString(), account);
86
+ }
87
+ const solendElements = (0, helpers_2.getElementsFromObligations)([solendObligation], reserveByAddress, new Map([[constants_3.mainMarket, mainMarketInfo]]), tokenPriceByAddress, pythAccByAddress);
88
+ portfolioElements.push(...solendElements);
89
+ }
90
+ }
91
+ }
33
92
  if (portfolioElements.length === 0)
34
93
  return [];
35
94
  const elements = [];