@lodestar/api 1.19.0-dev.a67b368696 → 1.19.0-dev.a6b10df029

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.
@@ -1,5 +1,6 @@
1
1
  import type { Api } from "./routes/index.js";
2
- export * as routes from "./routes/index.js";
2
+ import * as routes from "./routes/index.js";
3
+ export { routes };
3
4
  export { getClient } from "./client/index.js";
4
5
  export type { Api };
5
6
  export type ApiNamespace = keyof Api;
@@ -1,5 +1,6 @@
1
1
  // NOTE: Don't export server here so it's not bundled to all consumers
2
- export * as routes from "./routes/index.js";
2
+ import * as routes from "./routes/index.js";
3
+ export { routes };
3
4
  export { getClient } from "./client/index.js";
4
5
  const allNamespacesObj = {
5
6
  beacon: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/beacon/index.ts"],"names":[],"mappings":"AAEA,sEAAsE;AAEtE,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAK5C,MAAM,gBAAgB,GAA6B;IACjD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;CAChB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/beacon/index.ts"],"names":[],"mappings":"AAEA,sEAAsE;AAEtE,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,CAAC;AAChB,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAK5C,MAAM,gBAAgB,GAA6B;IACjD,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;CAChB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAmB,CAAC"}
@@ -7,10 +7,7 @@ import * as block from "./block.js";
7
7
  import * as pool from "./pool.js";
8
8
  import * as state from "./state.js";
9
9
  import * as rewards from "./rewards.js";
10
- export * as block from "./block.js";
11
- export * as pool from "./pool.js";
12
- export * as state from "./state.js";
13
- export * as rewards from "./rewards.js";
10
+ export { block, pool, state, rewards };
14
11
  export { BroadcastValidation } from "./block.js";
15
12
  export type { BlockId, BlockHeaderResponse } from "./block.js";
16
13
  export type { AttestationFilters } from "./pool.js";
@@ -8,10 +8,7 @@ import * as rewards from "./rewards.js";
8
8
  // See /packages/api/src/routes/index.ts for reasoning and instructions to add new routes
9
9
  // NOTE: We choose to split the block, pool, and state namespaces so the files are not too big.
10
10
  // However, for a consumer all these methods are within the same service "beacon"
11
- export * as block from "./block.js";
12
- export * as pool from "./pool.js";
13
- export * as state from "./state.js";
14
- export * as rewards from "./rewards.js";
11
+ export { block, pool, state, rewards };
15
12
  export { BroadcastValidation } from "./block.js";
16
13
  export const routesData = {
17
14
  getGenesis: { url: "/eth/v1/beacon/genesis", method: "GET" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/beacon/routes/beacon/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,GAAG,EAAC,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAC,cAAc,EAAC,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAA0B,QAAQ,EAAE,aAAa,EAAC,MAAM,yBAAyB,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AC7C,GAAG,KAAK,CAAC,cAAc,EAAE;QACzB,GAAG,IAAI,CAAC,cAAc,EAAE;QACxB,GAAG,KAAK,CAAC,cAAc,EAAE;QACzB,GAAG,OAAO,CAAC,cAAc,EAAE;KAC5B,CAAC;AACJ,CAAC"}
@@ -7,15 +7,16 @@ import { Api as LodestarApi } from "./lodestar.js";
7
7
  import { Api as NodeApi } from "./node.js";
8
8
  import { Api as ProofApi } from "./proof.js";
9
9
  import { Api as ValidatorApi } from "./validator.js";
10
- export * as beacon from "./beacon/index.js";
11
- export * as config from "./config.js";
12
- export * as debug from "./debug.js";
13
- export * as events from "./events.js";
14
- export * as lightclient from "./lightclient.js";
15
- export * as lodestar from "./lodestar.js";
16
- export * as node from "./node.js";
17
- export * as proof from "./proof.js";
18
- export * as validator from "./validator.js";
10
+ import * as beacon from "./beacon/index.js";
11
+ import * as config from "./config.js";
12
+ import * as debug from "./debug.js";
13
+ import * as events from "./events.js";
14
+ import * as lightclient from "./lightclient.js";
15
+ import * as lodestar from "./lodestar.js";
16
+ import * as node from "./node.js";
17
+ import * as proof from "./proof.js";
18
+ import * as validator from "./validator.js";
19
+ export { beacon, config, debug, events, lightclient, lodestar, node, proof, validator };
19
20
  export type Api = {
20
21
  beacon: BeaconApi;
21
22
  config: ConfigApi;
@@ -1,12 +1,13 @@
1
- export * as beacon from "./beacon/index.js";
2
- export * as config from "./config.js";
3
- export * as debug from "./debug.js";
4
- export * as events from "./events.js";
5
- export * as lightclient from "./lightclient.js";
6
- export * as lodestar from "./lodestar.js";
7
- export * as node from "./node.js";
8
- export * as proof from "./proof.js";
9
- export * as validator from "./validator.js";
1
+ import * as beacon from "./beacon/index.js";
2
+ import * as config from "./config.js";
3
+ import * as debug from "./debug.js";
4
+ import * as events from "./events.js";
5
+ import * as lightclient from "./lightclient.js";
6
+ import * as lodestar from "./lodestar.js";
7
+ import * as node from "./node.js";
8
+ import * as proof from "./proof.js";
9
+ import * as validator from "./validator.js";
10
+ export { beacon, config, debug, events, lightclient, lodestar, node, proof, validator };
10
11
  // Reasoning of the API definitions
11
12
  // ================================
12
13
  //
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/beacon/routes/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAc5C,mCAAmC;AACnC,mCAAmC;AACnC,EAAE;AACF,+FAA+F;AAC/F,+CAA+C;AAC/C,cAAc;AACd,iDAAiD;AACjD,kBAAkB;AAClB,sCAAsC;AACtC,cAAc;AACd,wCAAwC;AACxC,EAAE;AACF,0FAA0F;AAC1F,+FAA+F;AAC/F,EAAE;AACF,oGAAoG;AACpG,oCAAoC;AACpC,sCAAsC;AACtC,EAAE;AACF,2FAA2F;AAC3F,+FAA+F;AAC/F,yFAAyF;AACzF,EAAE;AACF,kGAAkG;AAClG,sGAAsG;AACtG,EAAE;AACF,EAAE;AACF,wBAAwB;AACxB,wBAAwB;AACxB,EAAE;AACF,iHAAiH;AACjH,+GAA+G;AAC/G,0FAA0F;AAC1F,yDAAyD;AACzD,8GAA8G;AAC9G,yDAAyD;AACzD,8GAA8G;AAC9G,gGAAgG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/beacon/routes/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAC,CAAC;AActF,mCAAmC;AACnC,mCAAmC;AACnC,EAAE;AACF,+FAA+F;AAC/F,+CAA+C;AAC/C,cAAc;AACd,iDAAiD;AACjD,kBAAkB;AAClB,sCAAsC;AACtC,cAAc;AACd,wCAAwC;AACxC,EAAE;AACF,0FAA0F;AAC1F,+FAA+F;AAC/F,EAAE;AACF,oGAAoG;AACpG,oCAAoC;AACpC,sCAAsC;AACtC,EAAE;AACF,2FAA2F;AAC3F,+FAA+F;AAC/F,yFAAyF;AACzF,EAAE;AACF,kGAAkG;AAClG,sGAAsG;AACtG,EAAE;AACF,EAAE;AACF,wBAAwB;AACxB,wBAAwB;AACxB,EAAE;AACF,iHAAiH;AACjH,+GAA+G;AAC/G,0FAA0F;AAC1F,yDAAyD;AACzD,8GAA8G;AAC9G,yDAAyD;AACzD,8GAA8G;AAC9G,gGAAgG"}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/ChainSafe/lodestar/issues"
13
13
  },
14
- "version": "1.19.0-dev.a67b368696",
14
+ "version": "1.19.0-dev.a6b10df029",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -69,10 +69,10 @@
69
69
  "dependencies": {
70
70
  "@chainsafe/persistent-merkle-tree": "^0.7.1",
71
71
  "@chainsafe/ssz": "^0.15.1",
72
- "@lodestar/config": "1.19.0-dev.a67b368696",
73
- "@lodestar/params": "1.19.0-dev.a67b368696",
74
- "@lodestar/types": "1.19.0-dev.a67b368696",
75
- "@lodestar/utils": "1.19.0-dev.a67b368696",
72
+ "@lodestar/config": "1.19.0-dev.a6b10df029",
73
+ "@lodestar/params": "1.19.0-dev.a6b10df029",
74
+ "@lodestar/types": "1.19.0-dev.a6b10df029",
75
+ "@lodestar/utils": "1.19.0-dev.a6b10df029",
76
76
  "eventsource": "^2.0.2",
77
77
  "qs": "^6.11.1"
78
78
  },
@@ -80,7 +80,7 @@
80
80
  "@types/eventsource": "^1.1.11",
81
81
  "@types/qs": "^6.9.7",
82
82
  "ajv": "^8.12.0",
83
- "fastify": "^4.26.2"
83
+ "fastify": "^4.27.0"
84
84
  },
85
85
  "keywords": [
86
86
  "ethereum",
@@ -89,5 +89,5 @@
89
89
  "api",
90
90
  "blockchain"
91
91
  ],
92
- "gitHead": "9ca768f728d301e8ca5e816b8e13ed4e076a01f8"
92
+ "gitHead": "a1873ac9c135368ddeb77d9de9a2eb5100de1877"
93
93
  }