-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: unable to query historical txs whose module is removed (#1713)
* Problem: unable to query historical txs from deleted icaauth module * test * poetry * deps * add unit tets * cleanup * rename * revert integration test * revert * add authz * changelog * test authz * cleanup * register in query * only patch encoding for tx service * Revert "only patch encoding for tx service" This reverts commit 4b1c141. --------- Co-authored-by: HuangYi <[email protected]>
- Loading branch information
Showing
6 changed files
with
1,282 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package app | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
cdctypes "github.com/cosmos/cosmos-sdk/codec/types" | ||
"github.com/cosmos/cosmos-sdk/x/authz" | ||
icaauthtypes "github.com/crypto-org-chain/cronos/v2/app/legacy/icaauth/types" | ||
) | ||
|
||
func RegisterLegacyCodec(cdc *codec.LegacyAmino) { | ||
icaauthtypes.RegisterCodec(cdc) | ||
authz.RegisterLegacyAminoCodec(cdc) | ||
} | ||
|
||
func RegisterLegacyInterfaces(registry cdctypes.InterfaceRegistry) { | ||
icaauthtypes.RegisterInterfaces(registry) | ||
authz.RegisterInterfaces(registry) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package types | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
cdctypes "github.com/cosmos/cosmos-sdk/codec/types" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/msgservice" | ||
) | ||
|
||
func RegisterCodec(cdc *codec.LegacyAmino) { | ||
cdc.RegisterConcrete(&MsgRegisterAccount{}, "icaauth/RegisterAccount", nil) | ||
cdc.RegisterConcrete(&MsgSubmitTx{}, "icaauth/SubmitTx", nil) | ||
} | ||
|
||
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { | ||
registry.RegisterImplementations((*sdk.Msg)(nil), | ||
&MsgRegisterAccount{}, | ||
) | ||
registry.RegisterImplementations((*sdk.Msg)(nil), | ||
&MsgSubmitTx{}, | ||
) | ||
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) | ||
} |
Oops, something went wrong.