0g-chain/x/community/keeper
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
..
disable_inflation_test.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
disable_inflation.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
grpc_query_test.go Community Param Updates (#1741) 2023-09-26 10:08:26 -07:00
grpc_query.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
keeper_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
keeper.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
migrations.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
msg_server_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
msg_server.go add x/kavamint & x/community modules (#1400) 2022-12-09 13:24:35 -08:00
params_test.go Community Param Updates (#1741) 2023-09-26 10:08:26 -07:00
params.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
proposal_handler_test.go feat: add community cdp withdraw collateral proposal (#1567) 2023-04-20 16:08:53 -07:00
proposal_handler.go feat: add community cdp withdraw collateral proposal (#1567) 2023-04-20 16:08:53 -07:00