@sonarwatch/portfolio-plugins 0.14.10 → 0.14.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/CHANGELOG.md +1636 -1628
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/balancer/helpers/pools.js +21 -21
  5. package/src/plugins/cetus/types.d.ts +109 -0
  6. package/src/plugins/jupiter/exchange/constants.js +1 -1
  7. package/src/plugins/jupiter/governance/asrAirdropFetcher.d.ts +3 -3
  8. package/src/plugins/jupiter/governance/asrAirdropFetcher.js +50 -71
  9. package/src/plugins/jupiter/governance/asrAirdropFetcher.js.map +1 -1
  10. package/src/plugins/jupiter/governance/constants.d.ts +12 -1
  11. package/src/plugins/jupiter/governance/constants.js +46 -2
  12. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  13. package/src/plugins/jupiter/governance/index.d.ts +5 -0
  14. package/src/plugins/jupiter/governance/index.js +20 -0
  15. package/src/plugins/jupiter/governance/index.js.map +1 -0
  16. package/src/plugins/jupiter/index.js +5 -3
  17. package/src/plugins/jupiter/index.js.map +1 -1
  18. package/src/plugins/kriya/clmmsFetcher.d.ts +3 -0
  19. package/src/plugins/kriya/clmmsFetcher.js +81 -0
  20. package/src/plugins/kriya/clmmsFetcher.js.map +1 -0
  21. package/src/plugins/kriya/constants.d.ts +9 -4
  22. package/src/plugins/kriya/constants.js +48 -5
  23. package/src/plugins/kriya/constants.js.map +1 -1
  24. package/src/plugins/kriya/farmsFetcher.js.map +1 -1
  25. package/src/plugins/kriya/index.js +4 -0
  26. package/src/plugins/kriya/index.js.map +1 -1
  27. package/src/plugins/kriya/lpFetcher.d.ts +3 -0
  28. package/src/plugins/kriya/lpFetcher.js +80 -0
  29. package/src/plugins/kriya/lpFetcher.js.map +1 -0
  30. package/src/plugins/kriya/types/common.d.ts +46 -0
  31. package/src/plugins/kriya/types/common.js +9 -0
  32. package/src/plugins/kriya/types/common.js.map +1 -0
  33. package/src/plugins/kriya/types/farms.d.ts +55 -0
  34. package/src/plugins/kriya/{types.js → types/farms.js} +2 -1
  35. package/src/plugins/kriya/types/farms.js.map +1 -0
  36. package/src/plugins/kriya/types/pools.d.ts +131 -0
  37. package/src/plugins/kriya/types/pools.js +3 -0
  38. package/src/plugins/kriya/types/pools.js.map +1 -0
  39. package/src/plugins/kriya/{types.d.ts → types/vaults.d.ts} +104 -86
  40. package/src/plugins/kriya/types/vaults.js +3 -0
  41. package/src/plugins/kriya/types/vaults.js.map +1 -0
  42. package/src/plugins/kriya/vaultsFetcher.js +67 -59
  43. package/src/plugins/kriya/vaultsFetcher.js.map +1 -1
  44. package/src/plugins/kriya/vaultsJob.js +52 -16
  45. package/src/plugins/kriya/vaultsJob.js.map +1 -1
  46. package/src/plugins/native-stake/solana/solanaValidatorsJob.js +4 -0
  47. package/src/plugins/native-stake/solana/solanaValidatorsJob.js.map +1 -1
  48. package/src/plugins/native-stake/solana/types.d.ts +8 -0
  49. package/src/plugins/parcl/stakingFetcher.js +10 -24
  50. package/src/plugins/parcl/stakingFetcher.js.map +1 -1
  51. package/src/plugins/sushiswap/helpers.js +24 -24
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/plugins/zeta/airdropFetcher.js +14 -14
  54. package/src/utils/elementbuilder/LiquidityBuilder.js +1 -1
  55. package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
  56. package/src/utils/sei/constants.js +8 -8
  57. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  58. package/src/plugins/kriya/types.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dynamicFieldPositionType = exports.vaultsInfo = exports.vaultsCointsTypes = exports.leverageVaultsUrl = exports.poolsUrl = exports.vaultsUrl = exports.farmsInfoKey = exports.leverageVaultsInfoKey = exports.vaultsInfoKey = exports.farmsPackageId = exports.vaultsPackageId = exports.platform = exports.platformId = void 0;
