Skip to content

Add block_timestamp to EVM WriteReportReply - #486

Merged
Krish-vemula merged 1 commit into
capabilities-developmentfrom
feat/evm-write-report-block-timestamp
Nov 18, 2026
Merged

Krish-vemula merged 1 commit into
capabilities-developmentfrom
feat/evm-write-report-block-timestamp

Conversation

@Krish-vemula

Copy link
Copy Markdown
Contributor

What

Adds optional uint64 block_timestamp = 6 (microseconds) to the EVM WriteReportReply, plus the regenerated embedded_gen.go.

Why

Aptos and Stellar already return block_timestamp in WriteReportReply, which lets us measure tx-inclusion latency for SLOs. EVM was missing it. This uses the same field name, type and unit (µs) as Aptos and Stellar, so one SLO pipeline works across all three chains.

Compatibility

New optional field: wire-compatible, and existing consumers ignore it.

Follow-ups

  • chainlink-common: regenerate the EVM capability pb and add a feature flag (#2554)
  • capabilities: populate the field in EVM WriteReport (#916)

@changeset-bot

changeset-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6c98522

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Regenerate Protobuf Files / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedNov 17, 2026, 6:33 AM

optional bytes tx_hash = 3;
optional values.v1.BigInt transaction_fee = 4;
optional string error_message = 5;
optional uint64 block_timestamp = 6; // block timestamp in microseconds

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aren't we usually using miliseconds because of unix?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agree microseconds isn't right here but think the format is actually seconds. I did a eth_getBlockByNumber to verify against sepolia

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

EVM block timestamps are in seconds, and the capability converts them to µs before replying (header.Timestamp * 1e6). I'd implemented it in seconds at first, then switched to µs because Aptos and Stellar both define WriteReportReply.block_timestamp in microseconds. That way the SLO consumer can handle every chain the same way. Happy to revert to seconds if we'd rather keep the native unit.

@Krish-vemula
Krish-vemula merged commit 353e61f into capabilities-development Nov 18, 2026
15 checks passed
@Krish-vemula
Krish-vemula deleted the feat/evm-write-report-block-timestamp branch November 18, 2026 18:09
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.

3 participants