Struct switchboard_solana::env::EvmFunctionEnvironment
pub struct EvmFunctionEnvironment {
pub chain_id: u64,
pub verifying_contract: String,
pub function_key: String,
pub function_params: String,
pub function_call_ids: Vec<String>,
}
Expand description
EVM specific environment used during a Switchboard function execution
Fields§
§chain_id: u64
CHAIN_ID
: The chain ID of the chain this evm function is executing on
verifying_contract: String
VERIFYING_CONTRACT
: An environmnet variable denoting the signoff
callback program ID. On evm chains this is equivalent to the Switchboard
program address.
function_key: String
FUNCTION_KEY
: environemnt variable passed in that denoted what function
is executing
function_params: String
A list of function parameter based calls to attempt to handle this run. Parsing these is up to the function.
function_call_ids: Vec<String>
FUNCTION_CALL_IDS
: A list of the UUIDs of all the calls the function
will be attempting to resolve.
Implementations§
Trait Implementations§
§impl Debug for EvmFunctionEnvironment
impl Debug for EvmFunctionEnvironment
§impl Default for EvmFunctionEnvironment
impl Default for EvmFunctionEnvironment
§fn default() -> EvmFunctionEnvironment
fn default() -> EvmFunctionEnvironment
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for EvmFunctionEnvironment
impl<'de> Deserialize<'de> for EvmFunctionEnvironment
§fn deserialize<__D>(
__deserializer: __D
) -> Result<EvmFunctionEnvironment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EvmFunctionEnvironment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EvmFunctionEnvironment
impl Send for EvmFunctionEnvironment
impl Sync for EvmFunctionEnvironment
impl Unpin for EvmFunctionEnvironment
impl UnwindSafe for EvmFunctionEnvironment
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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