ethers-rs/ethers-contract
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
..
ethers-contract-abigen Generate structs for the return data of abigen-erated contracts (#1440) 2022-07-04 11:54:02 -07:00
ethers-contract-derive refactor(abigen): replace ethabi::Reader (#1417) 2022-06-26 17:26:43 -07:00
src docs(contract): improve EventStream docs (#1450) 2022-07-04 11:47:11 -07:00
tests 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 release: 0.6.0 (#611) 2021-11-23 21:23:12 +02:00

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.