@sonarwatch/portfolio-plugins 0.11.239 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -2,15 +2,7 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [0.11.239](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.238...plugins-0.11.239) (2024-06-03)
6
-
7
-
8
-
9
- ## [0.11.238](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.237...plugins-0.11.238) (2024-06-03)
10
-
11
-
12
-
13
- ## [0.11.237](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.236...plugins-0.11.237) (2024-06-03)
5
+ # [0.12.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.236...plugins-0.12.0) (2024-06-03)
14
6
 
15
7
 
16
8
 
package/package.json CHANGED
@@ -1,7 +1,49 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.11.239",
3
+ "version": "0.12.0",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
- "main": "./src/index.js"
6
+ "dependencies": {
7
+ "@aave/contract-helpers": "^1.18.3",
8
+ "@aave/math-utils": "^1.18.3",
9
+ "@aptos-labs/ts-sdk": "^1.11.0",
10
+ "@bonfida/spl-name-service": "^1.0.10",
11
+ "@cosmjs/cosmwasm-stargate": "^0.31.1",
12
+ "@ethersproject/address": "^5.7.0",
13
+ "@ethersproject/bignumber": "^5.7.0",
14
+ "@ethersproject/bytes": "^5.7.0",
15
+ "@ethersproject/constants": "^5.7.0",
16
+ "@ethersproject/providers": "^5.7.2",
17
+ "@ethersproject/units": "^5.7.0",
18
+ "@metaplex-foundation/beet": "^0.7.1",
19
+ "@metaplex-foundation/beet-solana": "^0.4.0",
20
+ "@metaplex-foundation/js": "^0.19.4",
21
+ "@metaplex-foundation/umi-serializers-encodings": "^0.8.9",
22
+ "@mysten/bcs": "^0.11.1",
23
+ "@mysten/sui.js": "^0.50.1",
24
+ "@onsol/tldparser": "^0.6.1",
25
+ "@sei-js/core": "^3.0.1",
26
+ "@sei-js/proto": "^3.0.1",
27
+ "@solana/web3.js": "^1.91.8",
28
+ "axios": "^1.7.2",
29
+ "bignumber.js": "^9.1.2",
30
+ "bitcoin-address-validation": "^2.2.1",
31
+ "bn.js": "^5.2.1",
32
+ "buffer": "6.0.1",
33
+ "decimal.js": "^10.4.3",
34
+ "dsa-connect": "^0.6.47",
35
+ "graphql": "^16.8.1",
36
+ "graphql-request": "^6.1.0",
37
+ "long": "^5.2.3",
38
+ "osmojs": "^16.5.1",
39
+ "reflect-metadata": "^0.1.13",
40
+ "unstorage": "^1.10.1",
41
+ "viem": "^1.16.5",
42
+ "web3-v1": "npm:web3@^1.5.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@sonarwatch/portfolio-core": "0.12.0"
46
+ },
47
+ "main": "./src/index.js",
48
+ "types": "./src/index.d.ts"
7
49
  }
