2020-01-20 20:56:06 +00:00
|
|
|
package ext
|
|
|
|
|
|
|
|
import (
|
2020-02-10 16:52:43 +00:00
|
|
|
"go.uber.org/zap"
|
|
|
|
|
2020-01-20 20:56:06 +00:00
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
|
|
enstypes "github.com/status-im/status-go/eth-node/types/ens"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TestNodeWrapper struct {
|
|
|
|
whisper types.Whisper
|
|
|
|
waku types.Waku
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewTestNodeWrapper(whisper types.Whisper, waku types.Waku) *TestNodeWrapper {
|
|
|
|
return &TestNodeWrapper{whisper: whisper, waku: waku}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *TestNodeWrapper) NewENSVerifier(_ *zap.Logger) enstypes.ENSVerifier {
|
|
|
|
panic("not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *TestNodeWrapper) GetWhisper(_ interface{}) (types.Whisper, error) {
|
|
|
|
return w.whisper, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *TestNodeWrapper) GetWaku(_ interface{}) (types.Waku, error) {
|
|
|
|
return w.waku, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *TestNodeWrapper) AddPeer(url string) error {
|
|
|
|
panic("not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *TestNodeWrapper) RemovePeer(url string) error {
|
|
|
|
panic("not implemented")
|
|
|
|
}
|