@chainsafe/lodestar 1.13.0-rc.0 → 1.13.0
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/.git-data.json +1 -1
- package/lib/cmds/dev/options.d.ts +1 -1
- package/lib/options/beaconNodeOptions/builder.d.ts +1 -1
- package/lib/options/beaconNodeOptions/builder.js +10 -9
- package/lib/options/beaconNodeOptions/builder.js.map +1 -1
- package/lib/options/beaconNodeOptions/index.d.ts +1 -1
- package/package.json +14 -14
package/.git-data.json
CHANGED
|
@@ -30,7 +30,7 @@ export declare const devOptions: {
|
|
|
30
30
|
"rest.headerLimit"?: CliOptionDefinition | undefined;
|
|
31
31
|
"rest.bodyLimit"?: CliOptionDefinition | undefined;
|
|
32
32
|
"rest.swaggerUI"?: CliOptionDefinition | undefined;
|
|
33
|
-
"builder.
|
|
33
|
+
"builder.url"?: CliOptionDefinition | undefined;
|
|
34
34
|
"builder.timeout"?: CliOptionDefinition | undefined;
|
|
35
35
|
"builder.faultInspectionWindow"?: CliOptionDefinition | undefined;
|
|
36
36
|
"builder.allowedFaults"?: CliOptionDefinition | undefined;
|
|
@@ -2,7 +2,7 @@ import { IBeaconNodeOptions } from "@lodestar/beacon-node";
|
|
|
2
2
|
import { CliCommandOptions } from "../../util/index.js";
|
|
3
3
|
export type ExecutionBuilderArgs = {
|
|
4
4
|
builder: boolean;
|
|
5
|
-
"builder.
|
|
5
|
+
"builder.url"?: string;
|
|
6
6
|
"builder.timeout"?: number;
|
|
7
7
|
"builder.faultInspectionWindow"?: number;
|
|
8
8
|
"builder.allowedFaults"?: number;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { defaultExecutionBuilderHttpOpts } from "@lodestar/beacon-node";
|
|
2
|
+
import { YargsError } from "../../util/index.js";
|
|
2
3
|
export function parseArgs(args) {
|
|
4
|
+
if (Array.isArray(args["builder.url"]) || args["builder.url"]?.includes(",http")) {
|
|
5
|
+
throw new YargsError("Lodestar only supports a single builder URL. External tooling like mev-boost can be used to connect to multiple builder/relays");
|
|
6
|
+
}
|
|
3
7
|
return {
|
|
4
8
|
enabled: args["builder"],
|
|
5
|
-
|
|
9
|
+
url: args["builder.url"] ?? defaultExecutionBuilderHttpOpts.url,
|
|
6
10
|
timeout: args["builder.timeout"],
|
|
7
11
|
faultInspectionWindow: args["builder.faultInspectionWindow"],
|
|
8
12
|
allowedFaults: args["builder.allowedFaults"],
|
|
@@ -15,14 +19,11 @@ export const options = {
|
|
|
15
19
|
default: defaultExecutionBuilderHttpOpts.enabled,
|
|
16
20
|
group: "builder",
|
|
17
21
|
},
|
|
18
|
-
"builder.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
coerce: (urls) =>
|
|
24
|
-
// Parse ["url1,url2"] to ["url1", "url2"]
|
|
25
|
-
urls.map((item) => item.split(",")).flat(1),
|
|
22
|
+
"builder.url": {
|
|
23
|
+
alias: ["builder.urls"],
|
|
24
|
+
description: "Url hosting the builder API",
|
|
25
|
+
defaultDescription: defaultExecutionBuilderHttpOpts.url,
|
|
26
|
+
type: "string",
|
|
26
27
|
group: "builder",
|
|
27
28
|
},
|
|
28
29
|
"builder.timeout": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/options/beaconNodeOptions/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAqB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/options/beaconNodeOptions/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAqB,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAAoB,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAUlE,MAAM,UAAU,SAAS,CAAC,IAA0B;IAClD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE;QAChF,MAAM,IAAI,UAAU,CAClB,gIAAgI,CACjI,CAAC;KACH;IAED,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,GAAG,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,+BAA+B,CAAC,GAAG;QAC/D,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAChC,qBAAqB,EAAE,IAAI,CAAC,+BAA+B,CAAC;QAC5D,aAAa,EAAE,IAAI,CAAC,uBAAuB,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAA4C;IAC9D,OAAO,EAAE;QACP,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,+BAA+B,CAAC,OAAO;QAChD,KAAK,EAAE,SAAS;KACjB;IAED,aAAa,EAAE;QACb,KAAK,EAAE,CAAC,cAAc,CAAC;QACvB,WAAW,EAAE,6BAA6B;QAC1C,kBAAkB,EAAE,+BAA+B,CAAC,GAAG;QACvD,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,SAAS;KACjB;IAED,iBAAiB,EAAE;QACjB,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,QAAQ;QACd,kBAAkB,EAAE,MAAM,CAAC,+BAA+B,CAAC,OAAO,CAAC;QACnE,KAAK,EAAE,SAAS;KACjB;IAED,+BAA+B,EAAE;QAC/B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+EAA+E;QAC5F,KAAK,EAAE,SAAS;KACjB;IAED,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,mFAAmF;QAChG,KAAK,EAAE,SAAS;KACjB;CACF,CAAC"}
|
|
@@ -59,7 +59,7 @@ export declare const beaconNodeOptions: {
|
|
|
59
59
|
"metrics.port": import("../../util/command.js").CliOptionDefinition & Required<Pick<import("yargs").Options, "default">>;
|
|
60
60
|
"metrics.address": import("../../util/command.js").CliOptionDefinition;
|
|
61
61
|
builder: import("../../util/command.js").CliOptionDefinition & Required<Pick<import("yargs").Options, "default">>;
|
|
62
|
-
"builder.
|
|
62
|
+
"builder.url": import("../../util/command.js").CliOptionDefinition;
|
|
63
63
|
"builder.timeout": import("../../util/command.js").CliOptionDefinition;
|
|
64
64
|
"builder.faultInspectionWindow": import("../../util/command.js").CliOptionDefinition;
|
|
65
65
|
"builder.allowedFaults": import("../../util/command.js").CliOptionDefinition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainsafe/lodestar",
|
|
3
|
-
"version": "1.13.0
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Command line interface for lodestar",
|
|
5
5
|
"author": "ChainSafe Systems",
|
|
6
6
|
"license": "LGPL-3.0",
|
|
@@ -65,17 +65,17 @@
|
|
|
65
65
|
"@libp2p/crypto": "^2.0.4",
|
|
66
66
|
"@libp2p/peer-id": "^3.0.2",
|
|
67
67
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
68
|
-
"@lodestar/api": "1.13.0
|
|
69
|
-
"@lodestar/beacon-node": "1.13.0
|
|
70
|
-
"@lodestar/config": "1.13.0
|
|
71
|
-
"@lodestar/db": "1.13.0
|
|
72
|
-
"@lodestar/light-client": "1.13.0
|
|
73
|
-
"@lodestar/logger": "1.13.0
|
|
74
|
-
"@lodestar/params": "1.13.0
|
|
75
|
-
"@lodestar/state-transition": "1.13.0
|
|
76
|
-
"@lodestar/types": "1.13.0
|
|
77
|
-
"@lodestar/utils": "1.13.0
|
|
78
|
-
"@lodestar/validator": "1.13.0
|
|
68
|
+
"@lodestar/api": "^1.13.0",
|
|
69
|
+
"@lodestar/beacon-node": "^1.13.0",
|
|
70
|
+
"@lodestar/config": "^1.13.0",
|
|
71
|
+
"@lodestar/db": "^1.13.0",
|
|
72
|
+
"@lodestar/light-client": "^1.13.0",
|
|
73
|
+
"@lodestar/logger": "^1.13.0",
|
|
74
|
+
"@lodestar/params": "^1.13.0",
|
|
75
|
+
"@lodestar/state-transition": "^1.13.0",
|
|
76
|
+
"@lodestar/types": "^1.13.0",
|
|
77
|
+
"@lodestar/utils": "^1.13.0",
|
|
78
|
+
"@lodestar/validator": "^1.13.0",
|
|
79
79
|
"@multiformats/multiaddr": "^12.1.3",
|
|
80
80
|
"@types/lockfile": "^1.0.2",
|
|
81
81
|
"bip39": "^3.1.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"yargs": "^17.7.1"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@lodestar/test-utils": "1.13.0
|
|
99
|
+
"@lodestar/test-utils": "^1.13.0",
|
|
100
100
|
"@types/debug": "^4.1.7",
|
|
101
101
|
"@types/expand-tilde": "^2.0.0",
|
|
102
102
|
"@types/got": "^9.6.12",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"@types/lodash": "^4.14.192",
|
|
105
105
|
"@types/yargs": "^17.0.24"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "1a816b4ef58d41b5427f9995005a8ec6577e4b33"
|
|
108
108
|
}
|