Add a Subscribe method to rpc client interface

This commit is contained in:
Elizabeth Engelman
2019-09-25 16:32:27 -05:00
parent 36533f7c3f
commit 34f8e16c11
3 changed files with 60 additions and 12 deletions
+2
View File
@@ -18,6 +18,7 @@ package core
import (
"context"
"github.com/ethereum/go-ethereum/rpc"
"github.com/vulcanize/vulcanizedb/pkg/geth/client"
)
@@ -27,4 +28,5 @@ type RpcClient interface {
BatchCall(batch []client.BatchElem) error
IpcPath() string
SupportedModules() (map[string]string, error)
Subscribe(namespace string, payloadChan interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
}