1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#[cfg(feature = "blocking")] mod blocking; #[cfg(feature = "blocking")] pub use blocking::Caller; #[cfg(feature = "non-blocking")] mod non_blocking; #[cfg(feature = "non-blocking")] pub use non_blocking::Caller as AsyncCaller; use crate::types::{Address, H256}; use ethane_abi::Parameter; pub struct CallOpts { pub force_call_type: Option<CallType>, pub from: Option<Address>, } pub enum CallType { Transaction, Call, } pub enum CallResult { Transaction(H256), Call(Vec<Parameter>), }