Skip to content

Commit

Permalink
add route, type for update params in globalfee
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerKSI committed Oct 3, 2023
1 parent 275bc41 commit a8df141
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/globalfee/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ const (
// ModuleName is the name of the this module
ModuleName = "globalfee"

// QuerierRoute is the querier route for the globalfee module
QuerierRoute = ModuleName

// StoreKey to be used when creating the KVStore.
StoreKey = ModuleName

// RouterKey is the msg router key for the globalfee module
RouterKey = ModuleName
)

var (
Expand Down
10 changes: 10 additions & 0 deletions x/globalfee/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

const (
TypeMsgUpdateParams = "update_params"
)

var _ sdk.Msg = &MsgUpdateParams{}

// Route returns the route of MsgUpdateParams - "oracle" (sdk.Msg interface).
func (m MsgUpdateParams) Route() string { return RouterKey }

// Type returns the message type of MsgUpdateParams (sdk.Msg interface).
func (m MsgUpdateParams) Type() string { return TypeMsgUpdateParams }

// GetSignBytes implements the LegacyMsg interface.
func (m MsgUpdateParams) GetSignBytes() []byte {
return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&m))
Expand Down

0 comments on commit a8df141

Please sign in to comment.