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_chain before attempting to sign"
28 )]
29 #[deprecated(since = "0.14.1", note = "Use MissingChainId instead.")]
30 MissingRollupChainId,
31 #[error("Target Order contract address is missing for chain id {0}. Populate it by calling with_chain before attempting to sign")]
33 MissingOrderContract(u64),
34 #[error(transparent)]
36 Signer(#[from] alloy::signers::Error),
37}