signet_types/signing/
error.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
3pub enum SignedPermitError {
4 #[error("Permits and Outputs do not match.")]
6 PermitMismatch,
7 #[error("Deadline has passed: current time is: {current}, deadline was: {deadline}")]
9 DeadlinePassed {
10 current: u64,
12 deadline: u64,
14 },
15}
16
17#[derive(Debug, thiserror::Error)]
19pub enum SigningError {
20 #[error(
22 "Target chain id is missing. Populate it by calling with_chain before attempting to sign"
23 )]
24 MissingChainId,
25 #[error(
27 "Rollup chain id is missing. Populate it by calling with_ru_chain_id before attempting to sign"
28 )]
29 MissingRollupChainId,
30 #[error("Target Order contract address is missing for chain id {0}. Populate it by calling with_chain before attempting to sign")]
32 MissingOrderContract(u64),
33 #[error(transparent)]
35 Signer(#[from] alloy::signers::Error),
36}