Enum ethane_abi::Parameter [−][src]
pub enum Parameter { Address(H256), Bool(H256), Int(H256, usize), Uint(H256, usize), String(Vec<u8>), Bytes(Vec<u8>), FixedBytes(Vec<u8>), Array(Vec<Parameter>), FixedArray(Vec<Parameter>), Tuple(Vec<Parameter>), }
An ABI function parameter type enclosing the underlying numeric data bytes.
Variants
Int(H256, usize)
Uint(H256, usize)
Implementations
impl Parameter
[src]
impl Parameter
[src]pub fn static_encode(&self) -> Vec<u8>
[src]
Encodes strictly the data part of the underlying type.
It will not check whether the parameter is dynamic or not, it simply encodes the enclosed data in place. For some types, it first writes the number of elements of the data in bytes. For further info, check the Solidity contract ABI specification.
pub fn is_dynamic(&self) -> bool
[src]
Recursively checks wether a given parameter is dynamic.
For example, a Tuple
can be dynamic if any of its
contained types are dynamic. Additionally, a
FixedArray
is static if it contains values
with static type and dynamic otherwise.
pub fn decode(parameter_type: &ParameterType, raw_bytes: &[u8]) -> (Self, usize)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parameter
impl RefUnwindSafe for Parameter
impl UnwindSafe for Parameter
impl UnwindSafe for Parameter