@sonarwatch/portfolio-plugins 0.11.165 → 0.11.167

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/CHANGELOG.md +1387 -1379
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/plugins/aries/depositsFetcher.js +1 -1
  5. package/src/plugins/aries/depositsFetcher.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/banx/stakingFetcher.js +1 -1
  8. package/src/plugins/banx/stakingFetcher.js.map +1 -1
  9. package/src/plugins/bskt/vestingFetcher.js +3 -1
  10. package/src/plugins/bskt/vestingFetcher.js.map +1 -1
  11. package/src/plugins/drift/constants.d.ts +1 -0
  12. package/src/plugins/drift/constants.js +2 -1
  13. package/src/plugins/drift/constants.js.map +1 -1
  14. package/src/plugins/drift/index.js +2 -1
  15. package/src/plugins/drift/index.js.map +1 -1
  16. package/src/plugins/drift/premarketJob.d.ts +3 -0
  17. package/src/plugins/drift/premarketJob.js +52 -0
  18. package/src/plugins/drift/premarketJob.js.map +1 -0
  19. package/src/plugins/drift/struct.d.ts +150 -0
  20. package/src/plugins/drift/struct.js +149 -1
  21. package/src/plugins/drift/struct.js.map +1 -1
  22. package/src/plugins/drift/types.d.ts +4 -0
  23. package/src/plugins/flash/perpetualFetcher.js +1 -1
  24. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  25. package/src/plugins/jupiter/exchange/perpetualFetcher.js +2 -2
  26. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  27. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -1
  28. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
  29. package/src/plugins/kamino/airdropFetcher.d.ts +3 -0
  30. package/src/plugins/kamino/airdropFetcher.js +80 -0
  31. package/src/plugins/kamino/airdropFetcher.js.map +1 -0
  32. package/src/plugins/kamino/constants.d.ts +2 -0
  33. package/src/plugins/kamino/constants.js +3 -1
  34. package/src/plugins/kamino/constants.js.map +1 -1
  35. package/src/plugins/kamino/helpers/common.d.ts +6 -0
  36. package/src/plugins/kamino/helpers/common.js +23 -1
  37. package/src/plugins/kamino/helpers/common.js.map +1 -1
  38. package/src/plugins/kamino/index.js +2 -1
  39. package/src/plugins/kamino/index.js.map +1 -1
  40. package/src/plugins/rain/helpers.js +1 -1
  41. package/src/plugins/rain/helpers.js.map +1 -1
  42. package/src/plugins/sushiswap/helpers.js +24 -24
  43. package/src/plugins/uniswap-v2/helpers.js +22 -22
  44. package/src/plugins/wormhole/helpers.js +1 -1
  45. package/src/plugins/wormhole/helpers.js.map +1 -1
  46. package/src/utils/sei/constants.js +8 -8
  47. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @sonarwatch/portfolio-plugins
2
-
3
- This library is @sonarwatch/portfolio-plugins
1
+ # @sonarwatch/portfolio-plugins
2
+
3
+ This library is @sonarwatch/portfolio-plugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.11.165",
3
+ "version": "0.11.167",
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.165"
44
+ "@sonarwatch/portfolio-core": "0.11.167"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
@@ -20,7 +20,7 @@ const helpers_1 = require("./helpers");
20
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
21
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
22
  const profileRes = yield axios_1.default
23
- .get(`${constants_1.apiUrl}profile.find?input={"owner":"${owner}"}`)
23
+ .get(`${constants_1.apiUrl}profile.find?input={"owner":"${owner}"}`, { timeout: 1000 })
24
24
  .catch(() => null);
25
25
  if (!profileRes || !profileRes.data)
26
26
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aries/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAA8D;AAE9D,uCAAoC;AACpC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAA0C,MAAM,eAAK;SAClE,GAAG,CAAC,GAAG,kBAAM,gCAAgC,KAAK,IAAI,CAAC;SACvD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAE/C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAoB,uBAAW,EAAE;QACnE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;KAC3B,CAAC,CAAC;IACH,MAAM,WAAW,GAAgC,IAAI,GAAG,EAAE,CAAC;IAC3D,IAAI,QAAQ,EAAE,CAAC;QACb,QAAQ,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YAC/B,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IAEjD,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IACxC,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,CAAC;QACnC,IAAI,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YAC1B,KAAK,MAAM,IAAI,IA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AO,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;oBAC7D,YAAY;oBACZ,WAAW;oBACX,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
36
36
  const graphql_request_1 = __importStar(require("graphql-request"));
