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 RedelegationByValSrcIndexKey key to collections #17332

Merged
merged 37 commits into from
Aug 22, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b902f71
refactor(x/staking): migrate redelegation key to use collections
atheeshp Aug 8, 2023
19fa78e
tests
atheeshp Aug 8, 2023
1e6c102
all redelegations
atheeshp Aug 8, 2023
df4cd76
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/redelegat…
atheeshp Aug 9, 2023
ef48759
fix tests
atheeshp Aug 9, 2023
dcbba95
conflicts
atheeshp Aug 9, 2023
b85387a
redelegations by src validator
atheeshp Aug 9, 2023
948e9bd
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/redelegat…
atheeshp Aug 9, 2023
cd46d89
fix tests
atheeshp Aug 9, 2023
ab82536
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
54b97c3
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/redelegat…
atheeshp Aug 9, 2023
2f2d51f
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
eb0ac8d
handle errors
atheeshp Aug 9, 2023
147e19d
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
e64d602
src redelegations
atheeshp Aug 9, 2023
910493c
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/redelegat…
atheeshp Aug 9, 2023
74f28cf
Merge branch 'main' into ap/redelegation-key-to-collections
atheeshp Aug 9, 2023
5f2be7f
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
851c659
fix tests
atheeshp Aug 9, 2023
8e37291
fix tests
atheeshp Aug 9, 2023
dea9749
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
235427a
lint
atheeshp Aug 9, 2023
e1a206b
Merge branch 'ap/redelegation-key-to-collections' of github.com:cosmo…
atheeshp Aug 9, 2023
67188d4
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/red-from-…
atheeshp Aug 17, 2023
448dd8a
fix tests
atheeshp Aug 17, 2023
c46d247
review changes
atheeshp Aug 17, 2023
2a2c569
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/red-from-…
atheeshp Aug 17, 2023
377ec42
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/red-from-…
atheeshp Aug 18, 2023
cdcb4c8
add tests to test diffColls
atheeshp Aug 18, 2023
b28a739
fix tests
atheeshp Aug 19, 2023
2b2371f
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/red-from-…
atheeshp Aug 19, 2023
8262eb9
refactor
atheeshp Aug 19, 2023
4fb6793
inline docs
atheeshp Aug 19, 2023
9aa7041
fix lint
atheeshp Aug 19, 2023
869e1c5
Merge branch 'main' into ap/red-from-val-src-to-coll
atheeshp Aug 21, 2023
645eb89
Merge branch 'main' into ap/red-from-val-src-to-coll
atheeshp Aug 21, 2023
bfa4e6c
Merge branch 'main' into ap/red-from-val-src-to-coll
atheeshp Aug 22, 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
inline docs
  • Loading branch information
atheeshp committed Aug 19, 2023
commit 4fb67936dd273d1eeeafdf5ace8721375c9d33d1
1 change: 1 addition & 0 deletions x/staking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func NewKeeper(
codec.CollValue[types.Redelegation](cdc),
),
UnbondingIndex: collections.NewMap(sb, types.UnbondingIndexKey, "unbonding_index", collections.Uint64Key, collections.BytesValue),
// key format is: 53 | lengthPrefixedBytes(DstValAddr) | lengthPrefixedBytes(AccAddr) | lengthPrefixedBytes(SrcValAddr)
RedelegationsByValSrc: collections.NewMap(
sb, types.RedelegationByValSrcIndexKey,
"redelegations_by_val_src",
Expand Down