0g-chain/x/community/testutil
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
..
cdp_genesis.go feat: add community cdp repay debt proposal (#1565) 2023-04-20 14:13:16 -07:00
consolidate.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
disable_inflation.go Emit events for inflation disable and staking rewards (#1743) 2023-10-03 15:10:22 -07:00
main.go Add x/community Lend proposals (#1425) 2022-12-12 16:38:27 -08:00
pricefeed_genesis_builder.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
staking_rewards.go Emit events for inflation disable and staking rewards (#1743) 2023-10-03 15:10:22 -07:00