pub enum ElContractsError {
Show 23 variants
GetSlasher,
GetStrategyManager,
GetDelegationApprovalDigestHash,
GetOperatorAvsRegistrationDigestHash,
GetOperatorShares,
IsFrozen,
ServiceManagerCanSlashOperatorExpiry,
GetUnderlyingToken,
IsOperator,
RegisterAsOperator,
ModifyOperatorDetails,
GetStrategyAndUnderlyingERC20Token,
ApproveCallToUnderlyingToken,
DepositIntoStrategy,
UpdateMetadataUri,
AlloyContractError(Error),
AlloyPendingTransactionError(PendingTransactionError),
AllocationDelayNotSet,
NoSlashableSharesFound,
BLSKeyPairInvalid,
MissingParameter,
StakerOptOutWindowBlocksNotSet,
InvalidSignature,
}
Variants§
GetSlasher
Get slasher address
GetStrategyManager
Get strategy manager
GetDelegationApprovalDigestHash
Get delegation approval digest hash
GetOperatorAvsRegistrationDigestHash
Get Operator avs registration digest hash
Get Operator shares
IsFrozen
Is frozen
ServiceManagerCanSlashOperatorExpiry
service_manager_can_slash_operator_until_block
GetUnderlyingToken
Get underlying token
IsOperator
is operator or not
RegisterAsOperator
registering as operator
ModifyOperatorDetails
modify operator details
GetStrategyAndUnderlyingERC20Token
get strategy and underlying erc20 token
ApproveCallToUnderlyingToken
approve to underlying token
DepositIntoStrategy
deposit into strategy call
UpdateMetadataUri
update metadata uri
AlloyContractError(Error)
AlloyPendingTransactionError(PendingTransactionError)
AllocationDelayNotSet
BLSKeyPairInvalid
MissingParameter
StakerOptOutWindowBlocksNotSet
InvalidSignature
Trait Implementations§
Source§impl Debug for ElContractsError
impl Debug for ElContractsError
Source§impl Display for ElContractsError
impl Display for ElContractsError
Source§impl Error for ElContractsError
impl Error for ElContractsError
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 From<Error> for ElContractsError
impl From<Error> for ElContractsError
Source§fn from(source: AlloyError) -> Self
fn from(source: AlloyError) -> Self
Converts to this type from the input type.
Source§impl From<PendingTransactionError> for ElContractsError
impl From<PendingTransactionError> for ElContractsError
Source§fn from(source: PendingTransactionError) -> Self
fn from(source: PendingTransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElContractsError
impl !RefUnwindSafe for ElContractsError
impl Send for ElContractsError
impl Sync for ElContractsError
impl Unpin for ElContractsError
impl !UnwindSafe for ElContractsError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.