pub struct PrepareUserOperationSimulationInput {
pub address: PrepareUserOperationSimulationInputAddress,
pub calls: Vec<EvmCall>,
pub data_suffix: Option<PrepareUserOperationSimulationInputDataSuffix>,
pub network: EvmUserOperationNetwork,
pub operation: PrepareUserOperationSimulationInputOperation,
pub paymaster_context: Option<PaymasterContext>,
pub paymaster_url: Option<Url>,
}Expand description
PrepareUserOperationSimulationInput
JSON schema
{
"title": "PrepareUserOperationSimulationInput",
"examples": [
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"calls": [],
"network": "base",
"operation": "prepareUserOperation"
}
],
"type": "object",
"required": [
"address",
"calls",
"network",
"operation"
],
"properties": {
"address": {
"description": "The Smart Account address.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"calls": {
"description": "The list of calls to make from the Smart Account.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EvmCall"
}
},
"dataSuffix": {
"description": "The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]+$"
},
"network": {
"$ref": "#/components/schemas/EvmUserOperationNetwork"
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"prepareUserOperation"
],
"x-go-type": "string"
},
"paymasterContext": {
"$ref": "#/components/schemas/PaymasterContext"
},
"paymasterUrl": {
"description": "The URL of the paymaster to use for the user operation.",
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
}
},
"additionalProperties": false
}Fields§
§address: PrepareUserOperationSimulationInputAddressThe Smart Account address.
calls: Vec<EvmCall>The list of calls to make from the Smart Account.
data_suffix: Option<PrepareUserOperationSimulationInputDataSuffix>The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
network: EvmUserOperationNetwork§operation: PrepareUserOperationSimulationInputOperationRule operation to simulate.
paymaster_context: Option<PaymasterContext>§paymaster_url: Option<Url>The URL of the paymaster to use for the user operation.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrepareUserOperationSimulationInput
impl<'de> Deserialize<'de> for PrepareUserOperationSimulationInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
impl From<&PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
Source§fn from(value: &PrepareUserOperationSimulationInput) -> Self
fn from(value: &PrepareUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<PrepareUserOperationSimulationInput> for SimulatePoliciesRequest
impl From<PrepareUserOperationSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: PrepareUserOperationSimulationInput) -> Self
fn from(value: PrepareUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
impl From<PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
Source§fn from(value: PrepareUserOperationSimulationInput) -> Self
fn from(value: PrepareUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
impl TryFrom<PrepareUserOperationSimulationInput> for PrepareUserOperationSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PrepareUserOperationSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: PrepareUserOperationSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PrepareUserOperationSimulationInput
impl RefUnwindSafe for PrepareUserOperationSimulationInput
impl Send for PrepareUserOperationSimulationInput
impl Sync for PrepareUserOperationSimulationInput
impl Unpin for PrepareUserOperationSimulationInput
impl UnsafeUnpin for PrepareUserOperationSimulationInput
impl UnwindSafe for PrepareUserOperationSimulationInput
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