@sonarwatch/portfolio-plugins 0.11.81 → 0.11.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/CHANGELOG.md +8 -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/accessprotocol/constants.d.ts +7 -0
  6. package/src/plugins/accessprotocol/constants.js +15 -0
  7. package/src/plugins/accessprotocol/constants.js.map +1 -0
  8. package/src/plugins/accessprotocol/filters.d.ts +2 -0
  9. package/src/plugins/accessprotocol/filters.js +16 -0
  10. package/src/plugins/accessprotocol/filters.js.map +1 -0
  11. package/src/plugins/accessprotocol/index.d.ts +6 -0
  12. package/src/plugins/accessprotocol/index.js +12 -0
  13. package/src/plugins/accessprotocol/index.js.map +1 -0
  14. package/src/plugins/accessprotocol/positionFetcher.d.ts +3 -0
  15. package/src/plugins/accessprotocol/positionFetcher.js +53 -0
  16. package/src/plugins/accessprotocol/positionFetcher.js.map +1 -0
  17. package/src/plugins/accessprotocol/structs.d.ts +25 -0
  18. package/src/plugins/accessprotocol/structs.js +30 -0
  19. package/src/plugins/accessprotocol/structs.js.map +1 -0
  20. package/src/plugins/goosefx/constants.d.ts +1 -1
  21. package/src/plugins/goosefx/constants.js +2 -2
  22. package/src/plugins/goosefx/constants.js.map +1 -1
  23. package/src/plugins/goosefx/index.js +1 -1
  24. package/src/plugins/goosefx/index.js.map +1 -1
  25. package/src/plugins/jupiter/index.js +1 -2
  26. package/src/plugins/jupiter/index.js.map +1 -1
  27. package/src/plugins/mango/collateralFetcher.js +2 -0
  28. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  29. package/src/plugins/parcl/depositsFetcher.js +9 -19
  30. package/src/plugins/parcl/depositsFetcher.js.map +1 -1
  31. package/src/plugins/parcl/helpers.js +0 -1
  32. package/src/plugins/parcl/helpers.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.11.83](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.82...plugins-0.11.83) (2024-02-24)
6
+
7
+
8
+
9
+ ## [0.11.82](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.81...plugins-0.11.82) (2024-02-20)
10
+
11
+
12
+
5
13
  ## [0.11.81](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.80...plugins-0.11.81) (2024-02-19)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.11.81",
3
+ "version": "0.11.83",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
@@ -41,7 +41,7 @@
41
41
  "web3-v1": "npm:web3@^1.5.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@sonarwatch/portfolio-core": "0.11.81"
44
+ "@sonarwatch/portfolio-core": "0.11.83"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
package/src/index.js CHANGED
@@ -84,6 +84,7 @@ const circuit_1 = require("./plugins/circuit");
84
84
  const aries_1 = require("./plugins/aries");
85
85
  const flash_1 = require("./plugins/flash");
86
86
  const bonkrewards_1 = require("./plugins/bonkrewards");
87
+ const accessprotocol_1 = require("./plugins/accessprotocol");
87
88
  var constants_1 = require("./plugins/tokens/constants");
88
89
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
89
90
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -158,6 +159,7 @@ exports.platforms = [
158
159
  ...aries_1.platforms,
159
160
  ...flash_1.platforms,
160
161
  ...bonkrewards_1.platforms,
162
+ ...accessprotocol_1.platforms,
161
163
  ];
162
164
  // JOBS //
163
165
  exports.jobs = [
@@ -218,6 +220,7 @@ exports.jobs = [
218
220
  ...aries_1.jobs,
219
221
  ...flash_1.jobs,
220
222
  ...bonkrewards_1.jobs,
223
+ ...accessprotocol_1.jobs,
221
224
  ];
222
225
  // FETCHERS //
223
226
  exports.fetchers = [
@@ -280,6 +283,7 @@ exports.fetchers = [
280
283
  ...aries_1.fetchers,
281
284
  ...flash_1.fetchers,
282
285
  ...bonkrewards_1.fetchers,
286
+ ...accessprotocol_1.fetchers,
283
287
  ];
284
288
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
285
289
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,6CAI0B;AAC1B,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAG2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,m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GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;CACvB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,6CAI0B;AAC1B,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAG2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,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,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;CAC1B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import { Platform } from '@sonarwatch/portfolio-core';
3
+ export declare const platformId = "accessprotocol";
4
+ export declare const platform: Platform;
5
+ export declare const stakePid: PublicKey;
6
+ export declare const acsMint = "5MAYDfq5yxtudAhtfyuMBuHZjgAbaS9tbEyEQYAhDS5y";
7
+ export declare const acsDecimals = 6;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.acsDecimals = exports.acsMint = exports.stakePid = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'accessprotocol';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Access Protocol',
9
+ image: 'https://sonar.watch/img/platforms/accessprotocol.png',
10
+ // defiLlamaId: 'nothing yet',
11
+ };
12
+ exports.stakePid = new web3_js_1.PublicKey('6HW8dXjtiTGkD4jzXs7igdFmZExPpmwUrRN5195xGup');
13
+ exports.acsMint = '5MAYDfq5yxtudAhtfyuMBuHZjgAbaS9tbEyEQYAhDS5y';
14
+ exports.acsDecimals = 6;
15
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/accessprotocol/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,gBAAgB,CAAC;AAC9B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,sDAAsD;IAC7D,8BAA8B;CAC/B,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AACW,QAAA,OAAO,GAAG,8CAA8C,CAAC;AACzD,QAAA,WAAW,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { GetProgramAccountsFilter } from '@solana/web3.js';
2
+ export declare const stakeAccountStructFilter: (owner: string) => GetProgramAccountsFilter[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stakeAccountStructFilter = void 0;
4
+ const structs_1 = require("./structs");
5
+ // import { stakePool } from './constants';
6
+ const stakeAccountStructFilter = (owner) => [
7
+ {
8
+ memcmp: {
9
+ offset: 1,
10
+ bytes: owner,
11
+ },
12
+ },
13
+ { dataSize: structs_1.stakeAccountStruct.byteSize },
14
+ ];
15
+ exports.stakeAccountStructFilter = stakeAccountStructFilter;
16
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/accessprotocol/filters.ts"],"names":[],"mappings":";;;AACA,uCAA+C;AAC/C,2CAA2C;AAEpC,MAAM,wBAAwB,GAAG,CACtC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,4BAAkB,CAAC,QAAQ,EAAE;CAC1C,CAAC;AAVW,QAAA,wBAAwB,4BAUnC"}
@@ -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,12 @@
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 positionFetcher_1 = __importDefault(require("./positionFetcher"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [];
11
+ exports.fetchers = [positionFetcher_1.default];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/accessprotocol/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wEAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,53 @@
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 constants_1 = require("./constants");
17
+ const clients_1 = require("../../utils/clients");
18
+ const solana_1 = require("../../utils/solana");
19
+ const structs_1 = require("./structs");
20
+ const filters_1 = require("./filters");
21
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
22
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
+ const client = (0, clients_1.getClientSolana)();
24
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.stakeAccountStruct, constants_1.stakePid, (0, filters_1.stakeAccountStructFilter)(owner));
25
+ if (accounts.length === 0)
26
+ return [];
27
+ const acsTokenPrice = yield cache.getTokenPrice(constants_1.acsMint, portfolio_core_1.NetworkId.solana);
28
+ const assets = [];
29
+ for (const account of accounts) {
30
+ if (account.stakeAmount.isZero())
31
+ continue;
32
+ assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.acsMint, account.stakeAmount.dividedBy(Math.pow(10, constants_1.acsDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, acsTokenPrice)), { attributes: {} }));
33
+ }
34
+ if (assets.length === 0)
35
+ return [];
36
+ return [
37
+ {
38
+ type: portfolio_core_1.PortfolioElementType.multiple,
39
+ label: 'Staked',
40
+ networkId: portfolio_core_1.NetworkId.solana,
41
+ platformId: constants_1.platformId,
42
+ data: { assets },
43
+ value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
44
+ },
45
+ ];
46
+ });
47
+ const fetcher = {
48
+ id: `${constants_1.platformId}-staking`,
49
+ networkId: portfolio_core_1.NetworkId.solana,
50
+ executor,
51
+ };
52
+ exports.default = fetcher;
53
+ //# sourceMappingURL=positionFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/accessprotocol/positionFetcher.ts"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AAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { BeetStruct } from '@metaplex-foundation/beet';
2
+ import { PublicKey } from '@metaplex-foundation/js';
3
+ import BigNumber from 'bignumber.js';
4
+ export declare enum Tag {
5
+ Uninitialized = 0,
6
+ StakePool = 1,
7
+ InactiveStakePool = 2,
8
+ StakeAccount = 3,
9
+ InactiveBondAccount = 4,
10
+ BondAccount = 5,
11
+ CentralState = 6,
12
+ Deleted = 7,
13
+ FrozenStakePool = 8,
14
+ FrozenStakeAccount = 9,
15
+ FrozenBondAccount = 10
16
+ }
17
+ export type StakeAccount = {
18
+ tag: Tag;
19
+ owner: PublicKey;
20
+ stakeAmount: BigNumber;
21
+ stakePool: PublicKey;
22
+ lastClaimedOffset: BigNumber;
23
+ poolMinimumAtCreation: BigNumber;
24
+ };
25
+ export declare const stakeAccountStruct: BeetStruct<StakeAccount, Partial<StakeAccount>>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stakeAccountStruct = exports.Tag = void 0;
4
+ const beet_1 = require("@metaplex-foundation/beet");
5
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
+ const solana_1 = require("../../utils/solana");
7
+ var Tag;
8
+ (function (Tag) {
9
+ Tag[Tag["Uninitialized"] = 0] = "Uninitialized";
10
+ Tag[Tag["StakePool"] = 1] = "StakePool";
11
+ Tag[Tag["InactiveStakePool"] = 2] = "InactiveStakePool";
12
+ Tag[Tag["StakeAccount"] = 3] = "StakeAccount";
13
+ // Bond accounts are inactive until the buyer transfered the funds
14
+ Tag[Tag["InactiveBondAccount"] = 4] = "InactiveBondAccount";
15
+ Tag[Tag["BondAccount"] = 5] = "BondAccount";
16
+ Tag[Tag["CentralState"] = 6] = "CentralState";
17
+ Tag[Tag["Deleted"] = 7] = "Deleted";
18
+ Tag[Tag["FrozenStakePool"] = 8] = "FrozenStakePool";
19
+ Tag[Tag["FrozenStakeAccount"] = 9] = "FrozenStakeAccount";
20
+ Tag[Tag["FrozenBondAccount"] = 10] = "FrozenBondAccount";
21
+ })(Tag || (exports.Tag = Tag = {}));
22
+ exports.stakeAccountStruct = new beet_1.BeetStruct([
23
+ ['tag', beet_1.u8],
24
+ ['owner', beet_solana_1.publicKey],
25
+ ['stakeAmount', solana_1.u64],
26
+ ['stakePool', beet_solana_1.publicKey],
27
+ ['lastClaimedOffset', solana_1.u64],
28
+ ['poolMinimumAtCreation', solana_1.u64],
29
+ ], (args) => args);
30
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/accessprotocol/structs.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,kEAA6D;AAG7D,+CAAyC;AAEzC,IAAY,GAaX;AAbD,WAAY,GAAG;IACb,+CAAiB,CAAA;IACjB,uCAAa,CAAA;IACb,uDAAqB,CAAA;IACrB,6CAAgB,CAAA;IAChB,kEAAkE;IAClE,2DAAuB,CAAA;IACvB,2CAAe,CAAA;IACf,6CAAgB,CAAA;IAChB,mCAAW,CAAA;IACX,mDAAmB,CAAA;IACnB,yDAAsB,CAAA;IACtB,wDAAsB,CAAA;AACxB,CAAC,EAbW,GAAG,mBAAH,GAAG,QAad;AAWY,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,KAAK,EAAE,SAAE,CAAC;IACX,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,uBAAuB,EAAE,YAAG,CAAC;CAC/B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "goosefx";
4
- export declare const platform: Platform;
4
+ export declare const gooseFxPlatform: Platform;
5
5
  export declare const programId: PublicKey;
6
6
  export declare const stakerProgramId: PublicKey;
7
7
  export declare const gofxMint = "GFX1ZjR2P15tmrSwow6FjyDYcEkoFb4p4gJCpLBjaxHD";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.gofxMint = exports.stakerProgramId = exports.programId = exports.platform = exports.platformId = void 0;
3
+ exports.gofxMint = exports.stakerProgramId = exports.programId = exports.gooseFxPlatform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'goosefx';
6
- exports.platform = {
6
+ exports.gooseFxPlatform = {
7
7
  id: exports.platformId,
8
8
  name: 'GooseFX',
9
9
  image: 'https://sonar.watch/img/platforms/goosefx.png',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,OAAO,EAAE,6BAA6B;IACtC,6CAA6C;CAC9C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,OAAO,EAAE,6BAA6B;IACtC,6CAA6C;CAC9C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC"}
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const poolsFetcher_1 = __importDefault(require("./poolsFetcher"));
9
9
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
10
- exports.platforms = [constants_1.platform];
10
+ exports.platforms = [constants_1.gooseFxPlatform];
11
11
  exports.jobs = [];
12
12
  exports.fetchers = [poolsFetcher_1.default, stakingFetcher_1.default];
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,kEAA8C;AAC9C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,sBAAgB,EAAE,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/goosefx/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA8C;AAC9C,kEAA8C;AAC9C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,2BAAe,CAAC,CAAC;AAC1C,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,sBAAgB,EAAE,wBAAc,CAAC,CAAC"}
@@ -4,10 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.fetchers = exports.jobs = void 0;
7
- const poolJob_1 = __importDefault(require("./poolJob"));
8
7
  const perpetualFetcher_1 = __importDefault(require("./perpetualFetcher"));
9
8
  const custodiesJob_1 = __importDefault(require("./custodiesJob"));
10
9
  const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
11
- exports.jobs = [poolJob_1.default, custodiesJob_1.default];
10
+ exports.jobs = [custodiesJob_1.default];
12
11
  exports.fetchers = [perpetualFetcher_1.default, airdropFetcher_1.default];
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAEA,wDAAgC;AAChC,0EAAkD;AAClD,kEAA0C;AAC1C,sEAA8C;AAEjC,QAAA,IAAI,GAAU,CAAC,iBAAO,EAAE,sBAAY,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,0BAAgB,EAAE,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAClD,kEAA0C;AAC1C,sEAA8C;AAEjC,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;AAC7B,QAAA,QAAQ,GAAc,CAAC,0BAAgB,EAAE,wBAAc,CAAC,CAAC"}
@@ -49,6 +49,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
49
49
  tokenPrices.set(r.value.address, r.value);
50
50
  });