37
37
  function getBalancerPoolsV2(url) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const query = (0, graphql_request_1.gql) `
40
- query pools {
41
- pools(
42
- first: 1000
43
- orderBy: totalLiquidity
44
- orderDirection: desc
45
- where: { totalLiquidity_gt: "500" }
46
- ) {
47
- id
48
- address
49
- symbol
50
- totalLiquidity
51
- totalShares
52
- tokens {
53
- balance
54
- decimals
55
- symbol
56
- address
57
- }
58
- }
59
- }
39
+ const query = (0, graphql_request_1.gql) `
40
+ query pools {
41
+ pools(
42
+ first: 1000
43
+ orderBy: totalLiquidity
44
+ orderDirection: desc
45
+ where: { totalLiquidity_gt: "500" }
46
+ ) {
47
+ id
48
+ address
49
+ symbol
50
+ totalLiquidity
51
+ totalShares
52
+ tokens {
53
+ balance
54
+ decimals
55
+ symbol
56
+ address
57
+ }
58
+ }
59
+ }
60
60
  `;
61
61
  const res = yield (0, graphql_request_1.default)(url, query);
62
62
  const pools = res.pools;
@@ -35,7 +35,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
35
35
  // }
36
36
  // if (amounts.length === 0) return [];
37
37
  const banxRes = yield axios_1.default
38
- .get(constants_1.banxApiUrl + owner)
38
+ .get(constants_1.banxApiUrl + owner, { timeout: 1000 })
39
39
  .catch(() => null);
40
40
  if (!banxRes)
41
41
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AACrC,kDAA6C;AAG7C,2CAA6E;AAC7E,qGAA6E;AAG7E,MAAM,UAAU,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,2EAA2E;IAE3E,oCAAoC;IAEpC,mDAAmD;IACnD,YAAY;IACZ,0BAA0B;IAC1B,aAAa;IACb,wBAAwB;IACxB,KAAK;IAEL,mCAAmC;IACnC,oCAAoC;IACpC,2EAA2E;IAC3E,iDAAiD;IAEjD,8DAA8D;IAC9D,IAAI;IAEJ,uCAAuC;IAEvC,MAAM,OAAO,GAAuC,MAAM,eAAK;SAC5D,GAAG,CAAC,sBAAU,GAAG,KAAK,CAAC;SACvB,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,MAAM,GAAG,IAAI,sBAAS,CAC1B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAC9C,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxB,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IACzE,MAAM,MAAM,GAAqB;QAC/B,IAAA,gCAAsB,EACpB,oBAAQ,EACR,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX;KACF,CAAC;IAEF,OAAO;QACL;YACE,IAAI,E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AE,CAAC;IAExB,MAAM,MAAM,GAAG,IAAI,sBAAS,CAC1B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,CAC9C,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxB,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IACzE,MAAM,MAAM,GAAqB;QAC/B,IAAA,gCAAsB,EACpB,oBAAQ,EACR,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX;KACF,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -30,7 +30,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
30
30
  const bsktTokenPrice = yield cache.getTokenPrice(constants_1.bsktMint, portfolio_core_1.NetworkId.solana);
31
31
  if (vestingAccounts.length === 0) {
32
32
  const res = yield axios_1.default
33
- .get(`https://claim.bskt.fi/api/getClaim?wallet=${owner}`)
33
+ .get(`https://claim.bskt.fi/api/getClaim?wallet=${owner}`, {
34
+ timeout: 1000,
35
+ })
34
36
  .catch(() => null);
