@sonarwatch/portfolio-plugins 0.8.75 → 0.8.77

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 (140) hide show
  1. package/CHANGELOG.md +13 -5
  2. package/package.json +3 -2
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/orphanPlatorms.js +10 -0
  6. package/src/orphanPlatorms.js.map +1 -1
  7. package/src/plugins/aave/constants.js +1 -0
  8. package/src/plugins/aave/constants.js.map +1 -1
  9. package/src/plugins/aftermath/constants.js +1 -0
  10. package/src/plugins/aftermath/constants.js.map +1 -1
  11. package/src/plugins/auxexchange/constants.js +1 -0
  12. package/src/plugins/auxexchange/constants.js.map +1 -1
  13. package/src/plugins/balancer/constants.js +2 -1
  14. package/src/plugins/balancer/constants.js.map +1 -1
  15. package/src/plugins/bucket/constants.js +1 -0
  16. package/src/plugins/bucket/constants.js.map +1 -1
  17. package/src/plugins/cetus/constants.js +1 -0
  18. package/src/plugins/cetus/constants.js.map +1 -1
  19. package/src/plugins/compound/constants.js +2 -1
  20. package/src/plugins/compound/constants.js.map +1 -1
  21. package/src/plugins/curve/constants.js +1 -0
  22. package/src/plugins/curve/constants.js.map +1 -1
  23. package/src/plugins/drift/constants.js +1 -0
  24. package/src/plugins/drift/constants.js.map +1 -1
  25. package/src/plugins/fluxbeam/constants.js +2 -1
  26. package/src/plugins/fluxbeam/constants.js.map +1 -1
  27. package/src/plugins/hawksight/constants.js +1 -0
  28. package/src/plugins/hawksight/constants.js.map +1 -1
  29. package/src/plugins/kamino/constants.js +2 -1
  30. package/src/plugins/kamino/constants.js.map +1 -1
  31. package/src/plugins/lido/constants.js +1 -0
  32. package/src/plugins/lido/constants.js.map +1 -1
  33. package/src/plugins/liquiditypools-sei/constants.js +2 -0
  34. package/src/plugins/liquiditypools-sei/constants.js.map +1 -1
  35. package/src/plugins/liquidswap/constants.js +1 -0
  36. package/src/plugins/liquidswap/constants.js.map +1 -1
  37. package/src/plugins/maker/constants.js +1 -0
  38. package/src/plugins/maker/constants.js.map +1 -1
  39. package/src/plugins/mango/constants.js +1 -0
  40. package/src/plugins/mango/constants.js.map +1 -1
  41. package/src/plugins/mango/index.js +1 -2
  42. package/src/plugins/mango/index.js.map +1 -1
  43. package/src/plugins/maple/constants.js +1 -0
  44. package/src/plugins/maple/constants.js.map +1 -1
  45. package/src/plugins/marginfi/constants.js +1 -0
  46. package/src/plugins/marginfi/constants.js.map +1 -1
  47. package/src/plugins/marinade/constants.js +1 -0
  48. package/src/plugins/marinade/constants.js.map +1 -1
  49. package/src/plugins/meteora/constants.js +1 -0
  50. package/src/plugins/meteora/constants.js.map +1 -1
  51. package/src/plugins/morpho/constants.js +1 -0
  52. package/src/plugins/morpho/constants.js.map +1 -1
  53. package/src/plugins/navi/constants.js +1 -0
  54. package/src/plugins/navi/constants.js.map +1 -1
  55. package/src/plugins/orca/constants.js +1 -0
  56. package/src/plugins/orca/constants.js.map +1 -1
  57. package/src/plugins/orders/jupiter/constants.js +1 -0
  58. package/src/plugins/orders/jupiter/constants.js.map +1 -1
  59. package/src/plugins/pancakeswap/constants.js +1 -0
  60. package/src/plugins/pancakeswap/constants.js.map +1 -1
  61. package/src/plugins/paraswap/constants.js +1 -0
  62. package/src/plugins/paraswap/constants.js.map +1 -1
  63. package/src/plugins/raydium/constants.js +1 -0
  64. package/src/plugins/raydium/constants.js.map +1 -1
  65. package/src/plugins/realms/constants.js +1 -0
  66. package/src/plugins/realms/constants.js.map +1 -1
  67. package/src/plugins/rocket-pool/constants.js +1 -0
  68. package/src/plugins/rocket-pool/constants.js.map +1 -1
  69. package/src/plugins/saber/constants.js +1 -0
  70. package/src/plugins/saber/constants.js.map +1 -1
  71. package/src/plugins/scallop/addressJob.d.ts +3 -0
  72. package/src/plugins/scallop/addressJob.js +32 -0
  73. package/src/plugins/scallop/addressJob.js.map +1 -0
  74. package/src/plugins/scallop/constants.d.ts +16 -0
  75. package/src/plugins/scallop/constants.js +26 -0
  76. package/src/plugins/scallop/constants.js.map +1 -0
  77. package/src/plugins/scallop/helpers.d.ts +51 -0
  78. package/src/plugins/scallop/helpers.js +50 -0
  79. package/src/plugins/scallop/helpers.js.map +1 -0
  80. package/src/plugins/scallop/index.d.ts +6 -0
  81. package/src/plugins/scallop/index.js +17 -0
  82. package/src/plugins/scallop/index.js.map +1 -0
  83. package/src/plugins/scallop/lendingsFetcher.d.ts +3 -0
  84. package/src/plugins/scallop/lendingsFetcher.js +186 -0
  85. package/src/plugins/scallop/lendingsFetcher.js.map +1 -0
  86. package/src/plugins/scallop/marketJob.d.ts +3 -0
  87. package/src/plugins/scallop/marketJob.js +159 -0
  88. package/src/plugins/scallop/marketJob.js.map +1 -0
  89. package/src/plugins/scallop/obligationsFetcher.d.ts +3 -0
  90. package/src/plugins/scallop/obligationsFetcher.js +201 -0
  91. package/src/plugins/scallop/obligationsFetcher.js.map +1 -0
  92. package/src/plugins/scallop/poolsJob.d.ts +3 -0
  93. package/src/plugins/scallop/poolsJob.js +67 -0
  94. package/src/plugins/scallop/poolsJob.js.map +1 -0
  95. package/src/plugins/scallop/spoolsMarketJob.d.ts +3 -0
  96. package/src/plugins/scallop/spoolsMarketJob.js +95 -0
  97. package/src/plugins/scallop/spoolsMarketJob.js.map +1 -0
  98. package/src/plugins/scallop/types/address.d.ts +73 -0
  99. package/src/plugins/scallop/types/address.js +3 -0
  100. package/src/plugins/scallop/types/address.js.map +1 -0
  101. package/src/plugins/scallop/types/basic.d.ts +30 -0
  102. package/src/plugins/scallop/types/basic.js +3 -0
  103. package/src/plugins/scallop/types/basic.js.map +1 -0
  104. package/src/plugins/scallop/types/coin.d.ts +15 -0
  105. package/src/plugins/scallop/types/coin.js +25 -0
  106. package/src/plugins/scallop/types/coin.js.map +1 -0
  107. package/src/plugins/scallop/types/data.d.ts +26 -0
  108. package/src/plugins/scallop/types/data.js +3 -0
  109. package/src/plugins/scallop/types/data.js.map +1 -0
  110. package/src/plugins/scallop/types/index.d.ts +5 -0
  111. package/src/plugins/scallop/types/index.js +22 -0
  112. package/src/plugins/scallop/types/index.js.map +1 -0
  113. package/src/plugins/scallop/types/market.d.ts +150 -0
  114. package/src/plugins/scallop/types/market.js +21 -0
  115. package/src/plugins/scallop/types/market.js.map +1 -0
  116. package/src/plugins/scallop/types/obligation.d.ts +24 -0
  117. package/src/plugins/scallop/types/obligation.js +3 -0
  118. package/src/plugins/scallop/types/obligation.js.map +1 -0
  119. package/src/plugins/solend/constants.js +1 -0
  120. package/src/plugins/solend/constants.js.map +1 -1
  121. package/src/plugins/stader/constants.js +1 -0
  122. package/src/plugins/stader/constants.js.map +1 -1
  123. package/src/plugins/stargate/constants.js +1 -0
  124. package/src/plugins/stargate/constants.js.map +1 -1
  125. package/src/plugins/thala/constants.js +1 -0
  126. package/src/plugins/thala/constants.js.map +1 -1
  127. package/src/plugins/tokens/index.js +4 -0
  128. package/src/plugins/tokens/index.js.map +1 -1
  129. package/src/plugins/turbos/constants.js +1 -0
  130. package/src/plugins/turbos/constants.js.map +1 -1
  131. package/src/plugins/uniswap/constants.js +1 -0
  132. package/src/plugins/uniswap/constants.js.map +1 -1
  133. package/src/plugins/uniswap-v2/helpers.js +22 -22
  134. package/src/plugins/zeta/constants.js +1 -0
  135. package/src/plugins/zeta/constants.js.map +1 -1
  136. package/src/utils/name-service/nameServices.js +3 -0
  137. package/src/utils/name-service/nameServices.js.map +1 -1
  138. package/src/utils/name-service/services/allDomains.d.ts +2 -0
  139. package/src/utils/name-service/services/allDomains.js +43 -0
  140. package/src/utils/name-service/services/allDomains.js.map +1 -0