51
51
  const elements = [];
52
+ // store mango accounts for points
53
+ yield cache.setItem(owner, userAccounts.map((account) => account.pubkey.toString()), { prefix: constants_1.platformId, networkId: portfolio_core_1.NetworkId.solana });
52
54
  for (let index = 0; index < userAccounts.length; index++) {
53
55
  const userAccount = userAccounts[index];
54
56
  const tokenPositions = userAccount.tokens;
@@ -1 +1 @@
1
- {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAAoE;AACpE,iDAAsD;AACtD,qCAA8C;AAC9C,uCAA2C;AAC3C,+CAA8D;AAC9D,qGAA6E;AAC7E,uCAAuC;AACvC,6EAAqD;AAGrD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,2BAAkB,EAClB,wBAAY,EACZ,IAAA,wBAAc,EAAC,KAAK,CAAC,CACtB,CAAC;IACF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,WAAW,CAAe;QAClD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,MAAM,WAAW,GAA8B,IAAI,GAAG,EAAE,CAAC;IACzD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC,IAAI;YA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a;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,WAAW;gBACX,YAAY;gBACZ,KAAK;aACN;YACD,IAAI,EAAE,IAAA,oBAAU,EAAC,WAAW,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAAoE;AACpE,iDAAsD;AACtD,qCAA8C;AAC9C,uCAA2C;AAC3C,+CAA8D;AAC9D,qGAA6E;AAC7E,uCAAuC;AACvC,6EAAqD;AAGrD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,2BAAkB,EAClB,wBAAY,EACZ,IAAA,wBAAc,EAAC,KAAK,CAAC,CACtB,CAAC;IACF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,WAAW,CAAe;QAClD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,MAAM,WAAW,GAA8B,IAAI,GAAG,EAAE,CAAC;IACzD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EA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,cAAc,EAAE,YAAY,CAAC,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,WAAW;gBACX,YAAY;gBACZ,KAAK;aACN;YACD,IAAI,EAAE,IAAA,oBAAU,EAAC,WAAW,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -20,7 +20,6 @@ const structs_1 = require("./structs");
20
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
21
  const helpers_1 = require("./helpers");
22
22
  const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
23
- const filters_1 = require("./filters");
24
23
  const thirtyDays = 30 * 1000 * 60 * 60 * 24;
25
24
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
26
25
  const client = (0, clients_1.getClientSolana)();
@@ -34,24 +33,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
34
33
  lpPositions.push(...parsedAccount);
35
34
  id += 10;
36
35
  } while (parsedAccount[parsedAccount.length]);
37
- // id = 0;
38
- // const settlementRequests = [];
39
- // let requestsParsedAccounts;
40
- // do {
41
- // const accountPubKeys = getSettlementRequestsPdas(owner, id, id + 10);
42
- // requestsParsedAccounts = await getParsedMultipleAccountsInfo(
43
- // client,
44
- // settlementRequestStruct,
45
- // accountPubKeys
46
- // );
47
- // settlementRequests.push(...requestsParsedAccounts);
48
- // id += 10;
49
- // } while (requestsParsedAccounts[requestsParsedAccounts.length]);
50
- // console.log(
51
- // 'constexecutor:FetcherExecutor= ~ settlementRequests:',
52
- // settlementRequests
53
- // );
54
- const settlementRequests = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.settlementRequestStruct, constants_1.programId, (0, filters_1.settlementRequestFilter)(owner));
36
+ id = 0;
37
+ const settlementRequests = [];
38
+ let requestsParsedAccounts;
39
+ do {
40
+ const accountPubKeys = (0, helpers_1.getSettlementRequestsPdas)(owner, id, id + 10);
41
+ requestsParsedAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.settlementRequestStruct, accountPubKeys);
42
+ settlementRequests.push(...requestsParsedAccounts);
43
+ id += 10;
44
+ } while (requestsParsedAccounts[requestsParsedAccounts.length]);
55
45
  const usdcTokenPrice = yield cache.getTokenPrice(solana_1.usdcSolanaMint, portfolio_core_1.NetworkId.solana);
