Skip to content

Conversation

@gezerui0124
Copy link
Collaborator

Description

  • remove all map states

@gezerui0124 gezerui0124 force-pushed the rayden/use-deterministic-map branch from 2b53fe3 to f075795 Compare October 16, 2024 12:31
@gezerui0124 gezerui0124 merged commit 18efdf9 into piplabs/v0.50.7 Oct 16, 2024
0xHansLee added a commit that referenced this pull request Nov 25, 2024
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 <lutty@lutty.me>

* 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 <lutty@lutty.me>
Co-authored-by: ezreal1997 <gezerui1997@gmail.com>
Co-authored-by: lutty <lutty@lutty.me>
Co-authored-by: Haodi <haodi@storyprotocol.xyz>
Co-authored-by: Ze <edisonz0718@gmail.com>
@gezerui0124 gezerui0124 deleted the rayden/use-deterministic-map branch December 19, 2024 19:46
0xHansLee added a commit that referenced this pull request Oct 8, 2025
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 <lutty@lutty.me>

* 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 <lutty@lutty.me>
Co-authored-by: ezreal1997 <gezerui1997@gmail.com>
Co-authored-by: lutty <lutty@lutty.me>
Co-authored-by: Haodi <haodi@storyprotocol.xyz>
Co-authored-by: Ze <edisonz0718@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants