Skip to content

Commit

Permalink
stub out new service
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Dec 30, 2024
1 parent faadec1 commit df1ba65
Show file tree
Hide file tree
Showing 49 changed files with 5,247 additions and 3,305 deletions.
2 changes: 1 addition & 1 deletion dev/generate
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go generate ./...
# Generate mocks
mockery
rm -rf pkg/proto/**/*.pb.go pkg/proto/**/*.pb.gw.go pkg/proto/**/*.swagger.json
if ! buf generate https://github.com/xmtp/proto.git#branch=main,subdir=proto; then
if ! buf generate https://github.com/xmtp/proto.git#branch=nm/add-association-stream,subdir=proto; then
echo "Failed to generate protobuf definitions"
exit 1
fi
32 changes: 16 additions & 16 deletions pkg/authn/authn.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pkg/identity/api/v1/identity_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
api "github.com/xmtp/xmtp-node-go/pkg/proto/identity/api/v1"
identity "github.com/xmtp/xmtp-node-go/pkg/proto/identity/api/v1"
"go.uber.org/zap"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

type Service struct {
Expand Down Expand Up @@ -102,3 +104,10 @@ func (s *Service) GetInboxIds(ctx context.Context, req *api.GetInboxIdsRequest)
func (s *Service) VerifySmartContractWalletSignatures(ctx context.Context, req *identity.VerifySmartContractWalletSignaturesRequest) (*identity.VerifySmartContractWalletSignaturesResponse, error) {
return s.validationService.VerifySmartContractWalletSignatures(ctx, req)
}

func (s *Service) SubscribeAssociationChanges(req *identity.SubscribeAssociationChangesRequest, stream identity.IdentityApi_SubscribeAssociationChangesServer) error {
log := s.log.Named("subscribe-association-changes")
log.Info("subscription started")

return status.Errorf(codes.Unimplemented, "method SubscribeAssociationChanges not implemented")
}
Loading

0 comments on commit df1ba65

Please sign in to comment.