ethers-rs/ethers-contract/ethers-contract-abigen
jole b287fcca4d
Generate structs for the return data of abigen-erated contracts (#1440)
* 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>
2022-07-04 11:54:02 -07:00
..
src Generate structs for the return data of abigen-erated contracts (#1440) 2022-07-04 11:54:02 -07:00
Cargo.toml Revert "release: disable dev deps" 2022-06-14 14:23:10 +03:00
README.md docs: add missing attribution to Gnosis for codegen & macros 2020-06-20 17:02:57 +03:00

README.md

This code generator was adapted from the original ethcontract-rs repository by Gnosis.