@sonarwatch/portfolio-plugins 0.14.140 → 0.14.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +1 -1
  3. package/src/AirdropFetcher.js +1 -2
  4. package/src/AirdropFetcher.js.map +1 -1
  5. package/src/Fetcher.js +1 -5
  6. package/src/Fetcher.js.map +1 -1
  7. package/src/index.d.ts +1 -0
  8. package/src/index.js +3 -1
  9. package/src/index.js.map +1 -1
  10. package/src/plugins/01/constants.d.ts +1 -4
  11. package/src/plugins/01/constants.js +1 -18
  12. package/src/plugins/01/constants.js.map +1 -1
  13. package/src/plugins/aave/index.d.ts +1 -2
  14. package/src/plugins/aave/index.js +1 -3
  15. package/src/plugins/aave/index.js.map +1 -1
  16. package/src/plugins/orca/constants.d.ts +1 -1
  17. package/src/plugins/orca/constants.js +2 -2
  18. package/src/plugins/orca/constants.js.map +1 -1
  19. package/src/plugins/raydium/index.js +0 -1
  20. package/src/plugins/raydium/index.js.map +1 -1
  21. package/src/plugins/zeus/constants.d.ts +2 -2
  22. package/src/plugins/zeus/constants.js +2 -7
  23. package/src/plugins/zeus/constants.js.map +1 -1
  24. package/src/plugins/zeus/delegationsFetcher.js +1 -1
  25. package/src/plugins/zeus/delegationsFetcher.js.map +1 -1
  26. package/src/plugins/zeus/index.js +1 -1
  27. package/src/plugins/zeus/index.js.map +1 -1
  28. package/src/utils/solana/isActive.d.ts +2 -0
  29. package/src/utils/solana/isActive.js +39 -0
  30. package/src/utils/solana/isActive.js.map +1 -0
  31. package/src/plugins/aave/services.d.ts +0 -30
  32. package/src/plugins/aave/services.js +0 -181
  33. package/src/plugins/aave/services.js.map +0 -1
  34. package/src/utils/misc/promiseTimeout.d.ts +0 -1
  35. package/src/utils/misc/promiseTimeout.js +0 -13
  36. package/src/utils/misc/promiseTimeout.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.142](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.141...plugins-0.14.142) (2025-03-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **zeus:** platform import ([b226e34](https://github.com/sonarwatch/portfolio/commit/b226e3481410d33cf39bd64730c51329dd449860))
11
+
12
+
13
+ ### Reverts
14
+
15
+ * Revert "add tx fetching for rpc performance optimization" ([25d669b](https://github.com/sonarwatch/portfolio/commit/25d669b6660b3d3e2c38fae14800dc9cb89e3a1b))
16
+ * Revert "test" ([bbf8b3c](https://github.com/sonarwatch/portfolio/commit/bbf8b3ca3f4da142b65119c864866122106489b6))
17
+
18
+
19
+
20
+ ## [0.14.141](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.140...plugins-0.14.141) (2025-03-12)
21
+
22
+
23
+
5
24
  ## [0.14.140](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.139...plugins-0.14.140) (2025-03-12)
6
25
 
7
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.140",
3
+ "version": "0.14.142",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.airdropFetcherToFetcher = exports.runAirdropFetcher = exports.runAirdropFetchers = exports.getAirdropRaw = exports.runAirdropFetchersByNetworkId = exports.setAirdropItemPrices = exports.airdropItemPriceCachePrefix = void 0;
16
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
- const promiseTimeout_1 = __importDefault(require("./utils/misc/promiseTimeout"));
18
17
  const tokenPriceToAssetToken_1 = __importDefault(require("./utils/misc/tokenPriceToAssetToken"));
19
18
  const runInParallel_1 = __importDefault(require("./utils/misc/runInParallel"));
20
19
  exports.airdropItemPriceCachePrefix = 'airdropitemprice';
@@ -207,7 +206,7 @@ function runAirdropFetcher(owner, fetcher, cache, useCache = false) {
207
206
  date: now,
208
207
  };
209
208
  });
210
- return (0, promiseTimeout_1.default)(fetcherPromise, runAirdropFetcherTimeout, `Fetcher timed out: ${fetcher.id}`);
209
+ return (0, portfolio_core_1.promiseTimeout)(fetcherPromise, runAirdropFetcherTimeout, `Fetcher timed out: ${fetcher.id}`);
211
210
  });
212
211
  }
213
212
  exports.runAirdropFetcher = runAirdropFetcher;
@@ -1 +1 @@
1
- {"version":3,"file":"AirdropFetcher.js","sourceRoot":"","sources":["../../../../packages/plugins/src/AirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DA4BoC;AAEpC,iFAAyD;AAEzD,iGAAyE;AACzE,+EAAuD;AAa1C,QAAA,2BAA2B,GAAG,kBAAkB,CAAC;AAC9D,SAAsB,oBAAoB,CACxC,MAGG,EACH,SAAwB,EACxB,KAAY;;QAEZ,MAAM,KAAK,CAAC,QAAQ,CAClB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;YAChC,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,KAAK;SACb,CAAC,CAAC,EACH;YACE,SAAS;YACT,MAAM,EAAE,mCAA2B;SACpC,CACF,CAAC;IACJ,CAAC;CAAA;AAlBD,oDAkBC;AAED,SAAe,oBAAoB,CACjC,MAAgB,EAChB,UAAyB,EACzB,KAAY;;QAEZ,MAAM,SAAS,GAA0B,IAAI,GAAG,EAAE,CAAC;QACnD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,SAAS,CAAC;QAE1C,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAS,MAAM,EAAE;YAClD,SAAS,EAAE,UAAU;YACrB,MAAM,EAAE,mCAA2B;SACpC,CAAC,CAAC;Q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E,EACtD,OAAO,CAAC,SAAS,CAClB;oBACH,CAAC,CAAC;wBACE,IAAI,EAAE,mCAAkB,CAAC,OAAO;wBAChC,IAAI,EAAE;4BACJ,MAAM,EAAE,IAAI,CAAC,MAAM;4BACnB,KAAK,EAAE,IAAI,CAAC,KAAK;yBAClB;wBACD,IAAI,EAAE,IAAI,CAAC,KAAK;wBAChB,SAAS,EAAE,cAAc,CAAC,SAAS;wBACnC,UAAU,EAAE;4BACV,WAAW,EAAE,IAAI;4BACjB,WAAW,EAAE,OAAO,CAAC,UAAU;yBAChC;wBACD,KAAK,EAAE,IAAI,CAAC,KAAK;wBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;wBACvB,IAAI,EAAE,OAAO,CAAC,SAAS;qBACxB,CAAC;gBACN,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;YAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,EAAE,CAAC;YACnC,OAAO;gBACL;oBACE,SAAS,EAAE,cAAc,CAAC,SAAS;oBACnC,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE;wBACJ,MAAM;qBACP;oBACD,UAAU;oBACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;oBACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;oBACjD,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,SAAS;iBAChC;aACF,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;AACJ,CAAC;AA5ED,0DA4EC"}
1
+ {"version":3,"file":"AirdropFetcher.js","sourceRoot":"","sources":["../../../../packages/plugins/src/AirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DA6BoC;AAGpC,iGAAyE;AACzE,+EAAuD;AAa1C,QAAA,2BAA2B,GAAG,kBAAkB,CAAC;A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AAK,CAAC;gBAAE,OAAO,EAAE,CAAC;YACnC,OAAO;gBACL;oBACE,SAAS,EAAE,cAAc,CAAC,SAAS;oBACnC,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE;wBACJ,MAAM;qBACP;oBACD,UAAU;oBACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;oBACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;oBACjD,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,SAAS;iBAChC;aACF,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;AACJ,CAAC;AA5ED,0DA4EC"}
package/src/Fetcher.js CHANGED
@@ -8,13 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.runFetcher = exports.runFetchersByNetworkId = exports.runFetchers = void 0;
16
13
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
- const promiseTimeout_1 = __importDefault(require("./utils/misc/promiseTimeout"));
18
14
  const runFetcherTimeout = 60000;
19
15
  function runFetchers(owner, addressSystem, fetchers, cache) {
20
16
  return __awaiter(this, void 0, void 0, function* () {
@@ -82,7 +78,7 @@ function runFetcher(owner, fetcher, cache) {
82
78
  duration: Date.now() - startDate,
83
79
  elements: elements.map((e) => (0, portfolio_core_1.sortPortfolioElement)(e)),
84
80
  }));
85
- return (0, promiseTimeout_1.default)(fetcherPromise, runFetcherTimeout, `Fetcher timed out: ${fetcher.id}`);
81
+ return (0, portfolio_core_1.promiseTimeout)(fetcherPromise, runFetcherTimeout, `Fetcher timed out: ${fetcher.id}`);
86
82
  });
87
83
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,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;YAChC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,qCAAoB,EAAC,CAAC,CAAC,CAAC;SACvD,CAAC,CACH,CAAC;QACF,OAAO,IAAA,+BAAc,EACnB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,OAAO,CAAC,EAAE,EAAE,CACnC,CAAC;IACJ,CAAC;CAAA;AArBD,gCAqBC"}
package/src/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { AirdropFetcher } from './AirdropFetcher';
4
4
  import { Job } from './Job';
5
5
  export { walletTokensPlatform, walletNftsPlatform, } from './plugins/tokens/constants';
6
6
  export { getFetchersByAddressSystem } from './utils/misc/getFetchersByAddressSystem';
7
+ export { isSolanaAddressActive } from './utils/solana/isActive';
7
8
  export * from './Cache';
8
9
  export * from './Fetcher';
9
10
  export * from './AirdropFetcher';
package/src/index.js CHANGED
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.airdropFetchersByAddressSystem = exports.airdropFetchers = exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = exports.solanaSimpleFetcher = exports.jupFetcherIds = exports.getLlamaProtocolsJob = exports.getFetchersByAddressSystem = exports.walletNftsPlatform = exports.walletTokensPlatform = void 0;
29
+ exports.airdropFetchersByAddressSystem = exports.airdropFetchers = exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = exports.solanaSimpleFetcher = exports.jupFetcherIds = exports.getLlamaProtocolsJob = exports.isSolanaAddressActive = exports.getFetchersByAddressSystem = exports.walletNftsPlatform = exports.walletTokensPlatform = void 0;
30
30
  const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressSystem");
31
31
  const orphanPlatforms = __importStar(require("./orphanPlatforms"));
32
32
  // PLUGINS
@@ -190,6 +190,8 @@ Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get:
190
190
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
191
191
  var getFetchersByAddressSystem_2 = require("./utils/misc/getFetchersByAddressSystem");
192
192
  Object.defineProperty(exports, "getFetchersByAddressSystem", { enumerable: true, get: function () { return getFetchersByAddressSystem_2.getFetchersByAddressSystem; } });
193
+ var isActive_1 = require("./utils/solana/isActive");
194
+ Object.defineProperty(exports, "isSolanaAddressActive", { enumerable: true, get: function () { return isActive_1.isSolanaAddressActive; } });
193
195
  __exportStar(require("./Cache"), exports);
194
196
  __exportStar(require("./Fetcher"), exports);
195
197
  __exportStar(require("./AirdropFetcher"), exports);
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,mEAAqD;AAErD,UAAU;AACV,yDAA2C;AAC3C,oEAAsD;AACtD,mEAAqD;AACrD,6DAA+C;AAC/C,6DAA+C;AAC/C,uDAAyC;AACzC,qDAAuC;AACvC,2DAA6C;AAC7C,qDAAuC;AACvC,2DAA6C;AAC7C,uDAAyC;AACzC,yDAA2C;AAC3C,uDAAyC;AACzC,yDAA2C;AAC3C,yDAA2C;AAC3C,qDAAuC;AACvC,sEAAwD;AACxD,yDAA2C;AAC3C,uDAAyC;AACzC,uDAAyC;AACzC,gEAAkD;AAClD,gFAAkE;AAClE,mEAAqD;AACrD,+DAAiD;AACjD,iEAAmD;AACnD,mEAAqD;AACrD,uDAAyC;AACzC,yDAA2C;AAC3C,yDAA2C;AAC3C,qDAAuC;AACvC,2DAA6C;AAC7C,kEAAoD;AACpD,qDAAuC;AACvC,uDAAyC;AACzC,6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index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,mEAAqD;AAErD,UAAU;AACV,yDAA2C;AAC3C,oEAAsD;AACtD,mEAAqD;AACrD,6DAA+C;AAC/C,6DAA+C;AAC/C,uDAAyC;AACzC,qDAAuC;AACvC,2DAA6C;AAC7C,qDAAuC;AACvC,2DAA6C;AAC7C,uDAAyC;AACzC,yDAA2C;AAC3C,uDAAyC;AACzC,yDAA2C;AAC3C,yDAA2C;AAC3C,qDAAuC;AACvC,sEAAwD;AACxD,yDAA2C;AAC3C,uDAAyC;AACzC,uDAAyC;AACzC,gEAAkD;AAClD,gFAAkE;AAClE,mEAAqD;AACrD,+DAAiD;AACjD,iEAAmD;AACnD,mEAAqD;AACrD,uDAAyC;AACzC,yDAA2C;AAC3C,yDAA2C;AAC3C,qDAAuC;AACvC,2DAA6C;AAC7C,kEAAoD;AACpD,qDAAuC;AACvC,uDAAyC;AACzC,6DAA+C;AAC/C,6DAA+C;AAC/C,yDAA2C;AAC3C,2DAA6C;AAC7C,6DAA+C;AAC/C,6DAA+C;AAC/C,+DAAiD;AACjD,qDAAuC;AACvC,uDAAyC;AACzC,qDAAuC;AACvC,6DAA+C;AAC/C,2DAA6C;AAC7C,qDAAuC;AACvC,uDAAyC;AACzC,+DAAiD;AACjD,uDAAyC;AACzC,uDAAyC;AACzC,wDAA0C;AAC1C,2DAA6C;AAC7C,qDAAuC;AACvC,6DAA+C;AAC/C,qDAAuC;AACvC,+DAAiD;AACjD,iEAAmD;AACnD,uDAAyC;AACzC,uDAAyC;AACzC,qDAAuC;AACvC,4EAA8D;AAC9D,uDAAyC;AACzC,uDAAyC;AACzC,mEAAqD;AACrD,yEAA2D;AAC3D,uDAAyC;AACzC,qDAAuC;AACvC,+DAAiD;AACjD,yDAA2C;AAC3C,2EAA6D;AAC7D,qEAAuD;AACvD,qDAAuC;AACvC,mDAAqC;A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ACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;KACD,IAAI,EAAE,CAAC;AAEV,cAAc;AACD,QAAA,QAAQ,GAAc,OAAO;KACvC,GAAG,CAAC,CAAC,MAAM,EAAa,EAAE;IACzB,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,QAAqB,CAAC;IACtC,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;KACD,IAAI,EAAE,CAAC;AACG,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB,OAAO;KACrD,GAAG,CAAC,CAAC,MAAM,EAAoB,EAAE;IAChC,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,eAAmC,CAAC;IACpD,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;KACD,IAAI,EAAE,CAAC;AACG,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -1,11 +1,8 @@
1
1
  /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { PublicKey } from '@solana/web3.js';
4
- import { Contract, Platform, Service, ServiceConfig } from '@sonarwatch/portfolio-core';
4
+ import { Platform } from '@sonarwatch/portfolio-core';
5
5
  export declare const platformId = "01";
6
6
  export declare const platform: Platform;
7
7
  export declare const programId: PublicKey;
8
- export declare const contract: Contract;
9
- export declare const config: ServiceConfig;
10
- export declare const service: Service;
11
8
  export declare const mints: string[];
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mints = exports.service = exports.config = exports.contract = exports.programId = exports.platform = exports.platformId = void 0;
3
+ exports.mints = exports.programId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
6
5
  const solana_1 = require("../../utils/solana");
7
6
  const constants_1 = require("../marinade/constants");
8
7
  exports.platformId = '01';
@@ -19,22 +18,6 @@ exports.platform = {
19
18
  description: '01 Exchange is a next-gen trading experience with the speed of centralized exchanges and the integrity of decentralized finance, powered by Nord Engine.',
20
19
  };
21
20
  exports.programId = new web3_js_1.PublicKey('Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk');
22
- exports.contract = {
23
- address: exports.programId.toString(),
24
- name: 'Lending',
25
- network: portfolio_core_1.NetworkId.solana,
26
- };
27
- exports.config = {
28
- integratedOn: 1700784000000,
29
- networkId: portfolio_core_1.NetworkId.solana,
30
- contracts: [exports.contract],
31
- };
32
- exports.service = {
33
- id: `${exports.platformId}_lending`,
34
- platformId: exports.platformId,
35
- name: 'Lending',
36
- configs: [exports.config],
37
- };
38
21
  exports.mints = [
39
22
  solana_1.usdcSolanaMint,
40
23
  'So11111111111111111111111111111111111111112',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/01/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,+DAMoC;AACpC,+CAAoD;AACpD,qDAAiD;AAEpC,QAAA,UAAU,GAAG,IAAI,CAAC;AAClB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EACH,wEAAwE;IAC1E,WAAW,EAAE,IAAI,EAAE,sCAAsC;IACzD,OAAO,EAAE,oDAAoD;IAC7D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,+BAA+B;IACxC,aAAa,EAAE,qBAAqB;IACpC,YAAY,EAAE,IAAI;IAClB,WAAW,EACT,0JAA0J;CAC7J,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAa;IAChC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Aa,EAAE,qBAAqB;IACpC,YAAY,EAAE,IAAI;IAClB,WAAW,EACT,0JAA0J;CAC7J,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,KAAK,GAAG;IACnB,uBAAc;IACd,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,oBAAQ;IACR,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -1,7 +1,6 @@
1
- import { Platform, Service } from '@sonarwatch/portfolio-core';
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Job } from '../../Job';
3
3
  import { Fetcher } from '../../Fetcher';
4
4
  export declare const platforms: Platform[];
5
- export declare const services: Service[];
6
5
  export declare const jobs: Job[];
7
6
  export declare const fetchers: Fetcher[];
@@ -3,13 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetchers = exports.jobs = exports.services = exports.platforms = void 0;
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  // import lendingPoolsJob from './lendingPoolsJob';
8
8
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
9
9
  const constants_1 = require("./constants");
10
- const services_1 = require("./services");
11
10
  exports.platforms = [constants_1.platform];
12
- exports.services = [services_1.lendingV2, services_1.lendingV3];
13
11
  exports.jobs = [
14
12
  // lendingPoolsJob,
15
13
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAGA,mDAAmD;AACnD,sEAA8C;AAC9C,2CAAuC;AACvC,yCAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc,CAAC,oBAAS,EAAE,oBAAS,CAAC,CAAC;AAC7C,QAAA,IAAI,GAAU;AACzB,mBAAmB;CACpB,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,eAAe;IACf,uEAAuE;IACvE,eAAe;IACf,IAAI;IACJ,uDAAuD;IACvD,mCAAmC;IACnC,6DAA6D;IAC7D,KAAK;IACL,IAAI;IACJ,sDAAsD;IACtD,kCAAkC;IAClC,4DAA4D;IAC5D,KAAK;IACL,IAAI;IACJ,wDAAwD;IACxD,oCAAoC;IACpC,8DAA8D;IAC9D,KAAK;IACL,eAAe;IACf,uEAAuE;IACvE,eAAe;IACf,wBAAc;CACf,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAGA,mDAAmD;AACnD,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;AACzB,mBAAmB;CACpB,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,eAAe;IACf,uEAAuE;IACvE,eAAe;IACf,IAAI;IACJ,uDAAuD;IACvD,mCAAmC;IACnC,6DAA6D;IAC7D,KAAK;IACL,IAAI;IACJ,sDAAsD;IACtD,kCAAkC;IAClC,4DAA4D;IAC5D,KAAK;IACL,IAAI;IACJ,wDAAwD;IACxD,oCAAoC;IACpC,8DAA8D;IAC9D,KAAK;IACL,eAAe;IACf,uEAAuE;IACvE,eAAe;IACf,wBAAc;CACf,CAAC"}
@@ -8,6 +8,6 @@ export declare const orcaStakingPlatformId = "orca-staking";
8
8
  export declare const orcaStakingPlatform: Platform;
9
9
  export declare const poolsProgram: PublicKey;
10
10
  export declare const aquafarmsProgram: PublicKey;
11
+ export declare const whirlpoolProgram: PublicKey;
11
12
  export declare const positionsIdentifiers: string[];
12
13
  export declare const whirlpoolPrefix = "orca-whirlpool";
13
- export declare const whirlpoolProgram: PublicKey;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.whirlpoolProgram = exports.whirlpoolPrefix = exports.positionsIdentifiers = exports.aquafarmsProgram = exports.poolsProgram = exports.orcaStakingPlatform = exports.orcaStakingPlatformId = exports.platform = exports.platformId = void 0;
3
+ exports.whirlpoolPrefix = exports.positionsIdentifiers = exports.whirlpoolProgram = exports.aquafarmsProgram = exports.poolsProgram = exports.orcaStakingPlatform = exports.orcaStakingPlatformId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'orca';
6
6
  exports.platform = {
@@ -26,7 +26,7 @@ exports.orcaStakingPlatform = {
26
26
  };
27
27
  exports.poolsProgram = new web3_js_1.PublicKey('9W959DqEETiGZocYWCQPaJ6sBmUzgfxXfqGeTEdp3aQP');
28
28
  exports.aquafarmsProgram = new web3_js_1.PublicKey('82yxjeMsvaURa4MbZZ7WZZHfobirZYkH1zF8fmeGtyaQ');
29
+ exports.whirlpoolProgram = new web3_js_1.PublicKey('whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc');
29
30
  exports.positionsIdentifiers = ['Orca Whirlpool Position', 'OWP'];
30
31
  exports.whirlpoolPrefix = `${exports.platformId}-whirlpool`;
31
- exports.whirlpoolProgram = new web3_js_1.PublicKey('whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc');
32
32
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,0EAA0E;IAC5E,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,MAAM,EAAE,4BAA4B;IACpC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,6BAA6B;IACrC,aAAa,EAAE,uBAAuB;IACtC,MAAM,EAAE,CAAC,6CAA6C,CAAC;IACvD,WAAW,EACT,yEAAyE;CAC5E,CAAC;AAEW,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;AAC1D,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAC5C,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,0EAA0E;IAC5E,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,MAAM,EAAE,4BAA4B;IACpC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,6BAA6B;IACrC,aAAa,EAAE,uBAAuB;IACtC,MAAM,EAAE,CAAC,6CAA6C,CAAC;IACvD,WAAW,EACT,yEAAyE;CAC5E,CAAC;AAEW,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;AAC1D,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC"}
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.fetchers = exports.jobs = exports.platforms = void 0;
7
- // import lpTokensJob from './lpTokensJob';
8
7
  const ammV2ApiJob_1 = __importDefault(require("./ammV2ApiJob"));
9
8
  const clmmJob_1 = __importDefault(require("./clmmJob"));
10
9
  const cpmmJob_1 = __importDefault(require("./cpmmJob"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA2C;AAC3C,gEAA2C;AAC3C,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,2CAAuC;AACvC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAc,EAAE,kBAAQ,EAAE,iBAAO,EAAE,iBAAO,CAAC,CAAC;AAC3D,QAAA,QAAQ,GAAc,CAAC,sBAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAA2C;AAC3C,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAClC,2CAAuC;AACvC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAc,EAAE,kBAAQ,EAAE,iBAAO,EAAE,iBAAO,CAAC,CAAC;AAC3D,QAAA,QAAQ,GAAc,CAAC,sBAAY,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Contract, Platform } from '@sonarwatch/portfolio-core';
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const zeusMint = "ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq";
3
3
  export declare const platformId = "zeus";
4
4
  export declare const platform: Platform;
5
- export declare const zeusNodeDelegateContract: Contract;
5
+ export declare const programId = "ZPLt7XEyRvRxEZcGFGnRKGLBymFjQbwmgTZhMAMfGAU";
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zeusNodeDelegateContract = exports.platform = exports.platformId = exports.zeusMint = void 0;
4
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
3
+ exports.programId = exports.platform = exports.platformId = exports.zeusMint = void 0;
5
4
  exports.zeusMint = 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq';
6
5
  exports.platformId = 'zeus';
7
6
  exports.platform = {
@@ -17,9 +16,5 @@ exports.platform = {
17
16
  medium: 'https://medium.com/@zeus-network',
18
17
  description: 'First Multichain Layer on Solana.',
19
18
  };
20
- exports.zeusNodeDelegateContract = {
21
- name: `${exports.platform.name} Delegate`,
22
- address: 'ZPLt7XEyRvRxEZcGFGnRKGLBymFjQbwmgTZhMAMfGAU',
23
- network: portfolio_core_1.NetworkId.solana,
24
- };
19
+ exports.programId = 'ZPLt7XEyRvRxEZcGFGnRKGLBymFjQbwmgTZhMAMfGAU';
25
20
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/constants.ts"],"names":[],"mappings":";;;AAAA,+DAA2E;AAE9D,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,+BAA+B;IAC9C,MAAM,EAAE,CAAC,gBAAQ,CAAC;IAClB,MAAM,EAAE,kCAAkC;IAC1C,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,kCAAkC;IAC1C,WAAW,EAAE,mCAAmC;CACjD,CAAC;AAEW,QAAA,wBAAwB,GAAa;IAChD,IAAI,EAAE,GAAG,gBAAQ,CAAC,IAAI,WAAW;IACjC,OAAO,EAAE,6CAA6C;IACtD,OAAO,EAAE,0BAAS,CAAC,MAAM;CAC1B,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,+BAA+B;IAC9C,MAAM,EAAE,CAAC,gBAAQ,CAAC;IAClB,MAAM,EAAE,kCAAkC;IAC1C,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,kCAAkC;IAC1C,WAAW,EAAE,mCAAmC;CACjD,CAAC;AAEW,QAAA,SAAS,GAAG,6CAA6C,CAAC"}
@@ -23,7 +23,7 @@ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
23
23
  const secondsInADay = 86400;
24
24
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
25
  const client = (0, clients_1.getClientSolana)();
26
- const accounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.delegationStruct, new web3_js_1.PublicKey(constants_1.zeusNodeDelegateContract.address))
26
+ const accounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.delegationStruct, new web3_js_1.PublicKey(constants_1.programId))
27
27
  .addFilter('accountDiscriminator', [47, 21, 138, 89, 209, 154, 59, 130])
28
28
  .addFilter('delegator', new web3_js_1.PublicKey(owner))
29
29
  .run();
@@ -1 +1 @@
1
- {"version":3,"file":"delegationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/delegationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAA6E;AAC7E,iDAAsD;AACtD,kEAA+D;AAC/D,uCAA6C;AAC7C,gFAA6E;AAE7E,MAAM,aAAa,GAAG,KAAK,CAAC;AAE5B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,qBAAS,CAAC,KAAK,CACpC,MAAM,EACN,0BAAgB,EAChB,IAAI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CAAC,WAAW,CAAC;aAClB,SAAS,CAAC,OAAO,CAAC,CAAC;QAEtB,MAAM,eAAe,GAAG,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC;YACvE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;YAC3C,CAAC,CAAC,IAAI,sBAAS,CAAC,CAAC,CAAC,CAAC;QAErB,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS;aAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,aAAa,CAAC;aACtC,KAAK,CAAC,IAAI,CAAC;aACX,QAAQ,EAAE,CAAC;QAEd,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,eAAe;SACxB,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,EAAE,CAAC;YAC7B,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,oBAAQ;gBACjB,MAAM,EAAE,OAAO,CAAC,eAAe;gBAC/B,UAAU,EAAE;oBACV,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"delegationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/delegationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAA8D;AAC9D,iDAAsD;AACtD,kEAA+D;AAC/D,uCAA6C;AAC7C,gFAA6E;AAE7E,MAAM,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|| function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.platforms = exports.fetchers = exports.jobs = void 0;
7
- const constants_1 = require("../zeta/constants");
7
+ const constants_1 = require("./constants");
8
8
  const delegationsFetcher_1 = __importDefault(require("./delegationsFetcher"));
9
9
  exports.jobs = [];
10
10
  exports.fetchers = [delegationsFetcher_1.default];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/index.ts"],"names":[],"mappings":";;;;;;AAGA,iDAA6C;AAC7C,8EAAsD;AAEzC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,4BAAkB,CAAC,CAAC;AAC3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8EAAsD;AAEzC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,4BAAkB,CAAC,CAAC;AAC3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Cache } from '../../Cache';
2
+ export declare function isSolanaAddressActive(cache: Cache, address: string): Promise<boolean>;
@@ -0,0 +1,39 @@
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
+ exports.isSolanaAddressActive = void 0;
13
+ const web3_js_1 = require("@solana/web3.js");
14
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
15
+ const clients_1 = require("../clients");
16
+ function isSolanaAddressActive(cache, address) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ (0, portfolio_core_1.assertSolanaAddress)(address);
19
+ const isActiveFromCache = yield cache.getItem(address, {
20
+ prefix: 'isActive',
21
+ });
22
+ if (isActiveFromCache)
23
+ return true;
24
+ const client = (0, clients_1.getClientSolana)();
25
+ const tx = yield client.getSignaturesForAddress(new web3_js_1.PublicKey(address), {
26
+ limit: 1,
27
+ });
28
+ if (tx.length === 0) {
29
+ return false;
30
+ }
31
+ yield cache.setItem(address, true, {
32
+ prefix: 'isActive',
33
+ ttl: 60 * 60 * 24 * 30, // 30 days
34
+ });
35
+ return true;
36
+ });
37
+ }
38
+ exports.isSolanaAddressActive = isSolanaAddressActive;
39
+ //# sourceMappingURL=isActive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isActive.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/isActive.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAAiE;AACjE,wCAA6C;AAG7C,SAAsB,qBAAqB,CACzC,KAAY,EACZ,OAAe;;QAEf,IAAA,oCAAmB,EAAC,OAAO,CAAC,CAAC;QAC7B,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAU,OAAO,EAAE;YAC9D,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,IAAI,iBAAiB;YAAE,OAAO,IAAI,CAAC;QAEnC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,mBAAS,CAAC,OAAO,CAAC,EAAE;YACtE,KAAK,EAAE,CAAC;SACT,CAAC,CAAC;QAEH,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE;YACjC,MAAM,EAAE,UAAU;YAClB,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU;SACnC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAxBD,sDAwBC"}
@@ -1,30 +0,0 @@
1
- import { Contract, Service, ServiceConfig } from '@sonarwatch/portfolio-core';
2
- export declare const ethV2MainLendProvider: Contract;
3
- export declare const ethV2AMMLendProvider: Contract;
4
- export declare const ethV2IncentiveProvider: Contract;
5
- export declare const ethV2DataProvider: Contract;
6
- export declare const polygonV2LendProvider: Contract;
7
- export declare const polygonV2IncentiveProvider: Contract;
8
- export declare const polygonV2DataProvider: Contract;
9
- export declare const avalancheV2LendProvider: Contract;
10
- export declare const avalancheV2IncentiveProvider: Contract;
11
- export declare const avalancheV2DataProvider: Contract;
12
- export declare const ethMainV2Config: ServiceConfig;
13
- export declare const ethAMMV2Config: ServiceConfig;
14
- export declare const polygonV2Config: ServiceConfig;
15
- export declare const avalancheV2Config: ServiceConfig;
16
- export declare const lendingV2: Service;
17
- export declare const v3LendProviderAddress = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb";
18
- export declare const avalancheV3LendProvider: Contract;
19
- export declare const avalancheV3IncentiveProvider: Contract;
20
- export declare const avalancheV3DataProvider: Contract;
21
- export declare const polygonV3LendProvider: Contract;
22
- export declare const polygonV3IncentiveProvider: Contract;
23
- export declare const polygonV3DataProvider: Contract;
24
- export declare const ethereumV3LendProvider: Contract;
25
- export declare const ethereumV3IncentiveProvider: Contract;
26
- export declare const ethereumV3DataProvider: Contract;
27
- export declare const avalancheV3Config: ServiceConfig;
28
- export declare const polygonV3Config: ServiceConfig;
29
- export declare const ethereumV3Config: ServiceConfig;
30
- export declare const lendingV3: Service;
@@ -1,181 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lendingV3 = exports.ethereumV3Config = exports.polygonV3Config = exports.avalancheV3Config = exports.ethereumV3DataProvider = exports.ethereumV3IncentiveProvider = exports.ethereumV3LendProvider = exports.polygonV3DataProvider = exports.polygonV3IncentiveProvider = exports.polygonV3LendProvider = exports.avalancheV3DataProvider = exports.avalancheV3IncentiveProvider = exports.avalancheV3LendProvider = exports.v3LendProviderAddress = exports.lendingV2 = exports.avalancheV2Config = exports.polygonV2Config = exports.ethAMMV2Config = exports.ethMainV2Config = exports.avalancheV2DataProvider = exports.avalancheV2IncentiveProvider = exports.avalancheV2LendProvider = exports.polygonV2DataProvider = exports.polygonV2IncentiveProvider = exports.polygonV2LendProvider = exports.ethV2DataProvider = exports.ethV2IncentiveProvider = exports.ethV2AMMLendProvider = exports.ethV2MainLendProvider = void 0;
4
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
- const constants_1 = require("./constants");
6
- exports.ethV2MainLendProvider = {
7
- address: '0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5',
8
- name: 'Aave V2 Main Lenging Pool Provider',
9
- network: portfolio_core_1.NetworkId.ethereum,
10
- };
11
- exports.ethV2AMMLendProvider = {
12
- address: '0xAcc030EF66f9dFEAE9CbB0cd1B25654b82cFA8d5',
13
- name: 'Aave V2 AMM Lenging Pool Provider',
14
- network: portfolio_core_1.NetworkId.ethereum,
15
- };
16
- exports.ethV2IncentiveProvider = {
17
- address: '0xD01ab9a6577E1D84F142e44D49380e23A340387d',
18
- name: 'Aave V2 Incentive Provider',
19
- network: portfolio_core_1.NetworkId.ethereum,
20
- };
21
- exports.ethV2DataProvider = {
22
- address: '0x00e50FAB64eBB37b87df06Aa46b8B35d5f1A4e1A',
23
- name: 'Aave V2 Data Provider',
24
- network: portfolio_core_1.NetworkId.ethereum,
25
- };
26
- exports.polygonV2LendProvider = {
27
- address: '0xd05e3E715d945B59290df0ae8eF85c1BdB684744',
28
- name: 'Aave V2 Lenging Pool Provider',
29
- network: portfolio_core_1.NetworkId.polygon,
30
- };
31
- exports.polygonV2IncentiveProvider = {
32
- address: '0x874313A46e4957D29FAAC43BF5Eb2B144894f557',
33
- name: 'Aave V2 Incentive Provider',
34
- network: portfolio_core_1.NetworkId.polygon,
35
- };
36
- exports.polygonV2DataProvider = {
37
- address: '0xC69728f11E9E6127733751c8410432913123acf1',
38
- name: 'Aave V2 Data Provider',
39
- network: portfolio_core_1.NetworkId.polygon,
40
- };
41
- exports.avalancheV2LendProvider = {
42
- address: '0xb6A86025F0FE1862B372cb0ca18CE3EDe02A318f',
43
- name: 'Aave V2 Lenging Pool Provider',
44
- network: portfolio_core_1.NetworkId.avalanche,
45
- };
46
- exports.avalancheV2IncentiveProvider = {
47
- address: '0x11979886A6dBAE27D7a72c49fCF3F23240D647bF',
48
- name: 'Aave V2 Incentive Provider',
49
- network: portfolio_core_1.NetworkId.avalanche,
50
- };
51
- exports.avalancheV2DataProvider = {
52
- address: '0x00e50FAB64eBB37b87df06Aa46b8B35d5f1A4e1A',
53
- name: 'Aave V2 Data Provider',
54
- network: portfolio_core_1.NetworkId.avalanche,
55
- };
56
- exports.ethMainV2Config = {
57
- integratedOn: 1692489600000,
58
- networkId: portfolio_core_1.NetworkId.ethereum,
59
- contracts: [exports.ethV2MainLendProvider, exports.ethV2IncentiveProvider, exports.ethV2DataProvider],
60
- link: 'https://app.aave.com/?marketName=proto_mainnet',
61
- };
62
- exports.ethAMMV2Config = {
63
- integratedOn: 1692489600000,
64
- networkId: portfolio_core_1.NetworkId.ethereum,
65
- contracts: [exports.ethV2AMMLendProvider, exports.ethV2IncentiveProvider, exports.ethV2DataProvider],
66
- link: 'https://app.aave.com/?marketName=amm_mainnet',
67
- };
68
- exports.polygonV2Config = {
69
- integratedOn: 1692489600000,
70
- networkId: portfolio_core_1.NetworkId.polygon,
71
- contracts: [
72
- exports.polygonV2LendProvider,
73
- exports.polygonV2IncentiveProvider,
74
- exports.polygonV2DataProvider,
75
- ],
76
- link: 'https://app.aave.com/?marketName=proto_polygon',
77
- };
78
- exports.avalancheV2Config = {
79
- integratedOn: 1692489600000,
80
- networkId: portfolio_core_1.NetworkId.avalanche,
81
- contracts: [
82
- exports.avalancheV2LendProvider,
83
- exports.avalancheV2IncentiveProvider,
84
- exports.avalancheV2DataProvider,
85
- ],
86
- link: 'https://app.aave.com/?marketName=proto_avalanche',
87
- };
88
- exports.lendingV2 = {
89
- id: `${constants_1.platformId}_v2`,
90
- platformId: constants_1.platformId,
91
- name: 'Aave V2',
92
- configs: [
93
- exports.ethMainV2Config,
94
- exports.ethAMMV2Config,
95
- exports.polygonV2Config,
96
- exports.avalancheV2Config,
97
- ],
98
- };
99
- exports.v3LendProviderAddress = '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb';
100
- exports.avalancheV3LendProvider = {
101
- address: exports.v3LendProviderAddress,
102
- name: 'Aave V3 Lenging Pool Provider',
103
- network: portfolio_core_1.NetworkId.avalanche,
104
- };
105
- exports.avalancheV3IncentiveProvider = {
106
- address: '0x645654D59A5226CBab969b1f5431aA47CBf64ab8',
107
- name: 'Aave V3 Incentive Provider',
108
- network: portfolio_core_1.NetworkId.avalanche,
109
- };
110
- exports.avalancheV3DataProvider = {
111
- address: '0x204f2Eb81D996729829debC819f7992DCEEfE7b1',
112
- name: 'Aave V3 Data Provider',
113
- network: portfolio_core_1.NetworkId.avalanche,
114
- };
115
- exports.polygonV3LendProvider = {
116
- address: exports.v3LendProviderAddress,
117
- name: 'Aave V3 Lenging Pool Provider',
118
- network: portfolio_core_1.NetworkId.polygon,
119
- };
120
- exports.polygonV3IncentiveProvider = {
121
- address: '0x874313A46e4957D29FAAC43BF5Eb2B144894f557',
122
- name: 'Aave V3 Incentive Provider',
123
- network: portfolio_core_1.NetworkId.polygon,
124
- };
125
- exports.polygonV3DataProvider = {
126
- address: '0xC69728f11E9E6127733751c8410432913123acf1',
127
- name: 'Aave V3 Data Provider',
128
- network: portfolio_core_1.NetworkId.polygon,
129
- };
130
- exports.ethereumV3LendProvider = {
131
- address: '0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e',
132
- name: 'Aave V3 Lenging Pool Provider',
133
- network: portfolio_core_1.NetworkId.ethereum,
134
- };
135
- exports.ethereumV3IncentiveProvider = {
136
- address: '0x162A7AC02f547ad796CA549f757e2b8d1D9b10a6',
137
- name: 'Aave V3 Incentive Provider',
138
- network: portfolio_core_1.NetworkId.ethereum,
139
- };
140
- exports.ethereumV3DataProvider = {
141
- address: '0x91c0eA31b49B69Ea18607702c5d9aC360bf3dE7d',
142
- name: 'Aave V3 Data Provider',
143
- network: portfolio_core_1.NetworkId.ethereum,
144
- };
145
- exports.avalancheV3Config = {
146
- integratedOn: 1692489600000,
147
- networkId: portfolio_core_1.NetworkId.avalanche,
148
- contracts: [
149
- exports.avalancheV3LendProvider,
150
- exports.avalancheV3IncentiveProvider,
151
- exports.avalancheV3DataProvider,
152
- ],
153
- link: 'https://app.aave.com/?marketName=proto_avalanche_v3',
154
- };
155
- exports.polygonV3Config = {
156
- integratedOn: 1692489600000,
157
- networkId: portfolio_core_1.NetworkId.polygon,
158
- contracts: [
159
- exports.polygonV3LendProvider,
160
- exports.polygonV3IncentiveProvider,
161
- exports.polygonV3DataProvider,
162
- ],
163
- link: 'https://app.aave.com/?marketName=proto_polygon_v3',
164
- };
165
- exports.ethereumV3Config = {
166
- integratedOn: 1692489600000,
167
- networkId: portfolio_core_1.NetworkId.ethereum,
168
- contracts: [
169
- exports.ethereumV3LendProvider,
170
- exports.ethereumV3IncentiveProvider,
171
- exports.ethereumV3DataProvider,
172
- ],
173
- link: 'https://app.aave.com/?marketName=proto_mainnet_v3',
174
- };
175
- exports.lendingV3 = {
176
- id: `${constants_1.platformId}_v3`,
177
- platformId: constants_1.platformId,
178
- name: 'Aave V3',
179
- configs: [exports.ethereumV3Config, exports.polygonV3Config, exports.avalancheV3Config],
180
- };
181
- //# sourceMappingURL=services.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/services.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AACpC,2CAAyC;AAE5B,QAAA,qBAAqB,GAAa;IAC7C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,oCAAoC;IAC1C,OAAO,EAAE,0BAAS,CAAC,QAAQ;CAC5B,CAAC;AAEW,QAAA,oBAAoB,GAAa;IAC5C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,0BAAS,CAAC,QAAQ;CAC5B,CAAC;AAEW,QAAA,sBAAsB,GAAa;IAC9C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,0BAAS,CAAC,QAAQ;CAC5B,CAAC;AAEW,QAAA,iBAAiB,GAAa;IACzC,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,0BAAS,CAAC,QAAQ;CAC5B,CAAC;AAEW,QAAA,qBAAqB,GAAa;IAC7C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,+BAA+B;IACrC,OAAO,EAAE,0BAAS,CAAC,OAAO;CAC3B,CAAC;AAEW,QAAA,0BAA0B,GAAa;IAClD,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,0BAAS,CAAC,OAAO;CAC3B,CAAC;AAEW,QAAA,qBAAqB,GAAa;IAC7C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,0BAAS,CAAC,OAAO;CAC3B,CAAC;AAEW,QAAA,uBAAuB,GAAa;IAC/C,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,+BAA+B;IACrC,OAAO,EAAE,0BAAS,CAAC,SAAS;CAC7B,CAAC;AAEW,Q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AEW,QAAA,iBAAiB,GAAkB;IAC9C,YAAY,EAAE,aAAa;IAC3B,SAAS,EAAE,0BAAS,CAAC,SAAS;IAC9B,SAAS,EAAE;QACT,+BAAuB;QACvB,oCAA4B;QAC5B,+BAAuB;KACxB;IACD,IAAI,EAAE,qDAAqD;CAC5D,CAAC;AAEW,QAAA,eAAe,GAAkB;IAC5C,YAAY,EAAE,aAAa;IAC3B,SAAS,EAAE,0BAAS,CAAC,OAAO;IAC5B,SAAS,EAAE;QACT,6BAAqB;QACrB,kCAA0B;QAC1B,6BAAqB;KACtB;IACD,IAAI,EAAE,mDAAmD;CAC1D,CAAC;AAEW,QAAA,gBAAgB,GAAkB;IAC7C,YAAY,EAAE,aAAa;IAC3B,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,SAAS,EAAE;QACT,8BAAsB;QACtB,mCAA2B;QAC3B,8BAAsB;KACvB;IACD,IAAI,EAAE,mDAAmD;CAC1D,CAAC;AAEW,QAAA,SAAS,GAAY;IAChC,EAAE,EAAE,GAAG,sBAAU,KAAK;IACtB,UAAU,EAAV,sBAAU;IACV,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,wBAAgB,EAAE,uBAAe,EAAE,yBAAiB,CAAC;CAChE,CAAC"}
@@ -1 +0,0 @@
1
- export default function promiseTimeout<T>(promise: Promise<T>, ms: number, message?: string): Promise<T>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function promiseTimeout(promise, ms, message) {
4
- const timeoutPromise = new Promise((resolve, reject) => {
5
- const id = setTimeout(() => {
6
- clearTimeout(id);
7
- reject(new Error(message || `Promise timed out: ${ms}ms.`));
8
- }, ms);
9
- });
10
- return Promise.race([promise, timeoutPromise]);
11
- }
12
- exports.default = promiseTimeout;
13
- //# sourceMappingURL=promiseTimeout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promiseTimeout.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/promiseTimeout.ts"],"names":[],"mappings":";;AAAA,SAAwB,cAAc,CACpC,OAAmB,EACnB,EAAU,EACV,OAAgB;IAEhB,MAAM,cAAc,GAAe,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACjE,MAAM,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE;YACzB,YAAY,CAAC,EAAE,CAAC,CAAC;YACjB,MAAM,CAAC,IAAI,KAAK,CAAC,OAAO,IAAI,sBAAsB,EAAE,KAAK,CAAC,CAAC,CAAC;QAC9D,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AACjD,CAAC;AAZD,iCAYC"}