0g-chain/x/community/keeper
drklee3 8186367c8b
feat(community): consolidate community funds (#1729)
* Add consolidate methods

* Update distr feepool balance with dust, add tests

* Set params for proposal handler to not influence module balances

* Add StakingRewardsPerSecond param for proposal test

* Update changelog

* Update test to check emitted events

* Log dust amounts for x/distribution

* Modify feepool communitypool field instead of entire replacement

* Update tests to include cases with empty balances

* Move EventsContains to app

* Remove extra copied ModuleName

* Add Require() to incentive claims in tests to reduce errors

* Move consolidate tests to testutil

* Only transfer non-ukava coins

* Add DefaultStakingRewardsState to proposal handler test

* Move event emit before consolidate

* add golangci specific timeout

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2023-10-20 09:18:37 -07:00
..
consolidate.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
disable_inflation_test.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
disable_inflation.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
grpc_query_test.go Community Pool Staking Rewards Implementation & Improvements (#1742) 2023-10-03 08:41:54 -07:00
grpc_query.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
keeper_test.go feat(community): add MsgUpdateParams for governance (#1745) 2023-10-11 10:22:25 -07:00
keeper.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
migrations.go feat(community): add switchover param (#1704) 2023-09-22 09:05:12 -07:00
msg_server_test.go feat(community): add MsgUpdateParams for governance (#1745) 2023-10-11 10:22:25 -07:00
msg_server.go feat(community): add MsgUpdateParams for governance (#1745) 2023-10-11 10:22:25 -07:00
params_test.go Community Pool Staking Rewards Implementation & Improvements (#1742) 2023-10-03 08:41:54 -07:00
params.go Community Pool Staking Rewards Implementation & Improvements (#1742) 2023-10-03 08:41:54 -07:00
proposal_handler_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
proposal_handler.go feat: add community cdp withdraw collateral proposal (#1567) 2023-04-20 16:08:53 -07:00
staking_test.go Community Pool Staking Rewards Implementation & Improvements (#1742) 2023-10-03 08:41:54 -07:00
staking.go Emit events for inflation disable and staking rewards (#1743) 2023-10-03 15:10:22 -07:00