Skip to content

Commit 1a20ca7

Browse files
authored
chore: prepare v0.10.5 (#247)
* chores: bump sdk to temp v0.18.2 / v0.45.5 * feat: add v0.10.5 upgrade handler * chore!: bump cosmos-sdk to v0.45.6 This forces the min required go version to v1.18 * chore: bump docker image min go version * chore: go.mod update * chore: bump ci.Dockerfile go version * chore: bump ibc-go version, add migration * chore: update wasm to v0.27.0, ibc to v3.1.0 * chore: typo in upgrade name * chore: switch cosmos-sdk replacement to v0.18.2 * fix: add missing store upgrade * feat: set native coin metadata at migration * fix: iterate all denom * feat: update token description
1 parent fa51d9f commit 1a20ca7

File tree

9 files changed

+277
-132
lines changed

9 files changed

+277
-132
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Build Docker container

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-buster as builder
1+
FROM golang:1.18-buster as builder
22

33
# Set up dependencies
44
ENV PACKAGES jq curl wget jq file make git
@@ -22,7 +22,7 @@ ENV PACKAGES jq curl
2222
RUN apt-get update && \
2323
apt-get install -y $PACKAGES
2424

25-
COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.so /usr/lib/libwasmvm.so
25+
COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.x86_64.so /usr/lib/
2626
COPY --from=builder /go/bin/fetchd /usr/bin/fetchd
2727
COPY entrypoints/entrypoint.sh /usr/bin/entrypoint.sh
2828

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This repository contains the source code for validators on the Fetch network. The source is based on the [wasmd](https://github.com/CosmWasm/wasmd) variant of the Cosmos-SDK, which includes a virtual machine that compiles to WebAssembly. It contains Fetch.ai-specific updates required for the test networks and future mainnet, including a decentralized random beacon (DRB) and a novel, compact multi-signatures scheme. Versions of this repository are not currently synchronised with either wasmd or the Cosmos-SDK. Please refer to the [releases](https://github.com/fetchai/fetchd/releases) section for the compatibility with upstream versions.
44

5-
**Note**: Requires [Go 1.16+](https://golang.org/dl/)
5+
**Note**: Requires [Go 1.18+](https://golang.org/dl/)
66

77
## Supported Systems
88

@@ -21,7 +21,7 @@ binary for `muslc`. (Or just use this Dockerfile for your production setup).
2121

2222
### Building and testing the project
2323

24-
First, install golang >= v1.16 (follow the guide from [https://golang.org/dl/](https://golang.org/dl/)) and execute the following commands:
24+
First, install golang >= v1.18 (follow the guide from [https://golang.org/dl/](https://golang.org/dl/)) and execute the following commands:
2525

2626
```bash
2727
# make sure you have the following packages:

app/ante.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
sdk "github.com/cosmos/cosmos-sdk/types"
55
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
66
"github.com/cosmos/cosmos-sdk/x/auth/ante"
7-
channelkeeper "github.com/cosmos/ibc-go/v2/modules/core/04-channel/keeper"
8-
ibcante "github.com/cosmos/ibc-go/v2/modules/core/ante"
7+
ibcante "github.com/cosmos/ibc-go/v3/modules/core/ante"
8+
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
99

1010
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
1111
wasmTypes "github.com/CosmWasm/wasmd/x/wasm/types"
@@ -16,7 +16,7 @@ import (
1616
type HandlerOptions struct {
1717
ante.HandlerOptions
1818

19-
IBCChannelkeeper channelkeeper.Keeper
19+
IBCKeeper *ibckeeper.Keeper
2020
WasmConfig *wasmTypes.WasmConfig
2121
TXCounterStoreKey sdk.StoreKey
2222
}
@@ -60,7 +60,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
6060
ante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
6161
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
6262
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
63-
ibcante.NewAnteDecorator(options.IBCChannelkeeper),
63+
ibcante.NewAnteDecorator(options.IBCKeeper),
6464
}
6565

6666
return sdk.ChainAnteDecorators(anteDecorators...), nil

0 commit comments

Comments
 (0)