pub struct Daemon {
pub sender: Rc<Sender<All>>,
pub state: Rc<DaemonState>,
pub runtime: Rc<Runtime>,
}
Fields
sender: Rc<Sender<All>>
state: Rc<DaemonState>
runtime: Rc<Runtime>
Implementations
Trait Implementations
sourceimpl TxHandler for Daemon
impl TxHandler for Daemon
type Response = CosmTxResponse
fn sender(&self) -> Addr
fn execute<E: Serialize>(
&self,
exec_msg: &E,
coins: &[Coin],
contract_address: &Addr
) -> Result<Self::Response, BootError>
fn instantiate<I: Serialize + Debug>(
&self,
code_id: u64,
init_msg: &I,
label: Option<&str>,
admin: Option<&Addr>,
coins: &[Coin]
) -> Result<Self::Response, BootError>
fn query<Q: Serialize + Debug, T: Serialize + DeserializeOwned>(
&self,
query_msg: &Q,
contract_address: &Addr
) -> Result<T, BootError>
fn migrate<M: Serialize + Debug>(
&self,
migrate_msg: &M,
new_code_id: u64,
contract_address: &Addr
) -> Result<Self::Response, BootError>
fn upload(
&self,
contract_source: &mut ContractCodeReference<Empty>
) -> Result<Self::Response, BootError>
fn wait_blocks(&self, amount: u64) -> Result<(), BootError>
fn next_block(&self) -> Result<(), BootError>
Auto Trait Implementations
impl !RefUnwindSafe for Daemon
impl !Send for Daemon
impl !Sync for Daemon
impl Unpin for Daemon
impl !UnwindSafe for Daemon
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