* create base proto package, move ValAddresses to staking * move tx, crypto, query proto packages into base; mark module level packages as beta * new cosmos/base/abci.proto file, refactor some message names * add comments to TxResponse * refactor RegisterInterface calls to new proto package names * fix bug in merge commit * move missing module proto packages to beta, move cosmos.kv to cosmos.base.kv * add tx.proto files, holding proto messages for module Msgs * rm old generated pb.go files * cosmos/base/base.proto -> cosmos/base/coin.proto * mark genutil proto package as beta * Fix conflicts * Restructure proto files * Re put signing * Fix test * Update slashing genesis * Ignore confio proto files * Fix interface register * Make proto-gen * Fix lint * Put tx service into tx.v1beta1 * Use v1beta1 in interface registry * Remove to cosmos.base.store * Remove extra confio in buf Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
19 lines
467 B
Go
19 lines
467 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
)
|
|
|
|
// RegisterCodec registers the sdk message type.
|
|
func RegisterCodec(cdc *codec.LegacyAmino) {
|
|
cdc.RegisterInterface((*Msg)(nil), nil)
|
|
cdc.RegisterInterface((*Tx)(nil), nil)
|
|
}
|
|
|
|
// RegisterInterfaces registers the sdk message type.
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|
registry.RegisterInterface("cosmos.v1beta1.Msg", (*Msg)(nil))
|
|
}
|