@sonarwatch/portfolio-plugins 0.4.25 → 0.4.27

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,6 +2,14 @@
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
+
5
13
  ## [0.4.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.24...plugins-0.4.25) (2023-07-13)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.4.25",
3
+ "version": "0.4.27",
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.25"
25
+ "@sonarwatch/portfolio-core": "0.4.27"
26
26
  },
27
27
  "main": "./src/index.js",
28
28
  "types": "./src/index.d.ts"
package/src/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { Fetcher, Job } from '@sonarwatch/portfolio-core';
1
+ import { AddressSystemType, 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[]>;
package/src/index.js CHANGED
@@ -26,7 +26,8 @@ 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.fetchers = exports.jobs = exports.platforms = void 0;
29
+ exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = void 0;
30
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
30
31
  const platformsObj = __importStar(require("./platforms"));
31
32
  const tokens_1 = require("./plugins/tokens");
32
33
  const marinade_1 = require("./plugins/marinade");
@@ -50,4 +51,13 @@ exports.fetchers = [
50
51
  ...thala_1.fetchers,
51
52
  ...tokens_1.fetchers,
52
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;
53
63
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,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;AAExC,QAAA,IAAI,GAAU;IACzB,GAAG,YAAS;IACZ,GAAG,UAAO;IACV,GAAG,eAAY;IACf,GAAG,aAAU;CACd,CAAC;AAEW,QAAA,QAAQ,GAAc;IACjC,GAAG,cAAW;IACd,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAA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