* fix(CI): add golangci-lint to dependencies * update github workflow * tidy go.mod * add missing entries to go.mod * update deps * add missing run command * remove golint and use revive instead * fix workflow setup * lint only changed files * gofmt go tags * update comments * make lint-go Co-authored-by: Marko <marbar3778@yahoo.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
28 lines
809 B
Go
28 lines
809 B
Go
//go:build !test_amino
|
|
// +build !test_amino
|
|
|
|
package params
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
"github.com/cosmos/cosmos-sdk/x/auth/tx"
|
|
)
|
|
|
|
// MakeTestEncodingConfig creates an EncodingConfig for a non-amino based test configuration.
|
|
// This function should be used only internally (in the SDK).
|
|
// App user should'nt create new codecs - use the app.AppCodec instead.
|
|
// [DEPRECATED]
|
|
func MakeTestEncodingConfig() EncodingConfig {
|
|
cdc := codec.NewLegacyAmino()
|
|
interfaceRegistry := types.NewInterfaceRegistry()
|
|
codec := codec.NewProtoCodec(interfaceRegistry)
|
|
|
|
return EncodingConfig{
|
|
InterfaceRegistry: interfaceRegistry,
|
|
Codec: codec,
|
|
TxConfig: tx.NewTxConfig(codec, tx.DefaultSignModes),
|
|
Amino: cdc,
|
|
}
|
|
}
|