@sonarwatch/portfolio-plugins 0.12.70 → 0.12.71

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.12.71](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.70...plugins-0.12.71) (2024-07-16)
6
+
7
+
8
+
5
9
  ## [0.12.70](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.69...plugins-0.12.70) (2024-07-16)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.70",
3
+ "version": "0.12.71",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/Cache.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Storage, StorageValue, Driver } from 'unstorage';
1
+ import { Driver, Storage, StorageValue } from 'unstorage';
2
2
  import { NetworkIdType, TokenPrice, TokenPriceSource } from '@sonarwatch/portfolio-core';
3
3
  export type TransactionOptions = {
4
4
  prefix: string;
package/src/Cache.js CHANGED
@@ -278,8 +278,7 @@ function getFullKey(key, opts) {
278
278
  function getFullBase(opts) {
279
279
  const { networkId, prefix } = opts;
280
280
  const networkIdBasePrefix = networkId ? `${networkId.toString()}:` : '';
281
- const fullBase = `${prefix}:${networkIdBasePrefix}`;
282
- return fullBase;
281
+ return `${prefix}:${networkIdBasePrefix}`;
283
282
  }
284
283
  function getDriverFromCacheConfig(cacheConfig) {
285
284
  switch (cacheConfig.type) {
@@ -323,7 +322,8 @@ function getCacheConfig() {
323
322
  .map((base) => ({
324
323
  base,
325
324
  headers: {
326
- Authorization: `Bearer ${process.env['CACHE_CONFIG_HTTP_BEARER'] || portfolio_core_1.publicBearerToken}`,
325
+ Authorization: `Bearer ${process.env['CACHE_CONFIG_OVERLAY_HTTP_BEARER'] ||
326
+ portfolio_core_1.publicBearerToken}`,
327
327
  },
328
328
  })),
329
329
  },
package/src/Cache.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Cache.js","sourceRoot":"","sources":["../../../../packages/plugins/src/Cache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAyE;AACzE,8DAA4C;AAC5C,oEAAkD;AAClD,kEAAgD;AAChD,+DAUoC;AACpC,oEAA4C;AAC5C,+DAGwB;AACxB,yEAAiD;AACjD,wDAAqD;AAiBrD,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAgElD,MAAa,KAAK;IAKhB,YAAY,WAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,IAAA,yBAAa,EAAC;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,GAAG,IAAA,yBAAa,EAAC;YACrC,MAAM,EAAE,IAAA,sBAAY,EAAC;gBACnB,GAAG,EAAE,KAAK;aACX,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,UAAU,CAAC,IAAyB;QAClC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,oCAAqB,EAAE,CAAC;YAC9C,IAAI,CAAC,MAAuB,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,oCAAqB,EAAE,CAAC;YAC/C,OAAQ,IAAI,CAAC,MAAuB,CAAC,UAAU,EAAE,CAAC;QACpD,CAAC;QACD,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IAEK,OAAO,CAAC,GAAW,EAAE,IAAwB;;YACjD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC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AAM,EAAE,EAAE;aACX,CAAC;IACN,CAAC;AACH,CAAC;AAlED,wCAkEC;AAED,SAAgB,QAAQ;IACtB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;AAHD,4BAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/echelon/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAOqB;AAErB,qGAA6E;AAC7E,iDAAqD;AACrD,6CAAgE;AAChE,4DAAyD;AAGzD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChD,IAAA,0BAAkB,EAAY,MAAM,EAAE,KAAK,EAAE,qBAAS,CAAC;QACvD,IAAA,0BAAkB,EAAa,MAAM,EAAE,KAAK,EAAE,sBAAU,CAAC;KAC1D,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAW,qBAAS,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;KAC3B,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,CAAC,WAAW,EAAE,kBAAkB,EAAE,iBAAiB,CAAC,GACxD,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,KAAK,CAAC,mBAAmB,CACvB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,Q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Ae,CAAC,QAAQ,CAAC,CAAC;YAC7D,IAAI,CAAC,UAAU;gBAAE,OAAO;YACxB,YAAY,CAAC,IAAI,CACf,IAAA,gCAAsB,EACpB,eAAe,CAAC,QAAQ,EACxB,IAAI,sBAAS,CAAC,eAAe,CAAC,OAAO,CAAC;iBACnC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;iBACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,KAAK,EACf,UAAU,CACX,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,KAAK;QAC1B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,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"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/echelon/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAOqB;AAErB,qGAA6E;AAC7E,iDAAq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AAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;KACb,CAAC,CAAC;IAEL,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,KAAK;QAC1B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,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"}
@@ -123,5 +123,22 @@ exports.airdropConfigs = [
123
123
  name: 'S1',
124
124
  },
125
125
  },
126
+ {
127
+ mint: 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu',
128
+ decimals: 9,
129
+ distributorProgram: exports.lfgDisProgram,
130
+ label: 'CLOUD',
131
+ platformId: exports.platformId,
132
+ getApiPath: (owner) => `${exports.lfgApiBaseUrl}/CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu/${owner}`,
133
+ statics: {
134
+ claimStart: 1721314800000,
135
+ claimEnd: undefined,
136
+ id: 'lfg-sanctum',
137
+ emitterName: 'Sanctum',
138
+ emitterLink: 'https://www.sanctum.so/',
139
+ claimLink: 'https://lfg.jup.ag/sanctum',
140
+ image: 'https://sonar.watch/img/platforms/sanctum.webp',
141
+ },
142
+ },
126
143
  ];
127
144
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,sDAAwE;AAE3D,QAAA,UAAU,GAAG,mBAAmB,CAAC;AAC9C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AAC1D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,aAAa,GAAG,uCAAuC,CAAC;AACxD,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAE/D,QAAA,cAAc,GAAoB;IAC7C;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,6CAA6C;QACjE,KAAK,EAAE,KAAK;QACZ,UAAU,EAAV,kBAAU;QACV,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,GAAG,qBAAa,gDAAgD,KAAK,EAAE;QACzE,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,aAAa;YACvB,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,wBAAwB;YACnC,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,qBAAa;QACjC,KAAK,EAAE,MAAM;QACb,UA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EAAE,KAAK;QACZ,UAAU,EAAV,kBAAU;QACV,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,GAAG,qBAAa,gDAAgD,KAAK,EAAE;QACzE,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,aAAa;YACvB,EAAE,EAAE,YAAY;YAChB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,qBAAqB;YAClC,SAAS,EAAE,2BAA2B;YACtC,KAAK,EAAE,+CAA+C;SACvD;KACF;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,6CAA6C;QACjE,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,sBAAgB;QAC5B,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,+CAA+C,KAAK,EAAE;QACxD,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,WAAW;YACf,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6BAA6B;YAC1C,SAAS,EAAE,oCAAoC;YAC/C,KAAK,EAAE,+CAA+C;YACtD,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,sDAAwE;AAE3D,QAAA,UAAU,GAAG,mBAAmB,CAAC;AAC9C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AAC1D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GA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gB;QAC5B,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,+CAA+C,KAAK,EAAE;QACxD,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,WAAW;YACf,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6BAA6B;YAC1C,SAAS,EAAE,oCAAoC;YAC/C,KAAK,EAAE,+CAA+C;YACtD,IAAI,EAAE,IAAI;SACX;KACF;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,qBAAa;QACjC,KAAK,EAAE,OAAO;QACd,UAAU,EAAV,kBAAU;QACV,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,GAAG,qBAAa,iDAAiD,KAAK,EAAE;QAC1E,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,aAAa;YACjB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,4BAA4B;YACvC,KAAK,EAAE,gDAAgD;SACxD;KACF;CACF,CAAC"}
@@ -2,10 +2,13 @@ import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "thala";
3
3
  export declare const platform: Platform;
4
4
  export declare const packageId = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
5
+ export declare const vePackageId = "0x167f411fc5a678fb40d86e0af646fa8f62458b686ad8996215248447037af40c";
6
+ export declare const farmingPackageId = "0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99";
5
7
  export declare const vaultFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::Vault<";
6
8
  export declare const vaultCollateralParamsFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::VaultCollateralParams<";
7
9
  export declare const thlCoin = "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
8
10
  export declare const modCoin = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD";
11
+ export declare const thlModPool = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken<0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD, 0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::Weight_20, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::Weight_80, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null>";
9
12
  export declare const stabilityEndpoint = "https://app.thala.fi/api/total-stability";
10
13
  export declare const programAddressLP = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af";
11
14
  export declare const lpStableTypeTokenPrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::StablePoolToken";
@@ -24,3 +27,14 @@ export declare const stabilityClaimablePayload: (owner: string) => {
24
27
  typeArguments: never[];
25
28
  functionArguments: string[];
26
29
  };
30
+ export declare const vetokenBalancePayload: (owner: string, coinType: string) => {
31
+ function: `${string}::${string}::${string}`;
32
+ typeArguments: string[];
33
+ functionArguments: string[];
34
+ };
35
+ export declare const farmingPoolPayload: (owner: string, poolId: number, rewardCoinType: string) => {
36
+ function: `${string}::${string}::${string}`;
37
+ typeArguments: string[];
38
+ functionArguments: (string | number)[];
39
+ };
40
+ export declare const farmingPoolsKey = "farming-pools";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.packageId = exports.platform = exports.platformId = void 0;
3
+ exports.farmingPoolsKey = exports.farmingPoolPayload = exports.vetokenBalancePayload = exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.thlModPool = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.farmingPackageId = exports.vePackageId = exports.packageId = exports.platform = exports.platformId = void 0;
4
4
  const aptos_1 = require("../../utils/aptos");
5
5
  exports.platformId = 'thala';
6
6
  exports.platform = {
@@ -11,15 +11,20 @@ exports.platform = {
11
11
  website: 'https://www.thala.fi/',
12
12
  };
13
13
  exports.packageId = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
14
+ exports.vePackageId = '0x167f411fc5a678fb40d86e0af646fa8f62458b686ad8996215248447037af40c';
15
+ exports.farmingPackageId = '0x6b3720cd988adeaf721ed9d4730da4324d52364871a68eac62b46d21e4d2fa99';
14
16
  const stabilityModule = 'stability_pool';
15
17
  const vaultModule = 'vault';
18
+ const veTokenModule = 'vault';
16
19
  const liquidityDeposit = `${exports.packageId}::${stabilityModule}::account_deposit`;
17
20
  const liquidityClaimable = `${exports.packageId}::${stabilityModule}::claimable_thl`;
21
+ const lockedCoinAmount = `${exports.vePackageId}::${veTokenModule}::locked_coin_amount`;
18
22
  const cryptoType = `${exports.packageId}::${stabilityModule}::Crypto`;
19
23
  exports.vaultFilter = `${exports.packageId}::${vaultModule}::Vault<`;
20
24
  exports.vaultCollateralParamsFilter = `${exports.packageId}::${vaultModule}::VaultCollateralParams<`;
21
25
  exports.thlCoin = `0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL`;
22
26
  exports.modCoin = `${exports.packageId}::mod_coin::MOD`;
27
+ exports.thlModPool = '0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken<0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD, 0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::Weight_20, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::Weight_80, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null, 0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::Null>';
23
28
  exports.stabilityEndpoint = 'https://app.thala.fi/api/total-stability';
24
29
  exports.programAddressLP = '0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af';
25
30
  exports.lpStableTypeTokenPrefix = `${exports.programAddressLP}::stable_pool::StablePoolToken`;
@@ -40,4 +45,17 @@ const stabilityClaimablePayload = (owner) => ({
40
45
  functionArguments: [owner],
41
46
  });
42
47
  exports.stabilityClaimablePayload = stabilityClaimablePayload;
48
+ const vetokenBalancePayload = (owner, coinType) => ({
49
+ function: lockedCoinAmount,
50
+ typeArguments: [coinType],
51
+ functionArguments: [owner],
52
+ });
53
+ exports.vetokenBalancePayload = vetokenBalancePayload;
54
+ const farmingPoolPayload = (owner, poolId, rewardCoinType) => ({
55
+ function: `${exports.farmingPackageId}::farming::stake_and_reward_amount`,
56
+ typeArguments: [rewardCoinType],
57
+ functionArguments: [owner, poolId],
58
+ });
59
+ exports.farmingPoolPayload = farmingPoolPayload;
60
+ exports.farmingPoolsKey = 'farming-pools';
43
61
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,gBAAgB,GAAG,GAAG,iBAAS,KAAK,eAAe,mBAAmB,CAAC;AAC7E,MAAM,kBAAkB,GAAG,GAAG,iBAAS,KAAK,eAAe,iBAAiB,CAAC;AAE7E,MAAM,UAAU,GAAG,GAAG,iBAAS,KAAK,eAAe,UAAU,CAAC;AACjD,QAAA,WAAW,GAAG,GAAG,iBAAS,KAAK,WAAW,UAAU,CAAC;AACrD,QAAA,2BAA2B,GAAG,GAAG,iBAAS,KAAK,WAAW,0BAA0B,CAAC;AAErF,QAAA,OAAO,GAAG,kFAAkF,CAAC;A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AAE,EAAE,CAAC,CAAC;IACzD,QAAQ,EAAE,gBAAqD;IAC/D,aAAa,EAAE,CAAC,UAAU,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,uBAAuB,2BAIjC;AAEI,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;IAC3D,QAAQ,EAAE,kBAAuD;IACjE,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,yBAAyB,6BAInC;AAEI,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAE,QAAgB,EAAE,EAAE,CAAC,CAAC;IACzE,QAAQ,EAAE,gBAAqD;IAC/D,aAAa,EAAE,CAAC,QAAQ,CAAC;IACzB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AAJU,QAAA,qBAAqB,yBAI/B;AAEI,MAAM,kBAAkB,GAAG,CAChC,KAAa,EACb,MAAc,EACd,cAAsB,EACtB,EAAE,CAAC,CAAC;IACJ,QAAQ,EACN,GAAG,wBAAgB,oCAAyE;IAC9F,aAAa,EAAE,CAAC,cAAc,CAAC;IAC/B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;CACnC,CAAC,CAAC;AATU,QAAA,kBAAkB,sBAS5B;AAEU,QAAA,eAAe,GAAG,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const constants_1 = require("./constants");
18
+ const aptos_1 = require("../../utils/aptos");
19
+ const clients_1 = require("../../utils/clients");
20
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const client = (0, clients_1.getClientAptos)();
23
+ const [farmingPools, resources] = yield Promise.all([
24
+ cache.getItem(constants_1.farmingPoolsKey, {
25
+ prefix: constants_1.platformId,
26
+ networkId: portfolio_core_1.NetworkId.aptos,
27
+ }),
28
+ (0, aptos_1.getAccountResources)(client, owner),
29
+ ]);
30
+ if (!farmingPools)
31
+ return [];
32
+ if (!resources)
33
+ return [];
34
+ const walletCoinTypes = resources
35
+ .map((resource) => {
36
+ var _a;
37
+ const resourceType = resource.type;
38
+ if (!(0, aptos_1.isCoinStoreRessourceType)(resourceType))
39
+ return null;
40
+ const parseCoinType = (0, aptos_1.parseTypeString)(resourceType);
41
+ if (parseCoinType.root !== aptos_1.coinStore)
42
+ return null;
43
+ if (!parseCoinType.keys)
44
+ return null;
45
+ const coinType = (_a = parseCoinType.keys.at(0)) === null || _a === void 0 ? void 0 : _a.type;
46
+ if (coinType === undefined)
47
+ return null;
48
+ return coinType;
49
+ })
50
+ .filter((c) => c !== null);
51
+ // WE KEEP FARMING POOL ONLY IF LP TOKEN IS IN WALLET
52
+ const selectedFarmingPools = farmingPools
53
+ .map((fp, poolId) => (Object.assign(Object.assign({}, fp), { poolId })))
54
+ .filter((fp) => walletCoinTypes.includes(fp.stake_coin));
55
+ if (selectedFarmingPools.length === 0)
56
+ return [];
57
+ let stakedTokens = (yield Promise.all(selectedFarmingPools.map((farmingPool) => __awaiter(void 0, void 0, void 0, function* () {
58
+ const rewardCoinType = constants_1.thlCoin;
59
+ const vRes = yield (0, aptos_1.getView)(client, (0, constants_1.farmingPoolPayload)(owner, farmingPool.poolId, rewardCoinType));
60
+ if (vRes && vRes[0] && vRes[0] !== '0') {
61
+ const amount = vRes[0];
62
+ const reward = vRes[1];
63
+ return {
64
+ poolId: farmingPool.poolId,
65
+ coinType: farmingPool.stake_coin,
66
+ amount,
67
+ rewards: [
68
+ {
69
+ amount: reward,
70
+ coinType: rewardCoinType,
71
+ },
72
+ ],
73
+ };
74
+ }
75
+ return null;
76
+ })))).filter((sra) => sra !== null);
77
+ stakedTokens = yield Promise.all(stakedTokens.map((s) => __awaiter(void 0, void 0, void 0, function* () {
78
+ const pool = farmingPools[s.poolId];
79
+ if (pool.extra_reward_coins) {
80
+ for (const rewardCoinType of pool.extra_reward_coins) {
81
+ const vRes = yield (0, aptos_1.getView)(client, (0, constants_1.farmingPoolPayload)(owner, s.poolId, rewardCoinType));
82
+ if (vRes && vRes[1] && vRes[1] !== '0') {
83
+ const reward = vRes[1];
84
+ s.rewards.push({
85
+ amount: reward,
86
+ coinType: rewardCoinType,
87
+ });
88
+ }
89
+ }
90
+ }
91
+ return s;
92
+ })));
93
+ if (!stakedTokens || stakedTokens.length === 0)
94
+ return [];
95
+ const tokenMints = new Set();
96
+ stakedTokens.forEach((st) => {
97
+ tokenMints.add(st.coinType);
98
+ st.rewards.forEach((r) => tokenMints.add(r.coinType));
99
+ });
100
+ const tokenPrices = yield cache.getTokenPricesAsMap([...tokenMints], portfolio_core_1.NetworkId.aptos);
101
+ const liquidities = [];
102
+ stakedTokens.forEach((stakedToken) => {
103
+ const rewardAssets = [];
104
+ const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(stakedToken.coinType));
105
+ if (!tokenPrice)
106
+ return;
107
+ const asset = (0, tokenPriceToAssetToken_1.default)(stakedToken.coinType, new bignumber_js_1.default(stakedToken.amount)
108
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
109
+ .toNumber(), portfolio_core_1.NetworkId.aptos, tokenPrice);
110
+ stakedToken.rewards.forEach((r) => {
111
+ if (r.amount === '0')
112
+ return;
113
+ const rewardTokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(r.coinType));
114
+ if (!rewardTokenPrice)
115
+ return;
116
+ rewardAssets.push((0, tokenPriceToAssetToken_1.default)(r.coinType, new bignumber_js_1.default(r.amount)
117
+ .dividedBy(Math.pow(10, rewardTokenPrice.decimals))
118
+ .toNumber(), portfolio_core_1.NetworkId.aptos, rewardTokenPrice));
119
+ });
120
+ const rewardAssetsValue = (0, portfolio_core_1.getUsdValueSum)(rewardAssets.map((a) => a.value));
121
+ const value = (asset.value || 0) + (rewardAssetsValue || 0);
122
+ liquidities.push({
123
+ assets: [asset],
124
+ assetsValue: asset.value,
125
+ rewardAssets,
126
+ rewardAssetsValue,
127
+ value,
128
+ yields: [],
129
+ });
130
+ });
131
+ if (liquidities.length === 0)
132
+ return [];
133
+ return [
134
+ {
135
+ networkId: portfolio_core_1.NetworkId.aptos,
136
+ label: 'Farming',
137
+ platformId: constants_1.platformId,
138
+ type: portfolio_core_1.PortfolioElementType.liquidity,
139
+ value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
140
+ data: {
141
+ liquidities,
142
+ },
143
+ },
144
+ ];
145
+ });
146
+ const fetcher = {
147
+ id: `${constants_1.platformId}-farming-pools`,
148
+ networkId: portfolio_core_1.NetworkId.aptos,
149
+ executor,
150
+ };
151
+ exports.default = fetcher;
152
+ //# sourceMappingURL=farmingPoolsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"farmingPoolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins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AAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,CAAC,CAAC;QAE5D,WAAW,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,CAAC,KAAK,CAAC;YACf,WAAW,EAAE,KAAK,CAAC,KAAK;YACxB,YAAY;YACZ,iBAAiB;YACjB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,KAAK;YAC1B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACtD,IAAI,EAAE;gBACJ,WAAW;aACZ;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,32 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
+ const constants_1 = require("./constants");
14
+ const clients_1 = require("../../utils/clients");
15
+ const aptos_1 = require("../../utils/aptos");
16
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
17
+ const connection = (0, clients_1.getClientAptos)();
18
+ const farming = yield (0, aptos_1.getAccountResource)(connection, constants_1.farmingPackageId, `${constants_1.farmingPackageId}::farming::Farming`);
19
+ if (!farming)
20
+ return;
21
+ yield cache.setItem(constants_1.farmingPoolsKey, farming.pool_info, {
22
+ prefix: constants_1.platformId,
23
+ networkId: portfolio_core_1.NetworkId.aptos,
24
+ });
25
+ });
26
+ const job = {
27
+ id: `${constants_1.platformId}-farming-pools`,
28
+ executor,
29
+ label: 'normal',
30
+ };
31
+ exports.default = job;
32
+ //# sourceMappingURL=farmingPoolsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"farmingPoolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/farmingPoolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAA4E;AAG5E,iDAAqD;AACrD,6CAAuD;AAGvD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEpC,MAAM,OAAO,GAAG,MAAM,IAAA,0BAAkB,EACtC,UAAU,EACV,4BAAgB,EAChB,GAAG,4BAAgB,oBAAoB,CACxC,CAAC;IAEF,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,KAAK,CAAC,OAAO,CAAC,2BAAe,EAAE,OAAO,CAAC,SAAS,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;KAC3B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -10,7 +10,20 @@ const stakingAprJob_1 = __importDefault(require("./stakingAprJob"));
10
10
  const vaultsFetcher_1 = __importDefault(require("./vaultsFetcher"));
