From 06a323592f7130891743609442a5253017f8bf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Thu, 27 Jul 2023 13:27:06 +0300 Subject: [PATCH] Governance-v2: Refactor events --- energy-integration/governance-v2/src/events.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/energy-integration/governance-v2/src/events.rs b/energy-integration/governance-v2/src/events.rs index 763f7a1c4..eb736bcc9 100644 --- a/energy-integration/governance-v2/src/events.rs +++ b/energy-integration/governance-v2/src/events.rs @@ -19,8 +19,8 @@ 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")] @@ -28,8 +28,8 @@ pub trait EventsModule { &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")] @@ -37,8 +37,8 @@ pub trait EventsModule { &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")] @@ -46,8 +46,8 @@ pub trait EventsModule { &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")]