b287fcca4d
* convert some helper functions * use said helpers * more * don't derive EthCall on return structs * move return structs to separate function * remove unused * remove duplicate code * reduce code duplication also use an iterator instead of a presized vector * comments * stuck * fix wrong field * rename * don't generate structs for no-output functions * cosmetic changes * test: decode and verify result * more testing unnamed output (tuple struct) no output (doesn't exist) -> can't verify this in code though * Update ethers-contract/ethers-contract-abigen/src/contract/methods.rs Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> * remove dbg print oops :( Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> |
||
---|---|---|
.. | ||
ethers-contract-abigen | ||
ethers-contract-derive | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |
README.md
Type-safe abstractions for interacting with Ethereum smart contracts
Interacting with a smart contract requires broadcasting carefully crafted
transactions where the data
field
contains the
function's selector
along with the arguments of the called function.
This module provides the Contract
and ContractFactory
abstractions so
that you do not have to worry about that. It also provides typesafe bindings via
the abigen
macro and the Abigen
builder.