@@ -8,6 +8,7 @@ exports.orcaPlatform = {
8
8
  name: 'Orca',
9
9
  image: 'https://sonar.watch/img/platforms/orca.png',
10
10
  defiLlamaId: 'orca',
11
+ website: 'https://www.orca.so/',
11
12
  };
12
13
  exports.poolsProgram = new web3_js_1.PublicKey('9W959DqEETiGZocYWCQPaJ6sBmUzgfxXfqGeTEdp3aQP');
13
14
  exports.aquafarmsProgram = new web3_js_1.PublicKey('82yxjeMsvaURa4MbZZ7WZZHfobirZYkH1zF8fmeGtyaQ');
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,MAAM;CACpB,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG,yBAAyB,CAAC;AAChD,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAC5C,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,+CAA+C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,sBAAsB;CAChC,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG,yBAAyB,CAAC;AAChD,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAC5C,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,+CAA+C,CAAC"}
@@ -6,5 +6,6 @@ exports.jupiterPlatform = {
6
6
  name: 'Jupiter',
7
7
  image: 'https://sonar.watch/img/platforms/jupiter.png',
8
8
  defiLlamaId: 'jupiter-aggregator',
9
+ website: 'https://jup.ag/',
9
10
  };
10
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,oBAAoB;CAClC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,iBAAiB;CAC3B,CAAC"}
@@ -8,6 +8,7 @@ exports.pancakeswapPlatform = {
8
8
  name: 'PancakeSwap',
9
9
  image: 'https://sonar.watch/img/platforms/pancakeswap.png',
10
10
  defiLlamaId: 'parent#pancakeswap',
11
+ website: 'https://pancakeswap.finance/',
11
12
  };