11
11
  const stabilityPoolFetcher_1 = __importDefault(require("./stabilityPoolFetcher"));
12
12
  const constants_1 = require("./constants");
13
+ const farmingPoolsJob_1 = __importDefault(require("./farmingPoolsJob"));
14
+ const vethlFetcher_1 = __importDefault(require("./vethlFetcher"));
15
+ const farmingPoolsFetcher_1 = __importDefault(require("./farmingPoolsFetcher"));
13
16
  exports.platforms = [constants_1.platform];
14
- exports.jobs = [vaultsRatesJob_1.default, lpTokensJob_1.default, stakingAprJob_1.default];
15
- exports.fetchers = [vaultsFetcher_1.default, stabilityPoolFetcher_1.default];
17
+ exports.jobs = [
18
+ vaultsRatesJob_1.default,
19
+ lpTokensJob_1.default,
20
+ stakingAprJob_1.default,
21
+ farmingPoolsJob_1.default,
22
+ ];
23
+ exports.fetchers = [
24
+ vaultsFetcher_1.default,
25
+ stabilityPoolFetcher_1.default,
26
+ vethlFetcher_1.default,
27
+ farmingPoolsFetcher_1.default,
28
+ ];
16
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAY,EAAE,qBAAU,EAAE,uBAAa,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,8BAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAAuC;AACvC,wEAAgD;AAChD,kEAA0C;AAC1C,gFAAwD;AAE3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;IACzB,wBAAY;IACZ,qBAAU;IACV,uBAAa;IACb,yBAAe;CAChB,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,uBAAa;IACb,8BAAW;IACX,sBAAY;IACZ,6BAAmB;CACpB,CAAC"}
@@ -18,49 +18,81 @@ const constants_1 = require("./constants");
18
18
  const aptos_1 = require("../../utils/aptos");
