signet_types/signing/
error.rs1#[cfg(doc)]
2use signet_zenith::RollupOrders::Permit2Batch;
3
4#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
6pub enum SignedPermitError {
7 #[error("Permits and Outputs do not match.")]
9 PermitMismatch,
10 #[error("Deadline has passed: current time is: {current}, deadline was: {deadline}")]
12 DeadlinePassed {
13 current: u64,
15 deadline: u64,
17 },
18}
19
20#[derive(Debug, thiserror::Error)]
22pub enum SigningError {
23 #[error(
25 "Target chain id is missing. Populate it by calling with_chain before attempting to sign"
26 )]
27 MissingChainId,
28 #[error(
30 "Rollup chain id is missing. Populate it by calling with_chain before attempting to sign"
31 )]
32 #[deprecated(since = "0.14.1", note = "Use MissingChainId instead.")]
33 MissingRollupChainId,
34 #[error("Target Order contract address is missing for chain id {0}. Populate it by calling with_chain before attempting to sign")]
36 MissingOrderContract(u64),
37 #[error(transparent)]
39 Signer(#[from] alloy::signers::Error),
40}