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

🧹 Linting #1418

Merged
merged 120 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from 119 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
5d7da1c
update linters so we don't have deprecated linters, and fix linter er…
faddat May 23, 2022
47b665d
Merge branch 'main' into linter
faddat May 23, 2022
bf04920
Update CHANGELOG.md
faddat May 23, 2022
5501a2c
longer timeout
faddat May 23, 2022
adb6872
Merge branch 'main' into linter
faddat May 24, 2022
e80423a
Update golangci.yml
faddat May 24, 2022
8f2ff17
fumpt
faddat May 24, 2022
10838f9
Merge branch 'main' into linter
faddat May 24, 2022
5ef98e4
Merge branch 'main' into linter
faddat May 24, 2022
e80a1c8
Merge branch 'main' into linter
faddat May 26, 2022
2170acb
NewPacketId -> NewPacketID in keys_test.go
faddat May 26, 2022
ca3d343
Merge branch 'main' into linter
faddat Jun 2, 2022
3b0b1f2
update changelog per feedback
faddat Jun 2, 2022
23d559a
Merge branch 'main' into linter
faddat Jun 2, 2022
882e9f1
Update modules/apps/29-fee/ibc_middleware.go
faddat Jun 3, 2022
9261f37
Update modules/core/ante/ante.go
faddat Jun 3, 2022
e71e353
Merge branch 'main' into linter
faddat Jun 7, 2022
a950741
Revert "Update modules/apps/29-fee/ibc_middleware.go"
faddat Jun 7, 2022
f9519fa
add godoc linter
faddat Jun 7, 2022
5b0e597
add golint (deprecated) to check for godocs
faddat Jun 7, 2022
4e63e3e
alphebetize and add errcheck
faddat Jun 7, 2022
8a879b4
fumpt
faddat Jun 7, 2022
175e576
Added gofumpt linter
faddat Jun 7, 2022
858e71e
some error checks and one docs fix
faddat Jun 7, 2022
5157912
RedundancyDecorator
faddat Jun 7, 2022
0cb39b4
added errors, resolved an issue with RedundancyDecorator
faddat Jun 7, 2022
bd3fce6
resolve unnecessary line blank
faddat Jun 7, 2022
e4b9076
moved comment text inside else if
faddat Jun 7, 2022
f206324
update store
faddat Jun 7, 2022
72b9199
Update CHANGELOG.md
faddat Jun 7, 2022
b2a0824
Merge remote-tracking branch 'upstream/main' into linter
faddat Jun 22, 2022
4a973b8
newpacketID in ica test
faddat Jun 22, 2022
6829e91
gofumpt
faddat Jun 22, 2022
bda2873
assignOp: replace with
faddat Jun 22, 2022
eee47f1
Merge branch 'main' into linter
faddat Jun 27, 2022
02e3ce9
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jun 27, 2022
7c28fdb
merge main
faddat Jun 27, 2022
2ded56c
Merge branch 'main' into linter
faddat Jun 28, 2022
51b5cfc
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 2, 2022
6a4e2e7
lint keeper_test.go
faddat Jul 2, 2022
53a5ff5
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 2, 2022
d6ae552
Merge branch 'main' into linter
faddat Jul 5, 2022
ccf5754
Merge branch 'main' into linter
faddat Jul 5, 2022
cfa1f7d
fix error checking in client keeper
faddat Jul 5, 2022
54cb8d7
"works on my pc" ;).
faddat Jul 5, 2022
4a9f87c
use go1.18 for golangci-lint
faddat Jul 5, 2022
b125e45
Merge branch 'main' into linter
faddat Jul 7, 2022
5866dc8
Merge branch 'main' into linter
faddat Jul 9, 2022
f634228
fumpt
faddat Jul 9, 2022
ec587aa
Merge branch 'main' into linter
faddat Jul 12, 2022
9c4b820
Update modules/core/ante/ante.go
faddat Jul 14, 2022
efad5dc
Update testing/mock/ibc_app.go
faddat Jul 14, 2022
75d595d
Update modules/light-clients/07-tendermint/types/update.go
faddat Jul 14, 2022
0a1177b
Merge branch 'main' into linter
faddat Jul 14, 2022
ec8e88f
goimports
faddat Jul 14, 2022
02e1399
fumpt
faddat Jul 14, 2022
42c62d8
Update modules/core/02-client/abci.go
faddat Jul 14, 2022
bfb4cd1
goimports
faddat Jul 14, 2022
ea7dbba
Update golangci.yml
faddat Jul 14, 2022
4ea11e8
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 15, 2022
b3eb288
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 15, 2022
5f86b0d
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 15, 2022
adffa5b
fix newCosmosRelayer
faddat Jul 15, 2022
3aec211
try to fix abci codeql flagging
faddat Jul 15, 2022
bf9832a
Merge branch 'main' into linter
faddat Jul 16, 2022
1e1d59c
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 16, 2022
51d4e20
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 16, 2022
3dbed8c
Merge branch 'main' into linter
faddat Jul 19, 2022
cca4027
make ci same as main
faddat Jul 19, 2022
c290679
make format
faddat Jul 19, 2022
b34a460
make format
faddat Jul 19, 2022
ed8bac1
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 19, 2022
dfa1751
fmt and proto-gen
faddat Jul 19, 2022
2933f75
update linter settings
faddat Jul 19, 2022
f6899df
omit unnecessary type declaration ibctmtypes.Fraction
faddat Jul 19, 2022
4e8ec07
adjust golangci-lint timeout
faddat Jul 19, 2022
d14d530
use blank for SetUpgradedConsensusState
faddat Jul 19, 2022
5be7cfd
remove sdk_test.go
faddat Jul 20, 2022
2aaf670
Merge branch 'main' into linter
faddat Jul 21, 2022
5dffad9
Update modules/apps/29-fee/ibc_middleware.go
faddat Jul 21, 2022
980b3ff
Update CHANGELOG.md
faddat Jul 21, 2022
ac9e3cd
Update CHANGELOG.md
faddat Jul 21, 2022
8fd5b4e
Merge branch 'main' into linter
faddat Jul 21, 2022
b69d9f3
use declaration
faddat Jul 21, 2022
4b2e3a8
Update CHANGELOG.md
faddat Jul 21, 2022
fc15d16
remove unneded space
faddat Jul 21, 2022
61700a4
update changelog
faddat Jul 21, 2022
c2e5e86
gofumpt
faddat Jul 21, 2022
b1eee6f
fix spelling and trace.go
faddat Jul 21, 2022
c05fdae
Merge branch 'main' into linter
faddat Jul 21, 2022
e95c649
Merge branch 'main' into linter
faddat Jul 21, 2022
2e35554
Merge branch 'main' into linter
faddat Jul 22, 2022
46d6a66
we win
faddat Jul 22, 2022
9574847
Merge branch 'main' into linter
faddat Jul 23, 2022
56a4174
Merge branch 'main' into linter
faddat Jul 26, 2022
c92f6e6
Update mock.go
faddat Jul 26, 2022
e44018c
fumpt
faddat Jul 26, 2022
1d7f3a0
fumpt
faddat Jul 26, 2022
dbf4222
Merge branch 'main' into linter
faddat Jul 26, 2022
6fdc51e
Merge branch 'main' into linter
faddat Jul 26, 2022
19bce95
gofumpt -w -l -modpath github.com/cosmos/ibc-go/v4
faddat Jul 26, 2022
10a5515
write files
faddat Jul 26, 2022
9e60582
imports?
faddat Jul 26, 2022
bfe336b
Merge branch 'linter' of https://github.com/notional-labs/ibc-go into…
faddat Jul 26, 2022
efa7853
correct formatting of imports
faddat Jul 26, 2022
c022cb9
gofumpt
faddat Jul 26, 2022
2da8f35
fix metrics issue
faddat Jul 26, 2022
4b36cf6
add note about blank import of statik
faddat Jul 26, 2022
26cb0af
added note for blank import so we don't need nolint
faddat Jul 26, 2022
db496c2
e2e imports
faddat Jul 26, 2022
81cd7f0
give e2e a full module path
faddat Jul 26, 2022
75d4f77
use goimports
faddat Jul 26, 2022
e42313d
goimports
faddat Jul 26, 2022
144d5c7
Delete .gitpod.yml
faddat Jul 26, 2022
b204f86
Merge remote-tracking branch 'upstream/main' into linter
faddat Jul 27, 2022
9837d0b
update module paths
faddat Jul 27, 2022
5f7a2ac
linting
faddat Jul 27, 2022
1b1cf3a
update proto
vuong177 Jul 27, 2022
7b440bb
*.go
faddat Jul 27, 2022
da21b1a
Merge branch 'main' into linter
faddat Jul 28, 2022
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
26 changes: 26 additions & 0 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
colin-axner marked this conversation as resolved.
Show resolved Hide resolved
args: --timeout 5m
21 changes: 5 additions & 16 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,42 @@
run:
tests: false
# # timeout for analysis, e.g. 30s, 5m, default is 1m
# timeout: 5m
timeout: 5m

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
# - errcheck
- exportloopref
- errcheck
- goconst
- gocritic
- gofmt
- gofumpt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- maligned
- misspell
- nakedret
- prealloc
- scopelint
- staticcheck
- structcheck
- stylecheck
- revive
- typecheck
- unconvert
- unused
- unparam
- misspell
# - wsl
- nolintlint

issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "comment on exported var"
linters:
- golint
- text: "don't use an underscore in package name"
linters:
- golint
faddat marked this conversation as resolved.
Show resolved Hide resolved
- text: "ST1003:"
linters:
- stylecheck
Expand Down
41 changes: 23 additions & 18 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ We ensure all major releases are supported by relayers ([hermes](https://github.

## Release cycle

IBC-Go follows a traditional release cycle involving an alpha, beta, and rc (release candidate) releases before finalizing a new version. As ibc-go works in a non-traditional area, we apply our own interpretation to each release type. We reserve the right to make both go API breaking changes and state machine breaking changes throughout the entire release cycle. The stable release guarentees do not go into affect until a final release is performed.
IBC-Go follows a traditional release cycle involving an alpha, beta, and rc (release candidate) releases before finalizing a new version. As ibc-go works in a non-traditional area, we apply our own interpretation to each release type. We reserve the right to make both go API breaking changes and state machine breaking changes throughout the entire release cycle. The stable release guarantees do not go into affect until a final release is performed.

It is never advisable to use a non-final release in production.

### Alpha

Alpha releases are intended to make available new features as soon as they are functional. No correctness guarentees are made and alpha releases **may** contain serious security vulnerabilities, bugs, and lack of user tooling, so long as they don't affect the core functionality.
Alpha releases are intended to make available new features as soon as they are functional. No correctness guarantees are made and alpha releases **may** contain serious security vulnerabilities, bugs, and lack of user tooling, so long as they don't affect the core functionality.

Initial users of alpha releases are expected to be advanced, patient, and capable of handling unusual errors. Very basic integration testing will be performed by the ibc-go development team before alpha releases.

Expand Down
5 changes: 4 additions & 1 deletion cmd/build_test_matrix/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func getGithubActionMatrixForTests(e2eRootDirectory string) (GithubActionTestMat
testSuiteMapping := map[string][]string{}
fset := token.NewFileSet()
err := filepath.Walk(e2eRootDirectory, func(path string, info fs.FileInfo, err error) error {
if err != nil {
return fmt.Errorf("error walking e2e directory: %s", err)
}
colin-axner marked this conversation as resolved.
Show resolved Hide resolved

// only look at test files
if !strings.HasSuffix(path, testFileNameSuffix) {
return nil
Expand All @@ -69,7 +73,6 @@ func getGithubActionMatrixForTests(e2eRootDirectory string) (GithubActionTestMat

return nil
})

if err != nil {
return GithubActionTestMatrix{}, err
}
Expand Down
1 change: 0 additions & 1 deletion cmd/build_test_matrix/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func assertGithubActionTestMatricesEqual(t *testing.T, expected, actual GithubAc
}

func goTestFileContents(suiteName, fnName1, fnName2 string) string {

replacedSuiteName := strings.ReplaceAll(`package foo

func TestSuiteName(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/determine_simd_tag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func init() {
// in the context of a GithubAction workflow, the PR is non empty if it is a pr. When
// code is merged to main, it will be empty. In this case we just use the "main" tag.
func main() {
fmt.Printf(getSimdTag(prNum))
fmt.Print(getSimdTag(prNum))
}

func getSimdTag(prNum string) string {
Expand Down
2 changes: 1 addition & 1 deletion docs/migrations/v2-to-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The migration code required may look like:
icaGenesisState := icatypes.NewGenesisState(controllerGenesisState, hostGenesisState)

// set new ics27 genesis state
appState[icatypes.ModuleName] = clientCtx.JSONCodec.MustMarshalJSON(icaGenesisState)
appState[icatypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(icaGenesisState)
```

### Ante decorator
Expand Down
10 changes: 5 additions & 5 deletions e2e/fee_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/strangelove-ventures/ibctest/broadcast"
"github.com/strangelove-ventures/ibctest/chain/cosmos"

"github.com/strangelove-ventures/ibctest/ibc"
"github.com/strangelove-ventures/ibctest/test"
"github.com/stretchr/testify/suite"

"e2e/testsuite"
"e2e/testvalues"

"github.com/cosmos/ibc-go/e2e/testsuite"
"github.com/cosmos/ibc-go/e2e/testvalues"
feetypes "github.com/cosmos/ibc-go/v4/modules/apps/29-fee/types"
transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
Expand All @@ -31,7 +31,8 @@ type FeeMiddlewareTestSuite struct {

// RegisterCounterPartyPayee broadcasts a MsgRegisterCounterpartyPayee message.
func (s *FeeMiddlewareTestSuite) RegisterCounterPartyPayee(ctx context.Context, chain *cosmos.CosmosChain,
user broadcast.User, portID, channelID, relayerAddr, counterpartyPayeeAddr string) (sdk.TxResponse, error) {
user broadcast.User, portID, channelID, relayerAddr, counterpartyPayeeAddr string,
) (sdk.TxResponse, error) {
msg := feetypes.NewMsgRegisterCounterpartyPayee(portID, channelID, relayerAddr, counterpartyPayeeAddr)
return s.BroadcastMessages(ctx, chain, user, msg)
}
Expand All @@ -43,7 +44,6 @@ func (s *FeeMiddlewareTestSuite) QueryCounterPartyPayee(ctx context.Context, cha
ChannelId: channelID,
Relayer: relayerAddress,
})

if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module e2e
module github.com/cosmos/ibc-go/e2e
colin-axner marked this conversation as resolved.
Show resolved Hide resolved

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions e2e/testsuite/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package testsuite
import (
"testing"
faddat marked this conversation as resolved.
Show resolved Hide resolved

"e2e/testconfig"

dockerclient "github.com/docker/docker/client"
"github.com/strangelove-ventures/ibctest"
"github.com/strangelove-ventures/ibctest/ibc"
"github.com/strangelove-ventures/ibctest/relayer"
"go.uber.org/zap"

"github.com/cosmos/ibc-go/e2e/testconfig"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"context"
"fmt"
"io/ioutil"

"strings"
"time"

"e2e/testconfig"

sdk "github.com/cosmos/cosmos-sdk/types"
dockerclient "github.com/docker/docker/client"
"github.com/strangelove-ventures/ibctest"
Expand All @@ -23,6 +22,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/cosmos/ibc-go/e2e/testconfig"
feetypes "github.com/cosmos/ibc-go/v4/modules/apps/29-fee/types"
)

Expand Down
46 changes: 23 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@ require (
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/klauspost/compress v1.15.1 // indirect
github.com/lib/pq v1.10.6 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/prometheus/client_golang v1.12.2 // indirect
github.com/prometheus/common v0.34.0 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
)

require (
filippo.io/edwards25519 v1.0.0-beta.2 // indirect
github.com/99designs/keyring v1.1.6 // indirect
Expand All @@ -34,7 +53,6 @@ require (
github.com/Workiva/go-datastructures v1.0.53 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/coinbase/rosetta-sdk-go v0.7.0 // indirect
Expand All @@ -51,12 +69,10 @@ require (
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b // indirect
github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c // indirect
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/gin-gonic/gin v1.7.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/gateway v1.1.0 // indirect
Expand All @@ -77,53 +93,37 @@ require (
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
github.com/klauspost/compress v1.15.1 // indirect
github.com/lib/pq v1.10.6 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.2 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.34.0 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/rs/zerolog v1.27.0 // indirect
github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
github.com/tendermint/btcd v0.1.1 // indirect
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
github.com/tendermint/go-amino v0.16.0 // indirect
github.com/zondax/hid v0.9.0 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
nhooyr.io/websocket v1.8.6 // indirect
)

require (
github.com/gin-gonic/gin v1.7.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/rs/zerolog v1.27.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ var (
// TODO: Cosmos-SDK ADR-28: Update crypto.AddressHash() when sdk uses address.Module()
// https://github.com/cosmos/cosmos-sdk/issues/10225
//
// TestAccAddress defines a resuable bech32 address for testing purposes
// TestAccAddress defines a reusable bech32 address for testing purposes
TestAccAddress = icatypes.GenerateAddress(sdk.AccAddress(crypto.AddressHash([]byte(icatypes.ModuleName))), ibctesting.FirstConnectionID, TestPortID)

// TestOwnerAddress defines a reusable bech32 address for testing purposes
TestOwnerAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs"

// TestPortID defines a resuable port identifier for testing purposes
// TestPortID defines a reusable port identifier for testing purposes
TestPortID, _ = icatypes.NewControllerPortID(TestOwnerAddress)

// TestVersion defines a resuable interchainaccounts version string for testing purposes
// TestVersion defines a reusable interchainaccounts version string for testing purposes
TestVersion = string(icatypes.ModuleCdc.MustMarshalJSON(&icatypes.Metadata{
Version: icatypes.Version,
ControllerConnectionId: ibctesting.FirstConnectionID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ var (
// TODO: Cosmos-SDK ADR-28: Update crypto.AddressHash() when sdk uses address.Module()
// https://github.com/cosmos/cosmos-sdk/issues/10225
//
// TestAccAddress defines a resuable bech32 address for testing purposes
// TestAccAddress defines a reusable bech32 address for testing purposes
TestAccAddress = icatypes.GenerateAddress(sdk.AccAddress(crypto.AddressHash([]byte(icatypes.ModuleName))), ibctesting.FirstConnectionID, TestPortID)

// TestOwnerAddress defines a reusable bech32 address for testing purposes
TestOwnerAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs"

// TestPortID defines a resuable port identifier for testing purposes
// TestPortID defines a reusable port identifier for testing purposes
TestPortID, _ = icatypes.NewControllerPortID(TestOwnerAddress)

// TestVersion defines a resuable interchainaccounts version string for testing purposes
// TestVersion defines a reusable interchainaccounts version string for testing purposes
TestVersion = string(icatypes.ModuleCdc.MustMarshalJSON(&icatypes.Metadata{
Version: icatypes.Version,
ControllerConnectionId: ibctesting.FirstConnectionID,
Expand Down
6 changes: 3 additions & 3 deletions modules/apps/27-interchain-accounts/host/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ var (
// TODO: Cosmos-SDK ADR-28: Update crypto.AddressHash() when sdk uses address.Module()
// https://github.com/cosmos/cosmos-sdk/issues/10225
//
// TestAccAddress defines a resuable bech32 address for testing purposes
// TestAccAddress defines a reusable bech32 address for testing purposes
TestAccAddress = icatypes.GenerateAddress(sdk.AccAddress(crypto.AddressHash([]byte(icatypes.ModuleName))), ibctesting.FirstConnectionID, TestPortID)

// TestOwnerAddress defines a reusable bech32 address for testing purposes
TestOwnerAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs"

// TestPortID defines a resuable port identifier for testing purposes
// TestPortID defines a reusable port identifier for testing purposes
TestPortID, _ = icatypes.NewControllerPortID(TestOwnerAddress)

// TestVersion defines a resuable interchainaccounts version string for testing purposes
// TestVersion defines a reusable interchainaccounts version string for testing purposes
TestVersion = string(icatypes.ModuleCdc.MustMarshalJSON(&icatypes.Metadata{
Version: icatypes.Version,
ControllerConnectionId: ibctesting.FirstConnectionID,
Expand Down
Loading