0g-chain/x/community
Draco 43be3815cc
feat: disable inflation upgrade logic (#1706)
* feat: disable inflation upgrade logic

* improve disable inflation comments

* add upgrade tests

* update changelog

* split disable inflation upgrade and the upgrade check

* remove pay rewards logic

* clean up incentives test

* add abci test

* refactor upgradeTime and blockTime check

* fix abci test

* fix wrong pr in changelog

* refactor disable inflation tests, behavior, and implementation
  - Unit tests are now shared between keeper and abci begin blocker
    since behavior is 100% the same
  - ABCI is unaware of keeper initial keeper logic branch (keeper
    methods required to be called in certain order by begin blocker)
  - Behavior of zero time is changed -- this now doesn't run for the
    zero time.  This is more ideal for new chains (genesis should set
    all correct state instead of relying on inflation disable logic),
    and allows for a simpler implementation.
  - Begin blocker now panics if parameters are not in state

* remove previous tests and implementation

* remove previous block time keeper state -- not needed for inflation
disalbing

* move inflation disabling to private method and add more comments

* remove unused key

* use correct spelling for idempotence

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2023-10-02 13:10:22 -07:00
..
client feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
keeper feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
migrations/v2 Community Param Updates (#1741) 2023-09-26 10:08:26 -07:00
spec update x/community specs for v0.21 release (#1462) 2023-01-30 10:09:26 -08:00
testutil feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
types feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
abci.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
disable_inflation_abci_test.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
genesis_test.go Community Param Updates (#1741) 2023-09-26 10:08:26 -07:00
genesis.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
handler.go feat: add community cdp withdraw collateral proposal (#1567) 2023-04-20 16:08:53 -07:00
module_test.go add x/kavamint & x/community modules (#1400) 2022-12-09 13:24:35 -08:00
module.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00