Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit events for important state changes inside Staking contract #117

Merged
merged 2 commits into from
May 7, 2024

Conversation

matjazv
Copy link
Contributor

@matjazv matjazv commented May 7, 2024

What was the problem?

This PR resolves #115.

How was it solved?

Functions inside L2Staking contract:

  • lockAmount
  • unlock
  • initiateFastUnlock
  • increaseLockingAmount
  • extendLockingDuration
  • pauseRemainingLockingDuration ○ resumeCountdown

emit events after their completion.

How was it tested?

Unit tests were updated to verify if expected event was emitted.

@matjazv matjazv requested review from gkoumout and has5aan May 7, 2024 11:47
@matjazv matjazv self-assigned this May 7, 2024
test/L2/L2Staking.t.sol Show resolved Hide resolved
@matjazv matjazv merged commit 22c8aee into main May 7, 2024
3 checks passed
@matjazv matjazv deleted the 115-events-for-staking branch May 7, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add additional events for L2Staking contract
3 participants