Skip to content

Commit

Permalink
Register amino message
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Nov 3, 2023
1 parent 6303e91 commit 1d4554b
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 63 deletions.
2 changes: 2 additions & 0 deletions proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/v3/x/ccv/provider/types";

import "amino/amino.proto";
import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
Expand Down Expand Up @@ -52,6 +53,7 @@ message MsgAssignConsumerKeyResponse {}
//
// Note: this replaces ConsumerAdditionProposal which is deprecated and will be removed soon
message MsgConsumerAddition {
option (amino.name) = "cosmos-sdk/MsgConsumerAddition";
option (cosmos.msg.v1.signer) = "signer";

// the proposed chain-id of the new consumer chain, must be different from all
Expand Down
2 changes: 2 additions & 0 deletions x/ccv/provider/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
Expand All @@ -11,6 +12,7 @@ import (
// RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgConsumerAddition{}, "cosmos-sdk/MsgConsumerAddition")
}

// RegisterInterfaces registers the provider proposal structs to the interface registry
Expand Down
128 changes: 65 additions & 63 deletions x/ccv/provider/types/tx.pb.go

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

0 comments on commit 1d4554b

Please sign in to comment.