19
19
  const clients_1 = require("../../utils/clients");
20
20
  const helpers_1 = require("./helpers");
21
+ const arrayToMap_1 = require("../../utils/misc/arrayToMap");
21
22
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
22
- var _a, _b, _c, _d;
23
23
  const connection = (0, clients_1.getClientAptos)();
24
- const resources = yield (0, aptos_1.getAccountResources)(connection, constants_1.programAddressLP);
24
+ const resources = yield (0, aptos_1.getAccountResources)(connection, constants_1.programAddressLP).then((unfilteredResources) => (unfilteredResources || []).filter((resource) => {
25
+ if (!resource)
26
+ return false;
27
+ return !(!resource.type.includes(constants_1.lpStableTypePrefix) &&
28
+ !resource.type.includes(constants_1.lpWeightedTypePrefix));
29
+ }));
25
30
  if (!resources)
26
31
  return;
27
- const tokenResourcesByType = new Map();
32
+ const tokenResourcesByType = (0, arrayToMap_1.arrayToMap)(resources, 'type');
33
+ const tokenAdresses = new Set();
28
34
  resources.forEach((resource) => {
29
- if (resource.type.includes(constants_1.lpStableTypePrefix) ||
30
- resource.type.includes(constants_1.lpWeightedTypePrefix))
31
- tokenResourcesByType.set(resource.type, resource);
35
+ var _a;
36
+ const parseLpInfo = (0, aptos_1.parseTypeString)(resource.type);
37
+ if (parseLpInfo.root !== aptos_1.coinInfo)
38
+ return;
39
+ if (!parseLpInfo.keys)
40
+ return;
41
+ const poolInfo = (_a = parseLpInfo.keys) === null || _a === void 0 ? void 0 : _a.at(0);
42
+ if (poolInfo === undefined)
43
+ return;
44
+ if (poolInfo.root !== constants_1.lpStableTypeTokenPrefix &&
45
+ poolInfo.root !== constants_1.lpWeightedTypeTokenPrefix) {
46
+ return;
47
+ }
48
+ const lpTokenComposition = poolInfo.keys;
49
+ if (!lpTokenComposition)
50
+ return;
51
+ for (let index = 0; index < lpTokenComposition.length; index++) {
52
+ const token = lpTokenComposition.at(index);
53
+ if (!token)
54
+ continue;
55
+ if (token.struct === 'Null')
56
+ break;
57
+ const tokenAddress = token.type;
58
+ if (!tokenAddress)
59
+ continue;
60
+ tokenAdresses.add(tokenAddress);
61
+ }
32
62
  });
