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

feat!: Introduce Partial Set Security #1809

Merged
merged 116 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from 114 commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
2b5ff82
cleanup ./changelog entries
mpoke Jan 11, 2024
9991d43
docs: changelog and release notes for v4.0.0 (#1564)
mpoke Jan 11, 2024
04a669c
fix!: Validation of SlashAcks fails due to marshaling to Bech32 (bac…
mergify[bot] Jan 19, 2024
e7e586e
docs: update changelog for v4.0.0 (#1578)
mpoke Jan 22, 2024
5aa1c50
docs: prepare for v4.0.0 (#1581)
mpoke Jan 22, 2024
1f1d3bd
feat!: enable Opt In and Top N chains through gov proposals (#1615)
insumity Feb 5, 2024
6693dd3
feat!: introduce MsgOptIn and MsgOptOut (#1620)
insumity Feb 7, 2024
7ab3557
test: MBT: Add partial set security to model (feature branch version)…
p-offtermatt Feb 8, 2024
4bf5917
test: Ports key assignment to the driver on the PSS feature branch (#…
p-offtermatt Feb 8, 2024
7b0afcd
feat!: automatically opt in validators that vote Yes on consumer addi…
insumity Feb 8, 2024
64f5651
test: Add driver for PSS (#1636)
p-offtermatt Feb 14, 2024
ab7236d
feat!: add PSS reward distribution spike (#1632)
sainoe Feb 21, 2024
71315ef
feat! use protos to serialize opted-in validators (#1659)
sainoe Feb 23, 2024
e8cd100
feat!: PSS enable per-consumer chain commission (#1657)
sainoe Mar 8, 2024
93647fe
test: update integration test suite for PSS (#1687)
sainoe Mar 8, 2024
d14cbac
docs: changelog and release notes for v4.0.0 (#1564)
mpoke Jan 11, 2024
5ccd900
fix!: Validation of SlashAcks fails due to marshaling to Bech32 (bac…
mergify[bot] Jan 19, 2024
f62d17c
docs: update changelog for v4.0.0 (#1578)
mpoke Jan 22, 2024
a7b93a7
feat!: enable Opt In and Top N chains through gov proposals (#1615)
insumity Feb 5, 2024
6e2618b
feat!: introduce MsgOptIn and MsgOptOut (#1620)
insumity Feb 7, 2024
ee65399
test: MBT: Add partial set security to model (feature branch version)…
p-offtermatt Feb 8, 2024
7497fc0
feat!: add PSS reward distribution spike (#1632)
sainoe Feb 21, 2024
c689111
feat!: PSS enable per-consumer chain commission (#1657)
sainoe Mar 8, 2024
5d54702
fix nits in MBT model after merging #1676 from main
sainoe Mar 13, 2024
24942e2
Fix merging ccv model
p-offtermatt Mar 13, 2024
b30b6be
Remove conflict markers
p-offtermatt Mar 13, 2024
18e7f25
Remove more conflict markers
p-offtermatt Mar 13, 2024
581a983
EndProviderEpoch takes ConsumerAdditionMsg
p-offtermatt Mar 13, 2024
955528c
Fix using consumer addition msgs instead of chain names in boundeddri…
p-offtermatt Mar 13, 2024
ef56ccf
lint
sainoe Mar 18, 2024
a4ecead
Merge branch 'main' into sainoe/pss-merge
sainoe Mar 18, 2024
3947a69
chore: rebase PSS branch with main (#1689)
sainoe Mar 18, 2024
31a9ee3
feat!: complete the PSS reward distribution (#1709)
sainoe Mar 19, 2024
3ca33ec
feat!: Add slashing logic for PSS (#1710)
sainoe Mar 20, 2024
79abc14
ci: do not scan the tests for security issues (#1717)
insumity Mar 21, 2024
b251141
feat!: compute partial sets (#1702)
insumity Mar 25, 2024
72f5f66
feat!: update PSS cli (#1708)
sainoe Mar 26, 2024
8ed60ee
Rename and add comission rate command to commands
p-offtermatt Mar 26, 2024
a6989bf
feat!: only perform consumer additions for non-empty chains (#1730)
insumity Mar 27, 2024
bfe10df
feat: Add queries for PSS and consumer commission rate (#1733)
sainoe Mar 28, 2024
26f3c82
fix!: Fix opt-in assignment (#1732)
p-offtermatt Apr 2, 2024
67ca8e8
fix silly bug in PSS opted-in val query
sainoe Apr 2, 2024
e4690f2
fix logging in ibc_module.go
mpoke Mar 28, 2024
bff07fe
test: add partial-set-security E2E tests (#1737)
insumity Apr 3, 2024
d0f7a42
Nit changes based on Simons comments. To be pushed directly because E…
insumity Apr 3, 2024
67091f8
fix!: return a SlashAck even if the validator is not a consumer valid…
insumity Apr 8, 2024
f9344e2
test: Expand PSS e2e test to include slashing (#1752)
p-offtermatt Apr 8, 2024
795c9fd
fix!: update unbonding pausing for PSS (#1728)
sainoe Apr 11, 2024
237dbb8
Merge branch 'main' into feat/partial-set-security
p-offtermatt Apr 23, 2024
d4419ca
Get back 3.2.0 and 3.3.0 changelog from main
p-offtermatt Apr 23, 2024
45b77bc
Port epilogue from main
p-offtermatt Apr 23, 2024
6b86836
Fix proto conflict
p-offtermatt Apr 23, 2024
6ccb8ed
generate proto files
sainoe Apr 23, 2024
4278780
Port RELEASE_NOTES
p-offtermatt Apr 23, 2024
05148d7
Merge branch 'feat/partial-set-security' of https://github.com/cosmos…
p-offtermatt Apr 23, 2024
7c35183
Fix merge for tests
p-offtermatt Apr 23, 2024
411ca4d
Merge declaration and assignment
p-offtermatt Apr 23, 2024
62edffe
Clean up model files
p-offtermatt Apr 23, 2024
4e51c65
Add pss tests to MBT readme
p-offtermatt Apr 23, 2024
f212598
Restore MsgSubmitConsumerDoubleVoting handler
p-offtermatt Apr 23, 2024
49d7e84
Remove local driver files
p-offtermatt Apr 23, 2024
7f0891a
Remove Quint guidelines
p-offtermatt Apr 23, 2024
2262a8b
Add optin/optout to MBT readme
p-offtermatt Apr 23, 2024
d53637d
Fix types in model
p-offtermatt Apr 23, 2024
545c8d9
Fix model
p-offtermatt Apr 23, 2024
c960ed2
Add migration
p-offtermatt Apr 23, 2024
769d52f
Ensure SlashAcks are sent even when the valset does not change
p-offtermatt Apr 24, 2024
e0e6524
adding changelog entry
mpoke Apr 24, 2024
0963f41
Empty DowntimeSlachAcks on EndBlock
p-offtermatt Apr 24, 2024
a143044
Merge branch 'feat/partial-set-security' of https://github.com/cosmos…
p-offtermatt Apr 24, 2024
cdf7790
Remove logs
p-offtermatt Apr 25, 2024
3571b76
Change condition for sending slash acks
p-offtermatt Apr 25, 2024
19b7672
Revert model changes
p-offtermatt Apr 25, 2024
9270767
Start fixing PSS issues in model
p-offtermatt Apr 26, 2024
925ae40
Add expected errors to opt out action
p-offtermatt Apr 26, 2024
df51697
Revert PSS quint model changes
p-offtermatt Apr 29, 2024
0a7a85b
Add parameter to ComputeNextEpochConsumerValSet
p-offtermatt Apr 29, 2024
35a3414
Set top N param in setup
p-offtermatt Apr 29, 2024
1f382c7
Fix: do not try key assignment if there is no nonjailed validator
p-offtermatt Apr 29, 2024
c0eafd0
Do not assign keys for jailed validators
p-offtermatt Apr 29, 2024
e34f5bb
Only jail validators with non-zero-power
p-offtermatt Apr 29, 2024
fc09cf3
Add unit test
p-offtermatt Apr 29, 2024
efcc909
Add unit test for unset case
p-offtermatt Apr 29, 2024
e3d676d
Panic on not being able to unmarshal
p-offtermatt Apr 29, 2024
6971ed3
Move packet handling into ack.Success block
p-offtermatt Apr 29, 2024
e5072b5
Format
p-offtermatt Apr 29, 2024
b133220
Remove unnecessary comment
p-offtermatt Apr 29, 2024
c075ffa
Add parens for clarity
p-offtermatt Apr 29, 2024
e92a58f
Format and fix typo
p-offtermatt Apr 30, 2024
1105c4b
Move OptIn/OptOut events to provider events
p-offtermatt Apr 30, 2024
9e91c2a
Remove unused function
p-offtermatt Apr 30, 2024
90c54c6
Improve comments for keys
p-offtermatt Apr 30, 2024
0d4e7f3
Improve comments for key getter functions
p-offtermatt Apr 30, 2024
7b9842f
Remove order change for existing keys
p-offtermatt Apr 30, 2024
d7ac7e7
Re-add nolint instruction
p-offtermatt Apr 30, 2024
1e1e285
nit comment fix
insumity Apr 30, 2024
fb4fc55
Move ConsumerAllocationTests to correct folder
p-offtermatt Apr 30, 2024
92fc432
nit comment fix
insumity Apr 30, 2024
d2a904d
fix!: handle consumer commission marshalling errors gracefully (#1836)
sainoe Apr 30, 2024
d2cedd0
fix: update queries REST path for PSS (#1839)
sainoe Apr 30, 2024
eab6b8b
Clarify that GetProposedConsumerChain is test-only
p-offtermatt Apr 30, 2024
8b7b938
fix: Fix has-to-validate query (#1823)
p-offtermatt Apr 30, 2024
aef34a1
Merge branch 'feat/partial-set-security' of https://github.com/cosmos…
p-offtermatt May 1, 2024
31a7aa3
fix!: fix slashing in PSS (#1838)
sainoe May 1, 2024
922faa8
Update x/ccv/provider/types/msg.go
p-offtermatt May 1, 2024
daedac9
Remove BlockValidatorUpdate from expected staking keeper
p-offtermatt May 1, 2024
97d62bc
added an error response value to ComputeMinPowerToOptIn
insumity May 1, 2024
cac367e
delete additional state when we stop a chain
insumity May 1, 2024
e8eaa4f
Assign keys and change voting power only for unjailed nodes with >0 p…
p-offtermatt May 1, 2024
c106389
Merge branch 'feat/partial-set-security' of https://github.com/cosmos…
p-offtermatt May 1, 2024
b3d47ed
fix: Validate consumer commission rate against minimal rate (#1834)
p-offtermatt May 1, 2024
b131852
feat!: introduce power shaping (#1830)
insumity May 1, 2024
74479ea
Update v4 to v5 in package version
p-offtermatt May 1, 2024
967737b
Bump consensus version
p-offtermatt May 1, 2024
8a14a78
Add migration in correct folder
p-offtermatt May 1, 2024
940d60a
Update version from v4 to v5 in migration
p-offtermatt May 1, 2024
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
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Assigning a key that is already assigned by the same validator will now be a no-op instead of throwing an error.
([\#1732](https://github.com/cosmos/interchain-security/pull/1732))
3 changes: 3 additions & 0 deletions .changelog/unreleased/features/1809-pss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Adding the Partial Set Security (PSS) feature cf. [ADR 015](https://cosmos.github.io/interchain-security/adrs/adr-015-partial-set-security).
PSS enables consumer chains to join ICS as _Top N_ or _Opt In_ chains and enables validators to opt to validate the consumer chains they want.
([\#1809](https://github.com/cosmos/interchain-security/pull/1809))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Enable Opt In and Top N chains through gov proposals.
([\#1587](https://github.com/cosmos/interchain-security/pull/1587))
2 changes: 2 additions & 0 deletions .changelog/unreleased/state-breaking/1809-pss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Adding the Partial Set Security feature cf. [ADR 015](https://cosmos.github.io/interchain-security/adrs/adr-015-partial-set-security).
([\#1809](https://github.com/cosmos/interchain-security/pull/1809))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Enable Opt In and Top N chains through gov proposals.
([\#1587](https://github.com/cosmos/interchain-security/pull/1587))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Assigning a key that is already assigned by the same validator will now be a no-op instead of throwing an error.
([\#1732](https://github.com/cosmos/interchain-security/pull/1732))
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
"github.com/cosmos/cosmos-sdk/x/params/types/proposal"

app "github.com/cosmos/interchain-security/v4/app/consumer-democracy"
"github.com/cosmos/interchain-security/v4/app/consumer-democracy/ante"
app "github.com/cosmos/interchain-security/v5/app/consumer-democracy"
"github.com/cosmos/interchain-security/v5/app/consumer-democracy/ante"
)

// in SDKv47 parameter updates full params object is required
Expand Down
6 changes: 3 additions & 3 deletions app/consumer-democracy/ante_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"

democracyante "github.com/cosmos/interchain-security/v4/app/consumer-democracy/ante"
consumerante "github.com/cosmos/interchain-security/v4/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v4/x/ccv/consumer/keeper"
democracyante "github.com/cosmos/interchain-security/v5/app/consumer-democracy/ante"
consumerante "github.com/cosmos/interchain-security/v5/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
)

// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
Expand Down
16 changes: 8 additions & 8 deletions app/consumer-democracy/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ import (
"github.com/cometbft/cometbft/libs/log"
tmos "github.com/cometbft/cometbft/libs/os"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
testutil "github.com/cosmos/interchain-security/v4/testutil/integration"
consumer "github.com/cosmos/interchain-security/v4/x/ccv/consumer"
consumerkeeper "github.com/cosmos/interchain-security/v4/x/ccv/consumer/keeper"
consumertypes "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types"
ccvdistr "github.com/cosmos/interchain-security/v4/x/ccv/democracy/distribution"
ccvgov "github.com/cosmos/interchain-security/v4/x/ccv/democracy/governance"
ccvstaking "github.com/cosmos/interchain-security/v4/x/ccv/democracy/staking"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
testutil "github.com/cosmos/interchain-security/v5/testutil/integration"
consumer "github.com/cosmos/interchain-security/v5/x/ccv/consumer"
consumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
consumertypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
ccvdistr "github.com/cosmos/interchain-security/v5/x/ccv/democracy/distribution"
ccvgov "github.com/cosmos/interchain-security/v5/x/ccv/democracy/governance"
ccvstaking "github.com/cosmos/interchain-security/v5/x/ccv/democracy/staking"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions app/consumer-democracy/proposals_whitelisting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
ibctesting "github.com/cosmos/ibc-go/v7/testing"
"github.com/stretchr/testify/require"

appConsumer "github.com/cosmos/interchain-security/v4/app/consumer-democracy"
icstestingutils "github.com/cosmos/interchain-security/v4/testutil/ibc_testing"
testutil "github.com/cosmos/interchain-security/v4/testutil/integration"
appConsumer "github.com/cosmos/interchain-security/v5/app/consumer-democracy"
icstestingutils "github.com/cosmos/interchain-security/v5/testutil/ibc_testing"
testutil "github.com/cosmos/interchain-security/v5/testutil/integration"
)

func TestDemocracyGovernanceWhitelistingKeys(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions app/consumer/ante/disabled_modules_ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"

"github.com/cosmos/interchain-security/v4/app/consumer/ante"
appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
"github.com/cosmos/interchain-security/v5/app/consumer/ante"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
)

func TestDisabledModulesDecorator(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions app/consumer/ante/msg_filter_ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"

"github.com/cosmos/interchain-security/v4/app/consumer/ante"
appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
"github.com/cosmos/interchain-security/v5/app/consumer/ante"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
)

type consumerKeeper struct {
Expand Down
4 changes: 2 additions & 2 deletions app/consumer/ante_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"

consumerante "github.com/cosmos/interchain-security/v4/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v4/x/ccv/consumer/keeper"
consumerante "github.com/cosmos/interchain-security/v5/app/consumer/ante"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
)

// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
Expand Down
10 changes: 5 additions & 5 deletions app/consumer/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ import (
"github.com/cometbft/cometbft/libs/log"
tmos "github.com/cometbft/cometbft/libs/os"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
testutil "github.com/cosmos/interchain-security/v4/testutil/integration"
ibcconsumer "github.com/cosmos/interchain-security/v4/x/ccv/consumer"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v4/x/ccv/consumer/keeper"
ibcconsumertypes "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
testutil "github.com/cosmos/interchain-security/v5/testutil/integration"
ibcconsumer "github.com/cosmos/interchain-security/v5/x/ccv/consumer"
ibcconsumerkeeper "github.com/cosmos/interchain-security/v5/x/ccv/consumer/keeper"
ibcconsumertypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions app/consumer/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"

consumerTypes "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types"
"github.com/cosmos/interchain-security/v4/x/ccv/types"
consumerTypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
"github.com/cosmos/interchain-security/v5/x/ccv/types"
)

// The genesis state of the blockchain is represented here as a map of raw json
Expand Down
6 changes: 3 additions & 3 deletions app/consumer/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/x/auth/types"

app "github.com/cosmos/interchain-security/v4/app/consumer"
consumerTypes "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types"
ccvtypes "github.com/cosmos/interchain-security/v4/x/ccv/types"
app "github.com/cosmos/interchain-security/v5/app/consumer"
consumerTypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types"
ccvtypes "github.com/cosmos/interchain-security/v5/x/ccv/types"
)

const (
Expand Down
26 changes: 15 additions & 11 deletions app/provider/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ import (
"github.com/cometbft/cometbft/libs/log"
tmos "github.com/cometbft/cometbft/libs/os"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
testutil "github.com/cosmos/interchain-security/v4/testutil/integration"
ibcprovider "github.com/cosmos/interchain-security/v4/x/ccv/provider"
ibcproviderclient "github.com/cosmos/interchain-security/v4/x/ccv/provider/client"
ibcproviderkeeper "github.com/cosmos/interchain-security/v4/x/ccv/provider/keeper"
providertypes "github.com/cosmos/interchain-security/v4/x/ccv/provider/types"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
testutil "github.com/cosmos/interchain-security/v5/testutil/integration"
"github.com/cosmos/interchain-security/v5/x/ccv/provider"
ibcprovider "github.com/cosmos/interchain-security/v5/x/ccv/provider"
ibcproviderclient "github.com/cosmos/interchain-security/v5/x/ccv/provider/client"
ibcproviderkeeper "github.com/cosmos/interchain-security/v5/x/ccv/provider/keeper"
providertypes "github.com/cosmos/interchain-security/v5/x/ccv/provider/types"
)

const (
Expand Down Expand Up @@ -470,12 +471,15 @@ func New(
app.BankKeeper,
scopedTransferKeeper,
)
transferModule := transfer.NewAppModule(app.TransferKeeper)
ibcmodule := transfer.NewIBCModule(app.TransferKeeper)

// Add an IBC middleware callback to track the consumer rewards
var transferStack porttypes.IBCModule
transferStack = transfer.NewIBCModule(app.TransferKeeper)
transferStack = provider.NewIBCMiddleware(transferStack, app.ProviderKeeper)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to be properly tested on Gaia as the transfer stack is much larger. @sainoe we should have upgrading instructions on how to integrate this and if there are any constraints on the order in the stack.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I will create an issue to make sure we test the transfer stack in Gaia.


// create static IBC router, add transfer route, then set and seal it
ibcRouter := porttypes.NewRouter()
ibcRouter.AddRoute(ibctransfertypes.ModuleName, ibcmodule)
ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferStack)
ibcRouter.AddRoute(providertypes.ModuleName, providerModule)
app.IBCKeeper.SetRouter(ibcRouter)

Expand Down Expand Up @@ -514,7 +518,7 @@ func New(
evidence.NewAppModule(app.EvidenceKeeper),
ibc.NewAppModule(app.IBCKeeper),
params.NewAppModule(app.ParamsKeeper),
transferModule,
transfer.NewAppModule(app.TransferKeeper),
providerModule,
)

Expand Down Expand Up @@ -610,7 +614,7 @@ func New(
params.NewAppModule(app.ParamsKeeper),
evidence.NewAppModule(app.EvidenceKeeper),
ibc.NewAppModule(app.IBCKeeper),
transferModule,
transfer.NewAppModule(app.TransferKeeper),
)

app.sm.RegisterStoreDecoders()
Expand Down
5 changes: 3 additions & 2 deletions app/sovereign/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import (
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"

// add mint
mint "github.com/cosmos/cosmos-sdk/x/mint"
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
Expand All @@ -105,8 +106,8 @@ import (
"github.com/cometbft/cometbft/libs/log"
tmos "github.com/cometbft/cometbft/libs/os"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
testutil "github.com/cosmos/interchain-security/v4/testutil/integration"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
testutil "github.com/cosmos/interchain-security/v5/testutil/integration"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/interchain-security-cd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
tmcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/log"

consumer "github.com/cosmos/interchain-security/v4/app/consumer"
appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
consumer "github.com/cosmos/interchain-security/v5/app/consumer"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand Down
6 changes: 3 additions & 3 deletions cmd/interchain-security-cd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

app "github.com/cosmos/interchain-security/v4/app/consumer"
appparams "github.com/cosmos/interchain-security/v4/app/params"
"github.com/cosmos/interchain-security/v4/cmd/interchain-security-cd/cmd"
app "github.com/cosmos/interchain-security/v5/app/consumer"
appparams "github.com/cosmos/interchain-security/v5/app/params"
"github.com/cosmos/interchain-security/v5/cmd/interchain-security-cd/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/interchain-security-cdd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
tmcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/log"

cdd "github.com/cosmos/interchain-security/v4/app/consumer-democracy"
appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
cdd "github.com/cosmos/interchain-security/v5/app/consumer-democracy"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand Down
6 changes: 3 additions & 3 deletions cmd/interchain-security-cdd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

app "github.com/cosmos/interchain-security/v4/app/consumer-democracy"
appparams "github.com/cosmos/interchain-security/v4/app/params"
"github.com/cosmos/interchain-security/v4/cmd/interchain-security-cdd/cmd"
app "github.com/cosmos/interchain-security/v5/app/consumer-democracy"
appparams "github.com/cosmos/interchain-security/v5/app/params"
"github.com/cosmos/interchain-security/v5/cmd/interchain-security-cdd/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/interchain-security-pd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
tmcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/log"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
providerApp "github.com/cosmos/interchain-security/v4/app/provider"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
providerApp "github.com/cosmos/interchain-security/v5/app/provider"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand Down
6 changes: 3 additions & 3 deletions cmd/interchain-security-pd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

appparams "github.com/cosmos/interchain-security/v4/app/params"
app "github.com/cosmos/interchain-security/v4/app/provider"
"github.com/cosmos/interchain-security/v4/cmd/interchain-security-pd/cmd"
appparams "github.com/cosmos/interchain-security/v5/app/params"
app "github.com/cosmos/interchain-security/v5/app/provider"
"github.com/cosmos/interchain-security/v5/cmd/interchain-security-pd/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/interchain-security-sd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
tmcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/libs/log"

appencoding "github.com/cosmos/interchain-security/v4/app/encoding"
sovereignApp "github.com/cosmos/interchain-security/v4/app/sovereign"
appencoding "github.com/cosmos/interchain-security/v5/app/encoding"
sovereignApp "github.com/cosmos/interchain-security/v5/app/sovereign"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand Down
6 changes: 3 additions & 3 deletions cmd/interchain-security-sd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

appparams "github.com/cosmos/interchain-security/v4/app/params"
app "github.com/cosmos/interchain-security/v4/app/sovereign"
"github.com/cosmos/interchain-security/v4/cmd/interchain-security-sd/cmd"
appparams "github.com/cosmos/interchain-security/v5/app/params"
app "github.com/cosmos/interchain-security/v5/app/sovereign"
"github.com/cosmos/interchain-security/v5/cmd/interchain-security-sd/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cosmos/interchain-security/v4
module github.com/cosmos/interchain-security/v5

go 1.21.1

Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/consumer/v1/consumer.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package interchain_security.ccv.consumer.v1;

option go_package = "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types";
option go_package = "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types";

Check failure on line 4 in proto/interchain_security/ccv/consumer/v1/consumer.proto

View workflow job for this annotation

GitHub Actions / break-check

File option "go_package" changed from "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types" to "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types".

import "google/protobuf/any.proto";
import "gogoproto/gogo.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/consumer/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package interchain_security.ccv.consumer.v1;

option go_package = "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types";
option go_package = "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types";

Check failure on line 5 in proto/interchain_security/ccv/consumer/v1/genesis.proto

View workflow job for this annotation

GitHub Actions / break-check

File option "go_package" changed from "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types" to "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types".

import "interchain_security/ccv/v1/shared_consumer.proto";
import "ibc/lightclients/tendermint/v1/tendermint.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/consumer/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package interchain_security.ccv.consumer.v1;
import "interchain_security/ccv/v1/shared_consumer.proto";
option go_package = "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types";
option go_package = "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types";

Check failure on line 5 in proto/interchain_security/ccv/consumer/v1/query.proto

View workflow job for this annotation

GitHub Actions / break-check

File option "go_package" changed from "github.com/cosmos/interchain-security/v4/x/ccv/consumer/types" to "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types".

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
Expand Down
2 changes: 1 addition & 1 deletion proto/interchain_security/ccv/provider/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package interchain_security.ccv.provider.v1;

option go_package = "github.com/cosmos/interchain-security/v4/x/ccv/provider/types";
option go_package = "github.com/cosmos/interchain-security/v5/x/ccv/provider/types";

Check failure on line 5 in proto/interchain_security/ccv/provider/v1/genesis.proto

View workflow job for this annotation

GitHub Actions / break-check

File option "go_package" changed from "github.com/cosmos/interchain-security/v4/x/ccv/provider/types" to "github.com/cosmos/interchain-security/v5/x/ccv/provider/types".

import "gogoproto/gogo.proto";
import "interchain_security/ccv/v1/shared_consumer.proto";
Expand Down
Loading
Loading