@@ -16,8 +16,8 @@ exports.default = (0, unstorage_1.defineDriver)((options) => ({
16
16
  name: DRIVER_NAME,
17
17
  options,
18
18
  hasItem(key, opts) {
19
+ var _a;
19
20
  return __awaiter(this, void 0, void 0, function* () {
20
- var _a;
21
21
  for (const layer of options.layers) {
22
22
  if (yield layer.hasItem(key, opts)) {
23
23
  if (layer === options.layers[0]) {
@@ -54,14 +54,14 @@ exports.default = (0, unstorage_1.defineDriver)((options) => ({
54
54
  // TODO: Support native meta
55
55
  // async getMeta (key) {},
56
56
  setItem(key, value, opts) {
57
+ var _a, _b;
57
58
  return __awaiter(this, void 0, void 0, function* () {
58
- var _a, _b;
59
59
  yield ((_b = (_a = options.layers[0]) === null || _a === void 0 ? void 0 : _a.setItem) === null || _b === void 0 ? void 0 : _b.call(_a, key, value, opts));
60
60
  });
61
61
  },
62
62
  removeItem(key, opts) {
63
+ var _a, _b;
63
64
  return __awaiter(this, void 0, void 0, function* () {
64
- var _a, _b;
65
65
  yield ((_b = (_a = options.layers[0]) === null || _a === void 0 ? void 0 : _a.setItem) === null || _b === void 0 ? void 0 : _b.call(_a, key, OVERLAY_REMOVED, opts));
66
66
  });
67
67
  },
@@ -1 +1 @@
1
- {"version":3,"file":"overlayDriver.js","sourceRoot":"","sources":["../../../../packages/plugins/src/overlayDriver.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yCAA+D;AAM/D,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAE9C,MAAM,WAAW,GAAG,SAAS,CAAC;AAE9B,kBAAe,IAAA,wBAAY,EAAC,CAAC,OAA8B,EAAE,EAAE,CAAC,CAAC;IAC/D,IAAI,EAAE,WAAW;IACjB,OAAO;IACD,OAAO,CAAC,GAAG,EAAE,IAAI;;;YACrB,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACnC,IAAI,MAAM,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;oBACnC,IAAI,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;wBAChC,IAAI,CAAC,MAAM,CAAA,MAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC,GAAG,CAAC,CAAA,CAAC,KAAK,eAAe,EAAE,CAAC;4BAChE,OAAO,KAAK,CAAC;wBACf,CAAC;oBACH,CAAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;IACK,OAAO,CAAC,GAAG;;YACf,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACnC,IAAI,KAAK,CAAC;gBACV,IAAI,CAAC;oBACH,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBACnC,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,KAAK,GAAG,IAAI,CAAC;gBACf,CAAC;gBAED,IAAI,KAAK,KAAK,eAAe,EAAE,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,EAAE;gBACjC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC7C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,wBAAY,EAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,CAAC,CAAA,CAAC,CACH,CAAC;YACF,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACvD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CACpC,UAAU,CAAC,GAAG,CAAC,CAAO,GAAG,EAAE,EAAE;;gBAC3B,IAAI,CAAC,MAAM,CAAA,MAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC,GAAG,CAAC,CAAA,CAAC,KAAK,eAAe,EAAE,CAAC;oBAChE,OAAO,KAAK,CAAC;gBACf,CAAC;gBACD,OAAO,GAAG,CAAC;YACb,CAAC,CAAA,CAAC,CACH,CAAC;YACF,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAa,CAAC;QAClD,CAAC;KAAA;IACK,OAAO;;YACX,gCAAgC;YAChC,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAO,KAAK,EAAE,EAAE;gBACjC,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;oBAClB,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;gBACxB,CAAC;YACH,CAAC,CAAA,CAAC,CACH,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC,CAAC"}
@@ -18,8 +18,8 @@ const constants_1 = require("../../utils/clients/constants");
18
18
  const constants_2 = require("./constants");
19
19
  exports.lendingPoolsPrefix = 'aave-lendingPools';
20
20
  function fetchLendingForAddress(address, networkId, configs, cache, proxyInfo) {
21
+ var _a, _b;
21
22
  return __awaiter(this, void 0, void 0, function* () {
22
- var _a, _b;
23
23
  const elements = [];
24
24
  for (let i = 0; i < configs.length; i++) {
25
25
  const config = configs[i];
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAcoC;AACpC,6DAGgC;AAChC,wDAAiE;AACjE,iDAG0B;AAS1B,6DAA+D;AAC/D,2CAAyC;AAE5B,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,SAAsB,sBAAsB,CAC1C,OAAe,EACf,SAAwB,EACxB,OAAwB,EACxB,KAAY,EACZ,SAAqB;;;QAErB,MAAM,QAAQ,GAAiC,EAAE,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,MAAM,EACJ,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,GAC/B,GAAG,MAAM,CAAC;YACX,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CACrC,0BAA0B,EAC1B;gBACE,MAAM,EAAE,0BAAkB;gBAC1B,SAAS;aACV,CACF,CAAC;YACF,IAAI,CAAC,WAAW;gBAAE,SAAS;YAE3B,MAAM,WAAW,GAAG,IAAA,0BAAc,EAAC,SAAS,CAAC,CAAC;YAC9C,MAAM,IAAI,GAAG,MAAA,WAAW,CAAC,SAAS,0CAAE,QAAQ,CAAC;YAC7C,MAAM,QAAQ,GAAG,MAAA,WAAW,CAAC,SAAS,0CAAE,QAAQ,CAAC;YACjD,MAAM,QAAQ,GAAG,IAAI,iCAAqB,CACxC;gBACE,GAAG,EAAE,WAAW,CAAC,GAAG;gBACpB,IAAI;gBACJ,QAAQ;aACT,EACD,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AG,EAAE,CAAC;YAC5C,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,GAAG,yBAAyB,CACjE,SAAS,EACT,eAAe,CAChB,CAAC;YACF,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5B,cAAc,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC7C,CAAC;QAED,WAAW;QACX,IAAI,eAAe,CAAC,iBAAiB,KAAK,GAAG,EAAE,CAAC;YAC9C,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,gBAAgB,CACrD,SAAS,EACT,eAAe,CAChB,CAAC;YACF,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5B,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;IAC1E,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,CACb,CAAC;IAEJ,MAAM,WAAW,GAAmC;QAClD,YAAY;QACZ,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,eAAe,EAAE,IAAI;QACrB,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,KAAK;KACN,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAnED,sDAmEC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAcoC;AACpC,6DAGgC;AAChC,wDAAiE;AACjE,iDAG0B;AAS1B,6DAA+D;AAC/D,2CAAyC;AAE5B,QAAA,kBAAkB,GAAG,mBAA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AAG,gBAAgB,CACrD,SAAS,EACT,eAAe,CAChB,CAAC;YACF,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5B,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IACD,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;IAC1E,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,CACb,CAAC;IAEJ,MAAM,WAAW,GAAmC;QAClD,YAAY;QACZ,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,eAAe,EAAE,IAAI;QACrB,WAAW;QACX,cAAc;QACd,aAAa;QACb,cAAc;QACd,KAAK;KACN,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC;AAnED,sDAmEC"}
@@ -52,8 +52,8 @@ function sushiV3PairToUniV2(pair) {
52
52
  totalSupply: pair.liquidity,
53
53
  };
54
54
  }
55
- function getV3PairsAddresses(url_1) {
56
- return __awaiter(this, arguments, void 0, function* (url, length = 300) {
55
+ function getV3PairsAddresses(url, length = 300) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
57
  const query = (0, graphql_request_1.gql) `
58
58
  {
59
59
  pools(
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sushiswap/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAC/C,gEAAqC;AAIrC,SAAS,kBAAkB,CAAC,IAAyB;IACnD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,QAAQ,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,M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,QAAQ,EAAE;QACzE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW;QACjC,MAAM,EAAE;YACN,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;SACnB;QACD,MAAM,EAAE;YACN,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;SACnB;QACD,WAAW,EAAE,IAAI,CAAC,SAAS;KAC5B,CAAC;AACJ,CAAC;AAED,SAAsB,mBAAmB,CAAC,GAAW,EAAE,MAAM,GAAG,GAAG;;QACjE,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;iBAIF,MAAM;;;;;;;;;;;;;;;;;;;;GAoBpB,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EAAmC,GAAG,EAAE,KAAK,CAAC,CAAC;QACxE,MAAM,KAAK,GAAG,GAAG,CAAC,KAA8B,CAAC;QACjD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QAEvC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;CAAA;AA/BD,kDA+BC"}
@@ -73,8 +73,8 @@ function getCoingeckoSources(networkId, tokensData) {
73
73
  }
74
74
  exports.getCoingeckoSources = getCoingeckoSources;
75
75
  function getPricesFromCoingeckoIds(coingeckoIds) {
76
+ var _a;
76
77
  return __awaiter(this, void 0, void 0, function* () {
77
- var _a;
78
78
  const idsToFetch = [...Array.from(coingeckoIds)];
79
79
  (0, shuffleArray_1.default)(idsToFetch);
80
80
  const priceByCoingeckoId = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA6C;AAO7C,2CAAgE;AAEhE,iFAAyD;AACzD,mEAA2C;AAC3C,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,EAAE,CAAC;AAChF,CAAC;AAFD,4BAEC;AAED,SAAgB,UAAU,CAAC,GAAW;IAIpC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;IAC3C,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAClE,OAAO;QACL,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACpB,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;KACzB,CAAC;AACJ,CAAC;AAVD,gCAUC"}
@@ -38,8 +38,8 @@ function getPairKey(version) {
38
38
  return `pools-${version.toLowerCase()}`;
39
39
  }
40
40
  exports.getPairKey = getPairKey;
41
- function getPairsV2FromTheGraph(url_1) {
42
- return __awaiter(this, arguments, void 0, function* (url, length = 300) {
41
+ function getPairsV2FromTheGraph(url, length = 300) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
43
  const query = (0, graphql_request_1.gql) `
44
44
  {
45
45
  pairs(
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AAC1C,CAAC;AAFD,gCAEC;AAED,SAAsB,sBAAsB;yDAAC,GAAW,EAAE,MAAM,GAAG,GAAG;QACpE,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;iBAIF,MAAM;;;;;;;;;;;;;;;;;;GAkBpB,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EAAiC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,GAAG,CAAC,KAA4B,CAAC;QAC/C,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AA5BD,wDA4BC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AAC1C,CAAC;AAFD,gCAEC;AAED,SAAsB,sBAAsB,CAAC,GAAW,EAAE,MAAM,GAAG,GAAG;;QACpE,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;iBAIF,MAAM;;;;;;;;;;;;;;;;;;GAkBpB,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EAAiC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,GAAG,CAAC,KAA4B,CAAC;QAC/C,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AA5BD,wDA4BC"}
@@ -1,2 +1,2 @@
1
1
  import { AptosClient } from '../clients/types';
2
- export declare function getAccountResources(client: AptosClient, accountAddress: string): Promise<import("@aptos-labs/ts-sdk").MoveResource[] | null>;
2
+ export declare function getAccountResources(client: AptosClient, accountAddress: string): Promise<import("@aptos-labs/ts-sdk/dist/common/accountAddress-ccLvlUQe").u[] | null>;
@@ -1,2 +1,2 @@
1
1
  import { AptosClient } from '../clients/types';
2
- export declare function getCoinStoreResources(client: AptosClient, owner: string): Promise<import("@aptos-labs/ts-sdk").MoveResource[] | null>;
2
+ export declare function getCoinStoreResources(client: AptosClient, owner: string): Promise<import("@aptos-labs/ts-sdk/dist/common/accountAddress-ccLvlUQe").u[] | null>;
@@ -1,3 +1,3 @@
1
1
  import { InputViewFunctionData } from '@aptos-labs/ts-sdk';
2
2
  import { AptosClient } from '../clients/types';
3
- export declare function getView(client: AptosClient, payload: InputViewFunctionData): Promise<import("@aptos-labs/ts-sdk").MoveValue[] | null>;
3
+ export declare function getView(client: AptosClient, payload: InputViewFunctionData): Promise<import("@aptos-labs/ts-sdk/dist/common/accountAddress-ccLvlUQe").a4[] | null>;
@@ -21,8 +21,8 @@ const getSourceWeight_1 = __importDefault(require("../misc/getSourceWeight"));
21
21
  const computeAndStoreLpPrice_1 = require("../misc/computeAndStoreLpPrice");
22
22
  const getLpUnderlyingTokenSource_1 = require("../misc/getLpUnderlyingTokenSource");
23
23
  function storeTokenPricesFromSqrt(cache, networkId, source, reserveX, reserveY, sqrtPrice, mintX, mintY, tempDecimalsX, tempDecimalsY) {
24
+ var _a, _b, _c, _d;
24
25
  return __awaiter(this, void 0, void 0, function* () {
25
- var _a, _b, _c, _d;
26
26
  const isAcceptedX = (_b = (_a = getLpUnderlyingTokenSource_1.defaultAcceptedPairs
27
27
  .get(networkId)) === null || _a === void 0 ? void 0 : _a.includes((0, portfolio_core_1.formatTokenAddress)(mintX, networkId))) !== null && _b !== void 0 ? _b : false;
28
28
  const isAcceptedY = (_d = (_c = getLpUnderlyingTokenSource_1.defaultAcceptedPairs
@@ -1 +1 @@
1
- {"version":3,"file":"tokenPricesFromSqrt.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/clmm/tokenPricesFromSqrt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAIoC;AAEpC,4DAAiC;AAEjC,qEAAkE;AAClE,8DAAsE;AACtE,8EAAsD;AACtD,2EAAkE;AAClE,mFAA0E;AAE1E,SAA8B,wBAAwB,CACpD,KAAY,EACZ,SAAwB,EACxB,MAAc,EACd,QAAmB,EACnB,QAAmB,EACnB,SAAoB,EACpB,KAAa,EACb,KAAa,EACb,aAAsB,EAC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Q,EAAE,SAAS;gBACnB,KAAK;gBACL,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC;YACF,MAAM,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;YAClD,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAjFD,2CAiFC;AAED,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,oBAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAExE,SAAgB,mBAAmB,CACjC,YAAuB,EACvB,SAAiB,EACjB,SAAiB;IAEjB,OAAO,cAAc,CAAC,IAAI,oBAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SACxD,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,oBAAO,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;AACjD,CAAC;AARD,kDAQC"}
1
+ {"version":3,"file":"tokenPricesFromSqrt.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/clmm/tokenPricesFromSqrt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAIoC;AAEpC,4DAAiC;AAEjC,qEAAkE;AAClE,8DAAsE;AACtE,8EAAsD;AACtD,2EAAkE;AAClE,mFAA0E;AAE1E,SAA8B,wBAAwB,CACpD,KAAY,EACZ,SAAwB,EACxB,MAAc,EACd,QAAmB,EACnB,QAAmB,EACnB,SAAoB,EACpB,KAAa,EACb,KAAa,EACb,aAAsB,EACtB,aAAsB;;;QAEtB,MAAM,WAAW,GACf,MAAA,MAAA,iDAAoB;aACjB,GAAG,CAAC,SAAS,CAAC,0CACb,QAAQ,CAAC,IAAA,mCAAkB,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC,mCA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AK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC;QAED,OAAO,SAAS,CAAC;;CAClB;AAjFD,2CAiFC;AAED,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,oBAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAExE,SAAgB,mBAAmB,CACjC,YAAuB,EACvB,SAAiB,EACjB,SAAiB;IAEjB,OAAO,cAAc,CAAC,IAAI,oBAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SACxD,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,oBAAO,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;AACjD,CAAC;AARD,kDAQC"}
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- function runInBatch(functionsToRun_1) {
13
- return __awaiter(this, arguments, void 0, function* (functionsToRun, batchSize = 100) {
12
+ function runInBatch(functionsToRun, batchSize = 100) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
14
  const results = [];
15
15
  while (functionsToRun.length !== 0) {
16
16
  const currFunctionsToRun = functionsToRun.splice(0, batchSize);
@@ -1 +1 @@
1
- {"version":3,"file":"runInBatch.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/runInBatch.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,UAAU;yDACtC,cAAoC,EACpC,SAAS,GAAG,GAAG;QAEf,MAAM,OAAO,GAA8B,EAAE,CAAC;QAE9C,OAAO,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;YAC9D,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAdD,6BAcC"}
1
+ {"version":3,"file":"runInBatch.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/runInBatch.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,UAAU,CACtC,cAAoC,EACpC,SAAS,GAAG,GAAG;;QAEf,MAAM,OAAO,GAA8B,EAAE,CAAC;QAE9C,OAAO,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;YAC/D,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;YAC9D,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACvD,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAdD,6BAcC"}
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- function sleep() {
13
- return __awaiter(this, arguments, void 0, function* (ms = 100) {
12
+ function sleep(ms = 100) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
14
  return new Promise((r) => {
15
15
  setTimeout(r, ms);
16
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/sleep.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,KAAK;yDAAC,EAAE,GAAG,GAAG;QAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACvB,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAJD,wBAIC"}
1
+ {"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/sleep.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,KAAK,CAAC,EAAE,GAAG,GAAG;;QAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACvB,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAJD,wBAIC"}
@@ -16,8 +16,8 @@ exports.fetchTokenSupplyAndDecimals = void 0;
16
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
17
  const sleep_1 = __importDefault(require("../misc/sleep"));
18
18
  const solMints = [portfolio_core_1.solanaNativeAddress, portfolio_core_1.solanaNativeWrappedAddress];
19
- function fetchTokenSupplyAndDecimals(mint_1, client_1) {
20
- return __awaiter(this, arguments, void 0, function* (mint, client, sleepMultiplier = 1) {
19
+ function fetchTokenSupplyAndDecimals(mint, client, sleepMultiplier = 1) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
21
  if (solMints.includes(mint.toString())) {
22
22
  const supply = yield client.getSupply();
23
23
  yield (0, sleep_1.default)(200 * sleepMultiplier);
@@ -1 +1 @@
1
- {"version":3,"file":"fetchTokenSupplyAndDecimals.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/fetchTokenSupplyAndDecimals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+DAGoC;AACpC,0DAAkC;AAElC,MAAM,QAAQ,GA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ACvC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;YACxC,MAAM,IAAA,eAAK,EAAC,GAAG,GAAG,eAAe,CAAC,CAAC;YACnC,OAAO;gBACL,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI;gBACjC,QAAQ,EAAE,CAAC;aACZ,CAAC;QACJ,CAAC;QACD,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAC;QACrD,MAAM,IAAA,eAAK,EAAC,GAAG,GAAG,eAAe,CAAC,CAAC;QACnC,OAAO;YACL,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;YAC5D,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,QAAQ;SACxC,CAAC;IACJ,CAAC;CAAA;AApBD,kEAoBC"}
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getParsedProgramAccounts = void 0;
13
13
  const getProgramAccounts_1 = require("./getProgramAccounts");
14
- function getParsedProgramAccounts(connection_1, beetStruct_1, programId_1) {
15
- return __awaiter(this, arguments, void 0, function* (connection, beetStruct, programId, filters = undefined, maxAccounts = -1) {
14
+ function getParsedProgramAccounts(connection, beetStruct, programId, filters = undefined, maxAccounts = -1) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
16
  const accountsRes = yield (0, getProgramAccounts_1.getProgramAccounts)(connection, programId, filters, maxAccounts);
17
17
  return accountsRes.map((accountRes) => (Object.assign({ pubkey: accountRes.pubkey, lamports: accountRes.account.lamports }, beetStruct.deserialize(accountRes.account.data)[0])));
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getParsedProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getParsedProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,6DAA0D;AAG1D,SAAsB,wBAAwB;yDAC5C,UAAsB,EACtB,UAA+B,EAC/B,SAAoB,EACpB,UAAkD,SAAS,EAC3D,WAAW,GAAG,CAAC,CAAC;QAEhB,MAAM,WAAW,GAAG,MAAM,IAAA,uCAAkB,EAC1C,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,UAAU,EAAE,EAAE,CACb,CAAC,gBACC,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,IAClC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACjC,CAAA,CACzB,CAAC;IACJ,CAAC;CAAA;AArBD,4DAqBC"}
1
+ {"version":3,"file":"getParsedProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getParsedProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,6DAA0D;AAG1D,SAAsB,wBAAwB,CAC5C,UAAsB,EACtB,UAA+B,EAC/B,SAAoB,EACpB,UAAkD,SAAS,EAC3D,WAAW,GAAG,CAAC,CAAC;;QAEhB,MAAM,WAAW,GAAG,MAAM,IAAA,uCAAkB,EAC1C,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,UAAU,EAAE,EAAE,CACb,CAAC,gBACC,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,IAClC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACjC,CAAA,CACzB,CAAC;IACJ,CAAC;CAAA;AArBD,4DAqBC"}
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getProgramAccounts = void 0;
13
- function getProgramAccounts(connection_1, programId_1, filters_1) {
14
- return __awaiter(this, arguments, void 0, function* (connection, programId, filters, maxAccounts = 0) {
13
+ function getProgramAccounts(connection, programId, filters, maxAccounts = 0) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
15
  const config = {
16
16
  commitment: 'confirmed',
17
17
  encoding: 'base64',
@@ -1 +1 @@
1
- {"version":3,"file":"getProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,kBAAkB;yDACtC,UAAsB,EACtB,SAAoB,EACpB,OAAoC,EACpC,WAAW,GAAG,CAAC;QAEf,MAAM,MAAM,GAA6B;YACvC,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,IAAI,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE9E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AAtBD,gDAsBC"}
1
+ {"version":3,"file":"getProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,kBAAkB,CACtC,UAAsB,EACtB,SAAoB,EACpB,OAAoC,EACpC,WAAW,GAAG,CAAC;;QAEf,MAAM,MAAM,GAA6B;YACvC,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,IAAI,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE9E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AAtBD,gDAsBC"}
@@ -13,8 +13,8 @@ exports.getTokenAccountsByOwner = void 0;
13
13
  const getParsedProgramAccounts_1 = require("./getParsedProgramAccounts");
14
14
  const structs_1 = require("./structs");
15
15
  const constants_1 = require("./constants");
16
- function getTokenAccountsByOwner(connection_1, owner_1) {
17
- return __awaiter(this, arguments, void 0, function* (connection, owner, tokenProgramId = constants_1.solanaTokenPid) {
16
+ function getTokenAccountsByOwner(connection, owner, tokenProgramId = constants_1.solanaTokenPid) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
18
  const filters = [
19
19
  {
20
20
  memcmp: {
@@ -1 +1 @@
1
- {"version":3,"file":"getTokenAccountsByOwner.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getTokenAccountsByOwner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,yEAAsE;AACtE,uCAA+C;AAC/C,2CAA6C;AAE7C,SAAsB,uBAAuB;yDAC3C,UAAsB,EACtB,KAAgB,EAChB,iBAA4B,0BAAc;QAE1C,MAAM,OAAO,GAA+B;YAC1C;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACvB,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;QACF,IAAI,cAAc,CAAC,QAAQ,EAAE,KAAK,0BAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;YAC5D,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,4BAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,IAAA,mDAAwB,EAC7B,UAAU,EACV,4BAAkB,EAClB,cAAc,EACd,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CAAA;AAxBD,0DAwBC"}
1
+ {"version":3,"file":"getTokenAccountsByOwner.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getTokenAccountsByOwner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,yEAAsE;AACtE,uCAA+C;AAC/C,2CAA6C;AAE7C,SAAsB,uBAAuB,CAC3C,UAAsB,EACtB,KAAgB,EAChB,iBAA4B,0BAAc;;QAE1C,MAAM,OAAO,GAA+B;YAC1C;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACvB,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;QACF,IAAI,cAAc,CAAC,QAAQ,EAAE,KAAK,0BAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;YAC5D,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,4BAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,IAAA,mDAAwB,EAC7B,UAAU,EACV,4BAAkB,EAClB,cAAc,EACd,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CAAA;AAxBD,0DAwBC"}