Skip to content

Commit df1ba65

Browse files
committed
stub out new service
1 parent faadec1 commit df1ba65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5247
-3305
lines changed

dev/generate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go generate ./...
66
# Generate mocks
77
mockery
88
rm -rf pkg/proto/**/*.pb.go pkg/proto/**/*.pb.gw.go pkg/proto/**/*.swagger.json
9-
if ! buf generate https://github.com/xmtp/proto.git#branch=main,subdir=proto; then
9+
if ! buf generate https://github.com/xmtp/proto.git#branch=nm/add-association-stream,subdir=proto; then
1010
echo "Failed to generate protobuf definitions"
1111
exit 1
1212
fi

pkg/authn/authn.pb.go

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/identity/api/v1/identity_service.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
api "github.com/xmtp/xmtp-node-go/pkg/proto/identity/api/v1"
99
identity "github.com/xmtp/xmtp-node-go/pkg/proto/identity/api/v1"
1010
"go.uber.org/zap"
11+
"google.golang.org/grpc/codes"
12+
"google.golang.org/grpc/status"
1113
)
1214

1315
type Service struct {
@@ -102,3 +104,10 @@ func (s *Service) GetInboxIds(ctx context.Context, req *api.GetInboxIdsRequest)
102104
func (s *Service) VerifySmartContractWalletSignatures(ctx context.Context, req *identity.VerifySmartContractWalletSignaturesRequest) (*identity.VerifySmartContractWalletSignaturesResponse, error) {
103105
return s.validationService.VerifySmartContractWalletSignatures(ctx, req)
104106
}
107+
108+
func (s *Service) SubscribeAssociationChanges(req *identity.SubscribeAssociationChangesRequest, stream identity.IdentityApi_SubscribeAssociationChangesServer) error {
109+
log := s.log.Named("subscribe-association-changes")
110+
log.Info("subscription started")
111+
112+
return status.Errorf(codes.Unimplemented, "method SubscribeAssociationChanges not implemented")
113+
}

0 commit comments

Comments
 (0)