Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ jobs:
run: |
tag="${{ needs.extract-version.outputs.VERSION }}"
tag=${tag#v}
cargo_ver=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
# WARNING: VERY SHITTY VERSION EXTRACTION, PLEASE FIX
# packages[1] is contender_cli, which is the primary user-facing crate.
# For this check, we focus on this crate only. Probably needs to be more robust, though.
cargo_ver=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[1].version')
[[ "$tag" == "$cargo_ver"* ]] || { echo "Tag $tag doesn’t match the Cargo version $cargo_ver"; exit 1; }

build:
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions crates/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10.2](https://github.com/flashbots/contender/releases/tag/v0.10.2) - 2026-06-11

- Add scenario access list support with placeholder resolution ([#588](https://github.com/flashbots/contender/pull/588))
- spam-stream subcommand for streaming tx specs (relayer use case) ([#589](https://github.com/flashbots/contender/pull/589))
- upgrade contender_core to [v0.11.1](../core/CHANGELOG.md)

## [0.10.1](https://github.com/flashbots/contender/releases/tag/v0.10.1) - 2026-05-06

- update alloy dependencies ([#561](https://github.com/flashbots/contender/pull/561))
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "contender_cli"
description = "Contender CLI"
version = "0.10.1"
version = "0.10.2"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
Expand Down
11 changes: 11 additions & 0 deletions crates/cli/src/commands/contender_subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::default_scenarios::BuiltinScenarioCli;

use super::admin::AdminCommand;
use super::spam::SpamCliArgs;
use super::spam_stream::SpamStreamCliArgs;
use super::ReportFormat;

#[derive(Debug, Subcommand)]
Expand All @@ -34,6 +35,16 @@ pub enum ContenderSubcommand {
builtin_scenario_config: Option<BuiltinScenarioCli>,
},

#[command(
name = "spam-stream",
long_about = "Read newline-delimited JSON tx specs from stdin or a file and spam them. \
Each line is a FunctionCallDefinition (same fields as scenario TOML `[[spam.tx]]`)."
)]
SpamStream {
#[command(flatten)]
args: Box<SpamStreamCliArgs>,
},

#[command(
name = "setup",
long_about = "Deploy contracts and execute one-time setup txs."
Expand Down
3 changes: 3 additions & 0 deletions crates/cli/src/commands/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ pub enum ArgsError {

#[error("failed to parse url")]
UrlParse(#[from] url::ParseError),

#[error("{0}")]
Custom(String),
}

#[derive(Debug, Error)]
Expand Down
1 change: 1 addition & 0 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub mod replay;
pub mod rpc;
mod setup;
mod spam;
pub mod spam_stream;

use clap::{Parser, ValueEnum};
use contender_core::db::DbOps;
Expand Down
Loading
Loading