mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
bfdc000bbc
* feat: update wakuv2 store * check online using waku version for now * fix peerId and from/to multiplier * fix: lint * fix: handle waku2 cursors * fix: code review * fix: code review 2 * update go-waku version * update vendor folder
26 lines
610 B
Go
26 lines
610 B
Go
package wakuv2ext
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/log"
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
"github.com/status-im/status-go/services/ext"
|
|
)
|
|
|
|
// PublicAPI extends waku public API.
|
|
type PublicAPI struct {
|
|
*ext.PublicAPI
|
|
service *Service
|
|
publicAPI types.PublicWakuAPI
|
|
log log.Logger
|
|
}
|
|
|
|
// NewPublicAPI returns instance of the public API.
|
|
func NewPublicAPI(s *Service) *PublicAPI {
|
|
return &PublicAPI{
|
|
PublicAPI: ext.NewPublicAPI(s.Service, s.w),
|
|
service: s,
|
|
publicAPI: s.w.PublicWakuAPI(),
|
|
log: log.New("package", "status-go/services/wakuext.PublicAPI"),
|
|
}
|
|
}
|