12
13
  exports.programAddress = '0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa';
13
14
  exports.lpTypePrefix = `${exports.programAddress}::swap::LPToken<`;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,oBAAoB;CAClC,CAAC;AACW,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,YAAY,GAAG,GAAG,sBAAc,kBAAkB,CAAC;AACnD,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AACW,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,YAAY,GAAG,GAAG,sBAAc,kBAAkB,CAAC;AACnD,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
@@ -7,6 +7,7 @@ exports.paraswapPlatform = {
7
7
  name: 'Paraswap',
8
8
  defiLlamaId: 'paraswap',
9
9
  image: 'https://sonar.watch/img/platforms/paraswap.png',
10
+ website: 'https://paraswap.io/',
10
11
  };
11
12
  exports.bptInfoKey = 'bptInfo';
12
13
  exports.PSPToken = {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/paraswap/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAA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QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/paraswap/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,UAAU,CAAC;AAExB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,4CAA4C;IACrD,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,EAAE;CACb,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,4CAA6D;IACpE,WAAW,EAAE;QACX,4CAA4C;QAC5C,4CAA4C;KAC7C;IACD,MAAM,EACJ,oEAAqF;IACvF,KAAK,EAAE,4CAA6D;CACrE,CAAC;AAEW,QAAA,aAAa,GAAiB;IACzC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,4CAA4C;IACrD,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEW,QAAA,aAAa,GAAiB;IACzC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,4CAA4C;IACrD,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;IACD;QACE,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,4CAA4C;QACrD,KAAK,EAAE,4CAA4C;KACpD;CACF,CAAC"}
@@ -8,6 +8,7 @@ exports.raydiumPlatform = {
8
8
  name: 'Raydium',
9
9
  image: 'https://sonar.watch/img/platforms/raydium.png',
10
10
  defiLlamaId: 'raydium',
11
+ website: 'https://raydium.io/',
11
12
  };
12
13
  exports.AMM_PROGRAM_ID_V4 = new web3_js_1.PublicKey('675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8');
13
14
  exports.AMM_PROGRAM_ID_V5 = new web3_js_1.PublicKey('5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h');
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS;CACvB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE7C,QAAA,mBAAmB,GAAG,gCAAgC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE7C,QAAA,mBAAmB,GAAG,gCAAgC,CAAC"}
@@ -7,6 +7,7 @@ exports.realmsPlatform = {
7
7
  name: 'Realms',
8
8
  image: 'https://sonar.watch/img/platforms/realms.png',
9
9
  defiLlamaId: 'spl-governance',
10
+ website: 'https://app.realms.today/',
10
11
  };
11
12
  exports.splGovProgramsKey = 'splGovernancePrograms';
12
13
  exports.splGovernanceUrl = 'https://app.realms.today/api/splGovernancePrograms';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/constants.ts"],"names":[],"mappings":";;;AAEa,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;CAC9B,CAAC;AAEW,QAAA,iBAAiB,GAAG,uBAAuB,CAAC;AAE5C,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/constants.ts"],"names":[],"mappings":";;;AAEa,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,iBAAiB,GAAG,uBAAuB,CAAC;AAE5C,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
@@ -11,6 +11,7 @@ exports.rocketPoolPlatform = {
11
11
  name: 'Rocket Pool',
12
12
  defiLlamaId: 'rocket-pool',
13
13
  image: 'https://sonar.watch/img/platforms/rocketpool.png',
14
+ website: 'https://rocketpool.net/',
14
15
  };
15
16
  exports.marketsCachePrefix = `${exports.platformId}-markets`;
16
17
  exports.minipoolManagerAddress = '0x6293B8abC1F36aFB22406Be5f96D893072A8cF3a';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,kDAAkD;CAC1D,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAC7C,QAAA,sBAAsB,GACjC,4CAA4C,CAAC;AAClC,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,mBAAW,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAC7C,QAAA,sBAAsB,GACjC,4CAA4C,CAAC;AAClC,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,mBAAW,CAAA,CAAC,CAAC"}
@@ -7,6 +7,7 @@ exports.saberPlatform = {
7
7
  name: 'Saber',
8
8
  image: 'https://sonar.watch/img/platforms/saber.png',
9
9
  defiLlamaId: 'saber',
10
+ website: 'https://app.saber.so/',
10
11
  };
11
12
  exports.SABER_SWAPS = 'https://raw.githubusercontent.com/saber-hq/saber-registry-dist/master/data/swaps.mainnet.json';
12
13
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,WAAW,GACtB,+FAA+F,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,WAAW,GACtB,+FAA+F,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,32 @@
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
+ const axios_1 = __importDefault(require("axios"));
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const constants_1 = require("./constants");
18
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
19
+ const resp = yield axios_1.default.get(constants_1.addressEndpoint);
20
+ if (!resp.data)
21
+ return;
22
+ yield cache.setItem(constants_1.addressKey, Object.assign({}, resp.data), {
23
+ prefix: constants_1.addressPrefix,
24
+ networkId: portfolio_core_1.NetworkId.sui,
25
+ });
26
+ });
27
+ const job = {
28
+ id: constants_1.addressPrefix,
29
+ executor,
30
+ };
31
+ exports.default = job;
32
+ //# sourceMappingURL=addressJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addressJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/addressJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,+DAAuD;AAGvD,2CAIqB;AAErB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,IAAI,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;IAE9C,IAAI,CAAC,IAAI,CAAC,IAAI;QAAE,OAAO;IAEvB,MAAM,KAAK,CAAC,OAAO,CACjB,sBAAU,oBAEL,IAAI,CAAC,IAAI,GAEd;QACE,MAAM,EAAN,yBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,yBAAM;IACV,QAAQ;CACT,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ export declare const platformId = "scallop";
3
+ export declare const addressPrefix: string;
4
+ export declare const marketPrefix: string;
5
+ export declare const poolsPrefix: string;
6
+ export declare const spoolsPrefix: string;
7
+ export declare const addressEndpoint = "https://sui.api.scallop.io/addresses/6462a088a7ace142bb6d7e9b";
8
+ export declare const addressKey = "scallop-address-key";
9
+ export declare const marketKey = "scallop-market-key";
10
+ export declare const poolsKey = "scallop-pools-key";
11
+ export declare const spoolsKey = "scallop-spoolsmarket-key";
12
+ export declare const spoolAccountPackageId = "0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount";
13
+ export declare const marketCoinPackageId: string;
14
+ export declare const obligationKeyPackageId: string;
15
+ export declare const scallopPlatform: Platform;
16
+ export declare const baseIndexRate = 1000000000;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.baseIndexRate = exports.scallopPlatform = exports.obligationKeyPackageId = exports.marketCoinPackageId = exports.spoolAccountPackageId = exports.spoolsKey = exports.poolsKey = exports.marketKey = exports.addressKey = exports.addressEndpoint = exports.spoolsPrefix = exports.poolsPrefix = exports.marketPrefix = exports.addressPrefix = exports.platformId = void 0;
4
+ const PROTOCOL_OBJECT_ID = '0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf';
5
+ exports.platformId = 'scallop';
6
+ exports.addressPrefix = `${exports.platformId}-address`;
7
+ exports.marketPrefix = `${exports.platformId}-market`;
8
+ exports.poolsPrefix = `${exports.platformId}-pools`;
9
+ exports.spoolsPrefix = `${exports.platformId}-spoolsmarket`;
10
+ exports.addressEndpoint = 'https://sui.api.scallop.io/addresses/6462a088a7ace142bb6d7e9b';
11
+ exports.addressKey = 'scallop-address-key';
12
+ exports.marketKey = 'scallop-market-key';
13
+ exports.poolsKey = 'scallop-pools-key';
14
+ exports.spoolsKey = 'scallop-spoolsmarket-key';
15
+ exports.spoolAccountPackageId = `0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount`;
16
+ exports.marketCoinPackageId = `${PROTOCOL_OBJECT_ID}::reserve::MarketCoin`;
17
+ exports.obligationKeyPackageId = `${PROTOCOL_OBJECT_ID}::obligation::ObligationKey`;
18
+ exports.scallopPlatform = {
19
+ id: exports.platformId,
20
+ name: 'Scallop',
21
+ image: `https://sonar.watch/img/platforms/${exports.platformId}.png`,
22
+ defiLlamaId: 'parent#scallop',
23
+ website: 'https://app.scallop.io/',
24
+ };
25
+ exports.baseIndexRate = 1000000000;
26
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEA,MAAM,kBAAkB,GACtB,oEAAoE,CAAC;AAC1D,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,kBAAU,eAAe,CAAC;AAE5C,QAAA,eAAe,GAC1B,+DAA+D,CAAC;AACrD,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,oBAAoB,CAAC;AACjC,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,SAAS,GAAG,0BAA0B,CAAC;AAEvC,QAAA,qBAAqB,GAAG,iGAAiG,CAAC;AAC1H,QAAA,mBAAmB,GAAG,GAAG,kBAAkB,uBAAuB,CAAC;AACnE,QAAA,sBAAsB,GAAG,GAAG,kBAAkB,6BAA6B,CAAC;AAE5E,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,MAAM;IAC5D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,UAAa,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { SuiObjectResponseQuery } from '@mysten/sui.js';
2
+ export declare function getOwnerObject(owner: string, query?: SuiObjectResponseQuery): Promise<{
3
+ objectId: string;
4
+ version: string;
5
+ digest: string;
6
+ type?: string | undefined;
7
+ bcs?: {
8
+ type: string;
9
+ version: number;
10
+ hasPublicTransfer: boolean;
11
+ dataType: "moveObject";
12
+ bcsBytes: string;
13
+ } | {
14
+ id: string;
15
+ dataType: "package";
16
+ moduleMap: Record<string, string>;
17
+ } | undefined;
18
+ owner?: "Immutable" | {
19
+ AddressOwner: string;
20
+ } | {
21
+ ObjectOwner: string;
22
+ } | {
23
+ Shared: {
24
+ initial_shared_version: number;
25
+ };
26
+ } | undefined;
27
+ storageRebate?: string | undefined;
28
+ previousTransaction?: string | undefined;
29
+ content?: {
30
+ type: string;
31
+ fields: Record<string, any>;
32
+ hasPublicTransfer: boolean;
33
+ dataType: "moveObject";
34
+ } | {
35
+ disassembled: Record<string, string>;
36
+ dataType: "package";
37
+ } | undefined;
38
+ display?: Record<string, string> | {
39
+ data: Record<string, string> | null;
40
+ error: {
41
+ code: string;
42
+ version?: number | undefined;
43
+ digest?: string | undefined;
44
+ error?: string | undefined;
45
+ object_id?: string | undefined;
46
+ parent_object_id?: string | undefined;
47
+ } | null;
48
+ } | undefined;
49
+ }[]>;
50
+ export declare function formatDecimal(amount: number, decimal: number): number;
51
+ export declare function shortenAddress(address: string, start?: number, end?: number): string;
@@ -0,0 +1,50 @@
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.shortenAddress = exports.formatDecimal = exports.getOwnerObject = void 0;
13
+ const clients_1 = require("../../utils/clients");
14
+ const client = (0, clients_1.getClientSui)();
15
+ function getOwnerObject(owner, query) {
16
+ var _a;
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ const objects = [];
19
+ let cursor = null;
20
+ do {
21
+ const { data, nextCursor } = yield client.getOwnedObjects({
22
+ owner,
23
+ filter: query === null || query === void 0 ? void 0 : query.filter,
24
+ options: (_a = query === null || query === void 0 ? void 0 : query.options) !== null && _a !== void 0 ? _a : {
25
+ showType: true,
26
+ showContent: true,
27
+ showDisplay: true,
28
+ },
29
+ cursor,
30
+ });
31
+ if (!data || !data.length) {
32
+ break;
33
+ }
34
+ const objectDatas = data.map((obj) => obj.data);
35
+ objects.push(...objectDatas);
36
+ cursor = nextCursor;
37
+ } while (cursor);
38
+ return objects;
39
+ });
40
+ }
41
+ exports.getOwnerObject = getOwnerObject;
42
+ function formatDecimal(amount, decimal) {
43
+ return amount / Math.pow(10, decimal);
44
+ }
45
+ exports.formatDecimal = formatDecimal;
46
+ function shortenAddress(address, start = 4, end = 4) {
47
+ return `${address.slice(0, start)}..${address.slice(-end)}`;
48
+ }
49
+ exports.shortenAddress = shortenAddress;
50
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,iDAAmD;AAEnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;AAE9B,SAAsB,cAAc,CAClC,KAAa,EACb,KAA8B;;;QAE9B,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,IAAI,MAAM,GAMC,IAAI,CAAC;QAEhB,GAAG;YACD,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GACxB,MAAM,MAAM,CAAC,eAAe,CAAC;gBAC3B,KAAK;gBACL,MAAM,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM;gBACrB,OAAO,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI;oBACzB,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,IAAI;oBACjB,WAAW,EAAE,IAAI;iBAClB;gBACD,MAAM;aACP,CAAC,CAAC;YAEL,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACzB,MAAM;aACP;YACD,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAoB,CAAC;YACnE,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;YAC7B,MAAM,GAAG,UAAU,CAAC;SACrB,QAAQ,MAAM,EAAE;QAEjB,OAAO,OAAO,CAAC;;CAChB;AAnCD,wCAmCC;AAED,SAAgB,aAAa,CAAC,MAAc,EAAE,OAAe;IAC3D,OAAO,MAAM,GAAG,SAAA,EAAE,EAAI,OAAO,CAAA,CAAC;AAChC,CAAC;AAFD,sCAEC;AAED,SAAgB,cAAc,CAAC,OAAe,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC;IAChE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;AAC9D,CAAC;AAFD,wCAEC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Job } from '../../Job';
3
+ import { Fetcher } from '../../Fetcher';
4
+ export declare const jobs: Job[];
5
+ export declare const fetchers: Fetcher[];
6
+ export declare const platforms: Platform[];
@@ -0,0 +1,17 @@
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 poolsJob_1 = __importDefault(require("./poolsJob"));
8
+ const addressJob_1 = __importDefault(require("./addressJob"));
9
+ const marketJob_1 = __importDefault(require("./marketJob"));
10
+ const spoolsMarketJob_1 = __importDefault(require("./spoolsMarketJob"));
11
+ const lendingsFetcher_1 = __importDefault(require("./lendingsFetcher"));
12
+ const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
13
+ const constants_1 = require("./constants");
14
+ exports.jobs = [addressJob_1.default, poolsJob_1.default, marketJob_1.default, spoolsMarketJob_1.default];
15
+ exports.fetchers = [lendingsFetcher_1.default, obligationsFetcher_1.default];
16
+ exports.platforms = [constants_1.scallopPlatform];
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,8DAAsC;AACtC,4DAAoC;AACpC,wEAAgD;AAEhD,wEAA+C;AAC/C,8EAAsD;AACtD,2CAA8C;AAEjC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,kBAAQ,EAAE,mBAAS,EAAE,yBAAe,CAAC,CAAC;AACjE,QAAA,QAAQ,GAAc,CAAC,yBAAc,EAAE,4BAAkB,CAAC,CAAC;AAC3D,QAAA,SAAS,GAAe,CAAC,2BAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,186 @@
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
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const sui_js_1 = require("@mysten/sui.js");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const constants_1 = require("./constants");
19
+ const helpers_1 = require("./helpers");
20
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
23
+ const elements = [];
24
+ const borrowedAssets = [];
25
+ const borrowedYields = [];
26
+ const suppliedAssets = [];
27
+ const suppliedYields = [];
28
+ const rewardAssets = [];
29
+ const pools = yield cache.getItem(constants_1.poolsKey, {
30
+ prefix: constants_1.poolsPrefix,
31
+ networkId: portfolio_core_1.NetworkId.sui,
32
+ });
33
+ if (!pools)
34
+ return [];
35
+ const poolValues = Object.values(pools);
36
+ if (poolValues.length === 0)
37
+ return [];
38
+ const filterOwnerObject = {
39
+ MatchAny: [
40
+ ...poolValues.map((value) => ({
41
+ StructType: `0x2::coin::Coin<${constants_1.marketCoinPackageId}<${value.coinType}>>`,
42
+ })),
43
+ {
44
+ StructType: constants_1.spoolAccountPackageId,
45
+ },
46
+ ],
47
+ };
48
+ const [allOwnedObjects, marketData, spoolData] = yield Promise.all([
49
+ (0, helpers_1.getOwnerObject)(owner, { filter: filterOwnerObject }),
50
+ cache.getItem(constants_1.marketKey, {
51
+ prefix: constants_1.marketPrefix,
52
+ networkId: portfolio_core_1.NetworkId.sui,
53
+ }),
54
+ cache.getItem(constants_1.spoolsKey, {
55
+ prefix: constants_1.spoolsPrefix,
56
+ networkId: portfolio_core_1.NetworkId.sui,
57
+ }),
58
+ ]);
59
+ if (!marketData || allOwnedObjects.length === 0 || !spoolData)
60
+ return [];
61
+ if (Object.keys(marketData).length === 0 ||
62
+ Object.keys(spoolData).length === 0)
63
+ return [];
64
+ const lendingRate = new Map();
65
+ Object.keys(pools).forEach((coinName) => {
66
+ const market = marketData[coinName];
67
+ if (!market)
68
+ return;
69
+ lendingRate.set(coinName, (Number(market.debt) + Number(market.cash) - Number(market.reserve)) /
70
+ Number(market.marketCoinSupply));
71
+ });
72
+ // get user lending assets
73
+ const lendingAssets = {};
74
+ const stakedAccount = {};
75
+ for (const ownedMarketCoin of allOwnedObjects) {
76
+ const objType = (0, sui_js_1.getObjectType)(ownedMarketCoin);
77
+ if (!objType)
78
+ continue;
79
+ const parsed = (0, sui_js_1.parseStructTag)(objType);
80
+ const coinType = (0, sui_js_1.normalizeStructTag)(objType.substring(objType.indexOf('MarketCoin<') + 11, objType.indexOf('>')));
81
+ const fields = (0, sui_js_1.getObjectFields)(ownedMarketCoin);
82
+ const coinName = (_b = (_a = poolValues
83
+ .find((value) => value.coinType === coinType)) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.symbol.toLowerCase();
84
+ if (!coinName || !fields)
85
+ continue;
86
+ if (!lendingAssets[coinName]) {
87
+ lendingAssets[coinName] = { coinType, amount: new bignumber_js_1.default(0) };
88
+ }
89
+ if (fields['stakes']) {
90
+ if (!stakedAccount[`s${coinName}`]) {
91
+ stakedAccount[`s${coinName}`] = [];
92
+ }
93
+ stakedAccount[`s${coinName}`].push({
94
+ points: fields['points'],
95
+ index: fields['index'],
96
+ stakes: fields['stakes'],
97
+ });
98
+ }
99
+ const balance = (0, bignumber_js_1.default)((_c = (parsed.name === 'Coin' ? fields['balance'] : fields['stakes'])) !== null && _c !== void 0 ? _c : 0);
100
+ lendingAssets[coinName] = Object.assign(Object.assign({}, lendingAssets[coinName]), { amount: lendingAssets[coinName].amount.plus(balance) });
101
+ }
102
+ let pendingReward = (0, bignumber_js_1.default)(0);
103
+ for (const spoolCoin of Object.keys(stakedAccount)) {
104
+ for (const { points, index, stakes } of stakedAccount[spoolCoin]) {
105
+ if (spoolData[spoolCoin]) {
106
+ const increasedPointRate = spoolData[spoolCoin].currentPointIndex
107
+ ? (0, bignumber_js_1.default)((0, bignumber_js_1.default)(spoolData[spoolCoin].currentPointIndex).minus(index)).dividedBy(constants_1.baseIndexRate)
108
+ : 0;
109
+ pendingReward = pendingReward.plus((0, bignumber_js_1.default)(stakes)
110
+ .multipliedBy(increasedPointRate)
111
+ .plus(points)
112
+ .multipliedBy(spoolData[spoolCoin].exchangeRateNumerator)
113
+ .dividedBy(spoolData[spoolCoin].exchangeRateDenominator));
114
+ }
115
+ }
116
+ }
117
+ const tokenAddresses = Object.values(lendingAssets).map((value) => value.coinType);
118
+ const tokenPriceResult = yield cache.getTokenPrices(tokenAddresses, portfolio_core_1.NetworkId.sui);
119
+ const tokenPrices = new Map();
120
+ tokenPriceResult.forEach((r) => {
121
+ if (!r)
122
+ return;
123
+ tokenPrices.set(r.address, r);
124
+ });
125
+ if (pendingReward.isGreaterThan(0)) {
126
+ const pendingRewardAmount = pendingReward
127
+ .shiftedBy(-1 * ((_f = (_e = (_d = pools['sui']) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.decimals) !== null && _f !== void 0 ? _f : 0))
128
+ .toNumber();
129
+ const rewardTokenAddress = (0, portfolio_core_1.formatMoveTokenAddress)(pools['sui'].coinType);
130
+ const rewardTokenPrice = tokenPrices.get(rewardTokenAddress);
131
+ const rewardAssetToken = (0, tokenPriceToAssetToken_1.default)(rewardTokenAddress, pendingRewardAmount, portfolio_core_1.NetworkId.sui, rewardTokenPrice);
132
+ rewardAssets.push(rewardAssetToken);
133
+ }
134
+ for (const [assetName, assetValue] of Object.entries(lendingAssets)) {
135
+ if (assetValue.amount.isZero())
136
+ continue;
137
+ const market = marketData[assetName];
138
+ if (!market)
139
+ continue;
140
+ const addressMove = (0, portfolio_core_1.formatMoveTokenAddress)(assetValue.coinType);
141
+ const tokenPrice = tokenPrices.get(addressMove);
142
+ const lendingAmount = assetValue.amount
143
+ .multipliedBy((_g = lendingRate.get(assetName)) !== null && _g !== void 0 ? _g : 0)
144
+ .shiftedBy(-1 * ((_k = (_j = (_h = pools[assetName]) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.decimals) !== null && _k !== void 0 ? _k : 0))
145
+ .toNumber();
146
+ const assetToken = (0, tokenPriceToAssetToken_1.default)(addressMove, lendingAmount, portfolio_core_1.NetworkId.sui, tokenPrice);
147
+ suppliedYields.push([
148
+ {
149
+ apy: (0, portfolio_core_1.aprToApy)(market.supplyInterestRate),
150
+ apr: market.supplyInterestRate,
151
+ },
152
+ ]);
153
+ suppliedAssets.push(assetToken);
154
+ }
155
+ if (suppliedAssets.length === 0 &&
156
+ borrowedAssets.length === 0 &&
157
+ rewardAssets.length === 0)
158
+ return [];
159
+ const { borrowedValue, collateralRatio, suppliedValue, value } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
160
+ elements.push({
161
+ type: portfolio_core_1.PortfolioElementType.borrowlend,
162
+ networkId: portfolio_core_1.NetworkId.sui,
163
+ platformId: constants_1.platformId,
164
+ label: 'Lending',
165
+ value,
166
+ data: {
167
+ borrowedAssets,
168
+ borrowedValue,
169
+ borrowedYields,
170
+ suppliedAssets,
171
+ suppliedValue,
172
+ suppliedYields,
173
+ collateralRatio,
174
+ rewardAssets,
175
+ value,
176
+ },
177
+ });
178
+ return elements;
179
+ });
180
+ const fetcher = {
181
+ id: `${constants_1.platformId}-lendings`,
182
+ networkId: portfolio_core_1.NetworkId.sui,
183
+ executor,
184
+ };
185
+ exports.default = fetcher;
186
+ //# sourceMappingURL=lendingsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,2CAMwB;A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