@sonarwatch/portfolio-plugins 0.4.27 → 0.4.28

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.
package/CHANGELOG.md CHANGED
@@ -2,34 +2,38 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [0.4.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.26...plugins-0.4.27) (2023-07-13)
6
-
7
-
8
-
9
- ## [0.4.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.25...plugins-0.4.26) (2023-07-13)
10
-
11
-
12
-
13
- ## [0.4.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.24...plugins-0.4.25) (2023-07-13)
14
-
15
-
16
-
17
- ## [0.4.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.23...plugins-0.4.24) (2023-07-12)
18
-
19
-
20
-
21
- ## [0.4.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.22...plugins-0.4.23) (2023-07-12)
22
-
23
-
24
-
25
- ## [0.4.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.21...plugins-0.4.22) (2023-07-12)
26
-
27
-
28
-
29
- ## [0.4.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.20...plugins-0.4.21) (2023-07-12)
5
+ ## [0.4.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.27...plugins-0.4.28) (2023-07-13)
30
6
 
31
7
 
32
8
 
9
+ ## [0.4.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.26...plugins-0.4.27) (2023-07-13)
10
+
11
+
12
+
13
+ ## [0.4.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.25...plugins-0.4.26) (2023-07-13)
14
+
15
+
16
+
17
+ ## [0.4.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.24...plugins-0.4.25) (2023-07-13)
18
+
19
+
20
+
21
+ ## [0.4.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.23...plugins-0.4.24) (2023-07-12)
22
+
23
+
24
+
25
+ ## [0.4.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.22...plugins-0.4.23) (2023-07-12)
26
+
27
+
28
+
29
+ ## [0.4.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.21...plugins-0.4.22) (2023-07-12)
30
+
31
+
32
+
33
+ ## [0.4.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.20...plugins-0.4.21) (2023-07-12)
34
+
35
+
36
+
33
37
  ## [0.4.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.19...plugins-0.4.20) (2023-07-10)
34
38
 
35
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
@@ -22,7 +22,7 @@
22
22
  "viem": "^1.2.9"
23
23
  },
24
24
  "peerDependencies": {
25
- "@sonarwatch/portfolio-core": "0.4.27"
25
+ "@sonarwatch/portfolio-core": "0.4.28"
26
26
  },
27
27
  "main": "./src/index.js",
28
28
  "types": "./src/index.d.ts"
package/src/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { AddressSystemType, Fetcher, Job } from '@sonarwatch/portfolio-core';
1
+ import { Fetcher, Job } from '@sonarwatch/portfolio-core';
2
2
  export * from './platforms';
3
3
  export declare const platforms: import("@sonarwatch/portfolio-core").Platform[];
4
4
  export declare const jobs: Job[];
5
5
  export declare const fetchers: Fetcher[];
6
- export declare const fetchersByAddressSystem: Record<AddressSystemType, Fetcher[]>;
6
+ export declare const fetchersByAddressSystem: Record<import("@sonarwatch/portfolio-core").AddressSystemType, Fetcher[]>;
package/src/index.js CHANGED
@@ -27,7 +27,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = void 0;
30
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
31
30
  const platformsObj = __importStar(require("./platforms"));
32
31
  const tokens_1 = require("./plugins/tokens");
33
32
  const marinade_1 = require("./plugins/marinade");
@@ -35,6 +34,7 @@ const marginfi_1 = require("./plugins/marginfi");
35
34
  const thala_1 = require("./plugins/thala");
36
35
  const tensor_1 = require("./plugins/tensor");
37
36
  const foo_1 = require("./plugins/foo");
37
+ const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressSystem");
38
38
  __exportStar(require("./platforms"), exports);
39
39
  exports.platforms = Object.values(platformsObj);
40
40
  exports.jobs = [
@@ -51,13 +51,5 @@ exports.fetchers = [
51
51
  ...thala_1.fetchers,
52
52
  ...tokens_1.fetchers,
53
53
  ];
54
- const iFetchersByAddressSystem = {};
55
- Object.values(portfolio_core_1.AddressSystem).forEach((addressSystem) => {
56
- iFetchersByAddressSystem[addressSystem] = [];
57
- });
58
- exports.fetchers.forEach((f) => {
59
- const addressSystem = (0, portfolio_core_1.getAddressSystemFromNetworkId)(f.networkId);
60
- iFetchersByAddressSystem[addressSystem].push(f);
61
- });
62
- exports.fetchersByAddressSystem = iFetchersByAddressSystem;
54
+ exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
63
55
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,0DAA4C;AAC5C,6CAG0B;AAC1B,iDAAkE;AAClE,iDAG4B;AAC5B,2CAA+E;AAC/E,6CAA8D;AAC9D,uCAAyE;AAEzE,8CAA4B;AACf,QAAA,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAEx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B;IACnB,GAAG,gBAAa;IAChB,GAAG,iBAAc;CAClB,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { AddressSystemType, Fetcher } from '@sonarwatch/portfolio-core';
2
+ export declare function getFetchersByAddressSystem(fetchers: Fetcher[]): Record<AddressSystemType, Fetcher[]>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFetchersByAddressSystem = void 0;
4
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
+ function getFetchersByAddressSystem(fetchers) {
6
+ const fetchersByAddressSystem = {};
7
+ Object.values(portfolio_core_1.AddressSystem).forEach((addressSystem) => {
8
+ fetchersByAddressSystem[addressSystem] = [];
9
+ });
10
+ fetchers.forEach((f) => {
11
+ const addressSystem = (0, portfolio_core_1.getAddressSystemFromNetworkId)(f.networkId);
12
+ fetchersByAddressSystem[addressSystem].push(f);
13
+ });
14
+ return fetchersByAddressSystem;
15
+ }
16
+ exports.getFetchersByAddressSystem = getFetchersByAddressSystem;
17
+ //# sourceMappingURL=getFetchersByAddressSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFetchersByAddressSystem.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getFetchersByAddressSystem.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AAEpC,SAAgB,0BAA0B,CAAC,QAAmB;IAC5D,MAAM,uBAAuB,GAA8B,EAAE,CAAC;IAC9D,MAAM,CAAC,MAAM,CAAC,8BAAa,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;QACrD,uBAAuB,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,MAAM,aAAa,GAAG,IAAA,8CAA6B,EAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACjE,uBAAuB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IACH,OAAO,uBAA+D,CAAC;AACzE,CAAC;AAVD,gEAUC"}