Skip to content

Commit

Permalink
change panic msg for unimplemented features
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed May 7, 2024
1 parent de9cfde commit 4136321
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions x/fbridge/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keeper
import (
"context"
"fmt"

Check failure on line 5 in x/fbridge/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed with `-extra` (gofumpt)
sdkerrors "github.com/Finschia/finschia-sdk/types/errors"

Check failure on line 6 in x/fbridge/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/Finschia/finschia-sdk) --custom-order (gci)

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down Expand Up @@ -62,27 +63,27 @@ func (k Keeper) SeqToBlocknums(goCtx context.Context, req *types.QuerySeqToBlock
}

func (k Keeper) GreatestSeqByOperator(ctx context.Context, request *types.QueryGreatestSeqByOperatorRequest) (*types.QueryGreatestSeqByOperatorResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 66 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L66

Added line #L66 was not covered by tests
}

func (k Keeper) GreatestConsecutiveConfirmedSeq(ctx context.Context, request *types.QueryGreatestConsecutiveConfirmedSeqRequest) (*types.QueryGreatestConsecutiveConfirmedSeqResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 70 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L70

Added line #L70 was not covered by tests
}

func (k Keeper) SubmittedProvision(ctx context.Context, request *types.QuerySubmittedProvisionRequest) (*types.QuerySubmittedProvisionResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 74 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L74

Added line #L74 was not covered by tests
}

func (k Keeper) ConfirmedProvision(ctx context.Context, request *types.QueryConfirmedProvisionRequest) (*types.QueryConfirmedProvisionResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 78 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L78

Added line #L78 was not covered by tests
}

func (k Keeper) NeededSubmissionSeqs(ctx context.Context, request *types.QueryNeededSubmissionSeqsRequest) (*types.QueryNeededSubmissionSeqsResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 82 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L82

Added line #L82 was not covered by tests
}

func (k Keeper) Commitments(ctx context.Context, request *types.QueryCommitmentsRequest) (*types.QueryCommitmentsResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 86 in x/fbridge/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/grpc_query.go#L86

Added line #L86 was not covered by tests
}

func (k Keeper) Members(goCtx context.Context, req *types.QueryMembersRequest) (*types.QueryMembersResponse, error) {
Expand Down
12 changes: 6 additions & 6 deletions x/fbridge/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,27 @@ func (m msgServer) Transfer(goCtx context.Context, msg *types.MsgTransfer) (*typ
}

func (m msgServer) Provision(ctx context.Context, msg *types.MsgProvision) (*types.MsgProvisionResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 55 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L55

Added line #L55 was not covered by tests
}

func (m msgServer) HoldTransfer(ctx context.Context, msg *types.MsgHoldTransfer) (*types.MsgHoldTransferResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 59 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L59

Added line #L59 was not covered by tests
}

func (m msgServer) ReleaseTransfer(ctx context.Context, msg *types.MsgReleaseTransfer) (*types.MsgReleaseTransferResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 63 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L63

Added line #L63 was not covered by tests
}

func (m msgServer) RemoveProvision(ctx context.Context, msg *types.MsgRemoveProvision) (*types.MsgRemoveProvisionResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 67 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L67

Added line #L67 was not covered by tests
}

func (m msgServer) ClaimBatch(ctx context.Context, msg *types.MsgClaimBatch) (*types.MsgClaimBatchResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 71 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L71

Added line #L71 was not covered by tests
}

func (m msgServer) Claim(ctx context.Context, msg *types.MsgClaim) (*types.MsgClaimResponse, error) {
panic("implement me")
panic(sdkerrors.ErrNotSupported)

Check warning on line 75 in x/fbridge/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/fbridge/keeper/msg_server.go#L75

Added line #L75 was not covered by tests
}

func (m msgServer) SuggestRole(goCtx context.Context, msg *types.MsgSuggestRole) (*types.MsgSuggestRoleResponse, error) {
Expand Down

0 comments on commit 4136321

Please sign in to comment.