Skip to content

Commit 2d047b8

Browse files
author
Alex Johnson
authored
chore: various improvements for v0.24.0 (ignite#2824)
* lint fix * clean up changelog * update deps * lint * update lint and run * update lint
1 parent af3f443 commit 2d047b8

File tree

9 files changed

+481
-45
lines changed

9 files changed

+481
-45
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ linters:
99
disable-all: true
1010
enable:
1111
- bodyclose
12-
- deadcode
1312
- depguard
1413
- dogsled
1514
# - errcheck
@@ -28,7 +27,6 @@ linters:
2827
- nakedret
2928
- exportloopref
3029
- staticcheck
31-
- structcheck
3230
- stylecheck
3331
- typecheck
3432
- unconvert

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ format:
5050
## lint: Run Golang CI Lint.
5151
lint:
5252
@echo Running gocilint...
53-
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.2
54-
@golangci-lint run --out-format=tab --issues-exit-code=0
53+
@go run github.com/golangci/golangci-lint/cmd/golangci-lint run --out-format=tab --issues-exit-code=0
5554

5655
.PHONY: govet format lint
5756

changelog.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,36 @@
44

55
### Features
66

7+
- Upgraded Cosmos SDK to `v0.46.0` and IBC to `v5` in CLI and scaffolding templates
78
- Change chain init to check that no gentx are present in the initial genesis
89
- Add `network rewards release` command
910
- Add "make mocks" target to Makefile
1011
- Add `--skip-proto` flag to `build`, `init` and `serve` commands to build the chain without building proto files
1112
- Add `node query tx` command to query a transaction in any chain.
1213
- Add `node query bank` command to query an account's bank balance in any chain.
13-
- Add `node tx bank send` command to send funds from one account to an other in any chain.
14+
- Add `node tx bank send` command to send funds from one account to another in any chain.
15+
- Implement `network profile` command
1416
- Add `generate ts-client` command to generate a stand-alone modular TypeScript client.
1517

1618
### Changes
1719

1820
- Add changelog merge strategy in .gitattributes to avoid conflicts.
1921
- Refactor `templates/app` to remove `monitoringp` module from the default template
20-
- Updated keyring dependency to match what Cosmos SDK is using
22+
- Updated keyring dependency to match Cosmos SDK
2123
- Speed up the integration tests
2224
- Refactor ignite network and fix genesis generation bug
23-
- Implement `network profile` command
2425
- Make Go dependency verification optional during build by adding the `--check-dependencies` flag
2526
so Ignite CLI can work in a Go workspace context.
2627
- Temporary SPN address change for nightly
2728
- Rename `simapp.go.plush` simulation file template to `helpers.go.plush`
2829
- Remove campaign creation from the `network chain publish` command
29-
- Upgraded Cosmos SDK to v0.46.0 and IBC to v5 in CLI and scaffolding templates
3030
- Optimized JavaScript generator to use a single typescript API generator binary
3131
- Improve documentation and add support for protocol buffers and Go modules syntax
32-
- Add inline documentation for `scaffold` and `scaffold module` CLI commands
32+
- Add inline documentation for CLI commands
3333
- Change `cmd/account` to skip passphrase prompt when importing from mnemonic
34-
- Remove usage of deprecated `io/ioutil` package
3534
- Add nodejs version in the output of ignite version
3635
- Removed `handler.go` from scaffolded module template
37-
- Migrated to `cosmossdk.io` packages for `errors` and `math`
38-
- Upgraded `spn` version
36+
- Migrated to `cosmossdk.io` packages for and `math`
3937
- Vuex stores from the `generate vuex` command use the new TypeScript client
4038
- Upgraded frontend Vue template to v0.3.10
4139

@@ -49,8 +47,9 @@
4947
- Fix `scaffold query` command to use `GetClientQueryContext` instead of `GetClientTxContext`
5048
- Fix flaky integration tests issue that failed with "text file busy"
5149
- Fix default chain ID for publish
52-
- Replace os.Rename with xos.Rename
50+
- Replace `os.Rename` with `xos.Rename`
5351
- Fix CLI reference generation to add `ignite completion` documentation
52+
- Remove usage of deprecated `io/ioutil` package
5453

5554

5655
## [`v0.23.0`](https://github.com/ignite/cli/releases/tag/v0.23.0)

go.mod

Lines changed: 127 additions & 6 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 330 additions & 11 deletions
Large diffs are not rendered by default.

ignite/internal/tools/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package tools
55

66
import (
7+
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
78
_ "github.com/vektra/mockery/v2"
89
_ "golang.org/x/tools/cmd/goimports"
910
_ "mvdan.cc/gofumpt"

ignite/pkg/cosmosclient/rpc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55

66
"github.com/pkg/errors"
77
"github.com/tendermint/tendermint/libs/bytes"
8-
"github.com/tendermint/tendermint/rpc/client"
98
rpcclient "github.com/tendermint/tendermint/rpc/client"
109
ctypes "github.com/tendermint/tendermint/rpc/core/types"
1110
"github.com/tendermint/tendermint/types"
@@ -35,7 +34,7 @@ func (rpc rpcWrapper) ABCIQuery(ctx context.Context, path string, data bytes.Hex
3534
return res, rpcError(rpc.nodeAddress, err)
3635
}
3736

38-
func (rpc rpcWrapper) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error) {
37+
func (rpc rpcWrapper) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts rpcclient.ABCIQueryOptions) (*ctypes.ResultABCIQuery, error) {
3938
res, err := rpc.Client.ABCIQueryWithOptions(ctx, path, data, opts)
4039
return res, rpcError(rpc.nodeAddress, err)
4140
}

ignite/templates/app/stargate/go.mod.plush

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ go 1.18
44

55
require (
66
github.com/cosmos/cosmos-sdk v0.46.1
7-
github.com/cosmos/ibc-go/v5 v5.0.0-rc0
7+
github.com/cosmos/ibc-go/v5 v5.0.0-rc1
88
github.com/gogo/protobuf v1.3.3
99
github.com/golang/protobuf v1.5.2
1010
github.com/grpc-ecosystem/grpc-gateway v1.16.0
11-
github.com/ignite/cli v0.23.1-0.20220801134230-8d30121393da
11+
github.com/ignite/cli v0.23.1-0.20220907132826-b2bb5d69f48e
1212
github.com/spf13/cast v1.5.0
1313
github.com/spf13/cobra v1.5.0
1414
github.com/stretchr/testify v1.8.0
1515
github.com/tendermint/tendermint v0.34.21
1616
github.com/tendermint/tm-db v0.6.7
1717
google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc
18-
google.golang.org/grpc v1.48.0
18+
google.golang.org/grpc v1.49.0
1919
gopkg.in/yaml.v2 v2.4.0
2020
)
2121

@@ -172,7 +172,7 @@ require (
172172
github.com/tendermint/btcd v0.1.1 // indirect
173173
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
174174
github.com/tendermint/go-amino v0.16.0 // indirect
175-
github.com/tendermint/spn v0.2.1-0.20220801133447-6737a26cb12d // indirect
175+
github.com/tendermint/spn v0.2.1-0.20220826123316-985b629a92dd // indirect
176176
github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce // indirect
177177
github.com/ulikunitz/xz v0.5.8 // indirect
178178
github.com/xanzy/ssh-agent v0.2.1 // indirect

ignite/templates/app/stargate/go.sum

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4
413413
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
414414
github.com/cosmos/iavl v0.19.1 h1:3gaq9b6SjiB0KBTygRnAvEGml2pQlu1TH8uma5g63Ys=
415415
github.com/cosmos/iavl v0.19.1/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
416-
github.com/cosmos/ibc-go/v5 v5.0.0-rc0 h1:KWuyL0DmXQ2/vtwlP3ZvLFjZxD8J6o6zTqje4XCRHYw=
417-
github.com/cosmos/ibc-go/v5 v5.0.0-rc0/go.mod h1:gSeljfcWlUKjKhTptUpqz83zYpGE+/Q+HJwmDPq5pJs=
416+
github.com/cosmos/ibc-go/v5 v5.0.0-rc1 h1:9cgpYmHh2jodB/t3LwB/pYA2sG9rdKB9cmXP0D5M0Fs=
417+
github.com/cosmos/ibc-go/v5 v5.0.0-rc1/go.mod h1:Wqsguq98Iuns8tgTv8+xaGYbC+Q8zJfbpjzT6IgMJbs=
418418
github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4=
419419
github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY=
420420
github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI=
@@ -842,8 +842,8 @@ github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHL
842842
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
843843
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
844844
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
845-
github.com/ignite/cli v0.23.1-0.20220801134230-8d30121393da h1:tw9oLVA5gXwrjztcXbUuI8Jt4gLLbA1DLiWp7L873KU=
846-
github.com/ignite/cli v0.23.1-0.20220801134230-8d30121393da/go.mod h1:aXWIC1xA82munGUO79z7D95Fej4nXJcpqVTiKxbQdlo=
845+
github.com/ignite/cli v0.23.1-0.20220907132826-b2bb5d69f48e h1:Kh4/76gOI0mqn6SJRCwmcweaGuA8+vS4QsDTMpCI7Tc=
846+
github.com/ignite/cli v0.23.1-0.20220907132826-b2bb5d69f48e/go.mod h1:FvcoRS5mF3TmwSFD6UCmbxbM4HEpiUL22I1N9wooQYQ=
847847
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
848848
github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
849849
github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
@@ -1352,11 +1352,11 @@ github.com/tendermint/btcd v0.1.1 h1:0VcxPfflS2zZ3RiOAHkBiFUcPvbtRj5O7zHmcJWHV7s
13521352
github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U=
13531353
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 h1:hqAk8riJvK4RMWx1aInLzndwxKalgi5rTqgfXxOxbEI=
13541354
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk=
1355-
github.com/tendermint/fundraising v0.3.1-0.20220613014523-03b4a2d4481a h1:DIxap6r3z89JLoaLp6TTtt8XS7Zgfy4XACfG6b+4plE=
1355+
github.com/tendermint/fundraising v0.3.1 h1:S4uOV/T7YNBqXhsCZnq/TUoHB0d2kM+6tKeTD4WhLN0=
13561356
github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E=
13571357
github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME=
1358-
github.com/tendermint/spn v0.2.1-0.20220801133447-6737a26cb12d h1:O1QJdTIl1Hc8WY4zXf1srmNpgFfbCZWPnUUD2AI1brU=
1359-
github.com/tendermint/spn v0.2.1-0.20220801133447-6737a26cb12d/go.mod h1:nRnES6yZCzmvYTCa4GspOVCyvrS2/MOQ4qMhS3/On2Q=
1358+
github.com/tendermint/spn v0.2.1-0.20220826123316-985b629a92dd h1:G50RK8x61pNFGVSAI5UmXaBDA4h/P2+SDdftha9jjSM=
1359+
github.com/tendermint/spn v0.2.1-0.20220826123316-985b629a92dd/go.mod h1:5eAAx0g6FEXubQ1Sb7zJcDZqCSjb9yoJMVOQwjEt9qQ=
13601360
github.com/tendermint/tendermint v0.34.21 h1:UiGGnBFHVrZhoQVQ7EfwSOLuCtarqCSsRf8VrklqB7s=
13611361
github.com/tendermint/tendermint v0.34.21/go.mod h1:XDvfg6U7grcFTDx7VkzxnhazQ/bspGJAn4DZ6DcLLjQ=
13621362
github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8=
@@ -2062,8 +2062,8 @@ google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11
20622062
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
20632063
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
20642064
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
2065-
google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w=
2066-
google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
2065+
google.golang.org/grpc v1.49.0 h1:WTLtQzmQori5FUH25Pq4WT22oCsv8USpQ+F6rqtsmxw=
2066+
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
20672067
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
20682068
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
20692069
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=

0 commit comments

Comments
 (0)