pub struct SignEvmTypedDataSimulationInput {
pub address: SignEvmTypedDataSimulationInputAddress,
pub domain: Eip712Domain,
pub message: Map<String, Value>,
pub operation: SignEvmTypedDataSimulationInputOperation,
pub primary_type: String,
pub types: Eip712Types,
}Expand description
SignEvmTypedDataSimulationInput
JSON schema
{
"title": "SignEvmTypedDataSimulationInput",
"examples": [
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"domain": {
"chainId": 1,
"name": "Permit2",
"verifyingContract": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
},
"message": {
"deadline": "1716239020",
"nonce": "0",
"permitted": {
"amount": "1000000",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"spender": "0x1111111254EEB25477B68fb85Ed929f73A960582"
},
"operation": "signEvmTypedData",
"primaryType": "PermitTransferFrom",
"types": {
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
],
"PermitTransferFrom": [
{
"name": "permitted",
"type": "TokenPermissions"
},
{
"name": "spender",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
],
"TokenPermissions": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
]
}
}
],
"type": "object",
"required": [
"address",
"domain",
"message",
"operation",
"primaryType",
"types"
],
"properties": {
"address": {
"description": "The 0x-prefixed address of the EVM account.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"domain": {
"$ref": "#/components/schemas/EIP712Domain"
},
"message": {
"description": "The message to evaluate. The structure of this message must match the `primaryType` struct in the `types` object.",
"type": "object"
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"signEvmTypedData"
],
"x-go-type": "string"
},
"primaryType": {
"description": "The primary type of the message. This is the name of the struct in the `types` object that is the root of the message.",
"type": "string"
},
"types": {
"$ref": "#/components/schemas/EIP712Types"
}
},
"additionalProperties": false
}Fields§
§address: SignEvmTypedDataSimulationInputAddressThe 0x-prefixed address of the EVM account.
domain: Eip712Domain§message: Map<String, Value>The message to evaluate. The structure of this message must match the primaryType struct in the types object.
operation: SignEvmTypedDataSimulationInputOperationRule operation to simulate.
primary_type: StringThe primary type of the message. This is the name of the struct in the types object that is the root of the message.
types: Eip712TypesImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignEvmTypedDataSimulationInput
impl<'de> Deserialize<'de> for SignEvmTypedDataSimulationInput
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<&SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
impl From<&SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
Source§fn from(value: &SignEvmTypedDataSimulationInput) -> Self
fn from(value: &SignEvmTypedDataSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataSimulationInput> for SimulatePoliciesRequest
impl From<SignEvmTypedDataSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SignEvmTypedDataSimulationInput) -> Self
fn from(value: SignEvmTypedDataSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
impl From<SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
Source§fn from(value: SignEvmTypedDataSimulationInput) -> Self
fn from(value: SignEvmTypedDataSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
impl TryFrom<SignEvmTypedDataSimulationInput> for SignEvmTypedDataSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SignEvmTypedDataSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SignEvmTypedDataSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignEvmTypedDataSimulationInput
impl RefUnwindSafe for SignEvmTypedDataSimulationInput
impl Send for SignEvmTypedDataSimulationInput
impl Sync for SignEvmTypedDataSimulationInput
impl Unpin for SignEvmTypedDataSimulationInput
impl UnsafeUnpin for SignEvmTypedDataSimulationInput
impl UnwindSafe for SignEvmTypedDataSimulationInput
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