33
- for (let i = 0; i < resources.length; i++) {
34
- const resource = resources[i];
63
+ const tokenPrices = yield cache.getTokenPricesAsMap([...tokenAdresses], portfolio_core_1.NetworkId.aptos);
64
+ const tokenPriceSources = [];
65
+ resources.forEach((resource) => {
66
+ var _a, _b, _c, _d;
35
67
  const parseLpInfo = (0, aptos_1.parseTypeString)(resource.type);
36
68
  if (parseLpInfo.root !== aptos_1.coinInfo)
37
- continue;
69
+ return;
38
70
  if (!parseLpInfo.keys)
39
- continue;
71
+ return;
40
72
  const poolInfo = (_a = parseLpInfo.keys) === null || _a === void 0 ? void 0 : _a.at(0);
41
73
  if (poolInfo === undefined)
42
- continue;
74
+ return;
43
75
  if (poolInfo.root !== constants_1.lpStableTypeTokenPrefix &&
44
76
  poolInfo.root !== constants_1.lpWeightedTypeTokenPrefix) {
45
- continue;
77
+ return;
46
78
  }
47
79
  const lpInfoData = resource.data;
48
80
  const lpSupplyString = (_d = (_c = (_b = lpInfoData.supply) === null || _b === void 0 ? void 0 : _b.vec[0]) === null || _c === void 0 ? void 0 : _c.integer.vec[0]) === null || _d === void 0 ? void 0 : _d.value;
49
81
  if (!lpSupplyString)
50
- continue;
82
+ return;
51
83
  const lpDecimals = lpInfoData.decimals;
52
84
  const lpSupply = new bignumber_js_1.default(lpSupplyString)
53
85
  .div(Math.pow(10, lpDecimals))
54
86
  .toNumber();
55
87
  if (lpSupply === 0)
56
- continue;
88
+ return;
57
89
  const lpType = poolInfo.type;
58
90
  const lpTokenComposition = poolInfo.keys;
59
91
  if (!lpTokenComposition)
60
- continue;
92
+ return;
61
93
  const tokenPairResource = tokenResourcesByType.get((0, helpers_1.tokenToLpType)(lpType));
62
94
  if (!tokenPairResource)
63
- continue;
95
+ return;
64
96
  const tokensValues = getTokensValuesArray(tokenPairResource.data);
65
97
  const underlyings = [];
66
98
  let totalReserveValue = 0;
@@ -78,8 +110,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
78
110
  continue;
79
111
  if (tokenAmount.isZero())
80
112
  continue;
81
- const tokenPrice = yield cache.getTokenPrice(tokenAddress, portfolio_core_1.NetworkId.aptos);
82
- if (!tokenPrice || tokenPrice === undefined)
113
+ const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(tokenAddress));
114
+ if (!tokenPrice)
83
115
  continue;
84
116
  const reserveAmount = new bignumber_js_1.default(tokenAmount)
85
117
  .div(Math.pow(10, tokenPrice.decimals))
@@ -95,9 +127,9 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
95
127
  });
