pub enum EspTokenV2Errors {
Show 19 variants
AddressEmptyCode(AddressEmptyCode),
ERC1967InvalidImplementation(ERC1967InvalidImplementation),
ERC1967NonPayable(ERC1967NonPayable),
ERC20InsufficientAllowance(ERC20InsufficientAllowance),
ERC20InsufficientBalance(ERC20InsufficientBalance),
ERC20InvalidApprover(ERC20InvalidApprover),
ERC20InvalidReceiver(ERC20InvalidReceiver),
ERC20InvalidSender(ERC20InvalidSender),
ERC20InvalidSpender(ERC20InvalidSpender),
FailedInnerCall(FailedInnerCall),
InvalidInitialization(InvalidInitialization),
NotInitializing(NotInitializing),
OnlyRewardClaim(OnlyRewardClaim),
OwnableInvalidOwner(OwnableInvalidOwner),
OwnableUnauthorizedAccount(OwnableUnauthorizedAccount),
OwnershipCannotBeRenounced(OwnershipCannotBeRenounced),
UUPSUnauthorizedCallContext(UUPSUnauthorizedCallContext),
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID),
ZeroRewardClaimAddress(ZeroRewardClaimAddress),
}Expand description
Container for all the EspTokenV2 custom errors.
Variants§
AddressEmptyCode(AddressEmptyCode)
ERC1967InvalidImplementation(ERC1967InvalidImplementation)
ERC1967NonPayable(ERC1967NonPayable)
ERC20InsufficientAllowance(ERC20InsufficientAllowance)
ERC20InsufficientBalance(ERC20InsufficientBalance)
ERC20InvalidApprover(ERC20InvalidApprover)
ERC20InvalidReceiver(ERC20InvalidReceiver)
ERC20InvalidSender(ERC20InvalidSender)
ERC20InvalidSpender(ERC20InvalidSpender)
FailedInnerCall(FailedInnerCall)
InvalidInitialization(InvalidInitialization)
NotInitializing(NotInitializing)
OnlyRewardClaim(OnlyRewardClaim)
OwnableInvalidOwner(OwnableInvalidOwner)
OwnershipCannotBeRenounced(OwnershipCannotBeRenounced)
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID)
ZeroRewardClaimAddress(ZeroRewardClaimAddress)
Implementations§
Source§impl EspTokenV2Errors
impl EspTokenV2Errors
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 EspTokenV2Errors
impl EspTokenV2Errors
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 erc_20_insufficient_allowance(
spender: Address,
allowance: U256,
needed: U256,
) -> Self
pub fn erc_20_insufficient_allowance( spender: Address, allowance: U256, needed: U256, ) -> Self
Creates a ERC20InsufficientAllowance error.
error ERC20InsufficientAllowance(address,uint256,uint256)Sourcepub fn erc_20_insufficient_balance(
sender: Address,
balance: U256,
needed: U256,
) -> Self
pub fn erc_20_insufficient_balance( sender: Address, balance: U256, needed: U256, ) -> Self
Creates a ERC20InsufficientBalance error.
error ERC20InsufficientBalance(address,uint256,uint256)Sourcepub fn erc_20_invalid_approver(approver: Address) -> Self
pub fn erc_20_invalid_approver(approver: Address) -> Self
Creates a ERC20InvalidApprover error.
error ERC20InvalidApprover(address)Sourcepub fn erc_20_invalid_receiver(receiver: Address) -> Self
pub fn erc_20_invalid_receiver(receiver: Address) -> Self
Creates a ERC20InvalidReceiver error.
error ERC20InvalidReceiver(address)Sourcepub fn erc_20_invalid_sender(sender: Address) -> Self
pub fn erc_20_invalid_sender(sender: Address) -> Self
Creates a ERC20InvalidSender error.
error ERC20InvalidSender(address)Sourcepub fn erc_20_invalid_spender(spender: Address) -> Self
pub fn erc_20_invalid_spender(spender: Address) -> Self
Creates a ERC20InvalidSpender error.
error ERC20InvalidSpender(address)Sourcepub fn failed_inner_call() -> Self
pub fn failed_inner_call() -> Self
Creates a FailedInnerCall error.
error FailedInnerCall()Sourcepub fn invalid_initialization() -> Self
pub fn invalid_initialization() -> Self
Creates a InvalidInitialization error.
error InvalidInitialization()Sourcepub fn not_initializing() -> Self
pub fn not_initializing() -> Self
Creates a NotInitializing error.
error NotInitializing()Sourcepub fn only_reward_claim() -> Self
pub fn only_reward_claim() -> Self
Creates a OnlyRewardClaim error.
error OnlyRewardClaim()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()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 zero_reward_claim_address() -> Self
pub fn zero_reward_claim_address() -> Self
Creates a ZeroRewardClaimAddress error.
error ZeroRewardClaimAddress()Trait Implementations§
Source§impl Clone for EspTokenV2Errors
impl Clone for EspTokenV2Errors
Source§fn clone(&self) -> EspTokenV2Errors
fn clone(&self) -> EspTokenV2Errors
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 EspTokenV2Errors
impl Debug for EspTokenV2Errors
Source§impl<'de> Deserialize<'de> for EspTokenV2Errors
impl<'de> Deserialize<'de> for EspTokenV2Errors
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 EspTokenV2Errors
Source§impl Hash for EspTokenV2Errors
impl Hash for EspTokenV2Errors
Source§impl PartialEq for EspTokenV2Errors
impl PartialEq for EspTokenV2Errors
Source§impl Serialize for EspTokenV2Errors
impl Serialize for EspTokenV2Errors
Source§impl SolInterface for EspTokenV2Errors
impl SolInterface for EspTokenV2Errors
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 EspTokenV2Errors
Auto Trait Implementations§
impl Freeze for EspTokenV2Errors
impl RefUnwindSafe for EspTokenV2Errors
impl Send for EspTokenV2Errors
impl Sync for EspTokenV2Errors
impl Unpin for EspTokenV2Errors
impl UnsafeUnpin for EspTokenV2Errors
impl UnwindSafe for EspTokenV2Errors
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.