evm-coder 0.4.3

EVM call decoding/encoding proc macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use derivative::Derivative;
use evm_coder::{dummy_contract, solidity_interface};

type Result<T> = core::result::Result<T, String>;

pub struct Contract(bool);
dummy_contract! {
	macro_rules! Contract_result {...}
	impl Contract for Contract {...}
}

#[solidity_interface(name = A, enum(derive(Derivative)), enum(derivative(PartialEq)))]
impl Contract {
	fn method_a() -> Result<()> {
		Ok(())
	}
}