Trait parables_testing::abi::ContractFunction [−][src]
pub trait ContractFunction {
type Output;
fn encoded(&self, linker: &Linker) -> Result<Bytes, Error>;
fn output(&self, output_bytes: Bytes) -> Result<Self::Output, Error>;
}Contract functions generated by parables_build.
Associated Types
type Output
Output types of the function.
Required Methods
fn encoded(&self, linker: &Linker) -> Result<Bytes, Error>
Encodes the input for the function.
fn output(&self, output_bytes: Bytes) -> Result<Self::Output, Error>
Decodes the given bytes output for the contract function.