forked from cerc-io/laconicd-deprecated
tests(rpc): add filter tests (#1233)
* tests(rpc): add pending transaction filter test * tests(rpc): add block filter and event log test * tests(rpc): simplify to cluster instead of comparing types * tests(rpc): wip filter by address * tests(rpc): add get_logs test * fix flake8 linter * fix flake8 linter * add caching to readme * add caching to readme Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
94cab52ca1
commit
9bbf356c6b
@@ -25,13 +25,13 @@ import (
|
||||
|
||||
// FilterAPI gathers
|
||||
type FilterAPI interface {
|
||||
GetLogs(ctx context.Context, crit filters.FilterCriteria) ([]*ethtypes.Log, error)
|
||||
GetFilterChanges(id rpc.ID) (interface{}, error)
|
||||
GetFilterLogs(ctx context.Context, id rpc.ID) ([]*ethtypes.Log, error)
|
||||
NewPendingTransactionFilter() rpc.ID
|
||||
NewBlockFilter() rpc.ID
|
||||
NewFilter(criteria filters.FilterCriteria) (rpc.ID, error)
|
||||
NewPendingTransactionFilter() rpc.ID
|
||||
GetFilterChanges(id rpc.ID) (interface{}, error)
|
||||
GetFilterLogs(ctx context.Context, id rpc.ID) ([]*ethtypes.Log, error)
|
||||
UninstallFilter(id rpc.ID) bool
|
||||
GetLogs(ctx context.Context, crit filters.FilterCriteria) ([]*ethtypes.Log, error)
|
||||
}
|
||||
|
||||
// Backend defines the methods requided by the PublicFilterAPI backend
|
||||
|
||||
Reference in New Issue
Block a user