pub struct Sender<C: Signing + Context> {
pub private_key: SigningKey,
pub secp: Secp256k1<C>,
/* private fields */
}
Fields§
§private_key: SigningKey
§secp: Secp256k1<C>
Implementations§
Source§impl<C: Signing + Context> Sender<C>
impl<C: Signing + Context> Sender<C>
pub fn new( config: Deployment, secp: Secp256k1<C>, ) -> Result<Sender<C>, CosmScriptError>
pub fn pub_addr(&self) -> Result<AccountId, CosmScriptError>
pub fn pub_addr_str(&self) -> Result<String, CosmScriptError>
pub async fn bank_send( &self, recipient: &str, coins: Vec<Coin>, ) -> Result<CosmTxResponse, CosmScriptError>
pub async fn commit_tx<T: Msg>( &self, msgs: Vec<T>, memo: Option<&str>, ) -> Result<CosmTxResponse, CosmScriptError>
pub async fn base_account(&self) -> Result<BaseAccount, CosmScriptError>
pub async fn simulate_tx( &self, tx_bytes: Vec<u8>, ) -> Result<u64, CosmScriptError>
pub fn channel(&self) -> Channel
Auto Trait Implementations§
impl<C> Freeze for Sender<C>
impl<C> !RefUnwindSafe for Sender<C>
impl<C> !Send for Sender<C>
impl<C> !Sync for Sender<C>
impl<C> Unpin for Sender<C>where
C: Unpin,
impl<C> !UnwindSafe for Sender<C>
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> 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