ethers-rs/ethers-contract/src
Georgios Konstantopoulos d90b03da06
Add streamed logs to the provider (#9)
* feat(provider): implement Streamed logs

This utilizes eth_getFilterChanges. The stream struct must be instantiated with a factory that yields logs/hashes.
Consumers are expected to use the `FilterStream` trait in order to simplify their type definitions

* feat(provider): expose streaming methods

* test(provider): add new blocks/pending txs test

* feat(contract): allow events to be streamed

* test(contract): add integration test for streaming event logs

* perf(contract-factory): take abi and bytecode by value instead of reference

The abi, bytecode and the factory's deploy method now consume the structs instead of being passed by reference. While this means that
consumers might need to clone before using them, this gives us some more flexiblity around factories inside helper functions

* refactor(contract): use test helpers to reduce code dup

* chore: make clippy happy
2020-06-15 11:46:07 +03:00
..
call.rs docs(contract): expand contract docs 2020-06-10 21:20:47 +03:00
contract.rs Add streamed logs to the provider (#9) 2020-06-15 11:46:07 +03:00
event.rs Add streamed logs to the provider (#9) 2020-06-15 11:46:07 +03:00
factory.rs Add streamed logs to the provider (#9) 2020-06-15 11:46:07 +03:00
lib.rs docs(contract): expand contract docs 2020-06-10 21:20:47 +03:00