35
37
  if (res && res.data.amount) {
36
38
  const assets = [];
@@ -1 +1 @@
1
- {"version":3,"file":"vestingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bskt/vestingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAA0E;AAC1E,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AACjD,iDAAsD;AACtD,qGAA6E;AAG7E,MAAM,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC;AAC1C,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;AAE5D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,mBAAO,EACP,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CAAC;IACF,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAE7E,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,MAAM,GAAG,GAAwC,MAAM,eAAK;aACzD,GAAG,CAAC,6CAA6C,KAAK,EAAE,CAAC;aACzD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAqB,EAAE,CAAC;YAEpC,MAAM,WAAW,GAAG,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IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,mBAAmB;YACzB,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,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -4,3 +4,4 @@ export declare const platformId = "drift";
4
4
  export declare const driftPlatform: Platform;
5
5
  export declare const prefixSpotMarkets = "drift-spotMarkets";
6
6
  export declare const driftProgram: PublicKey;
7
+ export declare const preMarketPriceKey = "premarketPrice";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.driftProgram = exports.prefixSpotMarkets = exports.driftPlatform = exports.platformId = void 0;
3
+ exports.preMarketPriceKey = exports.driftProgram = exports.prefixSpotMarkets = exports.driftPlatform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'drift';
6
6
  exports.driftPlatform = {
@@ -12,4 +12,5 @@ exports.driftPlatform = {
12
12
  };
13
13
  exports.prefixSpotMarkets = `${exports.platformId}-spotMarkets`;
14
14
  exports.driftProgram = new web3_js_1.PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH');
15
+ exports.preMarketPriceKey = 'premarketPrice';
15
16
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -7,7 +7,8 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const spotMarketsJob_1 = __importDefault(require("./spotMarketsJob"));
9
9
  const deposits_1 = __importDefault(require("./deposits"));
10
+ const premarketJob_1 = __importDefault(require("./premarketJob"));
10
11
  exports.platforms = [constants_1.driftPlatform];
11
- exports.jobs = [spotMarketsJob_1.default];
12
+ exports.jobs = [spotMarketsJob_1.default, premarketJob_1.default];
12
13
  exports.fetchers = [deposits_1.default];
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA4C;AAC5C,sEAA8C;AAC9C,0DAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,wBAAc,CAAC,CAAC;AAC/B,QAAA,QAAQ,GAAc,CAAC,kBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA4C;AAC5C,sEAA8C;AAC9C,0DAA8C;AAC9C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,wBAAc,EAAE,sBAAY,CAAC,CAAC;AAC7C,QAAA,QAAQ,GAAc,CAAC,kBAAoB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,52 @@
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 web3_js_1 = require("@solana/web3.js");
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
19
+ const constants_1 = require("./constants");
20
+ const struct_1 = require("./struct");
21
+ const clients_1 = require("../../utils/clients");
22
+ const oraclesAndIds = [
23
+ { oracle: 'sDAQaZQJQ4RXAxH3x526mbEXyQZT15ktkL84d7hmk7M', id: 'KMNO' },
24
+ ];
25
+ const factor = new bignumber_js_1.default(Math.pow(10, 6));
26
+ const oneDayInSlot = new bignumber_js_1.default(100000);
27
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
28
+ const client = (0, clients_1.getClientSolana)();
29
+ const epoch = yield client.getEpochInfo();
30
+ for (const data of oraclesAndIds) {
31
+ const prelaunchOracle = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, struct_1.preLaunchOracleStruct, new web3_js_1.PublicKey(data.oracle));
32
+ if (!prelaunchOracle)
33
+ continue;
34
+ // Check if data is too old, would mean the market is not active anymore.
35
+ if (prelaunchOracle.lastUpdateSlot
36
+ .plus(oneDayInSlot)
37
+ .isLessThan(epoch.absoluteSlot))
38
+ continue;
39
+ const price = prelaunchOracle.price.dividedBy(factor);
40
+ yield cache.setItem(`${constants_1.preMarketPriceKey}-${data.id}`, price.toNumber(), {
41
+ prefix: constants_1.platformId,
42
+ networkId: portfolio_core_1.NetworkId.solana,
43
+ });
44
+ }
45
+ });
46
+ const job = {
47
+ id: `${constants_1.platformId}-premarket`,
48
+ executor,
49
+ label: 'normal',
50
+ };
51
+ exports.default = job;
52
+ //# sourceMappingURL=premarketJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premarketJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/premarketJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAAuD;AACvD,gEAAqC;AAGrC,kFAA+E;AAC/E,2CAA4D;AAC5D,qCAAiD;AACjD,iDAAsD;AAEtD,MAAM,aAAa,GAAG;IACpB,EAAE,MAAM,EAAE,6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}
67
+ export declare enum ContractType {
68
+ Perpetual = 0,
69
+ Future = 1
70
+ }
71
+ export declare enum ContractTier {
72
+ A = 0,
73
+ B = 1,
74
+ C = 2,
75
+ Speculative = 3,
76
+ Isolated = 4
77
+ }
67
78
  export type Order = {
68
79
  slot: BigNumber;
69
80
  price: BigNumber;
@@ -256,3 +267,142 @@ export type InsuranceFundStake = {
256
267
  padding: number[];
257
268
  };
258
269
  export declare const insuranceFundStakeStruct: BeetStruct<InsuranceFundStake, Partial<InsuranceFundStake>>;
270
+ export type AMM = {
271
+ oracle: PublicKey;
272
+ historicalOracleData: HistoricalOracleData;
273
+ baseAssetAmountPerLp: BigNumber;
274
+ quoteAssetAmountPerLp: BigNumber;
275
+ feePool: PoolBalance;
276
+ baseAssetReserve: BigNumber;
277
+ quoteAssetReserve: BigNumber;
278
+ concentrationCoef: BigNumber;
279
+ minBaseAssetReserve: BigNumber;
280
+ maxBaseAssetReserve: BigNumber;
281
+ sqrtK: BigNumber;
282
+ pegMultiplier: BigNumber;
283
+ terminalQuoteAssetReserve: BigNumber;
284
+ baseAssetAmountLong: BigNumber;
285
+ baseAssetAmountShort: BigNumber;
286
+ baseAssetAmountWithAmm: BigNumber;
287
+ baseAssetAmountWithUnsettledLp: BigNumber;
288
+ maxOpenInterest: BigNumber;
289
+ quoteAssetAmount: BigNumber;
290
+ quoteEntryAmountLong: BigNumber;
291
+ quoteEntryAmountShort: BigNumber;
292
+ quoteBreakEvenAmountLong: BigNumber;
293
+ quoteBreakEvenAmountShort: BigNumber;
294
+ userLpShares: BigNumber;
295
+ lastFundingRate: BigNumber;
296
+ lastFundingRateLong: BigNumber;
297
+ lastFundingRateShort: BigNumber;
298
+ last24hAvgFundingRate: BigNumber;
299
+ totalFee: BigNumber;
300
+ totalMmFee: BigNumber;
301
+ totalExchangeFee: BigNumber;
302
+ totalFeeMinusDistributions: BigNumber;
303
+ totalFeeWithdrawn: BigNumber;
304
+ totalLiquidationFee: BigNumber;
305
+ cumulativeFundingRateLong: BigNumber;
306
+ cumulativeFundingRateShort: BigNumber;
307
+ totalSocialLoss: BigNumber;
308
+ askBaseAssetReserve: BigNumber;
309
+ askQuoteAssetReserve: BigNumber;
310
+ bidBaseAssetReserve: BigNumber;
311
+ bidQuoteAssetReserve: BigNumber;
312
+ lastOracleNormalisedPrice: BigNumber;
313
+ lastOracleReservePriceSpreadPct: BigNumber;
314
+ lastBidPriceTwap: BigNumber;
315
+ lastAskPriceTwap: BigNumber;
316
+ lastMarkPriceTwap: BigNumber;
317
+ lastMarkPriceTwap5min: BigNumber;
318
+ lastUpdateSlot: BigNumber;
319
+ lastOracleConfPct: BigNumber;
320
+ netRevenueSinceLastFunding: BigNumber;
321
+ lastFundingRateTs: BigNumber;
322
+ fundingPeriod: BigNumber;
323
+ orderStepSize: BigNumber;
324
+ orderTickSize: BigNumber;
325
+ minOrderSize: BigNumber;
326
+ maxPositionSize: BigNumber;
327
+ volume24h: BigNumber;
328
+ longIntensityVolume: BigNumber;
329
+ shortIntensityVolume: BigNumber;
330
+ lastTradeTs: BigNumber;
331
+ markStd: BigNumber;
332
+ oracleStd: BigNumber;
333
+ lastMarkPriceTwapTs: BigNumber;
334
+ baseSpread: number;
335
+ maxSpread: number;
336
+ longSpread: number;
337
+ shortSpread: number;
338
+ longIntensityCount: number;
339
+ shortIntensityCount: number;
340
+ maxFillReserveFraction: number;
341
+ maxSlippageRatio: number;
342
+ curveUpdateIntensity: number;
343
+ ammJitIntensity: number;
344
+ oracleSource: OracleSource;
345
+ lastOracleValid: boolean;
346
+ targetBaseAssetAmountPerLp: number;
347
+ perLpBase: number;
348
+ padding1: number;
349
+ padding2: number;
350
+ totalFeeEarnedPerLp: BigNumber;
351
+ netUnsettledFundingPnl: BigNumber;
352
+ quoteAssetAmountWithUnsettledLp: BigNumber;
353
+ referencePriceOffset: number;
354
+ padding: number[];
355
+ };
356
+ export declare const ammStruct: BeetStruct<AMM, Partial<AMM>>;
357
+ export type InsuranceClaim = {
358
+ revenueWithdrawSinceLastSettle: BigNumber;
359
+ maxRevenueWithdrawPerPeriod: BigNumber;
360
+ quoteMaxInsurance: BigNumber;
361
+ quoteSettledInsurance: BigNumber;
362
+ lastRevenueWithdrawTs: BigNumber;
363
+ };
364
+ export declare const insuranceClaimStruct: BeetStruct<InsuranceClaim, Partial<InsuranceClaim>>;
365
+ export type PerpMarket = {
366
+ buffer: Buffer;
367
+ pubkey: PublicKey;
368
+ amm: AMM;
369
+ pnlPool: PoolBalance;
370
+ name: number[];
371
+ insuranceClaim: InsuranceClaim;
372
+ unrealizedPnlMaxImbalance: BigNumber;
373
+ expiryTs: BigNumber;
374
+ expiryPrice: BigNumber;
375
+ nextFillRecordId: BigNumber;
376
+ nextFundingRateRecordId: BigNumber;
377
+ nextCurveRecordId: BigNumber;
378
+ imfFactor: number;
379
+ unrealizedPnlImfFactor: number;
380
+ liquidatorFee: number;
381
+ ifLiquidationFee: number;
382
+ marginRatioInitial: number;
383
+ marginRatioMaintenance: number;
384
+ unrealizedPnlInitialAssetWeight: number;
385
+ unrealizedPnlMaintenanceAssetWeight: number;
386
+ numberOfUsersWithBase: number;
387
+ numberOfUsers: number;
388
+ marketIndex: number;
389
+ status: MarketStatus;
390
+ contractType: ContractType;
391
+ contractTier: ContractTier;
392
+ pausedOperations: number;
393
+ quoteSpotMarketIndex: number;
394
+ feeAdjustment: number;
395
+ padding: number[];
396
+ };
397
+ export declare const perpMarketStruct: BeetStruct<PerpMarket, Partial<PerpMarket>>;
398
+ export type PreLaunchOracle = {
399
+ buffer: Buffer;
400
+ price: BigNumber;
401
+ maxPrice: BigNumber;
402
+ confidence: BigNumber;
403
+ lastUpdateSlot: BigNumber;
404
+ ammLastUpdateSlot: BigNumber;
405
+ perpMarketIndex: number;
406
+ padding: number[];
407
+ };
408
+ export declare const preLaunchOracleStruct: BeetStruct<PreLaunchOracle, Partial<PreLaunchOracle>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.insuranceFundStakeStruct = exports.userAccountStruct = exports.spotPositionStruct = exports.spotMarketStruct = exports.insuranceFundStruct = exports.historicalOracleDataStruct = exports.historicalIndexDataStruct = exports.poolBalanceStruct = exports.perpPositionStruct = exports.orderStruct = exports.OracleSource = exports.MarketStatus = exports.AssetTier = exports.UserStatus = exports.SpotBalanceType = exports.OrderStatus = exports.OrderType = exports.MarketType = exports.PositionDirection = exports.OrderTriggerCondition = void 0;
3
+ exports.preLaunchOracleStruct = exports.perpMarketStruct = exports.insuranceClaimStruct = exports.ammStruct = exports.insuranceFundStakeStruct = exports.userAccountStruct = exports.spotPositionStruct = exports.spotMarketStruct = exports.insuranceFundStruct = exports.historicalOracleDataStruct = exports.historicalIndexDataStruct = exports.poolBalanceStruct = exports.perpPositionStruct = exports.orderStruct = exports.ContractTier = exports.ContractType = exports.OracleSource = exports.MarketStatus = exports.AssetTier = exports.UserStatus = exports.SpotBalanceType = exports.OrderStatus = exports.OrderType = exports.MarketType = exports.PositionDirection = exports.OrderTriggerCondition = void 0;
4
4
  const beet_1 = require("@metaplex-foundation/beet");
5
5
  const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
6
  const solana_1 = require("../../utils/solana");
@@ -76,6 +76,19 @@ var OracleSource;
76
76
  OracleSource[OracleSource["Pyth1M"] = 4] = "Pyth1M";
77
77
  OracleSource[OracleSource["PythStableCoin"] = 5] = "PythStableCoin";
78
78
  })(OracleSource || (exports.OracleSource = OracleSource = {}));
79
+ var ContractType;
80
+ (function (ContractType) {
81
+ ContractType[ContractType["Perpetual"] = 0] = "Perpetual";
82
+ ContractType[ContractType["Future"] = 1] = "Future";
83
+ })(ContractType || (exports.ContractType = ContractType = {}));
84
+ var ContractTier;
85
+ (function (ContractTier) {
86
+ ContractTier[ContractTier["A"] = 0] = "A";
87
+ ContractTier[ContractTier["B"] = 1] = "B";
88
+ ContractTier[ContractTier["C"] = 2] = "C";
89
+ ContractTier[ContractTier["Speculative"] = 3] = "Speculative";
90
+ ContractTier[ContractTier["Isolated"] = 4] = "Isolated";
91
+ })(ContractTier || (exports.ContractTier = ContractTier = {}));
79
92
  exports.orderStruct = new beet_1.BeetStruct([
80
93
  ['slot', solana_1.u64],
81
94
  ['price', solana_1.u64],
@@ -258,4 +271,139 @@ exports.insuranceFundStakeStruct = new beet_1.BeetStruct([
258
271
  ['marketIndex', beet_1.u16],
259
272
  ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 14)],
260
273
  ], (args) => args);
274
+ exports.ammStruct = new beet_1.BeetStruct([
275
+ ['oracle', beet_solana_1.publicKey],
276
+ ['historicalOracleData', exports.historicalOracleDataStruct],
277
+ ['baseAssetAmountPerLp', solana_1.i128],
278
+ ['quoteAssetAmountPerLp', solana_1.i128],
279
+ ['feePool', exports.poolBalanceStruct],
280
+ ['baseAssetReserve', solana_1.u128],
281
+ ['quoteAssetReserve', solana_1.u128],
282
+ ['concentrationCoef', solana_1.u128],
283
+ ['minBaseAssetReserve', solana_1.u128],
284
+ ['maxBaseAssetReserve', solana_1.u128],
285
+ ['sqrtK', solana_1.u128],
286
+ ['pegMultiplier', solana_1.u128],
287
+ ['terminalQuoteAssetReserve', solana_1.u128],
288
+ ['baseAssetAmountLong', solana_1.i128],
289
+ ['baseAssetAmountShort', solana_1.i128],
290
+ ['baseAssetAmountWithAmm', solana_1.i128],
291
+ ['baseAssetAmountWithUnsettledLp', solana_1.i128],
292
+ ['maxOpenInterest', solana_1.u128],
293
+ ['quoteAssetAmount', solana_1.i128],
294
+ ['quoteEntryAmountLong', solana_1.i128],
295
+ ['quoteEntryAmountShort', solana_1.i128],
296
+ ['quoteBreakEvenAmountLong', solana_1.i128],
297
+ ['quoteBreakEvenAmountShort', solana_1.i128],
298
+ ['userLpShares', solana_1.u128],
299
+ ['lastFundingRate', solana_1.i64],
300
+ ['lastFundingRateLong', solana_1.i64],
301
+ ['lastFundingRateShort', solana_1.i64],
302
+ ['last24hAvgFundingRate', solana_1.i64],
303
+ ['totalFee', solana_1.i128],
304
+ ['totalMmFee', solana_1.i128],
305
+ ['totalExchangeFee', solana_1.u128],
306
+ ['totalFeeMinusDistributions', solana_1.i128],
307
+ ['totalFeeWithdrawn', solana_1.u128],
308
+ ['totalLiquidationFee', solana_1.u128],
309
+ ['cumulativeFundingRateLong', solana_1.i128],
310
+ ['cumulativeFundingRateShort', solana_1.i128],
311
+ ['totalSocialLoss', solana_1.u128],
312
+ ['askBaseAssetReserve', solana_1.u128],
313
+ ['askQuoteAssetReserve', solana_1.u128],
314
+ ['bidBaseAssetReserve', solana_1.u128],
315
+ ['bidQuoteAssetReserve', solana_1.u128],
316
+ ['lastOracleNormalisedPrice', solana_1.i64],
317
+ ['lastOracleReservePriceSpreadPct', solana_1.i64],
318
+ ['lastBidPriceTwap', solana_1.u64],
319
+ ['lastAskPriceTwap', solana_1.u64],
320
+ ['lastMarkPriceTwap', solana_1.u64],
321
+ ['lastMarkPriceTwap5min', solana_1.u64],
322
+ ['lastUpdateSlot', solana_1.u64],
323
+ ['lastOracleConfPct', solana_1.u64],
324
+ ['netRevenueSinceLastFunding', solana_1.i64],
325
+ ['lastFundingRateTs', solana_1.i64],
326
+ ['fundingPeriod', solana_1.i64],
327
+ ['orderStepSize', solana_1.u64],
328
+ ['orderTickSize', solana_1.u64],
329
+ ['minOrderSize', solana_1.u64],
330
+ ['maxPositionSize', solana_1.u64],
331
+ ['volume24h', solana_1.u64],
332
+ ['longIntensityVolume', solana_1.u64],
333
+ ['shortIntensityVolume', solana_1.u64],
334
+ ['lastTradeTs', solana_1.i64],
335
+ ['markStd', solana_1.u64],
336
+ ['oracleStd', solana_1.u64],
337
+ ['lastMarkPriceTwapTs', solana_1.i64],
338
+ ['baseSpread', beet_1.u32],
339
+ ['maxSpread', beet_1.u32],
340
+ ['longSpread', beet_1.u32],
341
+ ['shortSpread', beet_1.u32],
342
+ ['longIntensityCount', beet_1.u32],
343
+ ['shortIntensityCount', beet_1.u32],
344
+ ['maxFillReserveFraction', beet_1.u16],
345
+ ['maxSlippageRatio', beet_1.u16],
346
+ ['curveUpdateIntensity', beet_1.u8],
347
+ ['ammJitIntensity', beet_1.u8],
348
+ ['oracleSource', beet_1.u8],
349
+ ['lastOracleValid', beet_1.bool],
350
+ ['targetBaseAssetAmountPerLp', beet_1.i32],
351
+ ['perLpBase', beet_1.i8],
352
+ ['padding1', beet_1.u8],
353
+ ['padding2', beet_1.u16],
354
+ ['totalFeeEarnedPerLp', solana_1.u64],
355
+ ['netUnsettledFundingPnl', solana_1.i64],
356
+ ['quoteAssetAmountWithUnsettledLp', solana_1.i64],
357
+ ['referencePriceOffset', beet_1.i32],
358
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 12)],
359
+ ], (args) => args);
360
+ exports.insuranceClaimStruct = new beet_1.BeetStruct([
361
+ ['revenueWithdrawSinceLastSettle', solana_1.i64],
362
+ ['maxRevenueWithdrawPerPeriod', solana_1.u64],
363
+ ['quoteMaxInsurance', solana_1.u64],
364
+ ['quoteSettledInsurance', solana_1.u64],
365
+ ['lastRevenueWithdrawTs', solana_1.i64],
366
+ ], (args) => args);
367
+ exports.perpMarketStruct = new beet_1.BeetStruct([
368
+ ['buffer', (0, solana_1.blob)(8)],
369
+ ['pubkey', beet_solana_1.publicKey],
370
+ ['amm', exports.ammStruct],
371
+ ['pnlPool', exports.poolBalanceStruct],
372
+ ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
373
+ ['insuranceClaim', exports.insuranceClaimStruct],
374
+ ['unrealizedPnlMaxImbalance', solana_1.u64],
375
+ ['expiryTs', solana_1.i64],
376
+ ['expiryPrice', solana_1.i64],
377
+ ['nextFillRecordId', solana_1.u64],
378
+ ['nextFundingRateRecordId', solana_1.u64],
379
+ ['nextCurveRecordId', solana_1.u64],
380
+ ['imfFactor', beet_1.u32],
381
+ ['unrealizedPnlImfFactor', beet_1.u32],
382
+ ['liquidatorFee', beet_1.u32],
383
+ ['ifLiquidationFee', beet_1.u32],
384
+ ['marginRatioInitial', beet_1.u32],
385
+ ['marginRatioMaintenance', beet_1.u32],
386
+ ['unrealizedPnlInitialAssetWeight', beet_1.u32],
387
+ ['unrealizedPnlMaintenanceAssetWeight', beet_1.u32],
388
+ ['numberOfUsersWithBase', beet_1.u32],
389
+ ['numberOfUsers', beet_1.u32],
390
+ ['marketIndex', beet_1.u16],
391
+ ['status', beet_1.u8],
392
+ ['contractType', beet_1.u8],
393
+ ['contractTier', beet_1.u8],
394
+ ['pausedOperations', beet_1.u8],
395
+ ['quoteSpotMarketIndex', beet_1.u16],
396
+ ['feeAdjustment', beet_1.i16],
397
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 46)],
398
+ ], (args) => args);
399
+ exports.preLaunchOracleStruct = new beet_1.BeetStruct([
400
+ ['buffer', (0, solana_1.blob)(8)],
401
+ ['price', solana_1.i64],
402
+ ['maxPrice', solana_1.i64],
403
+ ['confidence', solana_1.u64],
404
+ ['lastUpdateSlot', solana_1.u64],
405
+ ['ammLastUpdateSlot', solana_1.u64],
406
+ ['perpMarketIndex', beet_1.u16],
407
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 70)],
408
+ ], (args) => args);
261
409
  //# sourceMappingURL=struct.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/struct.ts"],"names":[],"mappings":";;;AAAA,oDAQmC;AACnC,kEAA6D;AAG7D,+CAA0D;AAE1D,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,mEAAK,CAAA;IACL,mEAAK,CAAA;IACL,qFAAc,CAAA;IACd,qFAAc,CAAA;AAChB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,yDAAI,CAAA;IACJ,2DAAK,CAAA;AACP,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,UAGX;AAHD,WAAY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AAE,aAAI,CAAC;IAChB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,0BAA0B,EAAE,YAAG,CAAC;IACjC,CAAC,uBAAuB,EAAE,YAAG,CAAC;IAC9B,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA0B,CACrC,CAAC"}
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/struct.ts"],"names":[],"mappings":";;;AAAA,oDAUmC;AACnC,kEAA6D;AAG7D,+CAAgE;AAEhE,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,mEAAK,CAAA;IACL,mEAAK,CAAA;IACL,qFAAc,CAAA;IACd,qFAAc,CAAA;AAChB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,yDAAI,CAAA;IACJ,2DAAK,CAAA;AACP,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,2CAAI,CAAA;AACN,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,6CAAM,CAAA;IACN,2CAAK,CAAA;IACL,2DAAa,CAAA;IACb,yDAAY,CAAA;IACZ,6CAAM,CAAA;AACR,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,6CAAI,CAAA;IACJ,iDAAM,CAAA;IACN,qDAAQ,CAAA;AACV,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,eAGX;AAHD,WAAY,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