Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2163800
Revert "chore: bump to sdk v0.52-rc.2 (#7882)"
gjermundgaraba Feb 7, 2025
ebfa5a9
Revert "chore: clean up module impls (#7865)"
gjermundgaraba Feb 7, 2025
afaa0c9
Revert "fix: sanitize gov v1 proposal in e2e tests for compatibility …
gjermundgaraba Feb 7, 2025
81f71dd
Revert "chore: bump sdk versions (#7843)"
gjermundgaraba Feb 7, 2025
dbd8800
Revert "fix: wasm docker file + wasm simapp gas limit (#7830)"
gjermundgaraba Feb 7, 2025
0759f3b
Revert "chore: use header service in localhost client (#7757)"
gjermundgaraba Feb 7, 2025
4f90e92
Revert "refactor: ibc core runtime env (#7601)"
gjermundgaraba Feb 7, 2025
3b6a0a6
Revert "refactor: use branch service in 29-fee (#7732)"
gjermundgaraba Feb 7, 2025
e5b624a
Revert "chore: address some linter complaints (#7734)"
gjermundgaraba Feb 7, 2025
25e7bdc
Revert "chore: refactor event service to 29-fee (#7728)"
gjermundgaraba Feb 7, 2025
be3ca2b
Revert "refactor: update 29-fee to use runtime.Environment (#7617)"
gjermundgaraba Feb 7, 2025
ef1b52f
Revert "refactor: use event service in transfer mod (#7725)"
gjermundgaraba Feb 7, 2025
c76d8d5
Revert "refactor: update transfer to use runtime.Environment (#7615)"
gjermundgaraba Feb 7, 2025
5733d0a
Revert "Remove circuit module (#7715)"
gjermundgaraba Feb 7, 2025
acbffe9
Revert "refactor: use header info for interchain accounts address gen…
gjermundgaraba Feb 7, 2025
98fb555
Revert "refactor: update icahost to use runtime.Environment (#7600)"
gjermundgaraba Feb 7, 2025
4224121
Revert "chore: update import alias to align (#7710)"
gjermundgaraba Feb 7, 2025
38eb116
Revert "deps: update to cosmos-sdk v0.52 (Olympus) (#7261)"
gjermundgaraba Feb 7, 2025
9e4924b
fix unwanted reverts
gjermundgaraba Feb 7, 2025
6dba859
remove invariant
gjermundgaraba Feb 7, 2025
b2c83b9
lint
gjermundgaraba Feb 7, 2025
e63a4d1
last go1.23 change
gjermundgaraba Feb 7, 2025
12854e0
remove unecessary testing keeper
gjermundgaraba Feb 7, 2025
8af9fe3
update go version in dockerfile
gjermundgaraba Feb 7, 2025
445de39
fix docker image
gjermundgaraba Feb 7, 2025
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
Prev Previous commit
Next Next commit
Revert "chore: address some linter complaints (#7734)"
This reverts commit 83fdb7f.
  • Loading branch information
gjermundgaraba committed Feb 7, 2025
commit e5b624a78c0bce45524f057a7af88749714d0b07
2 changes: 1 addition & 1 deletion modules/apps/29-fee/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func KeyCounterpartyPayee(address, channelID string) []byte {
}

