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§
source§impl 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§
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