mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
9d3c641664
* Update Supported JSON-RPC calls in README * Fix Hyperlinks * Update list * Include net / net_version * Rename net.go to net_api.go * Fix hyperlink for renamed net_api.go file
23 lines
358 B
Go
23 lines
358 B
Go
package commands
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/ethdb"
|
|
)
|
|
|
|
type NetAPI interface {
|
|
Version(ctx context.Context) (string, error)
|
|
}
|
|
|
|
type NetAPIImpl struct {
|
|
ethBackend ethdb.Backend
|
|
}
|
|
|
|
// NwtNetAPIImpl returns NetAPIImplImpl instance
|
|
func NewNetAPIImpl(eth ethdb.Backend) *NetAPIImpl {
|
|
return &NetAPIImpl{
|
|
ethBackend: eth,
|
|
}
|
|
}
|