pub struct DelegationSCProxyMethods<Env, From, To, Gas>{ /* private fields */ }
Expand description
Method container of the Delegation smart contract proxy.
Implementations§
Source§impl<Env, From, To, Gas> DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> DelegationSCProxyMethods<Env, From, To, Gas>
pub fn set_metadata<Arg0, Arg1, Arg2>(
self,
name: Arg0,
website: Arg1,
identifier: Arg2,
) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>where
Arg0: ProxyArg<ManagedBuffer<<Env as TxEnv>::Api>>,
Arg1: ProxyArg<ManagedBuffer<<Env as TxEnv>::Api>>,
Arg2: ProxyArg<ManagedBuffer<<Env as TxEnv>::Api>>,
pub fn change_service_fee<Arg0>( self, service_fee: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn set_automatic_activation( self, automatic_activation: bool, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn modify_total_delegation_cap<Arg0>( self, new_total_delegation_cap: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn add_nodes<Arg0>( self, bls_keys_signatures: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn stake_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn unstake_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn restake_unstaked_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn unbond_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn remove_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn unjail_nodes<Arg0>( self, bls_keys: Arg0, ) -> Tx<Env, From, To, Egld<BigUint<<Env as TxEnv>::Api>>, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
Sourcepub fn delegate(
self,
egld_value: BigUint<<Env as TxEnv>::Api>,
) -> Tx<Env, From, To, Egld<BigUint<<Env as TxEnv>::Api>>, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn delegate( self, egld_value: BigUint<<Env as TxEnv>::Api>, ) -> Tx<Env, From, To, Egld<BigUint<<Env as TxEnv>::Api>>, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
The minimum value for creating a new delegation contract is 1 EGLD
pub fn claim_rewards( self, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn redelegate_rewards( self, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn set_check_cap_on_redelegate_rewards( self, state: bool, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
Sourcepub fn undelegate(
self,
undelegate_egld_amount: BigUint<<Env as TxEnv>::Api>,
) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn undelegate( self, undelegate_egld_amount: BigUint<<Env as TxEnv>::Api>, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
The minimum value for undelegating is 1 EGLD
pub fn withdraw( self, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<()>>
pub fn get_all_node_states( self, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<ManagedBuffer<<Env as TxEnv>::Api>>>
pub fn get_total_active_stake( self, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<BigUint<<Env as TxEnv>::Api>>>
pub fn get_user_active_stake( self, owner: &ManagedAddress<<Env as TxEnv>::Api>, ) -> Tx<Env, From, To, NotPayable, Gas, FunctionCall<<Env as TxEnv>::Api>, OriginalResultMarker<BigUint<<Env as TxEnv>::Api>>>
Auto Trait Implementations§
impl<Env, From, To, Gas> Freeze for DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> RefUnwindSafe for DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> Send for DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> Sync for DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> Unpin for DelegationSCProxyMethods<Env, From, To, Gas>
impl<Env, From, To, Gas> UnwindSafe for DelegationSCProxyMethods<Env, From, To, Gas>
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> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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 more