Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump cosmos-sdk to v0.47 #442

Merged
merged 28 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7da28e1
chore: replacing tendermint with cometbft (#433)
spoo-bar Aug 29, 2023
6e8e7cb
chore: Bumping sdk, wasmd and ibc-go (#435)
spoo-bar Aug 30, 2023
20a12ee
chore: protobuf migration (#436)
spoo-bar Sep 1, 2023
e26aaa0
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 1, 2023
9115c9c
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 1, 2023
1ebd342
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 4, 2023
3ab6422
chore: fix broken upstream references (#450)
spoo-bar Sep 4, 2023
55ef649
chore: remove deprecated appmodule routes (#451)
spoo-bar Sep 5, 2023
35e61c1
chore: fixing all the modules and wasmbindings (#452)
spoo-bar Sep 6, 2023
e63d42d
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 11, 2023
4af5e0d
chore: updating app wiring (#453)
spoo-bar Sep 11, 2023
f3d6798
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 14, 2023
3acb883
chore: fixing e2e tests (#454)
spoo-bar Sep 14, 2023
3ac55f4
chore: apply v46 changes (#455)
spoo-bar Sep 15, 2023
5989a80
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 20, 2023
8a03b8e
chore: apply v47 changes (#458)
spoo-bar Sep 21, 2023
6139f34
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Sep 22, 2023
87fd9e1
feat: bumping archway wasmd to v0.42.0 (#460)
spoo-bar Sep 27, 2023
d5c0374
chore: fixing linter errors and tests (#463)
spoo-bar Oct 4, 2023
312e18d
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Oct 4, 2023
1362a1b
feat: adding upgrade handlers for sdk v47 (#464)
spoo-bar Oct 9, 2023
afb8387
Merge branch 'main' into feat/sdk-47-upgrade
spoo-bar Oct 9, 2023
12496d3
feat: enabling rosetta (#466)
spoo-bar Oct 9, 2023
39faa9a
fix: updating logic for how we deal with infiniteGasMeter (#467)
spoo-bar Oct 10, 2023
831f05f
feat: x/rewards param store migration (#468)
spoo-bar Oct 10, 2023
6db988e
Update CHANGELOG.md
spoo-bar Oct 11, 2023
e418803
feat: bumping archway wasmd to v0.43.0 (#470)
spoo-bar Oct 11, 2023
37dec9b
test: fixing ibc conformance test (#469)
spoo-bar Oct 11, 2023
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Contains all the PRs that improved the code without changing the behaviours.
- [#439](https://github.com/archway-network/archway/pull/439) - Adding containerized localnet
- [#445](https://github.com/archway-network/archway/pull/445) - Adding Archway logo and version number to upgrade logs
- [#459](https://github.com/archway-network/archway/pull/459) - Add missing ADR references to docs index
- [#442](https://github.com/archway-network/archway/pull/442) - Upgrade Cosmos-sdk from v0.45.16 to v0.47.5 and all the other things it depends on
- [#470](https://github.com/archway-network/archway/pull/470) - Bumping x/wasmd to v0.43.0

### Changed

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.deprecated
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.19.5-alpine3.17 AS go-builder
# arch can be either x86_64 for amd64 or aarch64 for arm
ARG arch=x86_64
ARG libwasmvm_version=v1.3.0
ARG libwasmvm_aarch64_sha=b1610f9c8ad8bdebf5b8f819f71d238466f83521c74a2deb799078932e862722
ARG libwasmvm_amd64_sha=b4aad4480f9b4c46635b4943beedbb72c929eab1d1b9467fe3b43e6dbf617e32
ARG libwasmvm_version=v1.4.1
ARG libwasmvm_aarch64_sha=a8259ba852f1b68f2a5f8eb666a9c7f1680196562022f71bb361be1472a83cfd
ARG libwasmvm_amd64_sha=324c1073cb988478d644861783ed5a7de21cfd090976ccc6b1de0559098fbbad

# this comes from standard alpine nightly file
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ format:
###############################################################################
### Protobuf ###
###############################################################################
PROTO_BUILDER_IMAGE=tendermintdev/sdk-proto-gen@sha256:372dce7be2f465123e26459973ca798fc489ff2c75aeecd814c0ca8ced24faca
PROTO_BUILDER_IMAGE=ghcr.io/cosmos/proto-builder:0.14.0
PROTO_FORMATTER_IMAGE=tendermintdev/docker-build-proto@sha256:aabcfe2fc19c31c0f198d4cd26393f5e5ca9502d7ea3feafbfe972448fee7cae

proto-all: proto-format proto-lint proto-gen
Expand Down
25 changes: 13 additions & 12 deletions app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
package app

import (
errorsmod "cosmossdk.io/errors"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"

rewardsAnte "github.com/archway-network/archway/x/rewards/ante"
rewardsKeeper "github.com/archway-network/archway/x/rewards/keeper"
Expand All @@ -26,7 +28,7 @@ type HandlerOptions struct {
WasmConfig *wasmTypes.WasmConfig
RewardsAnteBankKeeper rewardsAnte.BankKeeper

TXCounterStoreKey sdk.StoreKey
TXCounterStoreKey storetypes.StoreKey

TrackingKeeper trackingKeeper.Keeper
RewardsKeeper rewardsKeeper.Keeper
Expand All @@ -36,23 +38,23 @@ type HandlerOptions struct {

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
if options.AccountKeeper == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler")
}
if options.BankKeeper == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler")
}
if options.SignModeHandler == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder")
}
if options.WasmConfig == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "wasm config is required for ante builder")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "wasm config is required for ante builder")
}
if options.TXCounterStoreKey == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "tx counter key is required for ante builder")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "tx counter key is required for ante builder")
}

if options.IBCKeeper == nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrLogic, "ibc keeper is required for ante builder")
return nil, errorsmod.Wrap(sdkerrors.ErrLogic, "ibc keeper is required for ante builder")
}

sigGasConsumer := options.SigGasConsumer
Expand All @@ -66,8 +68,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
// After setup context to enforce limits early
wasmkeeper.NewLimitSimulationGasDecorator(options.WasmConfig.SimulationGasLimit),
wasmkeeper.NewCountTXDecorator(options.TXCounterStoreKey),
ante.NewRejectExtensionOptionsDecorator(),
ante.NewMempoolFeeDecorator(),
ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
ante.NewValidateMemoDecorator(options.AccountKeeper),
Expand All @@ -84,7 +85,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
ante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewAnteDecorator(options.IBCKeeper),
ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
}

return sdk.ChainAnteDecorators(anteDecorators...), nil
Expand Down
Loading
Loading