Skip to content

Commit

Permalink
feat(*): implement period staking ,singularity, and UBI (#26)
Browse files Browse the repository at this point in the history
This is a modification commit for Story. This includes period staking, singularity, and UBI.

* feat(x/staking): add staking period parameters

* feat(staking): validator & delegation struct changes with unit test passed

* feat(staking): delegate changes with unit test passed

* feat(staking): fix genesis state unit test issue

* feat(staking): fix local network unit test issue

* feat(staking): fix local network unit test issue

* feat(staking): validtor rewards token type change

* feat(staking): rewards multiplier basec delegation

* feat(staking): add min_delegation param

* feat(staking): add min delegation constriant

* feat(staking): flexible staking period delegation aggregation

* feat(staking): fix unit tests

* feat(staking): make sue flexible period delegation within same del_id

* feat(staking): customized unstake logic

* feat(staking): params change and constriants for delegate and undelegate

* feat(staking): constriants for delegate and undelegate

* feat(distribution): distribute rewards based on rewards shares

* feat(distribution): use ubi pool instead of community tax

* feat(distribution): rewards distribution

* feat(distribution): support ubi withdraw and balance check

* feat(distribution): port a bugfix pr from cosmos

* feat(redelegate): redelegate based on period delegations

* feat(redelegate): add unit tests

* feat(redelegate): add unit tests

* feat(redelegate): add unit tests

* feat(redelegate): add unit tests

* feat(redelegate): add unit tests

* feat(redelegate): unbond bypass check

* feat(redelegate): use previous endTime for redelegation

* feat(redelegate): use previous endTime for redelegation

* feat(redelegate): lint

* feat(distribution): remove useless rewards_token

* feat(staking): add 18 months staking period

* feat(distribution): rename ubi_pool to ubi

* feat(staking): redelegate between same token type

* feat(staking): default params

* feat(staking): default params

* feat(evmstaking): deterministic store for period delegations (#5)

* feat(staking): make staking keeper endblocker return unbonded entry (#4)

* chore(staking): add error log when unbonding and redelegation failed

* feat(staking): make staking keeper endblocker return unbonded entry

* fix(staking): param staking periods and token types (#6)

* feat(staking): add locked token type param (#7)

* feat(x/distribution): refactor ubi funcs (#8)

* fix(x/distribution): keeper receiver

* add GetAllPeriodDelegation

Signed-off-by: lutty <[email protected]>

* fix(distribution): add weighted tokens for validator

* fix(distribution): fix todos

* feat(distr): add set ubi keeper func (#12)

* fix(staking): undelegate edge case

* feat(staking): add period delegation to genesis (#13)

* feat(staking): add period delegation to genesis

* fix(staking): fix tests regarding period delegation

* fix(staking): fix test for msg edit validator

* feat(staking): skip minimum self delegation check at genesis block (#15)

* feat(staking): enhance failure errors (#16)

* fix(staking): add errors

* fix(staking): add errors

* fix(staking): add errors

* feat(slashing): disable slashing during the singularity (#17)

* feat(slashing): add singularity height getter (#20)

* feat(evidence): disable double signing slashing during singularity (#18) (#19)

* fix(staking): remove business logic outside the hooks (#21)

* feat(staking): move business logic outside the hooks

* feat(staking): move business logic outside the hooks

* feat(staking): move business logic outside the hooks

* feat(evmstaking): separate staking msg checks (#22)

* feat(evmstaking): msg checks

* feat(evmstaking): msg checks

* feat(distribution): add max_ubi param

* feat(distribution): add max_ubi param

* feat(distribution): add max_ubi param

* feat(distribution): add max_ubi param

* feat(staking): move singularity height to staking module (#23)

* chore(evidence): bump cosmos sdk version (#24)

* fix(slashing): reset missed block counter at singularity block (#25)

---------

Signed-off-by: lutty <[email protected]>
Co-authored-by: ezreal1997 <[email protected]>
Co-authored-by: lutty <[email protected]>
Co-authored-by: Haodi <[email protected]>
Co-authored-by: Ze <[email protected]>
  • Loading branch information
5 people authored Nov 25, 2024
1 parent 6dc6e8b commit b441ec7
Show file tree
Hide file tree
Showing 160 changed files with 13,679 additions and 12,192 deletions.
2,722 changes: 619 additions & 2,103 deletions api/cosmos/distribution/v1beta1/distribution.pulsar.go

Large diffs are not rendered by default.

618 changes: 307 additions & 311 deletions api/cosmos/distribution/v1beta1/query.pulsar.go

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions api/cosmos/distribution/v1beta1/query_grpc.pb.go

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

Loading

0 comments on commit b441ec7

Please sign in to comment.