96
128
  }
97
129
  if (totalReserveValue === 0)
98
- continue;
130
+ return;
99
131
  const price = totalReserveValue / lpSupply;
100
- yield cache.setTokenPriceSource({
132
+ tokenPriceSources.push({
101
133
  id: constants_1.platformId,
102
134
  weight: 1,
103
135
  address: poolInfo.type,
@@ -108,7 +140,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
108
140
  underlyings,
109
141
  timestamp: Date.now(),
110
142
  });
111
- }
143
+ });
144
+ yield cache.setTokenPriceSources(tokenPriceSources);
112
145
  });
113
146
  function getTokensValuesArray(tokenPairMetadataData) {
114
147
  return [
@@ -1 +1 @@
1
- {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,gEAAqC;AACrC,2CAOqB;AACrB,6CAM2B;AAC3B,iDAAqD;AAErD,uCAA0C;AAI1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,4BAAgB,CAAC,CAAC;IAC1E,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,oBAAoB,GAAuC,IAAI,GAAG,EAAE,CAAC;IAC3E,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC7B,IACE,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,8BAAkB,CAAC;YAC1C,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,gCAAoB,CAAC;YAE5C,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,IAAA,uBAAe,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEnD,IAAI,WAAW,CAAC,IAAI,KAAK,gBAAQ;YAAE,SAAS;QAC5C,IAAI,CAAC,WAAW,CAAC,IAAI;YAA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E,sBAAU;YACd,MAAM,EAAE,CAAC;YACT,OAAO,EAAE,QAAQ,CAAC,IAAI;YACtB,SAAS,EAAE,0BAAS,CAAC,KAAK;YAC1B,UAAU,EAAV,sBAAU;YACV,QAAQ,EAAE,UAAU;YACpB,KAAK;YACL,WAAW;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,SAAS,oBAAoB,CAC3B,qBAA4C;IAE5C,OAAO;QACL,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;QAClD,IAAI,sBAAS,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;KACnD,CAAC;AACJ,CAAC;AAED,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"lpTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/lpTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AACrC,2CAOqB;AACrB,6CAM2B;AAC3B,iDAAqD;AAErD,uCAA0C;AAG1C,4DAAyD;AAEzD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EACzC,UAAU,EACV,4BAAgB,CACjB,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,EAAE,CAC7B,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC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C;AACJ,CAAC;AAED,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -71,6 +71,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
71
71
  platformId: 'thala',
72
72
  type: portfolio_core_1.PortfolioElementType.liquidity,
73
73
  label: 'Staked',
74
+ name: 'Stability',
74
75
  value,
75
76
  data: {
76
77
  liquidities,
@@ -1 +1 @@
1
- {"version":3,"file":"stabilityPoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/stabilityPoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAMqB;AACrB,6CAA4C;AAC5C,iDAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,wBAAwB,GAAG,MAAM,IAAA,eAAO,EAC5C,UAAU,EACV,IAAA,mCAAuB,EAAC,KAAK,CAAC,CAC/B,CAAC;IACF,IAAI,CAAC,wBAAwB,IAAI,wBAAwB,CAAC,MAAM,KAAK,CAAC;QACpE,OAAO,EAAE,CAAC;IAEZ,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,CAAC,mBAAmB;QAAE,OAAO,EAAE,CAAC;IAEpC,MAAM,aAAa,GAAG,IAAI,sBAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,CAAC;SAChE,GAAG,CAAC,SAAA,EAAE,EAAI,6BAAY,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;SACvC,QAAQ,EAAE,CAAC;IACd,IAAI,aAAa,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IA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AC,IAAI,CAAC,CAAC,CAAC,iBAAiB,GAAG,WAAW,CAAC;IAE9E,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,KAAK,EAAE,EAAE,MAAM,EAAE,sBAAU,EAAE,CAAC,CAAC;IACvE,IAAI,GAAG,EAAE,CAAC;QACR,MAAM,CAAC,IAAI,CAAC;YACV,GAAG;YACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;SACnB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,SAAS,GAAuB;QACpC,KAAK;QACL,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,WAAW;QACX,YAAY,EAAE,CAAC,YAAY,CAAC;QAC5B,iBAAiB;QACjB,MAAM;KACP,CAAC;IACF,MAAM,WAAW,GAAyB,CAAC,SAAS,CAAC,CAAC;IAEtD,MAAM,eAAe,GAA8B;QACjD,SAAS,EAAE,0BAAS,CAAC,KAAK;QAC1B,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,qCAAoB,CAAC,SAAS;QACpC,KAAK,EAAE,QAAQ;QACf,KAAK;QACL,IAAI,EAAE;YACJ,WAAW;SACZ;KACF,CAAC;IACF,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stabilityPoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/stabilityPoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAMqB;AACrB,6CAA4C;AAC5C,iDAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,E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BAAS,CAAC,KAAK;QAC1B,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,qCAAoB,CAAC,SAAS;QACpC,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,WAAW;QACjB,KAAK;QACL,IAAI,EAAE;YACJ,WAAW;SACZ;KACF,CAAC;IACF,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -76,3 +76,20 @@ export declare enum PoolType {
76
76
  WEIGHTED = 0,
77
77
  STABLE = 1
78
78
  }
79
+ export type Farming = {
80
+ pool_info: PoolInfo[];
81
+ };
82
+ export type PoolInfo = {
83
+ poolId: string;
84
+ stake_coin: string;
85
+ extra_reward_coins: string[];
86
+ };
87
+ export type StakeAndRewardAmount = {
88
+ poolId: number;
89
+ coinType: string;
90
+ amount: string;
91
+ rewards: {
92
+ amount: string;
93
+ coinType: string;
94
+ }[];
95
+ };
@@ -54,6 +54,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
54
54
  networkId: portfolio_core_1.NetworkId.aptos,
55
55
  platformId: constants_1.platformId,
56
56
  label: 'Lending',
57
+ name: 'Vault',
57
58
  value,
58
59
  data: {
59
60
  borrowedAssets,
@@ -1 +1 @@
1
- {"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAA+D;AAC/D,iDAAqD;AACrD,6CAAuE;AAEvE,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEpC,MAAM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,EAAE,SAAS;YAChB,IAAI,EAAE,OAAO;YACb,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,aAAa,EAAE;YACnE,MAAM,EAAE,sBAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,CAAC;YAAE,SAAS;QAE5D,MAAM,oBAAoB,GAAY;YACpC;gBACE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,iBAAiB,CAAC;gBACjC,GAAG,EAAE,CAAC,iBAAiB;aACxB;SACF,CAAC;QACF,cAAc,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const constants_1 = require("./constants");
18
+ const aptos_1 = require("../../utils/aptos");
19
+ const clients_1 = require("../../utils/clients");
20
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const connection = (0, clients_1.getClientAptos)();
23
+ const coinTypes = [constants_1.thlCoin, constants_1.thlModPool];
24
+ const amounts = yield Promise.all(coinTypes.map((coinType) => (0, aptos_1.getView)(connection, (0, constants_1.vetokenBalancePayload)(owner, coinType)).then((veTokenBalanceView) => veTokenBalanceView ? veTokenBalanceView[0] : null)));
25
+ if (amounts.filter((a) => a && a !== '0').length === 0)
26
+ return [];
27
+ const tokenPrices = yield cache.getTokenPricesAsMap(coinTypes.map((c) => (0, portfolio_core_1.formatMoveTokenAddress)(c)), portfolio_core_1.NetworkId.aptos);
28
+ const assets = [];
29
+ coinTypes.forEach((coinType, i) => {
30
+ const rawAmount = amounts[i];
31
+ if (!rawAmount)
32
+ return;
33
+ const tokenPrice = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(coinType));
34
+ if (!tokenPrice)
35
+ return;
36
+ assets.push((0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(rawAmount).div(Math.pow(10, tokenPrice.decimals)).toNumber(), portfolio_core_1.NetworkId.aptos, tokenPrice));
37
+ });
38
+ if (assets.length === 0)
39
+ return [];
40
+ const value = (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value));
41
+ const liquidity = {
42
+ value,
43
+ assets,
44
+ assetsValue: value,
45
+ rewardAssets: [],
46
+ rewardAssetsValue: null,
47
+ yields: [],
48
+ };
49
+ const liquidities = [liquidity];
50
+ const elementMultiple = {
51
+ networkId: portfolio_core_1.NetworkId.aptos,
52
+ platformId: 'thala',
53
+ type: portfolio_core_1.PortfolioElementType.liquidity,
54
+ label: 'Staked',
55
+ name: 'veTHL',
56
+ value,
57
+ data: {
58
+ liquidities,
59
+ },
60
+ };
61
+ return [elementMultiple];
62
+ });
63
+ const fetcher = {
64
+ id: `${constants_1.platformId}-vethl`,
65
+ networkId: portfolio_core_1.NetworkId.aptos,
66
+ executor,
67
+ };
68
+ exports.default = fetcher;
69
+ //# sourceMappingURL=vethlFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vethlFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vethlFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,6CAA4C;AAC5C,iDAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEpC,MAAM,SAAS,GAAG,CAAC,mBAAO,EAAE,sBAAU,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CACzB,IAAA,eAAO,EAAC,UAAU,EAAE,IAAA,iCAAqB,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAC9D,CAAC,kBAAkB,EAAE,EAAE,CACrB,kBAAkB,CAAC,CAAC,CAAE,kBAAkB,CAAC,CAAC,CAAY,CAAC,CAAC,CAAC,IAAI,CAChE,CACF,CACF,CAAC;IAEF,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CA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