Struct switchboard_evm::sdk::EVMFunctionRunner
source · pub struct EVMFunctionRunner {
pub function_id: Address,
pub enclave_wallet: Wallet<SigningKey>,
pub signer: Address,
pub verifying_contract: Address,
pub chain_id: u64,
pub params: Vec<Vec<u8>>,
pub call_ids: Vec<Address>,
}Fields§
§function_id: Address§enclave_wallet: Wallet<SigningKey>§signer: Address§verifying_contract: Address§chain_id: u64§params: Vec<Vec<u8>>§call_ids: Vec<Address>Implementations§
source§impl EVMFunctionRunner
impl EVMFunctionRunner
pub fn new() -> Result<EVMFunctionRunner, SwitchboardClientError>
pub fn get_result<T: JsonRpcClient>( &self, to: Address, expiration_time_seconds: U256, gas_limit: U256, calls: Vec<ContractCall<EVMMiddleware<T>, ()>>, call_ids: Vec<Address> ) -> Result<FunctionResult, SwitchboardClientError>
pub fn params<T: AbiDecode>( &self ) -> Vec<(Result<T, SwitchboardClientError>, Address)>
pub fn emit<T: JsonRpcClient>( &self, to: Address, expiration_time_seconds: U256, gas_limit: U256, calls: Vec<ContractCall<EVMMiddleware<T>, ()>> ) -> Result<(), SwitchboardClientError>
pub fn emit_resolve<T: JsonRpcClient>( &self, to: Address, expiration_time_seconds: U256, gas_limit: U256, calls: Vec<ContractCall<EVMMiddleware<T>, ()>>, call_ids: Vec<Address> ) -> 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