Skip to content

Commit 4832d6a

Browse files
authored
imp: refactor simapp to more closely resemble the style used in cosmos-sdk (#3874)
1 parent e5b057d commit 4832d6a

31 files changed

Lines changed: 566 additions & 799 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
6161

6262
* [\#3907](https://github.com/cosmos/ibc-go/pull/3907) Re-implemented missing functions of `LegacyMsg` interface to fix transaction signing with ledger.
6363

64-
## [v7.1.0](https://github.com/cosmos/ibc-go/releases/tag/v7.1.0) - 2023-06-09
64+
## [v7.1.0](https://github.com/cosmos/ibc-go/releases/tag/v7.1.0) - 2023-06-09
6565

6666
### Dependencies
6767

@@ -82,10 +82,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
8282
* (core/04-channel) [\#3346](https://github.com/cosmos/ibc-go/pull/3346) Properly handle ordered channels in `UnreceivedPackets` query.
8383
* (core/04-channel) [\#3593](https://github.com/cosmos/ibc-go/pull/3593) `SendPacket` now correctly returns `ErrClientNotFound` in favour of `ErrConsensusStateNotFound`.
8484

85-
## [v7.0.1](https://github.com/cosmos/ibc-go/releases/tag/v7.0.1) - 2023-05-25
85+
## [v7.0.1](https://github.com/cosmos/ibc-go/releases/tag/v7.0.1) - 2023-05-25
8686

8787
### Bug Fixes
88-
88+
8989
* [\#3346](https://github.com/cosmos/ibc-go/pull/3346) Properly handle ordered channels in `UnreceivedPackets` query.
9090

9191
## [v7.0.0](https://github.com/cosmos/ibc-go/releases/tag/v7.0.0) - 2023-03-17
@@ -118,7 +118,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
118118
* (apps) [\#3149](https://github.com/cosmos/ibc-go/pull/3149) Remove legacy interface function `RandomizedParams`, which is no longer used.
119119
* (light-clients/06-solomachine) [\#2941](https://github.com/cosmos/ibc-go/pull/2941) Remove solomachine header sequence.
120120
* (core) [\#2982](https://github.com/cosmos/ibc-go/pull/2982) Moved the ibc module name into the exported package.
121-
121+
122122
### State Machine Breaking
123123

124124
* (06-solomachine) [\#2744](https://github.com/cosmos/ibc-go/pull/2744) `Misbehaviour.ValidateBasic()` now only enforces that signature data does not match when the signature paths are different.
@@ -148,27 +148,27 @@ Ref: https://keepachangelog.com/en/1.0.0/
148148
* (modules/core/02-client) [\#1741](https://github.com/cosmos/ibc-go/pull/1741) Emitting a new `upgrade_chain` event upon setting upgrade consensus state.
149149
* (client) [\#724](https://github.com/cosmos/ibc-go/pull/724) `IsRevisionFormat` and `IsClientIDFormat` have been updated to disallow newlines before the dash used to separate the chainID and revision number, and the client type and client sequence.
150150
* (02-client/cli) [\#897](https://github.com/cosmos/ibc-go/pull/897) Remove `GetClientID()` from `Misbehaviour` interface. Submit client misbehaviour cli command requires an explicit client id now.
151-
* (06-solomachine) [\#1972](https://github.com/cosmos/ibc-go/pull/1972) Solo machine implementation of `ZeroCustomFields` fn now panics as the fn is only used for upgrades which solo machine does not support.
151+
* (06-solomachine) [\#1972](https://github.com/cosmos/ibc-go/pull/1972) Solo machine implementation of `ZeroCustomFields` fn now panics as the fn is only used for upgrades which solo machine does not support.
152152
* (light-clients/06-solomachine) Moving `verifyMisbehaviour` function from update.go to misbehaviour_handle.go.
153153
* [\#2434](https://github.com/cosmos/ibc-go/pull/2478) Removed all `TypeMsg` constants
154-
* (modules/core/exported) [\#2539] (https://github.com/cosmos/ibc-go/pull/2539) Removing `GetVersions` from `ConnectionI` interface.
154+
* (modules/core/exported) [\#2539](https://github.com/cosmos/ibc-go/pull/2539) Removing `GetVersions` from `ConnectionI` interface.
155155
* (core/02-connection) [\#2419](https://github.com/cosmos/ibc-go/pull/2419) Add optional proof data to proto definitions of `MsgConnectionOpenTry` and `MsgConnectionOpenAck` for host state machines that are unable to introspect their own consensus state.
156156
* (light-clients/07-tendermint) [\#3046](https://github.com/cosmos/ibc-go/pull/3046) Moved non-verification misbehaviour checks to `CheckForMisbehaviour`.
157157
* (apps/29-fee) [\#2975](https://github.com/cosmos/ibc-go/pull/2975) Adding distribute fee events to ics29.
158158
* (light-clients/07-tendermint) [\#2965](https://github.com/cosmos/ibc-go/pull/2965) Prune expired `07-tendermint` consensus states on duplicate header updates.
159159
* (light-clients) [\#2736](https://github.com/cosmos/ibc-go/pull/2736) Updating `VerifyMembership` and `VerifyNonMembership` methods to use `Path` interface.
160-
* (light-clients) [\#3113](https://github.com/cosmos/ibc-go/pull/3113) Align light client module names.
160+
* (light-clients) [\#3113](https://github.com/cosmos/ibc-go/pull/3113) Align light client module names.
161161

162162
### Features
163163

164164
* (apps/transfer) [\#3079](https://github.com/cosmos/ibc-go/pull/3079) Added authz support for ics20.
165165
* (core/02-client) [\#2824](https://github.com/cosmos/ibc-go/pull/2824) Add genesis migrations for v6 to v7. The migration migrates the solo machine client state definition, removes all solo machine consensus states and removes the localhost client.
166166
* (core/24-host) [\#2856](https://github.com/cosmos/ibc-go/pull/2856) Add `PrefixedClientStorePath` and `PrefixedClientStoreKey` functions to 24-host
167167
* (core/02-client) [\#2819](https://github.com/cosmos/ibc-go/pull/2819) Add automatic in-place store migrations to remove the localhost client and migrate existing solo machine definitions.
168-
* (light-clients/06-solomachine) [\#2826](https://github.com/cosmos/ibc-go/pull/2826) Add `AppModuleBasic` for the 06-solomachine client and remove solo machine type registration from core IBC. Chains must register the `AppModuleBasic` of light clients.
169-
* (light-clients/07-tendermint) [\#2825](https://github.com/cosmos/ibc-go/pull/2825) Add `AppModuleBasic` for the 07-tendermint client and remove tendermint type registration from core IBC. Chains must register the `AppModuleBasic` of light clients.
168+
* (light-clients/06-solomachine) [\#2826](https://github.com/cosmos/ibc-go/pull/2826) Add `AppModuleBasic` for the 06-solomachine client and remove solo machine type registration from core IBC. Chains must register the `AppModuleBasic` of light clients.
169+
* (light-clients/07-tendermint) [\#2825](https://github.com/cosmos/ibc-go/pull/2825) Add `AppModuleBasic` for the 07-tendermint client and remove tendermint type registration from core IBC. Chains must register the `AppModuleBasic` of light clients.
170170
* (light-clients/07-tendermint) [\#2800](https://github.com/cosmos/ibc-go/pull/2800) Add optional in-place store migration function to prune all expired tendermint consensus states.
171-
* (core/24-host) [\#2820](https://github.com/cosmos/ibc-go/pull/2820) Add `MustParseClientStatePath` which parses the clientID from a client state key path.
171+
* (core/24-host) [\#2820](https://github.com/cosmos/ibc-go/pull/2820) Add `MustParseClientStatePath` which parses the clientID from a client state key path.
172172
* (testing/simapp) [\#2842](https://github.com/cosmos/ibc-go/pull/2842) Adding the new upgrade handler for v6 -> v7 to simapp which prunes expired Tendermint consensus states.
173173
* (testing) [\#2829](https://github.com/cosmos/ibc-go/pull/2829) Add `AssertEvents` which asserts events against expected event map.
174174

@@ -304,7 +304,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
304304

305305
### Dependencies
306306

307-
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
307+
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
308308
* [\#2944](https://github.com/cosmos/ibc-go/pull/2944) Bump Cosmos SDK to v0.46.7 and Tendermint to v0.34.24.
309309

310310
### State Machine Breaking
@@ -381,7 +381,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
381381

382382
### Bug Fixes
383383

384-
* [\#3662](https://github.com/cosmos/ibc-go/pull/3662) Retract v4.1.2 and v4.2.1.
384+
* [\#3662](https://github.com/cosmos/ibc-go/pull/3662) Retract v4.1.2 and v4.2.1.
385385

386386
## [v4.4.1](https://github.com/cosmos/ibc-go/releases/tag/v4.4.1) - 2023-05-25
387387

@@ -438,7 +438,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
438438

439439
### Dependencies
440440

441-
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
441+
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
442442

443443
### Improvements
444444

@@ -478,7 +478,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
478478

479479
### Dependencies
480480

481-
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
481+
* [\#2868](https://github.com/cosmos/ibc-go/pull/2868) Bump ICS 23 to v0.9.0.
482482

483483
### Improvements
484484

e2e/go.mod

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ require (
1010
github.com/cosmos/gogoproto v1.4.10
1111
github.com/cosmos/ibc-go/v7 v7.2.0
1212
github.com/cosmos/interchain-accounts v0.5.1
13-
github.com/docker/docker v20.10.19+incompatible
14-
github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230503171723-5e55f37618b7
13+
github.com/docker/docker v24.0.1+incompatible
14+
github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230622193330-220ce33823c0
1515
github.com/stretchr/testify v1.8.4
1616
go.uber.org/zap v1.24.0
1717
golang.org/x/mod v0.11.0
@@ -33,7 +33,7 @@ require (
3333
filippo.io/edwards25519 v1.0.0 // indirect
3434
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
3535
github.com/99designs/keyring v1.2.2 // indirect
36-
github.com/BurntSushi/toml v1.2.1 // indirect
36+
github.com/BurntSushi/toml v1.3.2 // indirect
3737
github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect
3838
github.com/ChainSafe/go-schnorrkel/1 v0.0.0-00010101000000-000000000000 // indirect
3939
github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420 // indirect
@@ -72,13 +72,13 @@ require (
7272
github.com/deckarep/golang-set v1.8.0 // indirect
7373
github.com/decred/base58 v1.0.4 // indirect
7474
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
75-
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0 // indirect
75+
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.1 // indirect
7676
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
7777
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
7878
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
7979
github.com/dgraph-io/ristretto v0.1.1 // indirect
8080
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
81-
github.com/docker/distribution v2.8.1+incompatible // indirect
81+
github.com/docker/distribution v2.8.2+incompatible // indirect
8282
github.com/docker/go-connections v0.4.0 // indirect
8383
github.com/docker/go-units v0.5.0 // indirect
8484
github.com/dustin/go-humanize v1.0.1 // indirect
@@ -165,7 +165,7 @@ require (
165165
github.com/pierrec/xxHash v0.1.5 // indirect
166166
github.com/pkg/errors v0.9.1 // indirect
167167
github.com/pmezard/go-difflib v1.0.0 // indirect
168-
github.com/prometheus/client_golang v1.14.0 // indirect
168+
github.com/prometheus/client_golang v1.15.0 // indirect
169169
github.com/prometheus/client_model v0.3.0 // indirect
170170
github.com/prometheus/common v0.42.0 // indirect
171171
github.com/prometheus/procfs v0.9.0 // indirect
@@ -175,7 +175,6 @@ require (
175175
github.com/rs/cors v1.8.3 // indirect
176176
github.com/rs/zerolog v1.29.1 // indirect
177177
github.com/sasha-s/go-deadlock v0.3.1 // indirect
178-
github.com/sirupsen/logrus v1.9.0 // indirect
179178
github.com/spaolacci/murmur3 v1.1.0 // indirect
180179
github.com/spf13/afero v1.9.5 // indirect
181180
github.com/spf13/cast v1.5.1 // indirect
@@ -195,16 +194,16 @@ require (
195194
go.etcd.io/bbolt v1.3.7 // indirect
196195
go.opencensus.io v0.24.0 // indirect
197196
go.uber.org/atomic v1.10.0 // indirect
198-
go.uber.org/multierr v1.9.0 // indirect
199-
golang.org/x/crypto v0.9.0 // indirect
197+
go.uber.org/multierr v1.11.0 // indirect
198+
golang.org/x/crypto v0.10.0 // indirect
200199
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
201-
golang.org/x/net v0.10.0 // indirect
200+
golang.org/x/net v0.11.0 // indirect
202201
golang.org/x/oauth2 v0.7.0 // indirect
203-
golang.org/x/sync v0.1.0 // indirect
204-
golang.org/x/sys v0.8.0 // indirect
205-
golang.org/x/term v0.8.0 // indirect
206-
golang.org/x/text v0.9.0 // indirect
207-
golang.org/x/tools v0.8.0 // indirect
202+
golang.org/x/sync v0.3.0 // indirect
203+
golang.org/x/sys v0.9.0 // indirect
204+
golang.org/x/term v0.9.0 // indirect
205+
golang.org/x/text v0.10.0 // indirect
206+
golang.org/x/tools v0.10.0 // indirect
208207
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
209208
google.golang.org/api v0.122.0 // indirect
210209
google.golang.org/appengine v1.6.7 // indirect
@@ -221,7 +220,7 @@ require (
221220
modernc.org/mathutil v1.5.0 // indirect
222221
modernc.org/memory v1.5.0 // indirect
223222
modernc.org/opt v0.1.3 // indirect
224-
modernc.org/sqlite v1.22.1 // indirect
223+
modernc.org/sqlite v1.23.1 // indirect
225224
modernc.org/strutil v1.1.3 // indirect
226225
modernc.org/token v1.1.0 // indirect
227226
nhooyr.io/websocket v1.8.7 // indirect

0 commit comments

Comments
 (0)