pub struct OracleAdminClient { /* private fields */ }Implementations§
Source§impl OracleAdminClient
impl OracleAdminClient
pub fn new( cosmos_client: Arc<CosmosClient>, chain_config: ChainConfig, ) -> Result<Self, OracleError>
pub async fn execute_tx( &self, builder: TxBuilder, ) -> Result<Response, OracleError>
pub async fn broadcast_tx( &self, signed_bytes: Vec<u8>, ) -> Result<Response, OracleError>
pub async fn account( &self, account_address: String, ) -> Result<BaseAccount, OracleError>
Source§impl OracleAdminClient
impl OracleAdminClient
pub fn append_add_asset_pairs_msg( &self, tx_builder: &mut TxBuilder, asset_pairs: Vec<AssetPair>, ) -> Result<(), OracleError>
Source§impl OracleAdminClient
impl OracleAdminClient
pub async fn chain_id(&self) -> Result<Id, OracleError>
Source§impl OracleAdminClient
impl OracleAdminClient
pub fn append_post_prices_msg( &self, tx_builder: &mut TxBuilder, price_updates: Vec<PriceUpdate>, ) -> Result<(), OracleError>
Source§impl OracleAdminClient
impl OracleAdminClient
pub fn append_remove_asset_pairs_msg( &self, tx_builder: &mut TxBuilder, asset_pairs: Vec<AssetPair>, ) -> Result<(), OracleError>
Source§impl OracleAdminClient
impl OracleAdminClient
pub fn append_update_config_msg( &self, tx_builder: &mut TxBuilder, price_threshold_ratio: Option<Decimal256>, price_expire_millis: Option<u64>, ) -> Result<(), OracleError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OracleAdminClient
impl !UnwindSafe for OracleAdminClient
impl Freeze for OracleAdminClient
impl Send for OracleAdminClient
impl Sync for OracleAdminClient
impl Unpin for OracleAdminClient
impl UnsafeUnpin for OracleAdminClient
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request