pub struct StarknetFunctionRunner {
pub function_id: FieldElement,
pub enclave_key: SigningKey,
pub enclave_wallet: LocalWallet,
pub signer: FieldElement,
pub verifying_contract: FieldElement,
pub chain_id: u64,
pub call_id: FieldElement,
pub params: Vec<FieldElement>,
pub is_routine: bool,
pub call_data: Vec<u8>,
}Fields§
§function_id: FieldElement§enclave_key: SigningKey§enclave_wallet: LocalWallet§signer: FieldElement§verifying_contract: FieldElement§chain_id: u64§call_id: FieldElement§params: Vec<FieldElement>§is_routine: bool§call_data: Vec<u8>Implementations§
Source§impl StarknetFunctionRunner
impl StarknetFunctionRunner
pub fn new() -> Result<StarknetFunctionRunner, SwitchboardClientError>
pub fn get_result( &self, calls: Vec<NativeCall>, ) -> Result<FunctionResult, SwitchboardClientError>
pub fn emit(&self, calls: Vec<NativeCall>) -> Result<(), SwitchboardClientError>
pub fn emit_error(&self, error_code: u8) -> Result<(), SwitchboardClientError>
Trait Implementations§
Source§impl Clone for StarknetFunctionRunner
impl Clone for StarknetFunctionRunner
Source§fn clone(&self) -> StarknetFunctionRunner
fn clone(&self) -> StarknetFunctionRunner
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 Freeze for StarknetFunctionRunner
impl RefUnwindSafe for StarknetFunctionRunner
impl Send for StarknetFunctionRunner
impl Sync for StarknetFunctionRunner
impl Unpin for StarknetFunctionRunner
impl UnwindSafe for StarknetFunctionRunner
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