2018-07-20 16:37:46 +00:00
|
|
|
package core
|
|
|
|
|
2018-12-12 16:01:50 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"github.com/ethereum/go-ethereum/rpc"
|
|
|
|
)
|
2018-07-20 16:37:46 +00:00
|
|
|
|
|
|
|
type RpcClient interface {
|
|
|
|
CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
|
2018-12-12 16:01:50 +00:00
|
|
|
BatchCall(batch []rpc.BatchElem) error
|
2018-07-20 16:37:46 +00:00
|
|
|
IpcPath() string
|
|
|
|
SupportedModules() (map[string]string, error)
|
|
|
|
}
|