pub trait Call {
type State: StateInfo;
fn call(
&self,
tx: &SignedTransaction,
analytics: CallAnalytics,
state: &mut Self::State,
header: &Header
) -> Result<Executed, CallError>;
fn call_many(
&self,
txs: &[(SignedTransaction, CallAnalytics)],
state: &mut Self::State,
header: &Header
) -> Result<Vec<Executed>, CallError>;
fn estimate_gas(
&self,
t: &SignedTransaction,
state: &Self::State,
header: &Header
) -> Result<U256, CallError>;
}
Expand description
Provides call
and call_many
methods
Associated Types
Required methods
fn call(
&self,
tx: &SignedTransaction,
analytics: CallAnalytics,
state: &mut Self::State,
header: &Header
) -> Result<Executed, CallError>
fn call(
&self,
tx: &SignedTransaction,
analytics: CallAnalytics,
state: &mut Self::State,
header: &Header
) -> Result<Executed, CallError>
Makes a non-persistent transaction call.
Makes multiple non-persistent but dependent transaction calls. Returns a vector of successes or a failure if any of the transaction fails.
fn estimate_gas(
&self,
t: &SignedTransaction,
state: &Self::State,
header: &Header
) -> Result<U256, CallError>
fn estimate_gas(
&self,
t: &SignedTransaction,
state: &Self::State,
header: &Header
) -> Result<U256, CallError>
Estimates how much gas will be necessary for a call.