Skip to content

Commit

Permalink
Governance-v2: Refactor events
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Jul 27, 2023
1 parent 2edf729 commit 06a3235
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions energy-integration/governance-v2/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@ pub trait EventsModule {
&self,
#[indexed] up_voter: &ManagedAddress,
#[indexed] proposal_id: ProposalId,
#[indexed] nr_votes: &BigUint,
#[indexed] energy: &BigUint,
#[indexed] voting_power: &BigUint,
#[indexed] user_quorum: &BigUint,
);

#[event("downVoteCast")]
fn down_vote_cast_event(
&self,
#[indexed] down_voter: &ManagedAddress,
#[indexed] proposal_id: ProposalId,
#[indexed] nr_votes: &BigUint,
#[indexed] energy: &BigUint,
#[indexed] voting_power: &BigUint,
#[indexed] user_quorum: &BigUint,
);

#[event("downVetoVoteCast")]
fn down_veto_vote_cast_event(
&self,
#[indexed] down_veto_voter: &ManagedAddress,
#[indexed] proposal_id: ProposalId,
#[indexed] nr_votes: &BigUint,
#[indexed] energy: &BigUint,
#[indexed] voting_power: &BigUint,
#[indexed] user_quorum: &BigUint,
);

#[event("abstainVoteCast")]
fn abstain_vote_cast_event(
&self,
#[indexed] abstain_voter: &ManagedAddress,
#[indexed] proposal_id: ProposalId,
#[indexed] nr_votes: &BigUint,
#[indexed] energy: &BigUint,
#[indexed] voting_power: &BigUint,
#[indexed] user_quorum: &BigUint,
);

#[event("proposalCanceled")]
Expand Down

0 comments on commit 06a3235

Please sign in to comment.