pub enum LightClientErrors {
Show 22 variants
AddressEmptyCode(AddressEmptyCode),
ERC1967InvalidImplementation(ERC1967InvalidImplementation),
ERC1967NonPayable(ERC1967NonPayable),
FailedInnerCall(FailedInnerCall),
InsufficientSnapshotHistory(InsufficientSnapshotHistory),
InvalidAddress(InvalidAddress),
InvalidArgs(InvalidArgs),
InvalidHotShotBlockForCommitmentCheck(InvalidHotShotBlockForCommitmentCheck),
InvalidInitialization(InvalidInitialization),
InvalidMaxStateHistory(InvalidMaxStateHistory),
InvalidProof(InvalidProof),
InvalidScalar(InvalidScalar),
NoChangeRequired(NoChangeRequired),
NotInitializing(NotInitializing),
OutdatedState(OutdatedState),
OwnableInvalidOwner(OwnableInvalidOwner),
OwnableUnauthorizedAccount(OwnableUnauthorizedAccount),
OwnershipCannotBeRenounced(OwnershipCannotBeRenounced),
ProverNotPermissioned(ProverNotPermissioned),
UUPSUnauthorizedCallContext(UUPSUnauthorizedCallContext),
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID),
WrongStakeTableUsed(WrongStakeTableUsed),
}Expand description
Container for all the LightClient custom errors.
Variants§
AddressEmptyCode(AddressEmptyCode)
ERC1967InvalidImplementation(ERC1967InvalidImplementation)
ERC1967NonPayable(ERC1967NonPayable)
FailedInnerCall(FailedInnerCall)
InsufficientSnapshotHistory(InsufficientSnapshotHistory)
InvalidAddress(InvalidAddress)
InvalidArgs(InvalidArgs)
InvalidHotShotBlockForCommitmentCheck(InvalidHotShotBlockForCommitmentCheck)
InvalidInitialization(InvalidInitialization)
InvalidMaxStateHistory(InvalidMaxStateHistory)
InvalidProof(InvalidProof)
InvalidScalar(InvalidScalar)
NoChangeRequired(NoChangeRequired)
NotInitializing(NotInitializing)
OutdatedState(OutdatedState)
OwnableInvalidOwner(OwnableInvalidOwner)
OwnershipCannotBeRenounced(OwnershipCannotBeRenounced)
ProverNotPermissioned(ProverNotPermissioned)
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID)
WrongStakeTableUsed(WrongStakeTableUsed)
Implementations§
Source§impl LightClientErrors
impl LightClientErrors
Sourcepub const SELECTORS: &'static [[u8; 4]]
pub const SELECTORS: &'static [[u8; 4]]
All the selectors of this enum.
Note that the selectors might not be in the same order as the variants. No guarantees are made about the order of the selectors.
Prefer using SolInterface methods instead.
Sourcepub const VARIANT_NAMES: &'static [&'static str]
pub const VARIANT_NAMES: &'static [&'static str]
The names of the variants in the same order as SELECTORS.
Sourcepub const SIGNATURES: &'static [&'static str]
pub const SIGNATURES: &'static [&'static str]
The signatures in the same order as SELECTORS.
Source§impl LightClientErrors
impl LightClientErrors
Sourcepub fn address_empty_code(target: Address) -> Self
pub fn address_empty_code(target: Address) -> Self
Creates a AddressEmptyCode error.
error AddressEmptyCode(address)Sourcepub fn erc_1967_invalid_implementation(implementation: Address) -> Self
pub fn erc_1967_invalid_implementation(implementation: Address) -> Self
Creates a ERC1967InvalidImplementation error.
error ERC1967InvalidImplementation(address)Sourcepub fn erc_1967_non_payable() -> Self
pub fn erc_1967_non_payable() -> Self
Creates a ERC1967NonPayable error.
error ERC1967NonPayable()Sourcepub fn failed_inner_call() -> Self
pub fn failed_inner_call() -> Self
Creates a FailedInnerCall error.
error FailedInnerCall()Sourcepub fn insufficient_snapshot_history() -> Self
pub fn insufficient_snapshot_history() -> Self
Creates a InsufficientSnapshotHistory error.
error InsufficientSnapshotHistory()Sourcepub fn invalid_address() -> Self
pub fn invalid_address() -> Self
Creates a InvalidAddress error.
error InvalidAddress()Sourcepub fn invalid_args() -> Self
pub fn invalid_args() -> Self
Creates a InvalidArgs error.
error InvalidArgs()Sourcepub fn invalid_hot_shot_block_for_commitment_check() -> Self
pub fn invalid_hot_shot_block_for_commitment_check() -> Self
Creates a InvalidHotShotBlockForCommitmentCheck error.
error InvalidHotShotBlockForCommitmentCheck()Sourcepub fn invalid_initialization() -> Self
pub fn invalid_initialization() -> Self
Creates a InvalidInitialization error.
error InvalidInitialization()Sourcepub fn invalid_max_state_history() -> Self
pub fn invalid_max_state_history() -> Self
Creates a InvalidMaxStateHistory error.
error InvalidMaxStateHistory()Sourcepub fn invalid_proof() -> Self
pub fn invalid_proof() -> Self
Creates a InvalidProof error.
error InvalidProof()Sourcepub fn invalid_scalar() -> Self
pub fn invalid_scalar() -> Self
Creates a InvalidScalar error.
error InvalidScalar()Sourcepub fn no_change_required() -> Self
pub fn no_change_required() -> Self
Creates a NoChangeRequired error.
error NoChangeRequired()Sourcepub fn not_initializing() -> Self
pub fn not_initializing() -> Self
Creates a NotInitializing error.
error NotInitializing()Sourcepub fn outdated_state() -> Self
pub fn outdated_state() -> Self
Creates a OutdatedState error.
error OutdatedState()Sourcepub fn ownable_invalid_owner(owner: Address) -> Self
pub fn ownable_invalid_owner(owner: Address) -> Self
Creates a OwnableInvalidOwner error.
error OwnableInvalidOwner(address)Creates a OwnableUnauthorizedAccount error.
error OwnableUnauthorizedAccount(address)Sourcepub fn ownership_cannot_be_renounced() -> Self
pub fn ownership_cannot_be_renounced() -> Self
Creates a OwnershipCannotBeRenounced error.
error OwnershipCannotBeRenounced()Sourcepub fn prover_not_permissioned() -> Self
pub fn prover_not_permissioned() -> Self
Creates a ProverNotPermissioned error.
error ProverNotPermissioned()Creates a UUPSUnauthorizedCallContext error.
error UUPSUnauthorizedCallContext()Sourcepub fn uups_unsupported_proxiable_uuid(slot: FixedBytes<32>) -> Self
pub fn uups_unsupported_proxiable_uuid(slot: FixedBytes<32>) -> Self
Creates a UUPSUnsupportedProxiableUUID error.
error UUPSUnsupportedProxiableUUID(bytes32)Sourcepub fn wrong_stake_table_used() -> Self
pub fn wrong_stake_table_used() -> Self
Creates a WrongStakeTableUsed error.
error WrongStakeTableUsed()Trait Implementations§
Source§impl Clone for LightClientErrors
impl Clone for LightClientErrors
Source§fn clone(&self) -> LightClientErrors
fn clone(&self) -> LightClientErrors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LightClientErrors
impl Debug for LightClientErrors
Source§impl<'de> Deserialize<'de> for LightClientErrors
impl<'de> Deserialize<'de> for LightClientErrors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LightClientErrors
Source§impl Hash for LightClientErrors
impl Hash for LightClientErrors
Source§impl PartialEq for LightClientErrors
impl PartialEq for LightClientErrors
Source§impl Serialize for LightClientErrors
impl Serialize for LightClientErrors
Source§impl SolInterface for LightClientErrors
impl SolInterface for LightClientErrors
Source§const MIN_DATA_LENGTH: usize = 0usize
const MIN_DATA_LENGTH: usize = 0usize
Source§fn valid_selector(selector: [u8; 4]) -> bool
fn valid_selector(selector: [u8; 4]) -> bool
true if the given selector is known to this type.Source§fn abi_decode_raw(selector: [u8; 4], data: &[u8]) -> Result<Self>
fn abi_decode_raw(selector: [u8; 4], data: &[u8]) -> Result<Self>
self.Source§fn abi_decode_raw_with_config(
selector: [u8; 4],
data: &[u8],
config: AbiDecoderConfig,
) -> Result<Self>
fn abi_decode_raw_with_config( selector: [u8; 4], data: &[u8], config: AbiDecoderConfig, ) -> Result<Self>
Source§fn abi_decode_raw_validate(selector: [u8; 4], data: &[u8]) -> Result<Self>
fn abi_decode_raw_validate(selector: [u8; 4], data: &[u8]) -> Result<Self>
self, with validation. Read moreSource§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
Source§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
self into the given buffer, without any selectors.§fn type_check(selector: [u8; 4]) -> Result<(), Error>
fn type_check(selector: [u8; 4]) -> Result<(), Error>
§fn abi_encode(&self) -> Vec<u8> ⓘ
fn abi_encode(&self) -> Vec<u8> ⓘ
self into the given buffer.§fn abi_decode(data: &[u8]) -> Result<Self, Error>
fn abi_decode(data: &[u8]) -> Result<Self, Error>
self.§fn abi_decode_with_config(
data: &[u8],
config: AbiDecoderConfig,
) -> Result<Self, Error>
fn abi_decode_with_config( data: &[u8], config: AbiDecoderConfig, ) -> Result<Self, Error>
§fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
self, with validation. Read moreimpl StructuralPartialEq for LightClientErrors
Auto Trait Implementations§
impl Freeze for LightClientErrors
impl RefUnwindSafe for LightClientErrors
impl Send for LightClientErrors
impl Sync for LightClientErrors
impl Unpin for LightClientErrors
impl UnsafeUnpin for LightClientErrors
impl UnwindSafe for LightClientErrors
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
§impl<T> CallHasher for T
impl<T> CallHasher for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Element for T
impl<T> Element for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.