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

refactor(x/staking): Migrate UnbondingDelegation to collections #17270

Merged
merged 51 commits into from
Aug 28, 2023
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
498e4d1
migrate DelegationKey to collections
likhita-809 Aug 3, 2023
4baf88e
remove GetUBDsKey
likhita-809 Aug 3, 2023
0cd5ee6
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 3, 2023
7b4a54f
add changelog
likhita-809 Aug 3, 2023
0781b59
iterator changes
likhita-809 Aug 3, 2023
6105704
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 3, 2023
426b532
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 4, 2023
a339485
fix all tests
likhita-809 Aug 4, 2023
a33bfa5
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 4, 2023
c5fd6e1
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 7, 2023
f59bc59
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 7, 2023
d8e1230
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 8, 2023
f2dc4f5
remove store usage from ubd set, get, remove funcs
likhita-809 Aug 8, 2023
d7358f6
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 8, 2023
852a59c
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 9, 2023
6fc003c
wip: try fixing keeper tests
likhita-809 Aug 9, 2023
9d7fce2
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 11, 2023
4bd48ca
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 16, 2023
b92f8a8
address review comments and fix tests
likhita-809 Aug 16, 2023
a2b3f59
fix tests
likhita-809 Aug 16, 2023
fd0a9f8
fix few tests
likhita-809 Aug 16, 2023
751dcaf
fix tests
likhita-809 Aug 18, 2023
4258997
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 18, 2023
d9b5cb5
fix usage of length prefixed addr key
likhita-809 Aug 18, 2023
d27e4da
fix integration tests
likhita-809 Aug 18, 2023
9205b1b
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 18, 2023
0e17234
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 18, 2023
5602c78
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 21, 2023
34b9aad
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 21, 2023
1726250
add diff test for unbonding delegation
likhita-809 Aug 21, 2023
b8b4f31
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 21, 2023
9854016
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 22, 2023
ad6b1d0
update changelog
likhita-809 Aug 22, 2023
ffd1912
address nits
likhita-809 Aug 22, 2023
762e742
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 22, 2023
8bd01ce
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 23, 2023
1f9a22f
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 23, 2023
2500c7c
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 23, 2023
ef9178e
wip: use UnbondingDelegations type instead of bytes
likhita-809 Aug 23, 2023
9e6414c
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 23, 2023
d3dbaba
fix keeper test
likhita-809 Aug 23, 2023
bedc479
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 24, 2023
68de5c5
address review comments
likhita-809 Aug 24, 2023
64a41da
fix simapp test
likhita-809 Aug 24, 2023
3b570f8
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 24, 2023
9b9cc74
remove unused error
likhita-809 Aug 25, 2023
9f6d759
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 25, 2023
98e063d
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 28, 2023
08ca907
nit: add godoc for key splits
likhita-809 Aug 28, 2023
ccc4a1b
spell correct
likhita-809 Aug 28, 2023
f9e0848
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into likh…
likhita-809 Aug 28, 2023
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
Prev Previous commit
Next Next commit
fix keeper test
  • Loading branch information
likhita-809 committed Aug 23, 2023
commit d3dbaba39010eb41c4a5fe79f6f4b7c254b3eb93
3 changes: 2 additions & 1 deletion x/staking/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ func (s *KeeperTestSuite) TestUnbondingDelegationsMigrationToColls() {
}
bz := stakingtypes.MustMarshalUBD(s.cdc, ubd)
s.ctx.KVStore(s.key).Set(getUBDKey(delAddrs[i], valAddrs[i]), bz)
s.ctx.KVStore(s.key).Set(stakingtypes.GetUBDByValIndexKey(delAddrs[i], valAddrs[i]), []byte{})
},
"a428c023032bfc71a954f8a696e33ecc0806ae77021bd17fc369ba203a96681f",
"d03ca412f3f6849b5148a2ca49ac2555f65f90b7fab6a289575ed337f15c0f4b",
)
s.Require().NoError(err)

Expand Down