ethers-rs/ethers-contract/ethers-contract-abigen/src
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
..
contract Generate structs for the return data of abigen-erated contracts (#1440) 2022-07-04 11:54:02 -07:00
test refactor: pull crates to root dir 2020-06-01 21:24:22 +03:00
contract.rs make abigen-ed modules pub (#1332) 2022-05-31 13:29:02 -07:00
lib.rs chore(clippy): add some deny lints (#1064) 2022-03-19 10:05:39 -07:00
multi.rs fix(abigen): non-snake-case modules out of order (#1331) 2022-05-31 09:44:24 -07:00
rawabi.rs fix: filter out empty bytecode (#1248) 2022-05-11 07:34:41 -07:00
rustfmt.rs refactor: replace anyhow with eyre (#858) 2022-02-02 22:44:53 +02:00
source.rs chore: add rate limit message (#971) 2022-02-27 17:41:26 +02:00
util.rs fix(abigen): safe ident underscore followed by numeric (#970) 2022-02-28 00:04:43 +02:00