24 lines
694 B
Go
24 lines
694 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
|
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
|
|
)
|
|
|
|
// ModuleCdc defines a generic sealed codec to be used throughout this module
|
|
var ModuleCdc *codec.Codec
|
|
|
|
// TODO: abstract genesis transactions registration back to staking
|
|
// required for genesis transactions
|
|
func init() {
|
|
ModuleCdc = codec.New()
|
|
stakingtypes.RegisterCodec(ModuleCdc)
|
|
authtypes.RegisterCodec(ModuleCdc)
|
|
sdk.RegisterCodec(ModuleCdc)
|
|
cryptocodec.RegisterCrypto(ModuleCdc)
|
|
ModuleCdc.Seal()
|
|
}
|