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

chore: sdk 50 upgrade for wasm hooks #166

Merged
merged 21 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .github/workflows/async-icq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: async-icq
on:
pull_request:
paths:
- 'modules/async-icq/**'
- '.github/workflows/async-icq.yml'
- "modules/async-icq/**"
- ".github/workflows/async-icq.yml"

env:
LINT_VERSION: v1.55.2
GO_VERSION: 1.21.0
GO_VERSION: 1.22.1
WORKING_DIRECTORY: modules/async-icq

HOST_TAR_PATH: /tmp/icq-host.tar
Expand All @@ -33,9 +33,9 @@ jobs:
args: --timeout=5m

test:
runs-on: ubuntu-latest
name: test
steps:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -131,4 +131,4 @@ jobs:
docker image ls -a

- name: Run Test
run: make ${{ matrix.test }}
run: make ${{ matrix.test }}
17 changes: 9 additions & 8 deletions .github/workflows/ibc-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: ibc-hooks
on:
pull_request:
paths:
- 'modules/ibc-hooks/**'
- '.github/workflows/ibc-hooks.yml'
- "modules/ibc-hooks/**"
- ".github/workflows/ibc-hooks.yml"

env:
LINT_VERSION: v1.55.2
GO_VERSION: 1.21.0
LINT_VERSION: v1.57.1
GO_VERSION: 1.22.1
WORKING_DIRECTORY: modules/ibc-hooks

jobs:
Expand All @@ -25,9 +25,9 @@ jobs:
args: --timeout=5m

test:
runs-on: ubuntu-latest
name: test
steps:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
Expand All @@ -37,4 +37,5 @@ jobs:

- name: Test
run: go test ./...
working-directory: ${{ env.WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}

24 changes: 12 additions & 12 deletions .github/workflows/packet-forward-middleware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: packet-forward-middleware
on:
pull_request:
paths:
- 'middleware/packet-forward-middleware/**'
- '.github/workflows/packet-forward-middleware.yml'
- "middleware/packet-forward-middleware/**"
- ".github/workflows/packet-forward-middleware.yml"

env:
LINT_VERSION: v1.55.2
GO_VERSION: 1.21.0
WORKING_DIRECTORY: middleware/packet-forward-middleware
LINT_VERSION: v1.57.1
GO_VERSION: 1.22.1
WORKING_DIRECTORY: middleware/packet-forward-middleware

DOCKER_TAG: pfm:local
TAR_PATH: /tmp/pfm-docker-image.tar
IMAGE_NAME: pfm-docker-image
DOCKER_TAG: pfm:local
TAR_PATH: /tmp/pfm-docker-image.tar
IMAGE_NAME: pfm-docker-image

jobs:
golangci:
Expand All @@ -29,9 +29,9 @@ jobs:
args: --timeout=5m

test:
runs-on: ubuntu-latest
name: test
steps:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -105,4 +105,4 @@ jobs:
docker image ls -a

- name: Run Test
run: make ${{ matrix.test }}
run: make ${{ matrix.test }}
9 changes: 5 additions & 4 deletions modules/ibc-hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ Follow these steps to install the IBC hooks module. The following lines are all
```go
// import (
...
ibchooks "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7"
ibchookskeeper "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/keeper"
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"
ibchooks "github.com/cosmos/ibc-apps/modules/ibc-hooks/v8"
ibchookskeeper "github.com/cosmos/ibc-apps/modules/ibc-hooks/v8/keeper"
ibchookstypes "github.com/cosmos/ibc-apps/modules/ibc-hooks/v8/types"
...
// )
```
Expand Down Expand Up @@ -359,4 +359,5 @@ Follow these steps to install the IBC hooks module. The following lines are all
```
## Tests

Tests are included in the [tests folder](./tests/unit/testdata/counter/README.md).

Tests are included in the [tests folder](./tests/unit/testdata/counter/README.md).
6 changes: 3 additions & 3 deletions modules/ibc-hooks/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/keeper"
"github.com/cosmos/ibc-apps/modules/ibc-hooks/v7/types"
"github.com/cosmos/ibc-apps/modules/ibc-hooks/v8/keeper"
"github.com/cosmos/ibc-apps/modules/ibc-hooks/v8/types"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client/flags"
Expand All @@ -16,7 +16,7 @@ import (
func indexRunCmd(cmd *cobra.Command, args []string) error {
usageTemplate := `Usage:{{if .HasAvailableSubCommands}}
{{.CommandPath}} [command]{{end}}

{{if .HasAvailableSubCommands}}Available Commands:{{range .Commands}}{{if .IsAvailableCommand}}
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}

Expand Down
Loading
Loading