Skip to content

Commit

Permalink
finish proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Oct 4, 2024
1 parent a5456fb commit 1a98eef
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/identity/api/v1/identity_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
mlsstore "github.com/xmtp/xmtp-node-go/pkg/mls/store"
"github.com/xmtp/xmtp-node-go/pkg/mlsvalidate"
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"
)

Expand Down Expand Up @@ -97,3 +98,7 @@ func (s *Service) GetInboxIds(ctx context.Context, req *api.GetInboxIdsRequest)
*/
return s.store.GetInboxIds(ctx, req)
}

func (s *Service) VerifySmartContractWalletSignatures(ctx context.Context, req *identity.VerifySmartContractWalletSignaturesRequest) (*identity.VerifySmartContractWalletSignaturesResponse, error) {
return s.validationService.VerifySmartContractWalletSignatures(ctx, req)
}
6 changes: 6 additions & 0 deletions pkg/identity/api/v1/identity_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ func (m *mockedMLSValidationService) ValidateInboxIdKeyPackages(ctx context.Cont
return nil, nil
}

func (m *mockedMLSValidationService) VerifySmartContractWalletSignatures(ctx context.Context, req *identity.VerifySmartContractWalletSignaturesRequest) (*identity.VerifySmartContractWalletSignaturesResponse, error) {
args := m.Called(ctx, req)

return args.Get(0).(*identity.VerifySmartContractWalletSignaturesResponse), args.Error(1)
}

func newMockedValidationService() *mockedMLSValidationService {
return new(mockedMLSValidationService)
}
Expand Down
61 changes: 61 additions & 0 deletions pkg/mocks/mock_MLSValidationService.go

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

0 comments on commit 1a98eef

Please sign in to comment.