Some checks failed
CodeQL / Analyze (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Tests / Code Coverage / build (amd64) (push) Waiting to run
Tests / Code Coverage / build (arm64) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[additional-args:-tags="test_e2e" name:e2e path:./e2e]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:08-wasm path:./modules/light-clients/08-wasm]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:ibc-go path:.]) (push) Waiting to run
Docker Build & Push Simapp (main) / docker-build (push) Has been cancelled
27 lines
818 B
Go
27 lines
818 B
Go
//go:build test_amino
|
|
// +build test_amino
|
|
|
|
package params
|
|
|
|
import (
|
|
"git.cw.tr/mukan-network/mukan-sdk/codec"
|
|
"git.cw.tr/mukan-network/mukan-sdk/codec/types"
|
|
"git.cw.tr/mukan-network/mukan-sdk/x/auth/migrations/legacytx"
|
|
)
|
|
|
|
// MakeTestEncodingConfig creates an EncodingConfig for an amino based test configuration.
|
|
// This function should be used only internally (in the SDK).
|
|
// App user shouldn't create new codecs - use the app.AppCodec instead.
|
|
// [DEPRECATED]
|
|
func MakeTestEncodingConfig() EncodingConfig {
|
|
cdc := codec.NewLegacyAmino()
|
|
interfaceRegistry := types.NewInterfaceRegistry()
|
|
marshaler := codec.NewAminoCodec(cdc)
|
|
|
|
return EncodingConfig{
|
|
InterfaceRegistry: interfaceRegistry,
|
|
Marshaler: marshaler,
|
|
TxConfig: legacytx.StdTxConfig{Cdc: cdc},
|
|
Amino: cdc,
|
|
}
|
|
}
|