mirror of
https://github.com/logos-messaging/logos-messaging-rlnv2-contract.git
synced 2026-01-10 18:03:06 +00:00
unify membership-related events
This commit is contained in:
parent
ba0c5ad975
commit
cc5ba324e6
@ -81,10 +81,11 @@ abstract contract MembershipUpgradeable is Initializable {
|
||||
address token;
|
||||
}
|
||||
|
||||
/// Emitted when a new membership is added to the membership set // FIXME: rateCommitment or membershipRateLimit?
|
||||
/// @param rateCommitment The rateCommitment of the membership
|
||||
/// Emitted when a new membership is added to the membership set
|
||||
/// @param idCommitment the idCommitment of the membership
|
||||
/// @param membershipRateLimit the rate limit of this membership
|
||||
/// @param index The index of the membership in the membership set
|
||||
event MembershipRegistered(uint256 idCommitment, uint256 rateCommitment, uint32 index);
|
||||
event MembershipRegistered(uint256 idCommitment, uint256 membershipRateLimit, uint32 index);
|
||||
|
||||
/// @notice Emitted when a membership is expired (exceeded its grace period and not extended)
|
||||
/// @param idCommitment the idCommitment of the membership
|
||||
|
||||
@ -201,7 +201,7 @@ contract WakuRlnV2 is Initializable, Ownable2StepUpgradeable, UUPSUpgradeable, M
|
||||
nextFreeIndex += 1;
|
||||
}
|
||||
|
||||
emit MembershipRegistered(idCommitment, rateCommitment, index);
|
||||
emit MembershipRegistered(idCommitment, rateLimit, index);
|
||||
}
|
||||
|
||||
/// @notice Returns the root of the Merkle tree that stores rate commitments of memberships
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user