pub struct Sender<C: Signing + Context> {
pub private_key: SigningKey,
pub secp: Secp256k1<C>,
/* private fields */
}Fields
private_key: SigningKeysecp: Secp256k1<C>Implementations
sourceimpl Sender<All>
impl Sender<All>
pub fn new(daemon_state: &Rc<DaemonState>) -> Result<Sender<All>, BootError>
pub fn address(&self) -> Result<Addr, BootError>
pub fn pub_addr_str(&self) -> Result<String, BootError>
pub async fn bank_send(
&self,
recipient: &str,
coins: Vec<Coin>
) -> Result<CosmTxResponse, BootError>
pub async fn commit_tx<T: Msg>(
&self,
msgs: Vec<T>,
memo: Option<&str>
) -> Result<CosmTxResponse, BootError>
pub async fn base_account(&self) -> Result<BaseAccount, BootError>
pub async fn simulate_tx(&self, tx_bytes: Vec<u8>) -> Result<u64, BootError>
pub fn channel(&self) -> Channel
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request