Commit Graph

7 Commits

Author SHA1 Message Date
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
Georgios Konstantopoulos 73b502ed5f
macro: re-enable paths/etherscan and enable more complex tokens 2020-06-04 00:05:05 +03:00
Georgios Konstantopoulos b47c89455c
ci: skip tests with external deps 2020-06-03 00:16:08 +03:00
Georgios Konstantopoulos 2e5ef68219
ci: install cargo-audit and clippy 2020-05-27 15:26:35 +03:00
Georgios Konstantopoulos 53378afae1
ci: fix ci 2020-05-27 14:57:00 +03:00
Georgios Konstantopoulos 548b24e518
feat: add fetching logs 2020-05-25 12:23:50 +03:00
Georgios Konstantopoulos e28d34e996
add circleci 2020-05-24 21:58:01 +03:00