Skip to content

Commit f2d9444

Browse files
authored
feat: add query.GenericFilteredPaginated (backport #12253) (#12371)
1 parent dced7ec commit f2d9444

15 files changed

Lines changed: 232 additions & 102 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/setup-go@v2.1.4
1616
with:
17-
go-version: 1.17
17+
go-version: 1.18
1818
- uses: technote-space/get-diff-action@v5
1919
id: git_diff
2020
with:

.github/workflows/release-sims.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- name: install runsim
2323
run: |
24-
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0
24+
export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/runsim@v1.0.0
2525
- uses: actions/cache@v2.1.6
2626
with:
2727
path: ~/go/bin

.github/workflows/sims.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v2
1616
- uses: actions/setup-go@v2.1.3
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919
- name: Display go version
2020
run: go version
2121
- run: make build
@@ -26,11 +26,11 @@ jobs:
2626
steps:
2727
- uses: actions/setup-go@v2.1.3
2828
with:
29-
go-version: 1.17
29+
go-version: 1.18
3030
- name: Display go version
3131
run: go version
3232
- name: Install runsim
33-
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0
33+
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/runsim@v1.0.0
3434
- uses: actions/cache@v2.1.6
3535
with:
3636
path: ~/go/bin
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@v2
4444
- uses: actions/setup-go@v2.1.3
4545
with:
46-
go-version: 1.17
46+
go-version: 1.18
4747
- name: Display go version
4848
run: go version
4949
- uses: technote-space/get-diff-action@v4
@@ -69,7 +69,7 @@ jobs:
6969
- uses: actions/checkout@v2
7070
- uses: actions/setup-go@v2.1.3
7171
with:
72-
go-version: 1.17
72+
go-version: 1.18
7373
- name: Display go version
7474
run: go version
7575
- uses: technote-space/get-diff-action@v4
@@ -97,7 +97,7 @@ jobs:
9797
- uses: actions/checkout@v2
9898
- uses: actions/setup-go@v2.1.3
9999
with:
100-
go-version: 1.17
100+
go-version: 1.18
101101
- name: Display go version
102102
run: go version
103103
- uses: technote-space/get-diff-action@v4
@@ -125,7 +125,7 @@ jobs:
125125
- uses: actions/checkout@v2
126126
- uses: actions/setup-go@v2.1.3
127127
with:
128-
go-version: 1.17
128+
go-version: 1.18
129129
- name: Display go version
130130
run: go version
131131
- uses: technote-space/get-diff-action@v4

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v2.1.3
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919
- name: Unshallow
2020
run: git fetch --prune --unshallow
2121
- name: Create release

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/setup-go@v2.1.3
1414
with:
15-
go-version: 1.17
15+
go-version: 1.18
1616
- name: Display go version
1717
run: go version
1818
- name: install tparse
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v2
3333
- uses: actions/setup-go@v2.1.3
3434
with:
35-
go-version: 1.17
35+
go-version: 1.18
3636
- uses: technote-space/get-diff-action@v4
3737
id: git_diff
3838
with:
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@v2
5050
- uses: actions/setup-go@v2.1.3
5151
with:
52-
go-version: 1.17
52+
go-version: 1.18
5353
- name: Display go version
5454
run: go version
5555
- uses: technote-space/get-diff-action@v4
@@ -102,7 +102,7 @@ jobs:
102102
- uses: actions/checkout@v2
103103
- uses: actions/setup-go@v2.1.3
104104
with:
105-
go-version: 1.17
105+
go-version: 1.18
106106
- uses: technote-space/get-diff-action@v4
107107
with:
108108
PATTERNS: |
@@ -180,7 +180,7 @@ jobs:
180180
- uses: actions/checkout@v2
181181
- uses: actions/setup-go@v2.1.3
182182
with:
183-
go-version: 1.17
183+
go-version: 1.18
184184
- uses: technote-space/get-diff-action@v4
185185
with:
186186
PATTERNS: |
@@ -224,7 +224,7 @@ jobs:
224224
- uses: actions/checkout@v2
225225
- uses: actions/setup-go@v2.1.3
226226
with:
227-
go-version: 1.17
227+
go-version: 1.18
228228
- uses: technote-space/get-diff-action@v4
229229
id: git_diff
230230
with:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,18 @@ Ref: https://keepachangelog.com/en/1.0.0/
4242
### Improvements
4343

4444
* (simapp) [#12314](https://github.com/cosmos/cosmos-sdk/pull/12314) Increase `DefaultGenTxGas` from `1000000` to `10000000`
45+
* [#12371](https://github.com/cosmos/cosmos-sdk/pull/12371) Update min required Golang version to 1.18.
4546

4647
### Bug Fixes
4748

4849
* [\#12317](https://github.com/cosmos/cosmos-sdk/pull/12317) Rename `edit-validator` command's `--moniker` flag to `--new-moniker`
4950
* (x/upgrade) [#12264](https://github.com/cosmos/cosmos-sdk/pull/12264) Fix `GetLastCompleteUpgrade` to properly return the latest upgrade.
5051
* (x/crisis) [#12208](https://github.com/cosmos/cosmos-sdk/pull/12208) Fix progress index of crisis invariant assertion logs.
5152

53+
### Features
54+
55+
* (query) [#12253](https://github.com/cosmos/cosmos-sdk/pull/12253) Add `GenericFilteredPaginate` to the `query` package to improve UX.
56+
5257
## [v0.45.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.5) - 2022-06-09
5358

5459
### Improvements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The Cosmos SDK is a framework for building blockchain applications. [Tendermint
4545
**WARNING**: The Cosmos SDK has mostly stabilized, but we are still making some
4646
breaking changes.
4747

48-
**Note**: Requires [Go 1.17+](https://golang.org/dl/)
48+
**Note**: Requires [Go 1.18+](https://golang.org/dl/)
4949

5050
## Quick Start
5151

contrib/images/simd-dlv/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-alpine AS build
1+
FROM golang:1.18-alpine AS build
22
RUN apk add build-base git linux-headers libc-dev
33
RUN go install github.com/go-delve/delve/cmd/dlv@latest
44
WORKDIR /work

contrib/images/simd-env/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-alpine AS build
1+
FROM golang:1.18-alpine AS build
22
RUN apk add build-base git linux-headers
33
WORKDIR /work
44
COPY go.mod go.sum /work/

contrib/rosetta/node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-alpine as build
1+
FROM golang:1.18-alpine as build
22

33
RUN apk add --no-cache tar
44

0 commit comments

Comments
 (0)