56
46
  const elements = [];
57
47
  const assets = [];
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAoD;AACpD,iDAAsD;AACtD,+CAI4B;AAC5B,uCAImB;AACnB,qGAA6E;AAC7E,uCAAmE;AACnE,kFAA+E;AAC/E,uCAAoD;AAEpD,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,MAAM,IAAA,2CAAoB,EAC7C,MAAM,EACN,yBAAe,EACf,IAAA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QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,uCAImB;AACnB,qGAA6E;AAC7E,uCAImB;AACnB,kFAA+E;AAE/E,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,MAAM,IAAA,2CAAoB,EAC7C,MAAM,EACN,yBAAe,EACf,IAAA,4BAAkB,EAAC,KAAK,CAAC,CAC1B,CAAC;IAEF,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,IAAI,aAAa,CAAC;IAClB,GAAG,CAAC;QACF,MAAM,cAAc,GAAG,IAAA,4BAAkB,EAAC,KAAK,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9D,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACjD,MAAM,EACN,0BAAgB,EAChB,cAAc,CACf,CAAC;QACF,WAAW,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,EAAE,IAAI,EAAE,CAAC;IACX,CAAC,QAAQ,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;IAE9C,EAAE,GAAG,CAAC,CAAC;IACP,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC9B,IAAI,sBAAsB,CAAC;IAC3B,GAAG,CAAC;QACF,MAAM,cAAc,GAAG,IAAA,mCAAyB,EAAC,KAAK,EAAE,EAAE,EAAE,EAAE,GAA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,CAAC,OAAO,EAAE;gBAClC,IAAI,EAAE,CAAC,kBAAkB,CAAC;aAC3B,GACF,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -30,7 +30,6 @@ function getSettlementRequestsPdas(owner, start, end) {
30
30
  for (let i = start; i < end; i++) {
31
31
  keys.push(web3_js_1.PublicKey.findProgramAddressSync([
32
32
  Buffer.from('settlement_request', 'utf-8'),
33
- new web3_js_1.PublicKey('82dGS7Jt4Km8ZgwZVRsJ2V6vPXEhVdgDaMP7cqPGG1TW').toBuffer(),
34
33
  new web3_js_1.PublicKey(owner).toBuffer(),
35
34
  new bn_js_1.BN(i).toArrayLike(Buffer, 'le', 8),
36
35
  ], constants_1.programId)[0]);
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,iCAA2B;AAC3B,2CAAwC;AAExC,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAA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AAE;YACZ,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;YAC/B,IAAI,UAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SACvC,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CACL,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAtBD,8DAsBC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,iCAA2B;AAC3B,2CAAwC;AAExC,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC;QAClC,IAAI,mBAAS,CAAC,8CAA8C,CAAC,CAAC,QAAQ,EAAE;QACxE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;KAChC,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AATD,gDASC;AAED,SAAgB,kBAAkB,CAChC,KAAa,EACb,KAAa,EACb,GAAW;IAEX,MAAM,IAAI,GAAgB,EAAE,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI,CACP,mBAAS,CAAC,sBAAsB,CAC9B;YACE,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;YACnC,IAAI,mBAAS,CACX,8CAA8C,CAC/C,CAAC,QAAQ,EAAE;YACZ,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;YAC/B,IAAI,UAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SACvC,EACD,qB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