multiversx_price_aggregator_sc

Struct ProxyTo

Source
pub struct ProxyTo<A>
where A: VMApi + 'static,
{ pub address: ManagedOption<A, ManagedAddress<A>>, }

Fields§

§address: ManagedOption<A, ManagedAddress<A>>

Trait Implementations§

Source§

impl<A> ProxyObjBase for ProxyTo<A>
where A: VMApi + 'static,

Source§

impl<A> ProxyTrait for ProxyTo<A>
where A: VMApi,

Source§

fn pause_endpoint( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn unpause_endpoint( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn paused_status( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<SingleValueMapper<Self::Api, bool>>>

Source§

impl<A> ProxyTrait for ProxyTo<A>
where A: VMApi,

Source§

fn stake( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn unstake<Arg0>( &mut self, unstake_amount: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>
where Arg0: ProxyArg<BigUint<Self::Api>>,

Source§

fn vote_slash_member<Arg0>( &mut self, member_to_slash: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>
where Arg0: ProxyArg<ManagedAddress<Self::Api>>,

Source§

fn cancel_vote_slash_member<Arg0>( &mut self, member_to_slash: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>
where Arg0: ProxyArg<ManagedAddress<Self::Api>>,

Source§

fn slash_member<Arg0>( &mut self, member_to_slash: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>
where Arg0: ProxyArg<ManagedAddress<Self::Api>>,

Source§

impl<A> ProxyTrait for ProxyTo<A>
where A: VMApi,

Source§

fn init<Arg0: ProxyArg<EgldOrEsdtTokenIdentifier<Self::Api>>, Arg1: ProxyArg<BigUint<Self::Api>>, Arg2: ProxyArg<BigUint<Self::Api>>, Arg3: ProxyArg<usize>, Arg4: ProxyArg<usize>, Arg5: ProxyArg<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>( &mut self, staking_token: Arg0, staking_amount: Arg1, slash_amount: Arg2, slash_quorum: Arg3, submission_count: Arg4, oracles: Arg5, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), DeployCall<TxScEnv<Self::Api>, ()>, OriginalResultMarker<()>>

Source§

fn upgrade( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn change_amounts<Arg0: ProxyArg<BigUint<Self::Api>>, Arg1: ProxyArg<BigUint<Self::Api>>>( &mut self, staking_amount: Arg0, slash_amount: Arg1, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn add_oracles<Arg0: ProxyArg<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>( &mut self, oracles: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn remove_oracles<Arg0: ProxyArg<usize>, Arg1: ProxyArg<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>( &mut self, submission_count: Arg0, oracles: Arg1, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn submit<Arg0: ProxyArg<ManagedBuffer<Self::Api>>, Arg1: ProxyArg<ManagedBuffer<Self::Api>>, Arg2: ProxyArg<u64>, Arg3: ProxyArg<BigUint<Self::Api>>, Arg4: ProxyArg<u8>>( &mut self, from: Arg0, to: Arg1, submission_timestamp: Arg2, price: Arg3, decimals: Arg4, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn submit_batch<Arg0: ProxyArg<MultiValueEncoded<Self::Api, MultiValue5<ManagedBuffer<Self::Api>, ManagedBuffer<Self::Api>, u64, BigUint<Self::Api>, u8>>>>( &mut self, submissions: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn latest_round_data( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<MultiValueEncoded<Self::Api, PriceFeed<Self::Api>>>>

Source§

fn latest_price_feed<Arg0: ProxyArg<ManagedBuffer<Self::Api>>, Arg1: ProxyArg<ManagedBuffer<Self::Api>>>( &mut self, from: Arg0, to: Arg1, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<MultiValue6<u32, ManagedBuffer<Self::Api>, ManagedBuffer<Self::Api>, u64, BigUint<Self::Api>, u8>>>

Source§

fn latest_price_feed_optional<Arg0: ProxyArg<ManagedBuffer<Self::Api>>, Arg1: ProxyArg<ManagedBuffer<Self::Api>>>( &mut self, from: Arg0, to: Arg1, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<OptionalValue<MultiValue6<u32, ManagedBuffer<Self::Api>, ManagedBuffer<Self::Api>, u64, BigUint<Self::Api>, u8>>>>

Source§

fn set_submission_count<Arg0: ProxyArg<usize>>( &mut self, submission_count: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn get_oracles( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>>

Source§

fn set_pair_decimals<Arg0: ProxyArg<ManagedBuffer<Self::Api>>, Arg1: ProxyArg<ManagedBuffer<Self::Api>>, Arg2: ProxyArg<u8>>( &mut self, from: Arg0, to: Arg1, decimals: Arg2, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>>

Source§

fn get_pair_decimals<Arg0: ProxyArg<ManagedBuffer<Self::Api>>, Arg1: ProxyArg<ManagedBuffer<Self::Api>>>( &mut self, from: Arg0, to: Arg1, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<u8>>

Source§

fn submission_count( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<SingleValueMapper<Self::Api, usize>>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.