-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test VRF LogPoller functionality- initializeLastProcessedBlock, updat…
…eLastProcessedBlock and getUnfulfilled (#11472) * Test VRF LogPoller functionality- initializeLastProcessedBlock, updateLastProcessedBlock and getUnfulfilled * Addressed PR comments * Minor change * Add comments to explain replay * Addressed PR comments * Prettier
- Loading branch information
1 parent
6bb80e0
commit 5a98ac6
Showing
6 changed files
with
1,617 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
contract VRFLogEmitter { | ||
event RandomWordsRequested( | ||
bytes32 indexed keyHash, | ||
uint256 requestId, | ||
uint256 preSeed, | ||
uint64 indexed subId, | ||
uint16 minimumRequestConfirmations, | ||
uint32 callbackGasLimit, | ||
uint32 numWords, | ||
address indexed sender | ||
); | ||
event RandomWordsFulfilled(uint256 indexed requestId, uint256 outputSeed, uint96 payment, bool success); | ||
|
||
function emitRandomWordsRequested( | ||
bytes32 keyHash, | ||
uint256 requestId, | ||
uint256 preSeed, | ||
uint64 subId, | ||
uint16 minimumRequestConfirmations, | ||
uint32 callbackGasLimit, | ||
uint32 numWords, | ||
address sender | ||
) public { | ||
emit RandomWordsRequested( | ||
keyHash, | ||
requestId, | ||
preSeed, | ||
subId, | ||
minimumRequestConfirmations, | ||
callbackGasLimit, | ||
numWords, | ||
sender | ||
); | ||
} | ||
|
||
function emitRandomWordsFulfilled(uint256 requestId, uint256 outputSeed, uint96 payment, bool success) public { | ||
emit RandomWordsFulfilled(requestId, outputSeed, payment, success); | ||
} | ||
} |
Oops, something went wrong.