#[cfg(doc)]
use signet_zenith::RollupOrders::Permit2Batch;
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
pub enum SignedPermitError {
#[error("Permits and Outputs do not match.")]
PermitMismatch,
#[error("Deadline has passed: current time is: {current}, deadline was: {deadline}")]
DeadlinePassed {
current: u64,
deadline: u64,
},
}
#[derive(Debug, thiserror::Error)]
pub enum SigningError {
#[error(
"Target chain id is missing. Populate it by calling with_chain before attempting to sign"
)]
MissingChainId,
#[error(
"Rollup chain id is missing. Populate it by calling with_chain before attempting to sign"
)]
#[deprecated(since = "0.14.1", note = "Use MissingChainId instead.")]
MissingRollupChainId,
#[error("Target Order contract address is missing for chain id {0}. Populate it by calling with_chain before attempting to sign")]
MissingOrderContract(u64),
#[error(transparent)]
Signer(#[from] alloy::signers::Error),
}