3
+ exports.dynamicFieldPositionTypeKriya = exports.dynamicFieldPositionTypeCetus = exports.vaultsInfo = exports.leverageVaultsUrl = exports.poolsUrl = exports.vaultsUrl = exports.farmsInfoKey = exports.leverageVaultsInfoKey = exports.vaultsInfoKey = exports.vaultStakeReceipt = exports.clmmType = exports.lpPositionTypeV2 = exports.clmmPoolPackageId = exports.poolsV2PackageId = exports.farmsPackageId = exports.vaultsPackageId = exports.platform = exports.platformId = void 0;
4
+ const common_1 = require("./types/common");
4
5
  exports.platformId = 'kriya';
5
6
  exports.platform = {
6
7
  id: exports.platformId,
@@ -12,31 +13,73 @@ exports.platform = {
12
13
  };
13
14
  exports.vaultsPackageId = '0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7';
14
15
  exports.farmsPackageId = '0x88701243d0445aa38c0a13f02a9af49a58092dfadb93af9754edb41c52f40085';
16
+ exports.poolsV2PackageId = '0xa0eba10b173538c8fecca1dff298e488402cc9ff374f8a12ca7758eebe830b66';
17
+ exports.clmmPoolPackageId = '0xf6c05e2d9301e6e91dc6ab6c3ca918f7d55896e1f1edd64adc0e615cde27ebf1';
18
+ exports.lpPositionTypeV2 = `${exports.poolsV2PackageId}::spot_dex::KriyaLPToken`;
19
+ exports.clmmType = `${exports.clmmPoolPackageId}::position::Position`;
20
+ exports.vaultStakeReceipt = '0xba0dd78bdd5d1b5f02a689444522ea9a79e1bc4cd4d8e6a57b59f3fbcae5e978::farm::StakeReceipt';
15
21
  exports.vaultsInfoKey = 'vaultsInfos';
16
22
  exports.leverageVaultsInfoKey = 'leverageVaultsInfos';
17
23
  exports.farmsInfoKey = 'farmsInfos';
18
24
  exports.vaultsUrl = 'https://88ob93rfva.execute-api.ap-southeast-1.amazonaws.com/release/vaults';
19
25
  exports.poolsUrl = 'https://xd0ljetd33.execute-api.ap-southeast-1.amazonaws.com/release/pools';
20
26
  exports.leverageVaultsUrl = 'https://4sacq88271.execute-api.ap-southeast-1.amazonaws.com/release/vaults';
21
- exports.vaultsCointsTypes = [
22
- '0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7::kc_allweather_vt::KC_ALLWEATHER_VT',
23
- ];
24
27
  exports.vaultsInfo = [
25
28
  {
26
29
  tokenType: '0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7::kc_allweather_vt::KC_ALLWEATHER_VT',
27
30
  id: '0x5eb2f7e07e4fbe6ce47dd10dc040efd5c79228ed767d242c320571dcd7c5a976',
28
31
  underlyingPool: '0xcf994611fd4c48e277ce3ffd4d4364c914af2c3cbb05f7bf6facd371de688630',
32
+ underlyingDex: common_1.Dex.cetus,
29
33
  },
30
34
  {
31
35
  tokenType: '0x1e06cc1e491b434cd1be9f24e1f8a82f6fcb016f6fb87f0586b0fe57ecca6cbb::kc_navx_chopper_vt::KC_NAVX_CHOPPER_VT',
32
36
  id: '0xce23eccbba8e6fe0351a8d6e2f736929723ef0ada2ca9d3612557ac6bc423c87',
33
37
  underlyingPool: '0x0254747f5ca059a1972cd7f6016485d51392a3fde608107b93bbaebea550f703',
38
+ underlyingDex: common_1.Dex.cetus,
34
39
  },
35
40
  {
36
41
  tokenType: '0x6d8c1becd365aaa5474a0642247b15189e1625f32104945749f1e8802b768d6d::kc_degen_vt::KC_DEGEN_VT',
37
42
  id: '0x264c3b7de2abf0df2871bc0486bfab001f88b76c865bbdda377cd583b633c17a',
38
43
  underlyingPool: '0xcf994611fd4c48e277ce3ffd4d4364c914af2c3cbb05f7bf6facd371de688630',
44
+ underlyingDex: common_1.Dex.cetus,
45
+ },
46
+ {
47
+ id: '0x2975727619f686f83222894f8610af086df2983a8e0f0df19903c2dec74ce9cb',
48
+ tokenType: '0xf6c818276fd751df676b650ef691f3f04d4dfed226604460fc5c32d4eaf54aea::kriya_compounder_vt::KRIYA_COMPOUNDER_VT',
49
+ underlyingPool: '0xc83d3c409375cb05fbe6a7f30a4f0da4aa75bda3352a08d2285216ef1a470267',
50
+ underlyingDex: common_1.Dex.kriya,
51
+ },
52
+ {
53
+ id: '0xc768f9ab7f01b7af94d481ee9286af57b0e05c9a060622c8ee731d404711a2e4',
54
+ tokenType: '0x13e03634125a490a285e31aecb1ce7545c08d741c1058a4b5793716e78cf6e27::kriya_lst_vt_1::KRIYA_LST_VT_1',
55
+ underlyingPool: '0xf1b6a7534027b83e9093bec35d66224daa75ea221d555c79b499f88c93ea58a9',
56
+ underlyingDex: common_1.Dex.kriya,
57
+ },
58
+ {
59
+ tokenType: '0x54b03bcb3dd5a009286aa22812826963177793b1dd83203a2731ea34a95bc730::kriya_lst_vt_2::KRIYA_LST_VT_2',
60
+ id: '0x34668043d3b4f80324c2d00478314e40befe8e72353794b5021de930bc8954d8',
61
+ underlyingPool: '0xf1b6a7534027b83e9093bec35d66224daa75ea221d555c79b499f88c93ea58a9',
62
+ underlyingDex: common_1.Dex.kriya,
63
+ },
64
+ {
65
+ tokenType: '0x2b87dd426a94bcc82d7a7177dfac06bebb3c7f4c4feb11c7045f749cf484bbbc::kriya_narrow_vt::KRIYA_NARROW_VT',
66
+ id: '0xc4ce815e5b53caf1fe96d0a8c17a9023b7afa1cc9fe3e0053dcfb35e223b5eb5',
67
+ underlyingPool: '0x367e02acb99632e18db69c3e93d89d21eb721e1d1fcebc0f6853667337450acc',
68
+ underlyingDex: common_1.Dex.kriya,
69
+ },
70
+ {
71
+ tokenType: '0xe28bb1819fb4ab201f7c7616615409c798872fb0b25e16153ccba2a7fdb7f625::kriya_allweather_vt::KRIYA_ALLWEATHER_VT',
72
+ id: '0xbdd32b071f0d6302cb5c19113d4f53e0c98ca1d7d0aef244c3a3da68e0391a52',
73
+ underlyingPool: '0x367e02acb99632e18db69c3e93d89d21eb721e1d1fcebc0f6853667337450acc',
74
+ underlyingDex: common_1.Dex.kriya,
75
+ },
76
+ {
77
+ tokenType: '0xcabe5d1a6d719d8c3c2217079a44441c5c1701394a6d3abd58ac674b054c08f4::kriya_deep_vt::KRIYA_DEEP_VT',
78
+ id: '0xa9c29c881fe0224b5600234891d6da06dd273d5698601c7caa74f15e814d2abc',
79
+ underlyingPool: '0xcf370321292e799d93ad4f1bb075636a3506d8bf8ae82f57f7748c966150aac4',
80
+ underlyingDex: common_1.Dex.kriya,
39
81
  },
40
82
  ];
41
- exports.dynamicFieldPositionType = '0x2::dynamic_field::Field<vector<u8>, 0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::position::Position>';
83
+ exports.dynamicFieldPositionTypeCetus = '0x2::dynamic_field::Field<vector<u8>, 0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::position::Position>';
84
+ exports.dynamicFieldPositionTypeKriya = '0x2::dynamic_field::Field<vector<u8>, 0xf6c05e2d9301e6e91dc6ab6c3ca918f7d55896e1f1edd64adc0e615cde27ebf1::position::Position>';
42
85
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,iBAAiB,EAAE,sCAAsC;IACtE,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAC9B,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,SAAS,GACpB,4EAA4E,CAAC;AAClE,QAAA,QAAQ,GACnB,2EAA2E,CAAC;AACjE,QAAA,iBAAiB,GAC5B,4EAA4E,CAAC;AAElE,QAAA,iBAAiB,GAAG;IAC/B,wGAAwG;CACzG,CAAC;AAEW,QAAA,UAAU,GAAgB;IACrC;QACE,SAAS,EACP,wGAAwG;QAC1G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,4GAA4G;QAC9G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,8FAA8F;QAChG,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;CACF,CAAC;AAEW,QAAA,wBAAwB,GACnC,+HAA+H,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAErC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,iBAAiB,EAAE,sCAAsC;IACtE,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAAG,GAAG,wBAAgB,0BAA0B,CAAC;AACjE,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AACtD,QAAA,iBAAiB,GAC5B,wFAAwF,CAAC;AAE9E,QAAA,aAAa,GAAG,aAAa,CAAC;AAC9B,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,SAAS,GACpB,4EAA4E,CAAC;AAClE,QAAA,QAAQ,GACnB,2EAA2E,CAAC;AACjE,QAAA,iBAAi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,yBAAQ,EAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
@@ -11,11 +11,15 @@ const farmsJob_1 = __importDefault(require("./farmsJob"));
11
11
  const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
12
12
  const leverageVaultsFetcher_1 = __importDefault(require("./leverageVaultsFetcher"));
13
13
  const leverageVaultsJob_1 = __importDefault(require("./leverageVaultsJob"));
14
+ const clmmsFetcher_1 = __importDefault(require("./clmmsFetcher"));
15
+ const lpFetcher_1 = __importDefault(require("./lpFetcher"));
14
16
  exports.platforms = [constants_1.platform];
15
17
  exports.jobs = [vaultsJob_1.default, leverageVaultsJob_1.default, farmsJob_1.default];
16
18
  exports.fetchers = [
17
19
  vaultsFetcher_1.default,
18
20
  leverageVaultsFetcher_1.default,
19
21
  farmsFetcher_1.default,
22
+ clmmsFetcher_1.default,
23
+ lpFetcher_1.default,
20
24
  ];
21
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,oEAA4C;AAC5C,4DAAoC;AACpC,0DAAkC;AAClC,kEAA0C;AAC1C,oFAA4D;AAC5D,4EAAoD;AAEvC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,mBAAS,EAAE,2BAAiB,EAAE,kBAAQ,CAAC,CAAC;AACvD,QAAA,QAAQ,GAAc;IACjC,uBAAa;IACb,+BAAqB;IACrB,sBAAY;CACb,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,oEAA4C;AAC5C,4DAAoC;AACpC,0DAAkC;AAClC,kEAA0C;AAC1C,oFAA4D;AAC5D,4EAAoD;AACpD,kEAA0C;AAC1C,4DAAoC;AAEvB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,mBAAS,EAAE,2BAAiB,EAAE,kBAAQ,CAAC,CAAC;AACvD,QAAA,QAAQ,GAAc;IACjC,uBAAa;IACb,+BAAqB;IACrB,sBAAY;IACZ,sBAAY;IACZ,mBAAS;CACV,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,80 @@
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 bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const constants_1 = require("./constants");
18
+ const clients_1 = require("../../utils/clients");
19
+ const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
20
+ const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
21
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
22
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
+ const client = (0, clients_1.getClientSui)();
24
+ const lpObjects = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
25
+ filter: { StructType: constants_1.lpPositionTypeV2 },
26
+ });
27
+ if (!lpObjects)
28
+ return [];
29
+ const poolsIds = new Set();
30
+ const positions = [];
31
+ lpObjects.forEach((position) => {
32
+ var _a, _b;
33
+ if ((_b = (_a = position.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
34
+ poolsIds.add(position.data.content.fields.pool_id);
35
+ positions.push(position.data.content.fields);
36
+ }
37
+ });
38
+ const poolsById = new Map();
39
+ const poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, [
40
+ ...new Set(poolsIds),
41
+ ]);
42
+ poolsObjects.forEach((poolObj) => {
43
+ var _a, _b;
44
+ if ((_b = (_a = poolObj.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
45
+ const { keys } = (0, portfolio_core_1.parseTypeString)(poolObj.data.type);
46
+ if (!keys)
47
+ return;
48
+ poolsById.set(poolObj.data.objectId, Object.assign(Object.assign({}, poolObj.data.content.fields), { token_x_mint: keys[0].type, token_y_mint: keys[1].type }));
49
+ }
50
+ });
51
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.sui, constants_1.platformId);
52
+ positions.forEach((position) => {
53
+ const pool = poolsById.get(position.pool_id);
54
+ if (!pool)
55
+ return;
56
+ const shares = new bignumber_js_1.default(position.lsp.fields.balance).dividedBy(pool.lsp_supply.fields.value);
57
+ const tokenAmountX = shares.times(pool.token_x);
58
+ const tokenAmountY = shares.times(pool.token_y);
59
+ const element = elementRegistry.addElementLiquidity({
60
+ label: 'LiquidityPool',
61
+ });
62
+ const liquidity = element.addLiquidity();
63
+ liquidity.addAsset({
64
+ address: pool.token_x_mint,
65
+ amount: tokenAmountX,
66
+ });
67
+ liquidity.addAsset({
68
+ address: pool.token_y_mint,
69
+ amount: tokenAmountY,
70
+ });
71
+ });
72
+ return elementRegistry.getElements(cache);
73
+ });
74
+ const fetcher = {
75
+ id: `${constants_1.platformId}-lp`,
76
+ networkId: portfolio_core_1.NetworkId.sui,
77
+ executor,
78
+ };
79
+ exports.default = fetcher;
80
+ //# sourceMappingURL=lpFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lpFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/lpFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAwE;AACxE,gEAAqC;AAGrC,2CAA2D;AAC3D,iDAAmD;AAEnD,qEAAkE;AAClE,qEAAkE;AAClE,gFAA6E;AAG7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,MAAM,IAAA,iCAAe,EAAY,MAAM,EAAE,KAAK,EAAE;QAChE,MAAM,EAAE,EAAE,UAAU,EAAE,4BAAgB,EAAE;KACzC,CAAC,CAAC;IACH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IACxC,MAAM,SAAS,GAAgB,EAAE,CAAC;IAClC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;;QAC7B,IAAI,MAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,EAAE,CAAC;YACnC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACnD,SAAS,CAAC,IAAI,CAAC,QAAQ,CA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M,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEhD,MAAM,OAAO,GAAG,eAAe,CAAC,mBAAmB,CAAC;YAClD,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;QAEzC,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,IAAI,CAAC,YAAY;YAC1B,MAAM,EAAE,YAAY;SACrB,CAAC,CAAC;QAEH,SAAS,CAAC,QAAQ,CAAC;YACjB,OAAO,EAAE,IAAI,CAAC,YAAY;YAC1B,MAAM,EAAE,YAAY;SACrB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,KAAK;IACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,46 @@
1
+ export type Type = {
2
+ fields: TypeFields;
3
+ type: string;
4
+ };
5
+ export type TypeFields = {
6
+ name: string;
7
+ };
8
+ export type TickIndex = {
9
+ fields: BitsFields;
10
+ type: string;
11
+ };
12
+ export type BitsFields = {
13
+ bits: number;
14
+ };
15
+ export type RewardInfo = {
16
+ fields: RewardInfoFields;
17
+ type: string;
18
+ };
19
+ export type RewardInfoFields = {
20
+ coins_owed_reward: string;
21
+ reward_growth_inside_last: string;
22
+ };
23
+ export declare enum Dex {
24
+ cetus = 0,
25
+ kriya = 1
26
+ }
27
+ export type VaultConfig = {
28
+ id: string;
29
+ tokenType: string;
30
+ underlyingPool: string;
31
+ underlyingDex: Dex;
32
+ };
33
+ export type VaultPositionInfo = {
34
+ id: string;
35
+ farmId: string;
36
+ coinType: string;
37
+ lowerTick: number;
38
+ upperTick: number;
39
+ currentTickIndex: number;
40
+ liquidity: string;
41
+ totalSupply: string;
42
+ mintA: string;
43
+ mintB: string;
44
+ amountA: string;
45
+ amountB: string;
46
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dex = void 0;
4
+ var Dex;
5
+ (function (Dex) {
6
+ Dex[Dex["cetus"] = 0] = "cetus";
7
+ Dex[Dex["kriya"] = 1] = "kriya";
8
+ })(Dex || (exports.Dex = Dex = {}));
9
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/kriya/types/common.ts"],"names":[],"mappings":";;;AA4BA,IAAY,GAGX;AAHD,WAAY,GAAG;IACb,+BAAK,CAAA;IACL,+BAAK,CAAA;AACP,CAAC,EAHW,GAAG,mBAAH,GAAG,QAGd"}
@@ -0,0 +1,55 @@
1
+ import { ID } from '../../../utils/sui/structs/id';
2
+ export type FarmInfo = {
3
+ tokenXReserve: string;
4
+ lspSupply: string;
5
+ protocolFeesPercent: string;
6
+ createdAt: Date;
7
+ farmSource: FarmSource;
8
+ volume: number;
9
+ packageId: string;
10
+ farmId: string;
11
+ objectId: string;
12
+ poolSource: PoolSource;
13
+ lspType: string;
14
+ lpFeesPercent: string;
15
+ tokenYType: string;
16
+ data: string;
17
+ updatedAt: Date;
18
+ isStable: boolean;
19
+ tokenXType: string;
20
+ tokenYReserve: string;
21
+ tokenX: Token;
22
+ tokenY: Token;
23
+ tvl: number;
24
+ apy: number;
25
+ feeApy: number;
26
+ };
27
+ export declare enum FarmSource {
28
+ Buck = "buck",
29
+ Empty = "",
30
+ Kriya = "kriya"
31
+ }
32
+ export declare enum PoolSource {
33
+ Deepbook = "deepbook",
34
+ DeepbookV2 = "deepbook_v2",
35
+ Kriya = "kriya"
36
+ }
37
+ export type Token = {
38
+ coinType: string;
39
+ ticker: string;
40
+ tokenName: string;
41
+ updatedAt: Date;
42
+ createdAt: Date;
43
+ decimals: number;
44
+ iconUrl: string;
45
+ description: string;
46
+ price: string;
47
+ };
48
+ export type FarmPosition = {
49
+ farm_id: string;
50
+ id: ID;
51
+ lock_until: string;
52
+ stake_amount: string;
53
+ stake_weight: string;
54
+ start_unit: string;
55
+ };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // Farm
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.PoolSource = exports.FarmSource = void 0;
4
5
  var FarmSource;
@@ -13,4 +14,4 @@ var PoolSource;
13
14
  PoolSource["DeepbookV2"] = "deepbook_v2";
14
15
  PoolSource["Kriya"] = "kriya";
15
16
  })(PoolSource || (exports.PoolSource = PoolSource = {}));
