Skip to content

Commit

Permalink
apply code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sczembor committed Nov 27, 2023
1 parent ff80c0f commit 8df575e
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions voting_body/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,7 @@ Functions that invoke `emit_prop_active`: `top_up_proposal`, `support_proposal`,
- `prop_id`: The ID of the slashed pre-vote proposal.
- `bond`: The bond amount being slashed (in `U128` format).

List of functions that invoke `emit_prevote_prop_slashed`:

- `top_up_proposal`
- `slash_prevote_proposal`
- `support_proposal`
- `support_proposal_by_congress`
List of functions that invoke `emit_prevote_prop_slashed`: `top_up_proposal`, `slash_prevote_proposal`, `support_proposal`, `support_proposal_by_congress`.

#### `proposal-slash`

Expand All @@ -259,29 +254,23 @@ List of functions that invoke `emit_prevote_prop_slashed`:
- `prop_id`: The ID of the slashed proposal.
- `bond`: The bond amount being slashed (in `U128` format).

List of functions that invoke `emit_prop_slashed`:

- `execute`
List of functions that invoke `emit_prop_slashed`: `execute`.

#### `vote`

- **Description:** Emitted when a vote is cast for a proposal.
- **Payload:**
- `prop_id`: The ID of the proposal being voted on.

List of functions that invoke `emit_vote`:

- `vote`
List of functions that invoke `emit_vote`: `vote`.

#### `execute`

- **Description:** Emitted when a proposal is executed.
- **Payload:**
- `prop_id`: The ID of the executed proposal.

List of functions that invoke `emit_executed`:

- `on_execute`
List of functions that invoke `emit_executed`: `on_execute`.

## Cheat Sheet

Expand Down

0 comments on commit 8df575e

Please sign in to comment.