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!: Staking module validator set epoching #9043

Closed
wants to merge 126 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
85e9f22
validator set epoching
antstalepresh Nov 11, 2020
d47aafe
add some thoughts on epoching related modules
antstalepresh Nov 16, 2020
c80f002
add required changes for proto and logic flow thoughts
antstalepresh Nov 18, 2020
0231006
add more content based on comments
antstalepresh Nov 23, 2020
6529946
modify redelegate/undelegate comments
antstalepresh Nov 23, 2020
8b59edf
remove intermediary comments
antstalepresh Nov 23, 2020
f5cefa0
modifications on thoughts
antstalepresh Nov 23, 2020
5a9c806
add Development plan thoughts
antstalepresh Nov 23, 2020
2220d5c
modify spec based on discussion
antstalepresh Nov 24, 2020
f06d8ba
add epoch queue functions
antstalepresh Nov 24, 2020
2a38ba9
fix comments for key constants
antstalepresh Nov 25, 2020
1564981
add prototype code for queue action and execute / dequeue actions
antstalepresh Nov 25, 2020
162f17e
implement prototype codebase for types.Any serialization
antstalepresh Nov 26, 2020
9289ed3
fix comment for twice iteration and epoch function return value
antstalepresh Nov 26, 2020
fcb000d
add epoch index for queue saving/iteration
antstalepresh Nov 26, 2020
f428afc
implement epoch action for BeginRedelegate and Undelegate
antstalepresh Nov 26, 2020
a95eaaa
update development plan based on implementation so far
antstalepresh Nov 26, 2020
ae3ffe9
modify dev plan
antstalepresh Nov 26, 2020
df6fc45
fix comments on the PR - proto update, epochIndex => epochNumber, add…
antstalepresh Nov 27, 2020
614556f
fix proto-gen issues and generate pb.go from modified proto
antstalepresh Nov 27, 2020
e5fb1a5
Add genesis initialization for buffered actions && Fix build error fo…
antstalepresh Nov 27, 2020
0adeab7
add todo actions
antstalepresh Nov 27, 2020
a2f6ef4
Add test for EpochSaveLoad which uses MarshalAny and UnmarshalAny for…
antstalepresh Nov 30, 2020
e01d999
Use EpochInterval from params store for staking/slashing module
antstalepresh Nov 30, 2020
0440530
add development plan - Slashing/Jail should only update specific vali…
antstalepresh Nov 30, 2020
b9ddbd1
Add epoch_number into genesis & Update Set/Get epoch action to use co…
antstalepresh Dec 1, 2020
a11c1c1
add thoughts for instant slash validator set update
antstalepresh Dec 1, 2020
b991527
Split self delegation from create validator into epoch && Remove Epoc…
antstalepresh Dec 2, 2020
9e260d2
add todo comments for moving to BondedPool
antstalepresh Dec 2, 2020
1196502
add modification for todo
antstalepresh Dec 2, 2020
810acad
Modify subtract account logic from Delegate to subtract epoch pool
antstalepresh Dec 3, 2020
cc65359
use any type for all buffered messages and use one for all types
antstalepresh Dec 4, 2020
2411d8a
modify todo
antstalepresh Dec 4, 2020
f30ed30
remove unrequired TODOs and add development plan
antstalepresh Dec 4, 2020
82e45e8
Write code for BufferedValidators query
antstalepresh Dec 4, 2020
9151dc1
remove todo
antstalepresh Dec 4, 2020
abf36e9
handler validation using cachedCtx, add next epoch height/time getter
antstalepresh Dec 7, 2020
0c91638
fix staking keeper existing tesets
antstalepresh Dec 8, 2020
d0435e7
Fix epoch execution by modifying GetEpochActionsIterator, slashing ke…
antstalepresh Dec 8, 2020
5da0249
fix distribution keeper existing tests
antstalepresh Dec 8, 2020
df2ffce
do not use substractAccount flag only for testing
antstalepresh Dec 9, 2020
7f413ff
fix basic handler/migrate/genesis tests for staking module
antstalepresh Dec 9, 2020
8350cbb
fix basic slashing tests - and stakingKeeper initialization
antstalepresh Dec 10, 2020
cfbc27f
fix handshake error on integration test
antstalepresh Dec 11, 2020
0ce45c3
add ExecuteNextEpoch and fix TestStakingMsgs without ctx mode
antstalepresh Dec 14, 2020
4bfbcc6
fix unbonding time handler test issue
antstalepresh Dec 14, 2020
6a117da
cacheCtx based unjail handler check, epoch execution without ctx for …
antstalepresh Dec 15, 2020
fc1f132
fix slashing handler tests
antstalepresh Dec 15, 2020
48bf9cc
fix staking cli test TestGetCmdQueryParams
antstalepresh Dec 15, 2020
6817c52
Update proto/cosmos/slashing/v1beta1/genesis.proto
antstalepresh Dec 17, 2020
4c95e36
add comments based on suggestion
antstalepresh Dec 17, 2020
ff28c72
Update x/slashing/keeper/epoch.go
antstalepresh Dec 17, 2020
96f4cb0
modify SaveEpochAction to QueueMsgForEpoch
antstalepresh Dec 17, 2020
1b2c796
Update x/slashing/keeper/epoch.go
antstalepresh Dec 17, 2020
e83d38e
modify term GetNextEpochActionID to GetNewActionID
antstalepresh Dec 17, 2020
5f30044
modify term SetNextEpochActionID to SetNewActionID
antstalepresh Dec 17, 2020
6fc33d4
implement return back from EpochTempPool for delegation failure and h…
antstalepresh Dec 17, 2020
7a34e8e
modify term EpochXXX to ExecuteQueuedXXX
antstalepresh Dec 17, 2020
8b32d7c
create prototype document for spec and adr type
antstalepresh Dec 18, 2020
b5f4ebf
move dev plans/research on proto to spec, remove unnecessary changes …
antstalepresh Dec 18, 2020
ae0a3c3
modify to_improve spec
antstalepresh Dec 18, 2020
5fa9a55
add more details for Msgs implementation
antstalepresh Dec 18, 2020
d009cc9
Modify EpochTempPool => EpochDelegationPool
antstalepresh Dec 21, 2020
bd91576
Move cacheCtx definition to outside on EpochExec
antstalepresh Dec 21, 2020
94e6f55
Fix github feedbacks, Make Epoch functions to private, Consistent nam…
antstalepresh Dec 21, 2020
7793363
CancelQueuedDelegation to revertDelegationMsg
antstalepresh Dec 21, 2020
f142b41
cleanup spec a little
antstalepresh Dec 21, 2020
460ff57
define SlashEvent proto as in adr-014
antstalepresh Dec 21, 2020
ee6d45a
add common utility for epoch queue and use it for staking/slashing, i…
antstalepresh Dec 22, 2020
0d87663
Modify term SlashedSoFar to SlashPercent
antstalepresh Dec 23, 2020
7d72101
implement slash epoching
antstalepresh Dec 28, 2020
2e5e144
fix evidence unit test
antstalepresh Dec 28, 2020
570ba9e
update notes based on implementation
antstalepresh Dec 28, 2020
0aa2058
Merge branch 'master' of github.com:sikkatech/cosmos-sdk into staking…
antstalepresh Dec 29, 2020
e743f69
modify epoching spec markdown doucment
antstalepresh Dec 29, 2020
1585f93
merged master
sunnya97 Mar 9, 2021
25c75e3
updated proto generated files
sunnya97 Mar 10, 2021
d2ab53f
fixed proto spacing
sunnya97 Mar 10, 2021
d560293
minor touch up
tac0turtle Apr 1, 2021
448d340
regenerate proto
tac0turtle Apr 1, 2021
7946092
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 1, 2021
42ec6f3
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 1, 2021
27e58ab
Staking epoch queries (#9053)
mvid Apr 6, 2021
0d2a330
Merge branch 'staking_module_validator_set_epoching' of https://githu…
tac0turtle Apr 6, 2021
73b3c86
regenerate proto and add wait times
tac0turtle Apr 6, 2021
240ab67
add queries for specific delegations and redelegations
tac0turtle Apr 6, 2021
fc9c8e9
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 6, 2021
436e7c7
add message undelegate queries
tac0turtle Apr 6, 2021
f654ec9
more queries and tests
tac0turtle Apr 6, 2021
09c514c
docs
tac0turtle Apr 7, 2021
351382e
add more tests
tac0turtle Apr 9, 2021
dd90628
Merge branch 'master' into staking_module_validator_set_epoching
Apr 12, 2021
3f3c6e1
fix migrate
tac0turtle Apr 12, 2021
8ee7677
attempt to fix docs
tac0turtle Apr 12, 2021
ec51a89
remove nullable and fix tests
tac0turtle Apr 13, 2021
ab17257
add logging
tac0turtle Apr 13, 2021
9ac594c
fix migration scripts
tac0turtle Apr 13, 2021
5dbfbc0
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 13, 2021
829080d
fix migration tests
tac0turtle Apr 14, 2021
1ff5676
Merge branch 'staking_module_validator_set_epoching' of https://githu…
tac0turtle Apr 14, 2021
15fefbb
fix gov, slashing and staking tests and queries
tac0turtle Apr 14, 2021
49d1303
execute epoch
tac0turtle Apr 14, 2021
1fb0aa8
cli test fiddle
tac0turtle Apr 15, 2021
490da93
bump gas
tac0turtle Apr 15, 2021
deec8eb
log error in execute
tac0turtle Apr 15, 2021
ad795d5
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 15, 2021
d04833d
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 15, 2021
d916183
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 16, 2021
6ba8abf
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 19, 2021
1eba597
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Apr 28, 2021
0188972
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle May 21, 2021
c641606
fix build
tac0turtle May 28, 2021
ab18d81
fix tests
tac0turtle May 28, 2021
6681602
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Jun 1, 2021
39467d0
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Aug 13, 2021
bacb6b3
fix build
tac0turtle Aug 16, 2021
f6a4cc2
lint++
tac0turtle Aug 16, 2021
652eca2
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Aug 16, 2021
4f5cbf5
fix interface
tac0turtle Aug 16, 2021
4dffed4
fix tests
tac0turtle Aug 17, 2021
3cc5eca
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Aug 17, 2021
5782fea
address comments
tac0turtle Aug 17, 2021
7b0e7da
fix tests and sims export
tac0turtle Aug 17, 2021
6b4ed66
epoch prefix keys change
tac0turtle Aug 19, 2021
5da2c89
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Sep 13, 2021
8d2f22f
Merge branch 'master' into staking_module_validator_set_epoching
tac0turtle Sep 16, 2021
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
10 changes: 9 additions & 1 deletion client/grpc/reflection/reflection.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion client/grpc/tmservice/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading