Skip to content

Commit

Permalink
swap txIndex for timestamp (#10687)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall authored Sep 20, 2023
1 parent 3641870 commit b378676
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 20 deletions.
12 changes: 11 additions & 1 deletion contracts/src/v0.8/automation/interfaces/ILogAutomation.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
* @member index the index of the log in the block. 0 for the first log
* @member timestamp the timestamp of the block containing the log
* @member txHash the hash of the transaction containing the log
* @member blockNumber the number of the block containing the log
* @member blockHash the hash of the block containing the log
* @member source the address of the contract that emitted the log
* @member topics the indexed topics of the log
* @member data the data of the log
*/
struct Log {
uint256 index;
uint256 txIndex;
uint256 timestamp;
bytes32 txHash;
uint256 blockNumber;
bytes32 blockHash;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/v0.8/automation/KeeperRegistry2_1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3238,7 +3238,7 @@ describe('KeeperRegistry2_1', () => {
it('calls checkLog for log-trigger upkeeps', async () => {
const log: Log = {
index: 0,
txIndex: 0,
timestamp: 0,
txHash: ethers.utils.randomBytes(32),
blockNumber: 100,
blockHash: ethers.utils.randomBytes(32),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b378676

Please sign in to comment.