Struct switchboard_evm::sdk::EVMFunctionRunner
source · pub struct EVMFunctionRunner {
pub client: Provider<Http>,
pub signing_wallet: Arc<Wallet<SigningKey>>,
pub signer: Address,
pub verifying_contract: Address,
pub chain_id: u64,
}Fields§
§client: Provider<Http>§signing_wallet: Arc<Wallet<SigningKey>>§signer: Address§verifying_contract: Address§chain_id: u64Implementations§
source§impl EVMFunctionRunner
impl EVMFunctionRunner
pub fn new_with_client( client: Provider<Http> ) -> Result<Self, SwitchboardClientError>
pub fn new(url: &str) -> Result<EVMFunctionRunner, SwitchboardClientError>
pub fn get_result<T: JsonRpcClient>( &self, contract: EVMContract<T>, expiration_time_seconds: U256, gas_limit: U256, calls: Vec<ContractCall<EVMMiddleware<T>, ()>> ) -> Result<FunctionResult, SwitchboardClientError>
pub fn emit<T: JsonRpcClient>( &self, contract: EVMContract<T>, expiration_time_seconds: U256, gas_limit: U256, calls: Vec<ContractCall<EVMMiddleware<T>, ()>> ) -> Result<(), SwitchboardClientError>
Trait Implementations§
source§impl Clone for EVMFunctionRunner
impl Clone for EVMFunctionRunner
source§fn clone(&self) -> EVMFunctionRunner
fn clone(&self) -> EVMFunctionRunner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EVMFunctionRunner
impl Send for EVMFunctionRunner
impl Sync for EVMFunctionRunner
impl Unpin for EVMFunctionRunner
impl !UnwindSafe for EVMFunctionRunner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more