foundry_cli/opts/
tempo.rs

1use alloy_primitives::{Address, ruint::aliases::U256};
2use clap::Parser;
3
4/// CLI options for Tempo transactions.
5#[derive(Clone, Debug, Default, Parser)]
6#[command(next_help_heading = "Tempo")]
7pub struct TempoOpts {
8    /// Fee token address for Tempo transactions.
9    ///
10    /// When set, builds a Tempo (type 0x76) transaction that pays gas fees
11    /// in the specified token.
12    ///
13    /// If this is not set, the fee token is chosen according to network rules. See the Tempo docs
14    /// for more information.
15    #[arg(long = "tempo.fee-token")]
16    pub fee_token: Option<Address>,
17
18    /// Nonce sequence key for Tempo transactions.
19    ///
20    /// When set, builds a Tempo (type 0x76) transaction with the specified nonce sequence key.
21    ///
22    /// If this is not set, the protocol sequence key (0) will be used.
23    ///
24    /// For more information see <https://docs.tempo.xyz/protocol/transactions/spec-tempo-transaction#parallelizable-nonces>.
25    #[arg(long = "tempo.seq")]
26    pub sequence_key: Option<U256>,
27}