// ParseKeyCounterpartyPayee returns the registered relayer address and channelID used to store the counterparty payee address
func ParseKeyCounterpartyPayee(key string) (address string, channelID string, err error) {
func ParseKeyCounterpartyPayee(key string) (address string, channelID string, error error) {
keySplit := strings.Split(key, "/")
if len(keySplit) != 3 {
return "", "", errorsmod.Wrapf(
Expand Down
17 changes: 9 additions & 8 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ import (
ibcclienttypes "github.com/cosmos/ibc-go/v9/modules/core/02-client/types"
ibcconnectiontypes "github.com/cosmos/ibc-go/v9/modules/core/03-connection/types"
porttypes "github.com/cosmos/ibc-go/v9/modules/core/05-port/types"
"github.com/cosmos/ibc-go/v9/modules/core/exported"
ibcexported "github.com/cosmos/ibc-go/v9/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v9/modules/core/keeper"
solomachine "github.com/cosmos/ibc-go/v9/modules/light-clients/06-solomachine"
Expand Down Expand Up @@ -320,7 +321,7 @@ func NewSimApp(
// voteExtOp := func(bApp *baseapp.BaseApp) {
// voteExtHandler := NewVoteExtensionHandler()
// voteExtHandler.SetHandlers(bApp)
// }
//}
// baseAppOptions = append(baseAppOptions, voteExtOp, baseapp.SetOptimisticExecution(),
// baseapp.SetIncludeNestedMsgsGas([]sdk.Msg{&govv1.MsgSubmitProposal{}}))

Expand Down Expand Up @@ -538,7 +539,7 @@ func NewSimApp(
// IBC Fee Module keeper
app.IBCFeeKeeper = ibcfeekeeper.NewKeeper(
appCodec,
runtime.NewEnvironment(runtime.NewKVStoreService(keys[ibcfeetypes.StoreKey]), logger.With(log.ModuleKey, fmt.Sprintf("x/%s-%s", ibcexported.ModuleName, ibcfeetypes.ModuleName))),
runtime.NewEnvironment(runtime.NewKVStoreService(keys[ibcfeetypes.StoreKey]), logger.With(log.ModuleKey, fmt.Sprintf("x/%s-%s", exported.ModuleName, ibcfeetypes.ModuleName))),
app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
app.IBCKeeper.ChannelKeeper,
app.AuthKeeper, app.BankKeeper,
Expand Down Expand Up @@ -574,7 +575,7 @@ func NewSimApp(
// since fee middleware will wrap the IBCKeeper for underlying application.
app.TransferKeeper = ibctransferkeeper.NewKeeper(
appCodec,
runtime.NewEnvironment(runtime.NewKVStoreService(keys[ibctransfertypes.StoreKey]), logger.With(log.ModuleKey, fmt.Sprintf("x/%s-%s", ibcexported.ModuleName, ibctransfertypes.ModuleName))),
runtime.NewEnvironment(runtime.NewKVStoreService(keys[ibctransfertypes.StoreKey]), logger.With(log.ModuleKey, fmt.Sprintf("x/%s-%s", exported.ModuleName, ibctransfertypes.ModuleName))),
app.GetSubspace(ibctransfertypes.ModuleName),
app.IBCFeeKeeper, // ISC4 Wrapper: fee IBC middleware
app.IBCKeeper.ChannelKeeper,
Expand Down Expand Up @@ -958,8 +959,8 @@ func (app *SimApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error) {
return app.ModuleManager.EndBlock(ctx)
}

func (app *SimApp) Configurator() module.Configurator { //nolint:staticcheck // SA1019: Configurator is deprecated but still used in runtime v1.
return app.configurator
func (a *SimApp) Configurator() module.Configurator { //nolint:staticcheck // SA1019: Configurator is deprecated but still used in runtime v1.
return a.configurator
}

// InitChainer application update at chain initialization
Expand Down Expand Up @@ -1016,8 +1017,8 @@ func (app *SimApp) AutoCliOpts() autocli.AppOptions {
}

// DefaultGenesis returns a default genesis from the registered AppModule's.
func (app *SimApp) DefaultGenesis() map[string]json.RawMessage {
return app.ModuleManager.DefaultGenesis()
func (a *SimApp) DefaultGenesis() map[string]json.RawMessage {
return a.ModuleManager.DefaultGenesis()
}

// GetKey returns the KVStoreKey for the provided store key.
Expand Down Expand Up @@ -1094,7 +1095,7 @@ func (app *SimApp) RegisterNodeService(clientCtx client.Context, cfg config.Conf

// ValidatorKeyProvider returns a function that generates a validator key
// Supported key types are those supported by Comet: ed25519, secp256k1, bls12-381
func (*SimApp) ValidatorKeyProvider() runtime.KeyGenF {
func (app *SimApp) ValidatorKeyProvider() runtime.KeyGenF {
return func() (cmtcrypto.PrivKey, error) {
return cmted25519.GenPrivKey(), nil
}
Expand Down
12 changes: 6 additions & 6 deletions testing/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func NewTestChainWithValSet(tb testing.TB, coord *Coordinator, chainID string, v
app := SetupWithGenesisValSet(tb, valSet, genAccs, chainID, sdk.DefaultPowerReduction, genBals...)

// create current header and call begin block
cmtHeader := cmtproto.Header{
header := cmtproto.Header{
ChainID: chainID,
Height: 1,
Time: coord.CurrentTime.UTC(),
Expand All @@ -152,7 +152,7 @@ func NewTestChainWithValSet(tb testing.TB, coord *Coordinator, chainID string, v
Coordinator: coord,
ChainID: chainID,
App: app,
ProposedHeader: cmtHeader,
ProposedHeader: header,
TxConfig: txConfig,
Codec: app.AppCodec(),
Vals: valSet,
Expand Down Expand Up @@ -595,7 +595,7 @@ func (chain *TestChain) DeleteKey(key []byte) {

// IBCClientHeader will construct a 07-tendermint Header to update the light client
// on the counterparty chain. The trustedHeight must be passed in as a non-zero height.
func (chain *TestChain) IBCClientHeader(ibcHeader *ibctm.Header, trustedHeight clienttypes.Height) (*ibctm.Header, error) {
func (chain *TestChain) IBCClientHeader(header *ibctm.Header, trustedHeight clienttypes.Height) (*ibctm.Header, error) {
if trustedHeight.IsZero() {
return nil, errorsmod.Wrap(ibctm.ErrInvalidHeaderHeight, "trustedHeight must be a non-zero height")
}
Expand All @@ -610,11 +610,11 @@ func (chain *TestChain) IBCClientHeader(ibcHeader *ibctm.Header, trustedHeight c
return nil, err
}

ibcHeader.TrustedHeight = trustedHeight
header.TrustedHeight = trustedHeight
trustedVals.TotalVotingPower = cmtTrustedVals.TotalVotingPower()
ibcHeader.TrustedValidators = trustedVals
header.TrustedValidators = trustedVals

return ibcHeader, nil
return header, nil
}

// GetSenderAccount returns the sender account associated with the provided private key.
Expand Down