@sonarwatch/portfolio-plugins 0.12.35 → 0.12.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/CHANGELOG.md +9 -5
  2. package/package.json +1 -1
  3. package/src/index.js +8 -0
  4. package/src/index.js.map +1 -1
  5. package/src/orphanPlatorms.js +0 -8
  6. package/src/orphanPlatorms.js.map +1 -1
  7. package/src/plugins/01/depostisFetcher.js +1 -1
  8. package/src/plugins/01/depostisFetcher.js.map +1 -1
  9. package/src/plugins/aave/helpers.js +6 -1
  10. package/src/plugins/aave/helpers.js.map +1 -1
  11. package/src/plugins/allbridge/constants.d.ts +12 -0
  12. package/src/plugins/allbridge/constants.js +26 -0
  13. package/src/plugins/allbridge/constants.js.map +1 -0
  14. package/src/plugins/allbridge/getPoolInfo.d.ts +3 -0
  15. package/src/plugins/allbridge/getPoolInfo.js +28 -0
  16. package/src/plugins/allbridge/getPoolInfo.js.map +1 -0
  17. package/src/plugins/allbridge/helpers.d.ts +5 -0
  18. package/src/plugins/allbridge/helpers.js +25 -0
  19. package/src/plugins/allbridge/helpers.js.map +1 -0
  20. package/src/plugins/allbridge/idl.d.ts +58 -0
  21. package/src/plugins/allbridge/idl.js +476 -0
  22. package/src/plugins/allbridge/idl.js.map +1 -0
  23. package/src/plugins/allbridge/index.d.ts +6 -0
  24. package/src/plugins/allbridge/index.js +13 -0
  25. package/src/plugins/allbridge/index.js.map +1 -0
  26. package/src/plugins/allbridge/poolsJob.d.ts +3 -0
  27. package/src/plugins/allbridge/poolsJob.js +40 -0
  28. package/src/plugins/allbridge/poolsJob.js.map +1 -0
  29. package/src/plugins/allbridge/positionsFetcher.js +88 -0
  30. package/src/plugins/allbridge/positionsFetcher.js.map +1 -0
  31. package/src/plugins/allbridge/types.d.ts +38 -0
  32. package/src/plugins/allbridge/types.js +3 -0
  33. package/src/plugins/allbridge/types.js.map +1 -0
  34. package/src/plugins/aptin/depositsFetcher.js +6 -1
  35. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  36. package/src/plugins/aries/depositsFetcher.js +7 -1
  37. package/src/plugins/aries/depositsFetcher.js.map +1 -1
  38. package/src/plugins/banx/{calculateLoanRepayValue.d.ts → helpers.d.ts} +1 -0
  39. package/src/plugins/banx/{calculateLoanRepayValue.js → helpers.js} +29 -2
  40. package/src/plugins/banx/helpers.js.map +1 -0
  41. package/src/plugins/banx/loansFetcher.js +16 -7
  42. package/src/plugins/banx/loansFetcher.js.map +1 -1
  43. package/src/plugins/banx/offersFetcher.js +5 -1
  44. package/src/plugins/banx/offersFetcher.js.map +1 -1
  45. package/src/plugins/bucket/collateralFetcher.js +1 -1
  46. package/src/plugins/bucket/collateralFetcher.js.map +1 -1
  47. package/src/plugins/citrus/loansFetcher.js +5 -1
  48. package/src/plugins/citrus/loansFetcher.js.map +1 -1
  49. package/src/plugins/clone/depositsFetcher.js +2 -2
  50. package/src/plugins/clone/depositsFetcher.js.map +1 -1
  51. package/src/plugins/compound/getPositionsV2Fetcher.js +1 -1
  52. package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
  53. package/src/plugins/compound/getPositionsV3Fetcher.js +5 -1
  54. package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
  55. package/src/plugins/drift/depositsFetcher.d.ts +3 -0
  56. package/src/plugins/drift/{deposits.js → depositsFetcher.js} +4 -4
  57. package/src/plugins/drift/depositsFetcher.js.map +1 -0
  58. package/src/plugins/drift/index.js +2 -2
  59. package/src/plugins/drift/index.js.map +1 -1
  60. package/src/plugins/flash/perpetualFetcher.js +1 -1
  61. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  62. package/src/plugins/flexlend/depositsFetcher.js +2 -2
  63. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  64. package/src/plugins/jupiter/exchange/perpetualFetcher.js +8 -8
  65. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  66. package/src/plugins/jupiter/pricingJob.js +7 -22
  67. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  68. package/src/plugins/kamino/lendsFetcher.js +21 -3
  69. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  70. package/src/plugins/maker/vaultsFetcher.js +1 -1
  71. package/src/plugins/maker/vaultsFetcher.js.map +1 -1
  72. package/src/plugins/mango/boostFetcher.js +1 -1
  73. package/src/plugins/mango/boostFetcher.js.map +1 -1
  74. package/src/plugins/mango/collateralFetcher.js +1 -1
  75. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  76. package/src/plugins/mango/redeemFetcher.js +1 -1
  77. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  78. package/src/plugins/maple/ethereumFetcher.js +1 -1
  79. package/src/plugins/maple/ethereumFetcher.js.map +1 -1
  80. package/src/plugins/marginfi/helpers.js +7 -1
  81. package/src/plugins/marginfi/helpers.js.map +1 -1
  82. package/src/plugins/mole/farmsFetcher.js +5 -1
  83. package/src/plugins/mole/farmsFetcher.js.map +1 -1
  84. package/src/plugins/morpho/aaveV3CollateralFetcher.js +1 -1
  85. package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
  86. package/src/plugins/native-stake/solana/solanaFetcher.js +2 -0
  87. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  88. package/src/plugins/navi/collateralFetcher.js +6 -1
  89. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  90. package/src/plugins/nosana/stakingFetcher.js +8 -2
  91. package/src/plugins/nosana/stakingFetcher.js.map +1 -1
  92. package/src/plugins/port/obligationsFetcher.js +1 -1
  93. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  94. package/src/plugins/rain/loansFetcher.js +1 -1
  95. package/src/plugins/rain/loansFetcher.js.map +1 -1
  96. package/src/plugins/rain/poolsFetcher.js +1 -1
  97. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  98. package/src/plugins/sanctum/constants.d.ts +4 -0
  99. package/src/plugins/sanctum/constants.js +14 -0
  100. package/src/plugins/sanctum/constants.js.map +1 -0
  101. package/src/plugins/sanctum/index.d.ts +6 -0
  102. package/src/plugins/sanctum/index.js +12 -0
  103. package/src/plugins/sanctum/index.js.map +1 -0
  104. package/src/plugins/sanctum/lstsJob.d.ts +3 -0
  105. package/src/plugins/sanctum/lstsJob.js +36 -0
  106. package/src/plugins/sanctum/lstsJob.js.map +1 -0
  107. package/src/plugins/scallop/lendingsFetcher.js +1 -1
  108. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  109. package/src/plugins/scallop/obligationsFetcher.js +1 -1
  110. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  111. package/src/plugins/sharky/loansFetcher.js +5 -1
  112. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  113. package/src/plugins/solend/helpers.js +7 -1
  114. package/src/plugins/solend/helpers.js.map +1 -1
  115. package/src/plugins/suilend/obligationsFetcher.js +7 -1
  116. package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
  117. package/src/plugins/thala/vaultsFetcher.js +1 -1
  118. package/src/plugins/thala/vaultsFetcher.js.map +1 -1
  119. package/src/plugins/zeta/airdropFetcher.d.ts +3 -0
  120. package/src/plugins/zeta/airdropFetcher.js +105 -0
  121. package/src/plugins/zeta/airdropFetcher.js.map +1 -0
  122. package/src/plugins/zeta/constants.d.ts +3 -0
  123. package/src/plugins/zeta/constants.js +4 -1
  124. package/src/plugins/zeta/constants.js.map +1 -1
  125. package/src/plugins/zeta/index.js +2 -1
  126. package/src/plugins/zeta/index.js.map +1 -1
  127. package/src/plugins/zeta/types.d.ts +14 -0
  128. package/src/plugins/zeta/types.js +3 -0
  129. package/src/plugins/zeta/types.js.map +1 -0
  130. package/src/plugins/banx/calculateLoanRepayValue.js.map +0 -1
  131. package/src/plugins/drift/deposits.js.map +0 -1
  132. /package/src/plugins/{drift/deposits.d.ts → allbridge/positionsFetcher.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,14 +2,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [0.12.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.34...plugins-0.12.35) (2024-06-20)
6
-
7
-
8
-
9
- ## [0.12.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.33...plugins-0.12.34) (2024-06-19)
5
+ ## [0.12.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.35...plugins-0.12.36) (2024-06-21)
10
6
 
11
7
 
12
8
 
9
+ ## [0.12.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.34...plugins-0.12.35) (2024-06-20)
10
+
11
+
12
+
13
+ ## [0.12.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.33...plugins-0.12.34) (2024-06-19)
14
+
15
+
16
+
13
17
  ## [0.12.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.32...plugins-0.12.33) (2024-06-19)
14
18
 
15
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.35",
3
+ "version": "0.12.36",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -123,6 +123,8 @@ const moonwalk_1 = require("./plugins/moonwalk");
123
123
  const bluefin_1 = require("./plugins/bluefin");
124
124
  const citrus_1 = require("./plugins/citrus");
125
125
  const sharky_1 = require("./plugins/sharky");
126
+ const sanctum_1 = require("./plugins/sanctum");
127
+ const allbridge_1 = require("./plugins/allbridge");
126
128
  var constants_1 = require("./plugins/tokens/constants");
127
129
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
128
130
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -239,6 +241,8 @@ exports.platforms = [
239
241
  ...bluefin_1.platforms,
240
242
  ...citrus_1.platforms,
241
243
  ...sharky_1.platforms,
244
+ ...sanctum_1.platforms,
245
+ ...allbridge_1.platforms,
242
246
  ];
243
247
  // JOBS //
244
248
  exports.jobs = [
@@ -338,6 +342,8 @@ exports.jobs = [
338
342
  ...bluefin_1.jobs,
339
343
  ...citrus_1.jobs,
340
344
  ...sharky_1.jobs,
345
+ ...sanctum_1.jobs,
346
+ ...allbridge_1.jobs,
341
347
  ];
342
348
  // FETCHERS //
343
349
  exports.fetchers = [
@@ -439,6 +445,8 @@ exports.fetchers = [
439
445
  ...bluefin_1.fetchers,
440
446
  ...citrus_1.fetchers,
441
447
  ...sharky_1.fetchers,
448
+ ...sanctum_1.fetchers,
449
+ ...allbridge_1.fetchers,
442
450
  ];
443
451
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
444
452
  exports.airdropFetchers = [
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,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,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5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B,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;IACpB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;CAClB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,sBAAmB;IACnB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3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G,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,sBAAmB;IACnB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -57,14 +57,6 @@ const otphanPlatforms = [
57
57
  image: 'https://sonar.watch/img/platforms/stakewise.png',
58
58
  website: 'https://stakewise.io/',
59
59
  },
60
- {
61
- id: 'sanctum',
62
- defiLlamaId: 'parent#sanctum', // from https://defillama.com/docs/api
63
- name: 'Sanctum',
64
- image: 'https://sonar.watch/img/platforms/sanctum.webp',
65
- website: 'https://www.sanctum.so/',
66
- twitter: 'https://twitter.com/sanctumso',
67
- },
68
60
  ];
69
61
  exports.default = otphanPlatforms;
70
62
  //# sourceMappingURL=orphanPlatorms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,wDAAwD;QAC/D,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,iDAAiD;QACxD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;QACrE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,gDAAgD;QACvD,OAAO,EAAE,yBAAyB;QAClC,OAAO,EAAE,+BAA+B;KACzC;CACF,CAAC;AACF,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,wDAAwD;QAC/D,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,4CAA4C;QACnD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,iDAAiD;QACxD,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAC;AACF,kBAAe,eAAe,CAAC"}
@@ -53,7 +53,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
53
53
  const elements = [];
54
54
  if (suppliedAssets.length === 0)
55
55
  return [];
56
- const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
56
+ const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
57
57
  elements.push();
58
58
  return [
59
59
  {
@@ -1 +1 @@
1
- {"version":3,"file":"depostisFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/01/depostisFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAG5C,2CAAgD;AAChD,uCAAmC;AACnC,kFAA+E;AAC/E,qCAAwC;AACxC,iDAAsD;AACtD,iDAA+D;AAC/D,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,GAAG,GAAG,IAAA,gBAAM,EAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAoB,EAAC,MAAM,EAAE,qBAAY,EAAE,GAAG,CAAC,CAAC;IAEtE,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAC1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACnD,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,SAAS,GAAG,IAAA,kCAAwB,EAAC,UAAU,CAAC,CAAC;QACvD,IAAI,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAAE,SAAS;QAE/C,MAAM,IAAI,GAAG,iBA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AE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -237,7 +237,12 @@ function getElementLendingData(networkId, userSummary) {
237
237
  }
238
238
  }
239
239
  const rewardAssets = getRewardAssets(networkId, calculatedUserIncentives);
240
- const { borrowedValue, suppliedValue, healthRatio, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets, suppliedLtvs);
240
+ const { borrowedValue, suppliedValue, healthRatio, value, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({
241
+ suppliedAssets,
242
+ borrowedAssets,
243
+ rewardAssets,
244
+ suppliedLtvs,
245
+ });
241
246
  const elementData = {
242
247
  rewardAssets,
243
248
  rewardValue,
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAcoC;AACpC,6DAGgC;AAChC,wDAAiE;AACjE,iDAG0B;AAS1B,6DAA+D;AAC/D,2CAAyC;AAE5B,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,SAAsB,sBAAsB,CAC1C,OAAe,EACf,SAAwB,EACxB,OAAwB,EACxB,KAAY,EACZ,SAAqB;;;QAErB,MAAM,QAAQ,GAAiC,EAAE,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,MAAM,EACJ,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,GAC/B,GAAG,MAAM,CAAC;YACX,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CACrC,0BAA0B,EAC1B;gBACE,MAAM,EAAE,0BAAkB;gBAC1B,SAAS;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ACd,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,KAAK;KACN,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAlED,sDAkEC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAcoC;AACpC,6DAGgC;AAChC,wDAAiE;AACjE,iDAG0B;AAS1B,6DAA+D;AAC/D,2CAAyC;AAE5B,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,SAAsB,sBAAsB,CAC1C,OAAe,EACf,SAAwB,EACxB,OAAwB,EACxB,KAAY,EACZ,SAAqB;;;QAErB,MAAM,QAAQ,GAAiC,EAAE,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,MAAM,EACJ,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,GAC/B,GAAG,MAAM,CAAC;YACX,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CACrC,0BAA0B,EAC1B;gBACE,MAAM,EAAE,0BAAkB;gBAC1B,SAAS;aACV,CACF,CAAC;YACF,IAAI,CAAC,WAAW;gBAAE,SAAS;YAE3B,MAAM,WAAW,GAAG,IAAA,0BAAc,EAAC,SAAS,CAAC,CAAC;YAC9C,MAAM,IAAI,GAAG,MAAA,WAAW,CAAC,SAAS,0CAAE,QAAQ,CAAC;YAC7C,MAAM,QAAQ,GAAG,MAAA,WAAW,CAAC,SAAS,0CAAE,QAAQ,CAAC;YACjD,MAAM,QAAQ,GAAG,IAAI,iCAAqB,CACxC;gBACE,GAAG,EAAE,WAAW,CAAC,GAAG;gBACpB,IAAI;gBACJ,QAAQ;aACT,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AE,CAAC;YAC5C,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,GAAG,yBAAyB,CACjE,SAAS,EACT,eAAe,CAChB,CAAC;YACF,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5B,cAAc,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC7C,CAAC;QAED,WAAW;QACX,IAAI,eAAe,CAAC,iBAAiB,KAAK,GAAG,EAAE,CAAC;YAC9C,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,gBAAgB,CACrD,SAAS,EACT,eAAe,CAChB,CAAC;YACF,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5B,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;IAC1E,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,WAAW,GAAmC;QAClD,YAAY;QACZ,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,KAAK;KACN,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAlED,sDAkEC"}
@@ -0,0 +1,12 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ import { IdlItem } from '@solanafm/explorer-kit-idls';
4
+ export declare const platformId = "allbridge";
5
+ export declare const platform: Platform;
6
+ export declare const apiPoolInfoUrl = "https://core.api.allbridgecoreapi.net/token-info";
7
+ export declare const poolsCacheKey = "allbridge-pools";
8
+ export declare const cachePrefix = "allbridge";
9
+ export declare const poolInfoRefreshInterval = 3600000;
10
+ export declare const allbridgeProgram: PublicKey;
11
+ export declare const SYSTEM_PRECISION = 3;
12
+ export declare const allbridgeIdlItem: IdlItem;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allbridgeIdlItem = exports.SYSTEM_PRECISION = exports.allbridgeProgram = exports.poolInfoRefreshInterval = exports.cachePrefix = exports.poolsCacheKey = exports.apiPoolInfoUrl = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ const idl_1 = require("./idl");
6
+ exports.platformId = 'allbridge';
7
+ exports.platform = {
8
+ id: exports.platformId,
9
+ name: 'Allbridge',
10
+ image: 'https://sonar.watch/img/platforms/allbridge.png',
11
+ website: 'https://core.allbridge.io/pools',
12
+ twitter: 'https://twitter.com/Allbridge_io',
13
+ defiLlamaId: 'allbridge-core', // from https://defillama.com/docs/api
14
+ };
15
+ exports.apiPoolInfoUrl = `https://core.api.allbridgecoreapi.net/token-info`;
16
+ exports.poolsCacheKey = `${exports.platformId}-pools`;
17
+ exports.cachePrefix = `${exports.platformId}`;
18
+ exports.poolInfoRefreshInterval = 3600000;
19
+ exports.allbridgeProgram = new web3_js_1.PublicKey('BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB');
20
+ exports.SYSTEM_PRECISION = 3;
21
+ exports.allbridgeIdlItem = {
22
+ programId: exports.allbridgeProgram.toString(),
23
+ idl: idl_1.AllbridgeIDL,
24
+ idlType: 'anchor',
25
+ };
26
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAqC;AAExB,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;CACtE,CAAC;AAEW,QAAA,cAAc,GAAG,kDAAkD,CAAC;AAEpE,QAAA,aAAa,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAC9B,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAElC,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAErB,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACtC,GAAG,EAAE,kBAAY;IACjB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Pools } from './types';
2
+ import { Cache } from '../../Cache';
3
+ export declare const getPoolInfo: (cache: Cache) => Promise<Pools | undefined>;
@@ -0,0 +1,28 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getPoolInfo = void 0;
13
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
14
+ const constants_1 = require("./constants");
15
+ let poolInfo;
16
+ let poolInfoLastUpdate = 0;
17
+ const getPoolInfo = (cache) => __awaiter(void 0, void 0, void 0, function* () {
18
+ if (!poolInfo || poolInfoLastUpdate + constants_1.poolInfoRefreshInterval < Date.now()) {
19
+ poolInfo = yield cache.getItem(constants_1.poolsCacheKey, {
20
+ prefix: constants_1.cachePrefix,
21
+ networkId: portfolio_core_1.NetworkId.solana,
22
+ });
23
+ poolInfoLastUpdate = Date.now();
24
+ }
25
+ return poolInfo;
26
+ });
27
+ exports.getPoolInfo = getPoolInfo;
28
+ //# sourceMappingURL=getPoolInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPoolInfo.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/getPoolInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAIqB;AAGrB,IAAI,QAA2B,CAAC;AAChC,IAAI,kBAAkB,GAAG,CAAC,CAAC;AAEpB,MAAM,WAAW,GAAG,CAAO,KAAY,EAAE,EAAE;IAChD,IAAI,CAAC,QAAQ,IAAI,kBAAkB,GAAG,mCAAuB,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QAC3E,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,yBAAa,EAAE;YACnD,MAAM,EAAE,uBAAW;YACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC,CAAC;QACH,kBAAkB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAClC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AATW,QAAA,WAAW,eAStB"}
@@ -0,0 +1,5 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ import { Pools } from './types';
4
+ export declare const getEarned: (userLpAmount: string, userRewardDebt: string, accRewardPerShareP: string, p: number) => BigNumber;
5
+ export declare const getUserDepositPublicKeys: (poolInfo: Pools, owner: string) => PublicKey[];
@@ -0,0 +1,25 @@
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.getUserDepositPublicKeys = exports.getEarned = void 0;
7
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
+ const web3_js_1 = require("@solana/web3.js");
9
+ const getEarned = (userLpAmount, userRewardDebt, accRewardPerShareP, p) => {
10
+ const userLpAmountBN = new bignumber_js_1.default(userLpAmount);
11
+ const accRewardPerSharePBN = new bignumber_js_1.default(accRewardPerShareP);
12
+ const userRewardDebtBN = new bignumber_js_1.default(userRewardDebt);
13
+ const rewards = userLpAmountBN
14
+ .multipliedBy(accRewardPerSharePBN)
15
+ .dividedBy(Math.pow(10, p));
16
+ return rewards.minus(userRewardDebtBN);
17
+ };
18
+ exports.getEarned = getEarned;
19
+ const getUserDepositPublicKeys = (poolInfo, owner) => poolInfo.tokens.map((pi) => web3_js_1.PublicKey.findProgramAddressSync([
20
+ Buffer.from('user_deposit', 'utf-8'),
21
+ new web3_js_1.PublicKey(pi.tokenAddress).toBuffer(),
22
+ new web3_js_1.PublicKey(owner).toBuffer(),
23
+ ], new web3_js_1.PublicKey(poolInfo.swapAddress))[0]);
24
+ exports.getUserDepositPublicKeys = getUserDepositPublicKeys;
25
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/allbridge/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,6CAA4C;AAGrC,MAAM,SAAS,GAAG,CACvB,YAAoB,EACpB,cAAsB,EACtB,kBAA0B,EAC1B,CAAS,EACE,EAAE;IACb,MAAM,cAAc,GAAG,IAAI,sBAAS,CAAC,YAAY,CAAC,CAAC;IACnD,MAAM,oBAAoB,GAAG,IAAI,sBAAS,CAAC,kBAAkB,CAAC,CAAC;IAC/D,MAAM,gBAAgB,GAAG,IAAI,sBAAS,CAAC,cAAc,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,cAAc;SAC3B,YAAY,CAAC,oBAAoB,CAAC;SAClC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;IAEtB,OAAO,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACzC,CAAC,CAAC;AAdW,QAAA,SAAS,aAcpB;AAEK,MAAM,wBAAwB,GAAG,CAAC,QAAe,EAAE,KAAa,EAAE,EAAE,CACzE,QAAQ,CAAC,MAAM,CAAC,GAAG,CACjB,CAAC,EAAE,EAAE,EAAE,CACL,mBAAS,CAAC,sBAAsB,CAC9B;IACE,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;IACpC,IAAI,mBAAS,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IACzC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;CAChC,EACD,IAAI,mBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CACpC,CAAC,CAAC,CAAC,CACP,CAAC;AAXS,QAAA,wBAAwB,4BAWjC"}
@@ -0,0 +1,58 @@
1
+ export declare const AllbridgeIDL: {
2
+ version: string;
3
+ name: string;
4
+ accounts: {
5
+ name: string;
6
+ type: {
7
+ kind: string;
8
+ fields: ({
9
+ name: string;
10
+ type: string;
11
+ } | {
12
+ name: string;
13
+ type: {
14
+ array: (string | number)[];
15
+ defined?: undefined;
16
+ };
17
+ } | {
18
+ name: string;
19
+ type: {
20
+ defined: string;
21
+ array?: undefined;
22
+ };
23
+ })[];
24
+ };
25
+ }[];
26
+ types: ({
27
+ name: string;
28
+ type: {
29
+ kind: string;
30
+ fields: ({
31
+ name: string;
32
+ type: {
33
+ array: (string | number)[];
34
+ defined?: undefined;
35
+ };
36
+ } | {
37
+ name: string;
38
+ type: string;
39
+ } | {
40
+ name: string;
41
+ type: {
42
+ defined: string;
43
+ array?: undefined;
44
+ };
45
+ })[];
46
+ variants?: undefined;
47
+ };
48
+ } | {
49
+ name: string;
50
+ type: {
51
+ kind: string;
52
+ variants: {
53
+ name: string;
54
+ }[];
55
+ fields?: undefined;
56
+ };
57
+ })[];
58
+ };