pub enum RewardClaimErrors {
Show 27 variants
AccessControlBadConfirmation(AccessControlBadConfirmation),
AccessControlUnauthorizedAccount(AccessControlUnauthorizedAccount),
AddressEmptyCode(AddressEmptyCode),
AlreadyClaimed(AlreadyClaimed),
DailyLimitExceeded(DailyLimitExceeded),
DailyLimitTooHigh(DailyLimitTooHigh),
DefaultAdminCannotBeRenounced(DefaultAdminCannotBeRenounced),
DefaultAdminCannotBeRevoked(DefaultAdminCannotBeRevoked),
ERC1967InvalidImplementation(ERC1967InvalidImplementation),
ERC1967NonPayable(ERC1967NonPayable),
EnforcedPause(EnforcedPause),
ExpectedPause(ExpectedPause),
FailedInnerCall(FailedInnerCall),
InvalidAuthRoot(InvalidAuthRoot),
InvalidInitialization(InvalidInitialization),
InvalidRewardAmount(InvalidRewardAmount),
NoChangeRequired(NoChangeRequired),
NotInitializing(NotInitializing),
ReentrancyGuardReentrantCall(ReentrancyGuardReentrantCall),
UUPSUnauthorizedCallContext(UUPSUnauthorizedCallContext),
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID),
ZeroAdminAddress(ZeroAdminAddress),
ZeroDailyLimit(ZeroDailyLimit),
ZeroLightClientAddress(ZeroLightClientAddress),
ZeroPauserAddress(ZeroPauserAddress),
ZeroTokenAddress(ZeroTokenAddress),
ZeroTotalSupply(ZeroTotalSupply),
}Expand description
Container for all the RewardClaim custom errors.
Variants§
AccessControlBadConfirmation(AccessControlBadConfirmation)
AddressEmptyCode(AddressEmptyCode)
AlreadyClaimed(AlreadyClaimed)
DailyLimitExceeded(DailyLimitExceeded)
DailyLimitTooHigh(DailyLimitTooHigh)
DefaultAdminCannotBeRenounced(DefaultAdminCannotBeRenounced)
DefaultAdminCannotBeRevoked(DefaultAdminCannotBeRevoked)
ERC1967InvalidImplementation(ERC1967InvalidImplementation)
ERC1967NonPayable(ERC1967NonPayable)
EnforcedPause(EnforcedPause)
ExpectedPause(ExpectedPause)
FailedInnerCall(FailedInnerCall)
InvalidAuthRoot(InvalidAuthRoot)
InvalidInitialization(InvalidInitialization)
InvalidRewardAmount(InvalidRewardAmount)
NoChangeRequired(NoChangeRequired)
NotInitializing(NotInitializing)
ReentrancyGuardReentrantCall(ReentrancyGuardReentrantCall)
UUPSUnsupportedProxiableUUID(UUPSUnsupportedProxiableUUID)
ZeroAdminAddress(ZeroAdminAddress)
ZeroDailyLimit(ZeroDailyLimit)
ZeroLightClientAddress(ZeroLightClientAddress)
ZeroPauserAddress(ZeroPauserAddress)
ZeroTokenAddress(ZeroTokenAddress)
ZeroTotalSupply(ZeroTotalSupply)
Implementations§
Source§impl RewardClaimErrors
impl RewardClaimErrors
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 RewardClaimErrors
impl RewardClaimErrors
Sourcepub fn access_control_bad_confirmation() -> Self
pub fn access_control_bad_confirmation() -> Self
Creates a AccessControlBadConfirmation error.
error AccessControlBadConfirmation()Creates a AccessControlUnauthorizedAccount error.
error AccessControlUnauthorizedAccount(address,bytes32)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 already_claimed() -> Self
pub fn already_claimed() -> Self
Creates a AlreadyClaimed error.
error AlreadyClaimed()Sourcepub fn daily_limit_exceeded() -> Self
pub fn daily_limit_exceeded() -> Self
Creates a DailyLimitExceeded error.
error DailyLimitExceeded()Sourcepub fn daily_limit_too_high() -> Self
pub fn daily_limit_too_high() -> Self
Creates a DailyLimitTooHigh error.
error DailyLimitTooHigh()Sourcepub fn default_admin_cannot_be_renounced() -> Self
pub fn default_admin_cannot_be_renounced() -> Self
Creates a DefaultAdminCannotBeRenounced error.
error DefaultAdminCannotBeRenounced()Sourcepub fn default_admin_cannot_be_revoked() -> Self
pub fn default_admin_cannot_be_revoked() -> Self
Creates a DefaultAdminCannotBeRevoked error.
error DefaultAdminCannotBeRevoked()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 enforced_pause() -> Self
pub fn enforced_pause() -> Self
Creates a EnforcedPause error.
error EnforcedPause()Sourcepub fn expected_pause() -> Self
pub fn expected_pause() -> Self
Creates a ExpectedPause error.
error ExpectedPause()Sourcepub fn failed_inner_call() -> Self
pub fn failed_inner_call() -> Self
Creates a FailedInnerCall error.
error FailedInnerCall()Sourcepub fn invalid_auth_root() -> Self
pub fn invalid_auth_root() -> Self
Creates a InvalidAuthRoot error.
error InvalidAuthRoot()Sourcepub fn invalid_initialization() -> Self
pub fn invalid_initialization() -> Self
Creates a InvalidInitialization error.
error InvalidInitialization()Sourcepub fn invalid_reward_amount() -> Self
pub fn invalid_reward_amount() -> Self
Creates a InvalidRewardAmount error.
error InvalidRewardAmount()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 reentrancy_guard_reentrant_call() -> Self
pub fn reentrancy_guard_reentrant_call() -> Self
Creates a ReentrancyGuardReentrantCall error.
error ReentrancyGuardReentrantCall()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_admin_address() -> Self
pub fn zero_admin_address() -> Self
Creates a ZeroAdminAddress error.
error ZeroAdminAddress()Sourcepub fn zero_daily_limit() -> Self
pub fn zero_daily_limit() -> Self
Creates a ZeroDailyLimit error.
error ZeroDailyLimit()Sourcepub fn zero_light_client_address() -> Self
pub fn zero_light_client_address() -> Self
Creates a ZeroLightClientAddress error.
error ZeroLightClientAddress()Sourcepub fn zero_pauser_address() -> Self
pub fn zero_pauser_address() -> Self
Creates a ZeroPauserAddress error.
error ZeroPauserAddress()Sourcepub fn zero_token_address() -> Self
pub fn zero_token_address() -> Self
Creates a ZeroTokenAddress error.
error ZeroTokenAddress()Sourcepub fn zero_total_supply() -> Self
pub fn zero_total_supply() -> Self
Creates a ZeroTotalSupply error.
error ZeroTotalSupply()Trait Implementations§
Source§impl Clone for RewardClaimErrors
impl Clone for RewardClaimErrors
Source§fn clone(&self) -> RewardClaimErrors
fn clone(&self) -> RewardClaimErrors
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 RewardClaimErrors
impl Debug for RewardClaimErrors
Source§impl<'de> Deserialize<'de> for RewardClaimErrors
impl<'de> Deserialize<'de> for RewardClaimErrors
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 RewardClaimErrors
Source§impl Hash for RewardClaimErrors
impl Hash for RewardClaimErrors
Source§impl PartialEq for RewardClaimErrors
impl PartialEq for RewardClaimErrors
Source§impl Serialize for RewardClaimErrors
impl Serialize for RewardClaimErrors
Source§impl SolInterface for RewardClaimErrors
impl SolInterface for RewardClaimErrors
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 RewardClaimErrors
Auto Trait Implementations§
impl Freeze for RewardClaimErrors
impl RefUnwindSafe for RewardClaimErrors
impl Send for RewardClaimErrors
impl Sync for RewardClaimErrors
impl Unpin for RewardClaimErrors
impl UnsafeUnpin for RewardClaimErrors
impl UnwindSafe for RewardClaimErrors
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.