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

Updated DrawManager events to include reward #8

Merged
merged 2 commits into from Mar 21, 2024

Conversation

asselstine
Copy link
Contributor

No description provided.

Copy link

linear bot commented Mar 21, 2024

Copy link

LCOV of commit 4460ab2 during coverage #33

Summary coverage rate:
  lines......: 100.0% (98 of 98 lines)
  functions..: 94.4% (17 of 18 functions)
  branches...: no data found

Files changed coverage rate:
                             |Lines       |Functions  |Branches    
  Filename                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================
  src/DrawManager.sol        | 100%     71|93.3%    15|    -      0

Copy link
Member

@trmid trmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the usual natspec upkeep!

Comment on lines 121 to 128
event DrawStarted(
address indexed sender,
address indexed recipient,
uint24 drawId,
uint32 rngRequestId,
uint48 elapsedTime
uint24 indexed drawId,
uint48 elapsedTime,
uint reward,
uint32 rngRequestId
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing natspec updates

Comment on lines 130 to 141
/// @notice Emitted when the finish draw is called
/// @param drawId The draw id
/// @param elapsedTime The amount of time that had elapsed between start draw and finish draw
/// @param startRecipient The recipient of the start rng auction reward
/// @param startReward The reward for the start rng auction
/// @param finishRecipient The recipient of the finish draw auction reward
/// @param finishReward The reward for the finish draw auction
/// @param recipient The recipient of the finish draw auction reward
/// @param reward The reward for the finish draw auction
/// @param remainingReserve The remaining reserve after the rewards have been allocated
event DrawFinished(
address indexed sender,
address indexed recipient,
uint24 indexed drawId,
uint elapsedTime,
address indexed startRecipient,
uint startReward,
address indexed finishRecipient,
uint finishReward,
uint48 elapsedTime,
uint reward,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing some natspec updates

Copy link

LCOV of commit a6813aa during coverage #35

Summary coverage rate:
  lines......: 100.0% (98 of 98 lines)
  functions..: 94.4% (17 of 18 functions)
  branches...: no data found

Files changed coverage rate:
                             |Lines       |Functions  |Branches    
  Filename                   |Rate     Num|Rate    Num|Rate     Num
  =================================================================
  src/DrawManager.sol        | 100%     71|93.3%    15|    -      0

@asselstine asselstine merged commit 64cc3e4 into main Mar 21, 2024
2 checks passed
@asselstine asselstine deleted the gen-1219-drawmanager-changes branch March 21, 2024 21:33
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.

None yet

2 participants