@sonarwatch/portfolio-plugins 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +2 -2
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/debridge/airdropFetcher.js +6 -0
  6. package/src/plugins/debridge/airdropFetcher.js.map +1 -1
  7. package/src/plugins/debridge/constants.d.ts +3 -1
  8. package/src/plugins/debridge/constants.js +4 -2
  9. package/src/plugins/debridge/constants.js.map +1 -1
  10. package/src/plugins/debridge/dlmmVaultsFetcher.d.ts +3 -0
  11. package/src/plugins/debridge/dlmmVaultsFetcher.js +158 -0
  12. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -0
  13. package/src/plugins/debridge/dlmmVaultsJob.d.ts +3 -0
  14. package/src/plugins/debridge/dlmmVaultsJob.js +42 -0
  15. package/src/plugins/debridge/dlmmVaultsJob.js.map +1 -0
  16. package/src/plugins/debridge/index.js +7 -2
  17. package/src/plugins/debridge/index.js.map +1 -1
  18. package/src/plugins/deepbook/airdropFetcher.js +36 -14
  19. package/src/plugins/deepbook/airdropFetcher.js.map +1 -1
  20. package/src/plugins/jupiter/launchpad/constants.js +1 -1
  21. package/src/plugins/kamino/{s2AirdropFetcher.js → s2AirdropFetcher.old.js} +1 -1
  22. package/src/plugins/kamino/s2AirdropFetcher.old.js.map +1 -0
  23. package/src/plugins/native-stake/solana/constants.js +0 -1
  24. package/src/plugins/native-stake/solana/constants.js.map +1 -1
  25. package/src/plugins/native-stake/solana/solanaFetcher.js +11 -7
  26. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  27. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  28. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  29. package/src/plugins/scallop/cnyAirdropFetcher.js +1 -1
  30. package/src/plugins/scallop/cnyAirdropFetcher.js.map +1 -1
  31. package/src/plugins/scallop/constants.d.ts +9 -16
  32. package/src/plugins/scallop/constants.js +28 -44
  33. package/src/plugins/scallop/constants.js.map +1 -1
  34. package/src/plugins/scallop/index.js +7 -1
  35. package/src/plugins/scallop/index.js.map +1 -1
  36. package/src/plugins/scallop/lendingsFetcher.js +149 -79
  37. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  38. package/src/plugins/scallop/marketJob.js.map +1 -1
  39. package/src/plugins/scallop/obligationsFetcher.js +2 -2
  40. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  41. package/src/plugins/scallop/poolsJob.js +14 -5
  42. package/src/plugins/scallop/poolsJob.js.map +1 -1
  43. package/src/plugins/scallop/sCoinJob.js +2 -1
  44. package/src/plugins/scallop/sCoinJob.js.map +1 -1
  45. package/src/plugins/scallop/types/address.d.ts +1 -0
  46. package/src/plugins/scallop/types/basic.d.ts +4 -0
  47. package/src/plugins/scallop/types/coin.d.ts +18 -8
  48. package/src/plugins/scallop/types/coin.js +50 -2
  49. package/src/plugins/scallop/types/coin.js.map +1 -1
  50. package/src/plugins/scallop/types/data.d.ts +7 -5
  51. package/src/plugins/scallop/types/index.d.ts +2 -0
  52. package/src/plugins/scallop/types/index.js +2 -0
  53. package/src/plugins/scallop/types/index.js.map +1 -1
  54. package/src/plugins/scallop/types/spool.d.ts +10 -0
  55. package/src/plugins/scallop/types/spool.js +3 -0
  56. package/src/plugins/scallop/types/spool.js.map +1 -0
  57. package/src/plugins/scallop/types/sui.d.ts +2 -0
  58. package/src/plugins/scallop/types/sui.js +3 -0
  59. package/src/plugins/scallop/types/sui.js.map +1 -0
  60. package/src/plugins/scallop/types/vesca.d.ts +9 -12
  61. package/src/plugins/scallop/veScaFetcher.js +1 -1
  62. package/src/plugins/scallop/veScaFetcher.js.map +1 -1
  63. package/src/plugins/vaultka/constants.d.ts +8 -0
  64. package/src/plugins/vaultka/constants.js +31 -0
  65. package/src/plugins/vaultka/constants.js.map +1 -0
  66. package/src/plugins/vaultka/index.d.ts +6 -0
  67. package/src/plugins/vaultka/index.js +15 -0
  68. package/src/plugins/vaultka/index.js.map +1 -0
  69. package/src/plugins/vaultka/lendingFetcher.d.ts +3 -0
  70. package/src/plugins/vaultka/lendingFetcher.js +58 -0
  71. package/src/plugins/vaultka/lendingFetcher.js.map +1 -0
  72. package/src/plugins/vaultka/lendingJob.d.ts +3 -0
  73. package/src/plugins/vaultka/lendingJob.js +32 -0
  74. package/src/plugins/vaultka/lendingJob.js.map +1 -0
  75. package/src/plugins/vaultka/strategyFetcher.d.ts +3 -0
  76. package/src/plugins/vaultka/strategyFetcher.js +63 -0
  77. package/src/plugins/vaultka/strategyFetcher.js.map +1 -0
  78. package/src/plugins/vaultka/strategyJob.d.ts +3 -0
  79. package/src/plugins/vaultka/strategyJob.js +32 -0
  80. package/src/plugins/vaultka/strategyJob.js.map +1 -0
  81. package/src/plugins/vaultka/structs.d.ts +59 -0
  82. package/src/plugins/vaultka/structs.js +58 -0
  83. package/src/plugins/vaultka/structs.js.map +1 -0
  84. package/src/utils/sui/types.d.ts +4 -0
  85. package/src/plugins/kamino/s2AirdropFetcher.js.map +0 -1
  86. /package/src/plugins/kamino/{s2AirdropFetcher.d.ts → s2AirdropFetcher.old.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,6CAAuE;AACvE,gEAAqC;AAIrC,2CAeqB;AACrB,qGAA6E;AAS7E,qEAAkE;AAClE,iDAAmD;AAGnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,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,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,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;IAC5E,QAAQ,CAAC,IAAI,CAAC;QACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,6DAA6D;AAC7D,+DAUoC;AACpC,6CAAuE;AACvE,gEAAqC;AAQrC,2CAgBqB;AACrB,qGAA6E;AAC7E,mCAiBiB;AACjB,qEAAkE;AAClE,iDAAmD;AAGnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,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;IAE1C,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE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,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"marketJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/marketJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,2CAOqB;AAarB,6EAAqD;AACrD,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CAAc,sBAAU,EAAE;QAC/D,MAAM,EAAE,yBAAa;QACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,WAAW;QAAE,OAAO;IAEzB,wBAAwB;IACxB,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO;IAEnB,MAAM,QAAQ,GAAY,WAAW,CAAC,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G,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,sBAAS,EAAC,CAAC,CAAC,CAAC;QAE/D,MAAM,CAAC,KAAK,CAAC,GAAG;YACd,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,MAAA,MAAA,KAAK,CAAC,KAAsB,CAAC,CAAC,QAAQ,0CAAE,QAAQ,mCAAI,CAAC;YAC9D,QAAQ,EAAE,KAAK,CAAC,KAAsB,CAAC,CAAC,QAAQ;YAChD,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE;YACzC,kBAAkB,EAAE,IAAI,CAAC,GAAG,CAC1B,oBAAoB,EACpB,uBAAuB,CACxB;YACD,kBAAkB,EAAE,UAAU,CAAC,QAAQ,EAAE;YACzC,IAAI;YACJ,IAAI;YACJ,gBAAgB;YAChB,OAAO;SACR,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,qBAAS,EAAE,MAAM,EAAE;QACrC,MAAM,EAAN,wBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,wBAAM;IACV,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -39,7 +39,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
39
39
  const filterOwnerObject = {
40
40
  MatchAny: [
41
41
  {
42
- StructType: constants_1.obligationKeyPackageId,
42
+ StructType: constants_1.obligationKeyType,
43
43
  },
44
44
  ],
45
45
  };
@@ -173,7 +173,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
173
173
  networkId: portfolio_core_1.NetworkId.sui,
174
174
  platformId: constants_1.platformId,
175
175
  label: 'Lending',
176
- name: `${(0, helpers_1.shortenAddress)(account, 5, 3)} Obligations`,
176
+ name: `Obligation ID: ${(0, helpers_1.shortenAddress)(account, 5, 3)}`,
177
177
  value,
178
178
  data: {
179
179
  borrowedAssets,
@@ -1 +1 @@
1
- {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAwB;QAC7C,QAAQ,EAAE;YACR;gBACE,UAAU,EAAE,kCAAsB;aACnC;SACF;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1D,IAAA,iCAAe,EAAsB,MAAM,EAAE,KAAK,EAAE;YAClD,MAAM,EAAE,iBAAiB;SAC1B,CAAC;QACF,KAAK,CAAC,OAAO,CAAkB,qBAAS,EAAE;YACxC,MAAM,EAA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CAAC,MAAM,KAAK,CAAC;YAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;YAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;YAEzB,SAAS;QACX,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;QAC5E,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAA,wBAAc,EAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,cAAc;YACpD,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAA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AAS;YAChB,IAAI,EAAE,kBAAkB,IAAA,wBAAc,EAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;YACvD,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -12,11 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
13
  const utils_1 = require("@mysten/sui/utils");
14
14
  const constants_1 = require("./constants");
15
+ const types_1 = require("./types");
15
16
  const getObject_1 = require("../../utils/sui/getObject");
16
17
  const clients_1 = require("../../utils/clients");
17
18
  const SUI_TYPE = (0, utils_1.normalizeStructTag)(utils_1.SUI_TYPE_ARG);
18
19
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
19
- var _a, _b, _c;
20
+ var _a, _b;
20
21
  const address = yield cache.getItem(constants_1.addressKey, {
21
22
  prefix: constants_1.addressPrefix,
22
23
  networkId: portfolio_core_1.NetworkId.sui,
@@ -39,12 +40,20 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
39
40
  }
40
41
  else {
41
42
  const object = yield (0, getObject_1.getObject)(client, detail.metaData);
42
- const objType = (0, utils_1.normalizeStructTag)(((_a = object.data) === null || _a === void 0 ? void 0 : _a.type) || '');
43
- const objFields = (_c = (_b = object.data) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.fields;
44
- if (!objType || !objFields)
43
+ const objectData = object.data;
44
+ if (!objectData || !objectData.type)
45
45
  return;
46
+ const metadataStruct = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(objectData.type)); // 0x2::coin::CoinMetadata<T>
47
+ const { address: packageId, module, name, } = metadataStruct.typeParams[0];
48
+ const objFields = (_a = objectData.content) === null || _a === void 0 ? void 0 : _a.fields;
49
+ if (!objFields)
50
+ return;
51
+ // manually map wormhole usdc symbol into wusdc
52
+ const coinType = `${packageId}::${module}::${name}`;
53
+ objFields.symbol =
54
+ (_b = types_1.wormholeCoinTypeToSymbolMap[coinType]) !== null && _b !== void 0 ? _b : objFields.symbol;
46
55
  coinTypes[coinName] = {
47
- coinType: objType.substring(objType.indexOf('<') + 1, objType.indexOf('>')),
56
+ coinType,
48
57
  metadata: objFields,
49
58
  };
50
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAAqE;AAIrE,2CAKqB;AAErB,yDAAsD;AACtD,iDAAmD;AAEnD,MAAM,QAAQ,GAAG,IAAA,0BAAkB,EAAC,oBAAY,CAAC,CAAC;AAElD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAc,sBAAU,EAAE;QAC3D,MAAM,EAAE,yBAAa;QACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,SAAS,GAAU,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3C,CAAC;IACF,MAAM,SAAS,GAAa,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,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"}
@@ -11,10 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
13
  const constants_1 = require("./constants");
14
+ const types_1 = require("./types");
14
15
  const clients_1 = require("../../utils/clients");
15
16
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
16
17
  const client = (0, clients_1.getClientSui)();
17
- const sCoinTypes = Object.entries(constants_1.sCoinTypesMap).reduce((prev, curr) => {
18
+ const sCoinTypes = Object.entries(types_1.sCoinTypesMap).reduce((prev, curr) => {
18
19
  const [coinName, coinType] = curr;
19
20
  // eslint-disable-next-line no-param-reassign
20
21
  prev[coinName] = {
@@ -1 +1 @@
1
- {"version":3,"file":"sCoinJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/sCoinJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAGrB,iDAAmD;AAEnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,UAAU,GAAsB,MAAM,CAAC,OAAO,CAAC,yBAAa,CAAC,CAAC,MAAM,CACxE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;QACb,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;QAClC,6CAA6C;QAC7C,IAAI,CAAC,QAAsB,CAAC,GAAG;YAC7B,QAAQ;YACR,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC,EACD,EAAuB,CACxB,CAAC;IAEF,kCAAkC;IAClC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAO,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,EAAE;Q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CAAC,CAAO,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,EAAE;QACpE,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC5D,UAAU,CAAC,QAAsB,CAAC,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzD,CAAC,CAAA,CAAC,CACH,CAAC;IACF,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,UAAU,EAAE;QACxC,MAAM,EAAN,uBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,uBAAM;IACV,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -24,6 +24,7 @@ export interface Core {
24
24
  coins: Map<string, Coin>;
25
25
  oracles: Oracle;
26
26
  packages: Map<string, Package>;
27
+ object: string;
27
28
  }
28
29
  export interface Coin {
29
30
  id: string;
@@ -27,3 +27,7 @@ export type WitTable = {
27
27
  with_keys: boolean;
28
28
  };
29
29
  };
30
+ export type ExtendedBasicField<T> = {
31
+ type: string;
32
+ fields: T;
33
+ };
@@ -1,13 +1,23 @@
1
1
  import { CoinMetadata } from '@mysten/sui/client';
2
- import { CoinNames, MARKET_COIN_NAMES } from '../constants';
3
- export declare const SUPPORTED_SPOOL_COIN_NAMES: readonly ["ssui", "susdc"];
4
- export type MarketCoinNames = (typeof MARKET_COIN_NAMES)[number];
5
- export type SupportedSpoolCoinNames = (typeof SUPPORTED_SPOOL_COIN_NAMES)[number];
6
- export type AllCoinNames = CoinNames | MarketCoinNames;
7
- export type UserCoinBalance = {
8
- [k in AllCoinNames]?: string;
9
- };
2
+ import { coinNames, marketCoinNames, scoinNames } from '../constants';
3
+ export type MarketCoinNames = (typeof marketCoinNames)[number];
4
+ export type PoolCoinNames = (typeof coinNames)[number];
5
+ export type SCoinNames = (typeof scoinNames)[number];
10
6
  export type CoinTypeMetadata = {
11
7
  coinType: string;
12
8
  metadata: CoinMetadata | null;
13
9
  };
10
+ type SCoinToCoinNameType = {
11
+ [T in SCoinNames]: PoolCoinNames;
12
+ };
13
+ type SCoinTypesMapType = {
14
+ [T in SCoinNames]: string;
15
+ };
16
+ export declare const sCoinToCoinName: SCoinToCoinNameType;
17
+ export declare const sCoinTypesMap: SCoinTypesMapType;
18
+ export type SCoinTypeValue = (typeof sCoinTypesMap)[SCoinNames];
19
+ export declare const sCoinTypeToCoinTypeMap: {
20
+ [T in SCoinTypeValue]: string;
21
+ };
22
+ export declare const wormholeCoinTypeToSymbolMap: Record<string, SCoinTypeValue>;
23
+ export {};
@@ -1,5 +1,53 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUPPORTED_SPOOL_COIN_NAMES = void 0;
4
- exports.SUPPORTED_SPOOL_COIN_NAMES = ['ssui', 'susdc'];
3
+ exports.wormholeCoinTypeToSymbolMap = exports.sCoinTypeToCoinTypeMap = exports.sCoinTypesMap = exports.sCoinToCoinName = void 0;
4
+ exports.sCoinToCoinName = {
5
+ scallop_sui: 'sui',
6
+ scallop_cetus: 'cetus',
7
+ scallop_sca: 'sca',
8
+ scallop_wormhole_usdc: 'wusdc',
9
+ scallop_wormhole_usdt: 'wusdt',
10
+ scallop_wormhole_eth: 'weth',
11
+ scallop_wormhole_btc: 'wbtc',
12
+ scallop_wormhole_sol: 'wsol',
13
+ scallop_af_sui: 'afsui',
14
+ scallop_ha_sui: 'hasui',
15
+ scallop_v_sui: 'vsui',
16
+ scallop_usdc: 'usdc',
17
+ };
18
+ exports.sCoinTypesMap = {
19
+ scallop_sui: '0xaafc4f740de0dd0dde642a31148fb94517087052f19afb0f7bed1dc41a50c77b::scallop_sui::SCALLOP_SUI',
20
+ scallop_cetus: '0xea346ce428f91ab007210443efcea5f5cdbbb3aae7e9affc0ca93f9203c31f0c::scallop_cetus::SCALLOP_CETUS',
21
+ scallop_sca: '0x5ca17430c1d046fae9edeaa8fd76c7b4193a00d764a0ecfa9418d733ad27bc1e::scallop_sca::SCALLOP_SCA',
22
+ scallop_wormhole_usdc: '0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC',
23
+ scallop_wormhole_usdt: '0xe6e5a012ec20a49a3d1d57bd2b67140b96cd4d3400b9d79e541f7bdbab661f95::scallop_wormhole_usdt::SCALLOP_WORMHOLE_USDT',
24
+ scallop_wormhole_eth: '0x67540ceb850d418679e69f1fb6b2093d6df78a2a699ffc733f7646096d552e9b::scallop_wormhole_eth::SCALLOP_WORMHOLE_ETH',
25
+ scallop_af_sui: '0x00671b1fa2a124f5be8bdae8b91ee711462c5d9e31bda232e70fd9607b523c88::scallop_af_sui::SCALLOP_AF_SUI',
26
+ scallop_ha_sui: '0x9a2376943f7d22f88087c259c5889925f332ca4347e669dc37d54c2bf651af3c::scallop_ha_sui::SCALLOP_HA_SUI',
27
+ scallop_v_sui: '0xe1a1cc6bcf0001a015eab84bcc6713393ce20535f55b8b6f35c142e057a25fbe::scallop_v_sui::SCALLOP_V_SUI',
28
+ scallop_usdc: '0x854950aa624b1df59fe64e630b2ba7c550642e9342267a33061d59fb31582da5::scallop_usdc::SCALLOP_USDC',
29
+ scallop_wormhole_btc: '0x2cf76a9cf5d3337961d1154283234f94da2dcff18544dfe5cbdef65f319591b5::scallop_wormhole_btc::SCALLOP_WORMHOLE_BTC',
30
+ scallop_wormhole_sol: '0x1392650f2eca9e3f6ffae3ff89e42a3590d7102b80e2b430f674730bc30d3259::scallop_wormhole_sol::SCALLOP_WORMHOLE_SOL',
31
+ };
32
+ exports.sCoinTypeToCoinTypeMap = {
33
+ [exports.sCoinTypesMap.scallop_sui]: '0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI',
34
+ [exports.sCoinTypesMap.scallop_cetus]: '0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS',
35
+ [exports.sCoinTypesMap.scallop_sca]: '0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA',
36
+ [exports.sCoinTypesMap.scallop_wormhole_usdc]: '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN',
37
+ [exports.sCoinTypesMap.scallop_wormhole_usdt]: '0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN',
38
+ [exports.sCoinTypesMap.scallop_wormhole_eth]: '0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN',
39
+ [exports.sCoinTypesMap.scallop_wormhole_btc]: '0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN',
40
+ [exports.sCoinTypesMap.scallop_wormhole_sol]: '0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN',
41
+ [exports.sCoinTypesMap.scallop_af_sui]: '0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI',
42
+ [exports.sCoinTypesMap.scallop_ha_sui]: '0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI',
43
+ [exports.sCoinTypesMap.scallop_v_sui]: '0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT',
44
+ [exports.sCoinTypesMap.scallop_usdc]: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',
45
+ };
46
+ exports.wormholeCoinTypeToSymbolMap = {
47
+ [exports.sCoinTypeToCoinTypeMap[exports.sCoinTypesMap.scallop_wormhole_usdc]]: 'wUSDC',
48
+ [exports.sCoinTypeToCoinTypeMap[exports.sCoinTypesMap.scallop_wormhole_usdt]]: 'wUSDT',
49
+ [exports.sCoinTypeToCoinTypeMap[exports.sCoinTypesMap.scallop_wormhole_eth]]: 'wETH',
50
+ [exports.sCoinTypeToCoinTypeMap[exports.sCoinTypesMap.scallop_wormhole_btc]]: 'wBTC',
51
+ [exports.sCoinTypeToCoinTypeMap[exports.sCoinTypesMap.scallop_wormhole_sol]]: 'wSOL',
52
+ };
5
53
  //# sourceMappingURL=coin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coin.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/coin.ts"],"names":[],"mappings":";;;AAGa,QAAA,0BAA0B,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC"}
1
+ {"version":3,"file":"coin.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/coin.ts"],"names":[],"mappings":";;;AAea,QAAA,eAAe,GAAwB;IAClD,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,OAAO;IACtB,WAAW,EAAE,KAAK;IAClB,qBAAqB,EAAE,OAAO;IAC9B,qBAAqB,EAAE,OAAO;IAC9B,oBAAoB,EAAE,MAAM;IAC5B,oBAAoB,EAAE,MAAM;IAC5B,oBAAoB,EAAE,MAAM;IAC5B,cAAc,EAAE,OAAO;IACvB,cAAc,EAAE,OAAO;IACvB,aAAa,EAAE,MAAM;IACrB,YAAY,EAAE,MAAM;CACrB,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C,WAAW,EACT,8FAA8F;IAChG,aAAa,EACX,kGAAkG;IACpG,WAAW,EACT,8FAA8F;IAChG,qBAAqB,EACnB,kHAAkH;IACpH,qBAAqB,EACnB,kHAAkH;IACpH,oBAAoB,EAClB,gHAAgH;IAClH,cAAc,EACZ,oGAAoG;IACtG,cAAc,EACZ,oGAAoG;IACtG,aAAa,EACX,kGAAkG;IACpG,YAAY,EACV,gGAAgG;IAClG,o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} from '../constants';
2
+ import { CoinTypeMetadata, MarketCoinNames, PoolCoinNames, SCoinNames } from './coin';
4
3
  import { ID } from '../../../utils/sui/structs/id';
5
4
  export type UserLending = {
6
5
  coinType: string;
@@ -16,18 +15,21 @@ export type UserObligations = {
16
15
  };
17
16
  };
18
17
  };
18
+ export type UserLendingData = {
19
+ [T in PoolCoinNames]?: UserLending;
20
+ };
19
21
  export type UserStakeAccounts = {
20
- [T in string]: {
22
+ [T in MarketCoinNames]?: {
21
23
  points: string;
22
24
  index: string;
23
25
  stakes: string;
24
26
  }[];
25
27
  };
26
28
  export type Pools = {
27
- [T in string]: CoinTypeMetadata;
29
+ [T in PoolCoinNames]: CoinTypeMetadata;
28
30
  };
29
31
  export type SCoinTypeMetadata = {
30
- [T in sCoinNames]: CoinTypeMetadata;
32
+ [T in SCoinNames]: CoinTypeMetadata;
31
33
  };
32
34
  export type ClaimStatus = {
33
35
  name: string;
@@ -3,3 +3,5 @@ export * from './coin';
3
3
  export * from './market';
4
4
  export * from './data';
5
5
  export * from './basic';
6
+ export * from './spool';
7
+ export * from './sui';
@@ -19,4 +19,6 @@ __exportStar(require("./coin"), exports);
19
19
  __exportStar(require("./market"), exports);
20
20
  __exportStar(require("./data"), exports);
21
21
  __exportStar(require("./basic"), exports);
22
+ __exportStar(require("./spool"), exports);
23
+ __exportStar(require("./sui"), exports);
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB"}
@@ -0,0 +1,10 @@
1
+ import { ExtendedBasicField, IdField, NameField } from './basic';
2
+ export type SpoolAccountFieldsType = {
3
+ id: IdField;
4
+ index: string;
5
+ points: string;
6
+ spool_id: string;
7
+ stake_type: ExtendedBasicField<NameField>;
8
+ stakes: string;
9
+ total_points: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=spool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spool.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/spool.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { parseStructTag } from '@mysten/sui/utils';
2
+ export type StructTag = ReturnType<typeof parseStructTag>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/scallop/types/sui.ts"],"names":[],"mappings":""}
@@ -1,13 +1,10 @@
1
- export type VeSca = {
2
- id: {
3
- id: string;
4
- };
5
- name: string;
6
- value: {
7
- type: string;
8
- fields: {
9
- locked_sca_amount: string;
10
- unlock_at: string;
11
- };
12
- };
1
+ import { ExtendedBasicField, IdField, NameField } from './basic';
2
+ type VeScaValueType = {
3
+ locked_sca_amount: string;
4
+ unlock_at: string;
13
5
  };
6
+ export type VeSca = {
7
+ id: IdField;
8
+ value: ExtendedBasicField<VeScaValueType>;
9
+ } & NameField;
10
+ export {};
@@ -24,7 +24,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
24
24
  const client = (0, clients_1.getClientSui)();
25
25
  const veScaKeys = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
26
26
  filter: {
27
- StructType: '0xcfe2d87aa5712b67cad2732edb6a2201bfdf592377e5c0968b7cb02099bd8e21::ve_sca::VeScaKey',
27
+ StructType: constants_1.veScaKeyType,
28
28
  },
29
29
  });
30
30
  if (veScaKeys.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"veScaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/veScaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAkE;AAClE,qGAA6E;AAC7E,qEAAkE;AAClE,uFAAoF;AAEpF,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACrD,MAAM,EAAE;YACN,UAAU,EACR,sFAAsF;SACzF;KACF,CAAC,CAAC;IACH,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,SAAS,GAAG,SAAS;SACxB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,QAAQ,CAAA,EAAA,CAAC;SAC5B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAa,CAAC;IAC9C,MAAM,YAAY,GAAG,MAAM,IAAA,mDAAwB,EAAQ,MAAM,EAAE;QACjE,QAAQ,EACN,oEAAoE;QACtE,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;IACH,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,sBAAU,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IAE3E,M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AAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE,OAAO;SACd;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ export declare const platformId = "vaultka";
4
+ export declare const platform: Platform;
5
+ export declare const lendingsCacheKey = "lendings";
6
+ export declare const lendingProgramIds: PublicKey[];
7
+ export declare const strategiesCacheKey = "strategies";
8
+ export declare const strategies: string[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.strategies = exports.strategiesCacheKey = exports.lendingProgramIds = exports.lendingsCacheKey = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'vaultka';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Vaultka',
9
+ image: 'https://sonar.watch/img/platforms/vaultka.webp',
10
+ website: 'https://solana.vaultka.com/',
11
+ twitter: 'https://x.com/Vaultkaofficial',
12
+ defiLlamaId: 'vaultka', // from https://defillama.com/docs/api
13
+ };
14
+ exports.lendingsCacheKey = `lendings`;
15
+ exports.lendingProgramIds = [
16
+ new web3_js_1.PublicKey('DE7BUY3Fa4CRc44RxRDpcknbCT6mYTY3LpZNFET7k3Hz'),
17
+ new web3_js_1.PublicKey('DMhoXyVNpCFeCEfEjEQfS6gzAEcPUUSXM8Xnd2UXJfiS'),
18
+ new web3_js_1.PublicKey('nKMLJtN1rr64K9DjmfzXvzaq4JEy5a4AJHHP9gY1dW6'),
19
+ new web3_js_1.PublicKey('69oX4gmwgDAfXWxSRtTx9SHvWmu2bd9qVGjQPpAFHaBF'),
20
+ ];
21
+ exports.strategiesCacheKey = `strategies`;
22
+ exports.strategies = [
23
+ '6UBsNdYq3MEao1m9NXQD1VEmXvptUXhfMwdHANGAo4bs',
24
+ 'B3FS1X2PZPBrtBZiyAN9oqABnu3o5YWwdY5ioqoVh64P',
25
+ 'SkFLfp7eSRsan13dEUZSVzMBj3vdyZnhaasFKQTzuiE',
26
+ '6VwarrrqWVWAmZtNdgGafeyoXD3SsspKxuxkZVarZqTA',
27
+ '9p5Sc5SvR8QpJCQV3U4q6zVUTupr4Tr9Jmf48sbcSjtX',
28
+ 'FRyGij76xTvAg1nPPTaXHfa3QxUfZuKARuAyAaMyoLPo',
29
+ 'A7PDwCJ3qcdVoZLqq7wHAwMq9yEKZU2vFx7Y9qbZ1dKJ',
30
+ ];
31
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,SAAS,EAAE,sCAAsC;CAC/D,CAAC;AAEW,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAE9B,QAAA,iBAAiB,GAAG;IAC/B,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAElC,QAAA,UAAU,GAAG;IACxB,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,15 @@
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.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const lendingJob_1 = __importDefault(require("./lendingJob"));
9
+ const lendingFetcher_1 = __importDefault(require("./lendingFetcher"));
10
+ const strategyFetcher_1 = __importDefault(require("./strategyFetcher"));
11
+ const strategyJob_1 = __importDefault(require("./strategyJob"));
12
+ exports.platforms = [constants_1.platform];
13
+ exports.jobs = [lendingJob_1.default, strategyJob_1.default];
14
+ exports.fetchers = [lendingFetcher_1.default, strategyFetcher_1.default];
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8DAAsC;AACtC,sEAA8C;AAC9C,wEAAgD;AAChD,gEAAwC;AAE3B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,qBAAW,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAc,CAAC,wBAAc,EAAE,yBAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,58 @@
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 web3_js_1 = require("@solana/web3.js");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const constants_1 = require("./constants");
19
+ const clients_1 = require("../../utils/clients");
20
+ const solana_1 = require("../../utils/solana");
21
+ const structs_1 = require("./structs");
22
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
23
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
24
+ const connection = (0, clients_1.getClientSolana)();
25
+ const userInfos = yield (0, solana_1.getParsedMultipleAccountsInfo)(connection, structs_1.userInfoStruct, constants_1.lendingProgramIds.map((lendingProgramId) => web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('USER_INFOS'), new web3_js_1.PublicKey(owner).toBuffer()], lendingProgramId)[0]));
26
+ if (!userInfos || userInfos.filter((u) => u !== null).length === 0)
27
+ return [];
28
+ const lendings = yield cache.getItem(constants_1.lendingsCacheKey, {
29
+ prefix: constants_1.platformId,
30
+ networkId: portfolio_core_1.NetworkId.solana,
31
+ });
32
+ if (!lendings)
33
+ return [];
34
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
35
+ const element = elementRegistry.addElementMultiple({
36
+ label: 'Lending',
37
+ });
38
+ userInfos.forEach((userInfo, i) => {
39
+ if (userInfo)
40
+ element.addAsset({
41
+ address: lendings[i].mint
42
+ ? lendings[i].mint.toString()
43
+ : portfolio_core_1.solanaNativeAddress,
44
+ amount: new bignumber_js_1.default(lendings[i].vault_balance)
45
+ .plus(lendings[i].borrowed_amount)
46
+ .multipliedBy(userInfo.shares)
47
+ .dividedBy(lendings[i].total_shares),
48
+ });
49
+ });
50
+ return elementRegistry.getElements(cache);
51
+ });
52
+ const fetcher = {
53
+ id: `${constants_1.platformId}-lending`,
54
+ networkId: portfolio_core_1.NetworkId.solana,
55
+ executor,
56
+ };
57
+ exports.default = fetcher;
58
+ //# sourceMappingURL=lendingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+CAAmE;AACnE,uCAAoD;AACpD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,6BAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CACnB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC5D,gBAAgB,CACjB,CAAC,CAAC,CAAC,CACP,CACF,CAAC;IAEF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,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