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("Target Order contract address is missing for chain id {0}. Populate it by calling with_chain before attempting to sign")]
27 MissingOrderContract(u64),
28 #[error(transparent)]
30 Signer(#[from] alloy::signers::Error),
31}