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,
}
Fields§
§function_id: Address
§enclave_wallet: Wallet<SigningKey>
§signer: Address
§verifying_contract: Address
§chain_id: u64
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>, ()>> ) -> Result<FunctionResult, SwitchboardClientError>
pub fn emit<T: JsonRpcClient>( &self, to: Address, 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