Skip to content

Commit 073b664

Browse files
committed
Merge branch 'master' into roman/upstream/snapshot-pruning-refactor
2 parents bbe9d5e + c01b825 commit 073b664

File tree

88 files changed

+630
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+630
-344
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
8686
### API Breaking Changes
8787

8888
* [\#11496](https://github.com/cosmos/cosmos-sdk/pull/11496) refactor abstractions for snapshot and pruning; snapshot intervals eventually pruned; unit tests.
89+
* (types) [\#11689](https://github.com/cosmos/cosmos-sdk/pull/11689) Make `Coins#Sub` and `Coins#SafeSub` consistent with `Coins#Add`.
8990
* (store)[\#11152](https://github.com/cosmos/cosmos-sdk/pull/11152) Remove `keep-every` from pruning options.
9091
* [\#10950](https://github.com/cosmos/cosmos-sdk/pull/10950) Add `envPrefix` parameter to `cmd.Execute`.
9192
* (x/mint) [\#10441](https://github.com/cosmos/cosmos-sdk/pull/10441) The `NewAppModule` function now accepts an inflation calculation function as an argument.
@@ -176,6 +177,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
176177

177178
### Improvements
178179

180+
* [\#11696](https://github.com/cosmos/cosmos-sdk/pull/11696) Rename `helpers.GenTx` to `GenSignedMockTx` to avoid confusion with genutil's `GenTxCmd`.
179181
* (x/auth/vesting) [\#11652](https://github.com/cosmos/cosmos-sdk/pull/11652) Add util functions for `Period(s)`
180182
* [\#11630](https://github.com/cosmos/cosmos-sdk/pull/11630) Add SafeSub method to sdk.Coin.
181183
* [\#11511](https://github.com/cosmos/cosmos-sdk/pull/11511) Add api server flags to start command.
@@ -209,6 +211,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
209211

210212
### Bug Fixes
211213

214+
* [\#11693](https://github.com/cosmos/cosmos-sdk/pull/11693) Add validation for gentx cmd.
215+
* [\#11645](https://github.com/cosmos/cosmos-sdk/pull/11645) Fix `--home` flag ignored when running help.
212216
* [\#11558](https://github.com/cosmos/cosmos-sdk/pull/11558) Fix `--dry-run` not working when using tx command.
213217
* [\#11354](https://github.com/cosmos/cosmos-sdk/pull/11355) Added missing pagination flag for `bank q total` query.
214218
* [\#11197](https://github.com/cosmos/cosmos-sdk/pull/11197) Signing with multisig now works with multisig address which is not in the keyring.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys add foo
1111
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys list
1212
# TODO: demo connecting rest-server (or is this in server now?)
13-
FROM golang:alpine AS build-env
13+
FROM golang:1.18-alpine AS build-env
1414

1515
# Install minimum necessary dependencies
1616
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3

client/cmd_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func TestSetCmdClientContextHandler(t *testing.T) {
7070
}
7171

7272
c.Flags().String(flags.FlagChainID, "", "network chain ID")
73+
c.Flags().String(flags.FlagHome, "", "home dir")
7374

7475
return c
7576
}
@@ -91,6 +92,14 @@ func TestSetCmdClientContextHandler(t *testing.T) {
9192
fmt.Sprintf("--%s=new-chain-id", flags.FlagChainID),
9293
},
9394
},
95+
{
96+
"flags set with space",
97+
initClientCtx.WithHomeDir("/tmp/dir"),
98+
[]string{
99+
fmt.Sprintf("--%s", flags.FlagHome),
100+
"/tmp/dir",
101+
},
102+
},
94103
}
95104

96105
for _, tc := range testCases {

contrib/devtools/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
FROM bufbuild/buf:1.1.0 as BUILDER
66

7-
FROM golang:alpine
7+
FROM golang:1.18-alpine
88

99
RUN apk add --no-cache \
1010
nodejs \

contrib/devtools/Makefile

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,20 @@ tools-stamp: statik runsim
5757
# in a row.
5858
touch $@
5959

60-
# Install the runsim binary with a temporary workaround of entering an outside
61-
# directory as the "go get" command ignores the -mod option and will polute the
62-
# go.{mod, sum} files.
63-
#
64-
# ref: https://github.com/golang/go/issues/30515
60+
# Install the runsim binary
6561
statik: $(STATIK)
6662
$(STATIK):
6763
@echo "Installing statik..."
68-
@(cd /tmp && go get github.com/rakyll/statik@v0.1.6)
64+
@go install github.com/rakyll/statik@v0.1.6
6965

70-
# Install the runsim binary with a temporary workaround of entering an outside
71-
# directory as the "go get" command ignores the -mod option and will polute the
72-
# go.{mod, sum} files.
73-
#
74-
# ref: https://github.com/golang/go/issues/30515
66+
# Install the runsim binary
7567
runsim: $(RUNSIM)
7668
$(RUNSIM):
7769
@echo "Installing runsim..."
78-
@(cd /tmp && go get github.com/cosmos/tools/cmd/runsim@v1.0.0)
70+
@go install github.com/cosmos/tools/cmd/runsim@v1.0.0
7971

8072
tools-clean:
8173
rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM)
8274
rm -f tools-stamp
8375

84-
.PHONY: tools-clean statik runsim
76+
.PHONY: tools-clean statik runsim

contrib/images/simd-dlv/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM golang:alpine AS build
1+
FROM golang:1.18-alpine AS build
2+
23
RUN apk add build-base git linux-headers libc-dev
34
RUN go install github.com/go-delve/delve/cmd/dlv@latest
45
WORKDIR /work
@@ -20,4 +21,4 @@ WORKDIR /simd
2021
EXPOSE 26656 26657 2345
2122
ENTRYPOINT ["/usr/bin/wrapper.sh"]
2223
CMD ["start", "--log_format", "plain"]
23-
STOPSIGNAL SIGTERM
24+
STOPSIGNAL SIGTERM

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: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/rosetta-ci/Dockerfile

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

33
RUN apk add --no-cache tar git
44

contrib/rosetta/rosetta-cli/Dockerfile

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

33
RUN apk add git gcc libc-dev --no-cache
44

@@ -15,4 +15,4 @@ RUN apk add gcc libc-dev python3 --no-cache
1515

1616
ENV PATH=$PATH:/bin
1717

18-
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli
18+
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli

docs/architecture/adr-030-authz-module.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* 2020-10-12: Updated Draft
77
* 2020-11-13: Accepted
88
* 2020-05-06: proto API updates, use `sdk.Msg` instead of `sdk.ServiceMsg` (the latter concept was removed from Cosmos SDK)
9+
* 2022-04-20: Updated the `SendAuthorization` proto docs to clarify the `SpendLimit` is a required field. (Generic authorization can be used with bank msg type url to create limit less bank authorization)
910

1011
## Status
1112

@@ -87,8 +88,8 @@ a `SpendLimit` and updates it down to zero:
8788
```go
8889
type SendAuthorization struct {
8990
// SpendLimit specifies the maximum amount of tokens that can be spent
90-
// by this authorization and will be updated as tokens are spent. If it is
91-
// empty, there is no spend limit and any amount of coins can be spent.
91+
// by this authorization and will be updated as tokens are spent. This field is required. (Generic authorization
92+
// can be used with bank msg type url to create limit less bank authorization).
9293
SpendLimit sdk.Coins
9394
}
9495

0 commit comments

Comments
 (0)