diff --git a/.VERSION b/.VERSION index 63f2359f..2c0a9c7b 100644 --- a/.VERSION +++ b/.VERSION @@ -1 +1 @@ -v0.7.1 +v0.7.2 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index bf18bb5a..143ae934 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/setup-go@v3 with: go-version: 1.19 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 118a963e..73aa24a4 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -39,7 +39,7 @@ jobs: exit 1 - name: Delete the "latest" Pre-Release - uses: dev-drprasad/delete-older-releases@v0.2.0 + uses: dev-drprasad/delete-older-releases@v0.3.2 with: keep_latest: 0 delete_tag_pattern: .*-${{ github.head_ref || github.ref_name }} @@ -47,10 +47,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Publish the Pre-Release run: make release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6cd1b520..c42f5486 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -26,10 +26,10 @@ jobs: echo "VERSION=$VER" >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Publish the Release run: make release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5b0ab10f..7c924a1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v3 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4ff2aa2c..dab48f83 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,6 +28,8 @@ builds: tags: - netgo - muslc +changelog: + use: github-native release: prerelease: auto checksum: diff --git a/CHANGELOG.md b/CHANGELOG.md index 92061788..159e9736 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,14 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## Unreleased +## [v0.7.2] - 2023-11-20 + +### Features +- Support wasmvm capabilities: + - "cosmwasm_1_1" + - "cosmwasm_1_2" + - "cosmwasm_1_3" + ## [v0.7.1] - 2023-10-18 Update smartaccount diff --git a/app/app.go b/app/app.go index 02ee4ebb..7e957ac7 100644 --- a/app/app.go +++ b/app/app.go @@ -15,6 +15,7 @@ import ( v601 "github.com/aura-nw/aura/app/upgrades/v0.6.1" v700 "github.com/aura-nw/aura/app/upgrades/v0.7.0" v701 "github.com/aura-nw/aura/app/upgrades/v0.7.1" + v702 "github.com/aura-nw/aura/app/upgrades/v0.7.2" "github.com/aura-nw/aura/app/internal" @@ -124,6 +125,7 @@ import ( authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" + wasmapp "github.com/CosmWasm/wasmd/app" "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" @@ -534,7 +536,7 @@ func New( // The last arguments can contain custom message handlers, and custom query handlers, // if we want to allow any custom callbacks - supportedFeatures := "iterator,staking,stargate" + availableCapabilities := strings.Join(wasmapp.AllCapabilities(), ",") wasmOpts := GetWasmOpts(appOpts) app.WasmKeeper = wasmkeeper.NewKeeper( appCodec, @@ -552,7 +554,7 @@ func New( app.BaseApp.GRPCQueryRouter(), wasmDir, wasmConfig, - supportedFeatures, + availableCapabilities, govModAddress, wasmOpts..., ) @@ -580,9 +582,11 @@ func New( govRouter.AddRoute(wasmtypes.RouterKey, wasm.NewWasmProposalHandler(app.WasmKeeper, enabledProposals)) //nolint:staticcheck // still use same ver 0.41.0 of wasmd } + customGovConfig := govtypes.DefaultConfig() + customGovConfig.MaxMetadataLen = 2000 app.GovKeeper = govkeeper.NewKeeper( appCodec, keys[govtypes.StoreKey], app.AccountKeeper, app.BankKeeper, - stakingKeeper, app.BaseApp.MsgServiceRouter(), govtypes.DefaultConfig(), govModAddress, + stakingKeeper, app.BaseApp.MsgServiceRouter(), customGovConfig, govModAddress, ) // Set legacy router for backwards compatibility with gov v1beta1 @@ -1127,6 +1131,11 @@ func (app *App) setupUpgradeHandlers() { ), ) + app.UpgradeKeeper.SetUpgradeHandler( + v702.UpgradeName, + v702.CreateUpgradeHandler(app.mm, app.configurator), + ) + // When a planned update height is reached, the old binary will panic // writing on disk the height and name of the update that triggered it // This will read that value, and execute the preparations for the upgrade. @@ -1200,6 +1209,9 @@ func (app *App) setupUpgradeHandlers() { }, } } + + case v702.UpgradeName: + // no store upgrades in v0.7.2 } if storeUpgrades != nil { diff --git a/app/upgrades/v0.7.2/upgrades.go b/app/upgrades/v0.7.2/upgrades.go new file mode 100644 index 00000000..09796a67 --- /dev/null +++ b/app/upgrades/v0.7.2/upgrades.go @@ -0,0 +1,20 @@ +package v702 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" +) + +// UpgradeName is the name of upgrade. This upgrade added new module +const UpgradeName = "v0.7.2" + +func CreateUpgradeHandler( + mm *module.Manager, + configurator module.Configurator, +) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + + return mm.RunMigrations(ctx, configurator, vm) + } +}