16
- //# sourceMappingURL=types.js.map
17
+ //# sourceMappingURL=farms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"farms.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/kriya/types/farms.ts"],"names":[],"mappings":";AAAA,OAAO;;;AA8BP,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,wBAAU,CAAA;IACV,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,wCAA0B,CAAA;IAC1B,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
@@ -0,0 +1,131 @@
1
+ import { ID } from '../../../utils/sui/structs/id';
2
+ import { TickIndex, Type } from './common';
3
+ export type Pool = {
4
+ id: ID;
5
+ is_deposit_enabled: boolean;
6
+ is_stable: boolean;
7
+ is_swap_enabled: boolean;
8
+ is_withdraw_enabled: boolean;
9
+ lp_fee_percent: string;
10
+ lsp_locked: string;
11
+ lsp_supply: LspSupply;
12
+ protocol_fee_percent: string;
13
+ protocol_fee_x: string;
14
+ protocol_fee_y: string;
15
+ scaleX: string;
16
+ scaleY: string;
17
+ token_x: string;
18
+ token_y: string;
19
+ };
20
+ export type ExtendedPool = Pool & {
21
+ token_x_mint: string;
22
+ token_y_mint: string;
23
+ };
24
+ export type LspSupply = {
25
+ fields: Fields;
26
+ type: string;
27
+ };
28
+ export type Fields = {
29
+ value: string;
30
+ };
31
+ export type LpTokenV2 = {
32
+ id: ID;
33
+ lsp: Lsp;
34
+ pool_id: string;
35
+ };
36
+ export type Lsp = {
37
+ fields: BalanceFields;
38
+ type: string;
39
+ };
40
+ export type BalanceFields = {
41
+ balance: string;
42
+ id: ID;
43
+ };
44
+ export type ClmmPosition = {
45
+ fee_growth_inside_x_last: string;
46
+ fee_growth_inside_y_last: string;
47
+ fee_rate: string;
48
+ id: ID;
49
+ liquidity: string;
50
+ owed_coin_x: string;
51
+ owed_coin_y: string;
52
+ pool_id: string;
53
+ reward_infos: PositionRewardInfo[];
54
+ tick_lower_index: TickIndex;
55
+ tick_upper_index: TickIndex;
56
+ type_x: Type;
57
+ type_y: Type;
58
+ };
59
+ export type PositionRewardInfo = {
60
+ fields: PositionRewardInfoFields;
61
+ type: string;
62
+ };
63
+ export type PositionRewardInfoFields = {
64
+ coins_owed_reward: string;
65
+ reward_growth_inside_last: string;
66
+ };
67
+ export type ClmmPool = {
68
+ fee_growth_global_x: string;
69
+ fee_growth_global_y: string;
70
+ flash_loan_fee_rate: string;
71
+ id: ID;
72
+ liquidity: string;
73
+ max_liquidity_per_tick: string;
74
+ observation_cardinality: string;
75
+ observation_cardinality_next: string;
76
+ observation_index: string;
77
+ observations: Observation[];
78
+ protocol_fee_share: string;
79
+ protocol_fee_x: string;
80
+ protocol_fee_y: string;
81
+ protocol_flash_loan_fee_share: string;
82
+ reserve_x: string;
83
+ reserve_y: string;
84
+ reward_infos: RewardInfo[];
85
+ sqrt_price: string;
86
+ swap_fee_rate: string;
87
+ tick_bitmap: Tick;
88
+ tick_index: TickIndex;
89
+ tick_spacing: number;
90
+ ticks: Tick;
91
+ type_x: Type;
92
+ type_y: Type;
93
+ };
94
+ export type RewardInfo = {
95
+ fields: RewardInfoFields;
96
+ type: string;
97
+ };
98
+ export type RewardInfoFields = {
99
+ ended_at_seconds: string;
100
+ last_update_time: string;
101
+ reward_coin_type: Type;
102
+ reward_growth_global: string;
103
+ reward_per_seconds: string;
104
+ total_reward: string;
105
+ total_reward_allocated: string;
106
+ };
107
+ export type Observation = {
108
+ fields: ObservationFields;
109
+ type: string;
110
+ };
111
+ export type ObservationFields = {
112
+ initialized: boolean;
113
+ seconds_per_liquidity_cumulative: string;
114
+ tick_cumulative: TickCumulative;
115
+ timestamp_s: string;
116
+ };
117
+ export type TickCumulative = {
118
+ fields: TickCumulativeFields;
119
+ type: string;
120
+ };
121
+ export type TickCumulativeFields = {
122
+ bits: string;
123
+ };
124
+ export type Tick = {
125
+ fields: TickBitmapFields;
126
+ type: string;
127
+ };
128
+ export type TickBitmapFields = {
129
+ id: ID;
130
+ size: string;
131
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/kriya/types/pools.ts"],"names":[],"mappings":""}