Skip to content

Commit

Permalink
feat: add codec (#6)
Browse files Browse the repository at this point in the history
* add interface

* mock

* md

* md

* md

* lint fix

* module

* add proto

* fmt

* move files

* proto-cute

* nit fix

* params

* init

* format

* fix

* clean

* Update proto/feemarket/feemarket/v1/mock.proto

Co-authored-by: David Terpay <[email protected]>

* Update x/feemarket/types/genesis.go

Co-authored-by: David Terpay <[email protected]>

* regen

* fix

* fix

* simplify

* simplify

* simplify

* create file

* ppopulate

---------

Co-authored-by: David Terpay <[email protected]>
  • Loading branch information
Alex Johnson and davidterpay authored Nov 10, 2023
1 parent bff1334 commit 18d0cf2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions x/feemarket/types/codec.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package types

import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

// RegisterLegacyAminoCodec registers the necessary x/feemarket interfaces (messages) on the
// provided LegacyAmino codec.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgParams{}, "feemarket/MsgParams")
}

// RegisterInterfaces registers the x/feemarket interfaces (messages + msg server) on the
// provided InterfaceRegistry.
func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgParams{},
)

msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}

0 comments on commit 18d0cf2

Please sign in to comment.