Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@ import (
upgradetypes "cosmossdk.io/x/upgrade/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
"github.com/cosmos/cosmos-sdk/x/authz"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govtypesv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
groupmodule "github.com/cosmos/cosmos-sdk/x/group"
proposaltypes "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
evmenc "github.com/zeta-chain/ethermint/encoding"
ethermint "github.com/zeta-chain/ethermint/types"
evmtypes "github.com/zeta-chain/ethermint/x/evm/types"
feemarkettypes "github.com/zeta-chain/ethermint/x/feemarket/types"

authoritytypes "github.com/zeta-chain/node/x/authority/types"
crosschaintypes "github.com/zeta-chain/node/x/crosschain/types"
Expand All @@ -23,11 +30,10 @@ import (
observertypes "github.com/zeta-chain/node/x/observer/types"
)

// MakeEncodingConfig creates an EncodingConfig for testing
// MakeEncodingConfig creates an EncodingConfig
func MakeEncodingConfig() ethermint.EncodingConfig {
encodingConfig := evmenc.MakeConfig()
registry := encodingConfig.InterfaceRegistry

// TODO test if we need to register these interfaces again as MakeConfig already registers them
// https://github.com/zeta-chain/node/issues/3003
cryptocodec.RegisterInterfaces(registry)
Expand All @@ -48,6 +54,14 @@ func MakeEncodingConfig() ethermint.EncodingConfig {
fungibletypes.RegisterInterfaces(registry)
observertypes.RegisterInterfaces(registry)
lightclienttypes.RegisterInterfaces(registry)
groupmodule.RegisterInterfaces(registry)
govtypesv1beta1.RegisterInterfaces(registry)
govtypesv1.RegisterInterfaces(registry)
proposaltypes.RegisterInterfaces(registry)
crisistypes.RegisterInterfaces(registry)
feemarkettypes.RegisterInterfaces(registry)
consensusparamtypes.RegisterInterfaces(registry)
vestingtypes.RegisterInterfaces(registry)

return encodingConfig
}
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v27.0.1

### Fixes

* [3460](https://github.com/zeta-chain/node/pull/3460) - add `group`,`gov`,`params`,`consensus`,`feemarket` ,`crisis`,`vesting` modules to the cosmos interface registry to enable parsing of tx results.

## v27.0.0

### Breaking Changes
Expand Down