2019-11-23 17:57:05 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"go.uber.org/zap"
|
2020-01-02 09:10:19 +00:00
|
|
|
|
|
|
|
enstypes "github.com/status-im/status-go/eth-node/types/ens"
|
2019-11-23 17:57:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// EnodeID is a unique identifier for each node.
|
|
|
|
type EnodeID [32]byte
|
|
|
|
|
|
|
|
// ID prints as a long hexadecimal number.
|
|
|
|
func (n EnodeID) String() string {
|
|
|
|
return fmt.Sprintf("%x", n[:])
|
|
|
|
}
|
|
|
|
|
|
|
|
type Node interface {
|
|
|
|
NewENSVerifier(logger *zap.Logger) enstypes.ENSVerifier
|
2020-01-13 19:17:30 +00:00
|
|
|
GetWaku(ctx interface{}) (Waku, error)
|
2021-06-16 20:19:45 +00:00
|
|
|
GetWakuV2(ctx interface{}) (Waku, error)
|
2019-12-12 16:06:00 +00:00
|
|
|
AddPeer(url string) error
|
|
|
|
RemovePeer(url string) error
|
2020-08-27 12:38:59 +00:00
|
|
|
PeersCount() int
|
2019-11-23 17:57:05 +00:00
|
|
|
}
|