0g-chain/x/community/spec/04_events.md
drklee3 84f84c4eec
Update x/community spec (#1764)
* Update x/community spec

* Update reward details, remove old pool section

* Reward parameters typoish

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
2023-10-30 16:53:29 -07:00

1.0 KiB

Events

The community module emits the following events:

Handlers

MsgFundCommunityPool

Type Attribute Key Attribute Value
message module community
message action fund_community_pool
message sender {senderAddress}
message amount {amountCoins}

Keeper events

In addition to handlers events, the bank keeper will produce events when the following methods are called (or any method which ends up calling them)

CheckAndDisableMintAndKavaDistInflation

{
  "type": "inflation_stop",
  "attributes": [
    {
      "key": "inflation_disable_time",
      "value": "{{RFC3339 formatted time inflation was disabled}}",
      "index": true
    }
  ]
}

PayoutAccumulatedStakingRewards

{
  "type": "staking_rewards_paid",
  "attributes": [
    {
      "key": "staking_reward_amount",
      "value": "{{sdk.Coins being paid to validators}}",
      "index": true
    }
  ]
}