pub enum FirewallError {
MissingRegistryCellDep,
InvalidRegistryData,
RegistryNotSorted,
BlacklistedLockArgs,
BlacklistedTypeArgs,
AmbiguousRegistryCellDep,
}Expand description
Errors returned by the CKB Transaction Firewall SDK.
Each variant maps to a specific on-chain error code. Codes 8–12 and 17 can be surfaced by SDK preflight; codes 5–7 and 13–16 are enforced exclusively by the on-chain contract.
Variants§
MissingRegistryCellDep
No registry cell dep matches the required spec (on-chain code 8).
InvalidRegistryData
Registry cell data is malformed or has an unsupported version (on-chain code 9).
RegistryNotSorted
Registry entries are not in ascending lexicographic order (on-chain code 10).
BlacklistedLockArgs
A transaction output’s lock args appear in the active blacklist (on-chain code 11).
BlacklistedTypeArgs
A transaction output’s type args appear in the active blacklist (on-chain code 12).
AmbiguousRegistryCellDep
More than one cell dep matches the same registry spec (on-chain code 17).
Implementations§
Trait Implementations§
Source§impl Clone for FirewallError
impl Clone for FirewallError
Source§fn clone(&self) -> FirewallError
fn clone(&self) -> FirewallError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirewallError
impl Debug for FirewallError
Source§impl Display for FirewallError
impl Display for FirewallError
impl Eq for FirewallError
Source§impl Error for FirewallError
impl Error for FirewallError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FirewallError
impl PartialEq for FirewallError
Source§fn eq(&self, other: &FirewallError) -> bool
fn eq(&self, other: &FirewallError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FirewallError
Auto Trait Implementations§
impl Freeze for FirewallError
impl RefUnwindSafe for FirewallError
impl Send for FirewallError
impl Sync for FirewallError
impl Unpin for FirewallError
impl UnsafeUnpin for FirewallError
impl UnwindSafe for FirewallError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more