Skip to content

Commit 58b63db

Browse files
committed
Merge branch 'main' into ssz-update-v2
2 parents d36ef3b + ee25871 commit 58b63db

File tree

17 files changed

+484
-122
lines changed

17 files changed

+484
-122
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
- name: Checkout code
3838
uses: actions/checkout@v4
3939
with:
40-
ref: "stable"
4140
fetch-depth: 0
4241
submodules: true
4342

@@ -108,7 +107,6 @@ jobs:
108107
- name: Checkout code
109108
uses: actions/checkout@v4
110109
with:
111-
ref: "stable"
112110
fetch-depth: 0
113111
submodules: true
114112

@@ -168,7 +166,6 @@ jobs:
168166
- name: Checkout code
169167
uses: actions/checkout@v4
170168
with:
171-
ref: "stable"
172169
fetch-depth: 0
173170
submodules: true
174171

@@ -221,7 +218,6 @@ jobs:
221218
- name: Checkout code
222219
uses: actions/checkout@v4
223220
with:
224-
ref: "stable"
225221
fetch-depth: 0
226222
submodules: true
227223

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cb-metrics = { path = "crates/metrics" }
3333
cb-pbs = { path = "crates/pbs" }
3434
cb-signer = { path = "crates/signer" }
3535
cipher = "0.4"
36-
clap = { version = "4.5.4", features = ["derive", "env"] }
36+
clap = { version = "4.5.48", features = ["derive", "env"] }
3737
color-eyre = "0.6.3"
3838
ctr = "0.9.2"
3939
derive_more = { version = "2.0.1", features = ["deref", "display", "from", "into"] }

bin/cli.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
use clap::Parser;
22

3+
/// Version string with a leading 'v'
4+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
5+
6+
/// Subcommands and global arguments for the module
7+
#[derive(Parser, Debug)]
8+
#[command(name = "Commit-Boost CLI", version = VERSION, about, long_about = None)]
9+
struct Cli {}
10+
311
/// Main entry point of the Commit-Boost CLI
412
#[tokio::main]
513
async fn main() -> eyre::Result<()> {
14+
// Parse the CLI arguments (currently only used for version info, more can be
15+
// added later)
16+
let _cli = Cli::parse();
17+
618
color_eyre::install()?;
719
// set default backtrace unless provided
820

bin/pbs.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10+
/// Version string with a leading 'v'
11+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12+
13+
/// Subcommands and global arguments for the module
14+
#[derive(Parser, Debug)]
15+
#[command(name = "Commit-Boost PBS Service", version = VERSION, about, long_about = None)]
16+
struct Cli {}
17+
1018
#[tokio::main]
1119
async fn main() -> Result<()> {
20+
// Parse the CLI arguments (currently only used for version info, more can be
21+
// added later)
22+
let _cli = Cli::parse();
23+
1224
color_eyre::install()?;
1325

1426
let _guard = initialize_tracing_log(PBS_MODULE_NAME, LogsSettings::from_env_config()?);

bin/signer.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10+
/// Version string with a leading 'v'
11+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12+
13+
/// Subcommands and global arguments for the module
14+
#[derive(Parser, Debug)]
15+
#[command(name = "Commit-Boost Signer Service", version = VERSION, about, long_about = None)]
16+
struct Cli {}
17+
1018
#[tokio::main]
1119
async fn main() -> Result<()> {
20+
// Parse the CLI arguments (currently only used for version info, more can be
21+
// added later)
22+
let _cli = Cli::parse();
23+
1224
color_eyre::install()?;
1325

1426
let _guard = initialize_tracing_log(SIGNER_MODULE_NAME, LogsSettings::from_env_config()?);

config.example.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ headers = { X-MyCustomHeader = "MyCustomValue" }
8989
# OPTIONAL
9090
get_params = { param1 = "value1", param2 = "value2" }
9191
# Whether to enable timing games, as tuned by `target_first_request_ms` and `frequency_get_header_ms`.
92+
# NOTE: if neither `target_first_request_ms` nor `frequency_get_header_ms` is set, this flag has no effect.
93+
#
9294
# These values should be carefully chosen for each relay, as each relay has different latency and timing games setups.
9395
# They should only be used by advanced users, and if mis-configured can result in unforeseen effects, e.g. fetching a lower header value,
9496
# or getting a temporary IP ban.
@@ -150,7 +152,7 @@ validator_pubkeys = [
150152
# OPTIONAL
151153
loader = "./tests/data/mux_keys.example.json"
152154
# loader = { url = "http://localhost:8000/keys" }
153-
# loader = { registry = "lido", node_operator_id = 8, enable_refreshing = false }
155+
# loader = { registry = "lido", node_operator_id = 8, lido_module_id = 1, enable_refreshing = false }
154156
# loader = { registry = "ssv", node_operator_id = 8, enable_refreshing = false }
155157
late_in_slot_time_ms = 1500
156158
timeout_get_header_ms = 900

crates/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ eyre.workspace = true
2727
futures.workspace = true
2828
headers-accept.workspace = true
2929
jsonwebtoken.workspace = true
30+
lazy_static.workspace = true
3031
lh_eth2.workspace = true
3132
lh_eth2_keystore.workspace = true
3233
lh_types.workspace = true
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"constant": true,
4+
"inputs": [
5+
{ "name": "nodeOperatorId", "type": "uint256" }
6+
],
7+
"name": "getNodeOperatorSummary",
8+
"outputs": [
9+
{ "name": "targetLimitMode", "type": "uint256" },
10+
{ "name": "targetValidatorsCount", "type": "uint256" },
11+
{ "name": "stuckValidatorsCount", "type": "uint256" },
12+
{ "name": "refundedValidatorsCount", "type": "uint256" },
13+
{ "name": "stuckPenaltyEndTimestamp", "type": "uint256" },
14+
{ "name": "totalExitedValidators", "type": "uint256" },
15+
{ "name": "totalDepositedValidators", "type": "uint256" },
16+
{ "name": "depositableValidatorsCount", "type": "uint256" }
17+
],
18+
"payable": false,
19+
"stateMutability": "view",
20+
"type": "function"
21+
},
22+
{
23+
"constant": true,
24+
"inputs": [
25+
{ "name": "nodeOperatorId", "type": "uint256" },
26+
{ "name": "startIndex", "type": "uint256" },
27+
{ "name": "keysCount", "type": "uint256" }
28+
],
29+
"name": "getSigningKeys",
30+
"outputs": [
31+
{ "name": "", "type": "bytes" }
32+
],
33+
"payable": false,
34+
"stateMutability": "view",
35+
"type": "function"
36+
}
37+
]

0 commit comments

Comments
 (0)