ethers-rs/ethers-contract
James Prestwich ded611e714
feature: contract revert trait (#2182)
* feature: contract revert trait

* fix: proper link to abigen in docs

* fix: don't borrow Bytes, better valid_slector

* fix: mattsse's nits

* opt: hardcode selector for Error(string)

* fix: add docstring to RevertString

* docs: enhance docs on ContractRevert

* chore: add doc on decoding error reverts as strings

* docs: more docstring on ContractRevert

* fix: fix try_into invocation

---------

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-28 00:59:32 -07:00
..
ethers-contract-abigen feature: contract revert trait (#2182) 2023-02-28 00:59:32 -07:00
ethers-contract-derive fix(abigen): builtin trait derives (#2170) 2023-02-20 16:27:43 -08:00
src feature: contract revert trait (#2182) 2023-02-28 00:59:32 -07:00
tests feature: contract revert trait (#2182) 2023-02-28 00:59:32 -07:00
Cargo.toml fix(abigen): builtin trait derives (#2170) 2023-02-20 16:27:43 -08:00
README.md docs: fix broken links, update documentation (#2203) 2023-02-27 13:03:17 -07:00

README.md

ethers-core

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.

For more information, please refer to the book.