multiversx_price_aggregator_sc

Trait ProxyTrait

Source
pub trait ProxyTrait:
    ProxyObjBase
    + Sized
    + ProxyTrait
    + ProxyTrait
    + ProxyTrait {
Show 15 methods // Provided methods 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<()>> { ... } fn upgrade( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>> { ... } 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<()>> { ... } 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<()>> { ... } 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<()>> { ... } 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<()>> { ... } 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<()>> { ... } fn latest_round_data( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<MultiValueEncoded<Self::Api, PriceFeed<Self::Api>>>> { ... } 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>>> { ... } 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>>>> { ... } fn set_submission_count<Arg0: ProxyArg<usize>>( &mut self, submission_count: Arg0, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<()>> { ... } fn get_oracles( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<MultiValueEncoded<Self::Api, ManagedAddress<Self::Api>>>> { ... } 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<()>> { ... } 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>> { ... } fn submission_count( &mut self, ) -> Tx<TxScEnv<Self::Api>, (), Self::To, (), (), FunctionCall<Self::Api>, OriginalResultMarker<SingleValueMapper<Self::Api, usize>>> { ... }
}

Provided Methods§

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>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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