pub trait ModuleData {
// Required method
fn to_abi_encoded(&self) -> Result<Vec<u8>, ModuleEncodeError>;
}Expand description
Data encodable into a module-specific ABI payload that participates in the EIP-712 action hash.
Required Methods§
Sourcefn to_abi_encoded(&self) -> Result<Vec<u8>, ModuleEncodeError>
fn to_abi_encoded(&self) -> Result<Vec<u8>, ModuleEncodeError>
ABI-encode this module payload using the field tuple defined in the upstream Solidity action contract.
§Errors
Returns a ModuleEncodeError when the payload contains a value the
venue contract cannot accept (e.g. a negative max_fee for trades or
a decimal that overflows the 1e18-scaled signed/unsigned 256-bit
range).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".