Skip to content

Conversation

@matias-gonz
Copy link
Member

@matias-gonz matias-gonz commented Oct 30, 2025

Closes #46

Copilot AI review requested due to automatic review settings October 30, 2025 20:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds encoded calldata output to the publish_to_stdout function for dry run mode. The changes enable users to see both the report data and the corresponding encoded calldata that would be sent in a real transaction.

Key Changes:

  • Modified publish_to_stdout to accept an oracle_address parameter and output encoded calldata alongside the report
  • Updated test fixtures to use valid Ethereum addresses instead of placeholder strings
  • Updated all test assertions to match the new JSON output structure containing both report and encoded calldata

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/tq_oracle/report/publisher.py Added oracle_address parameter to publish_to_stdout and integrated encode_submit_reports to generate and include encoded calldata in output
tests/report/test_publisher.py Updated test fixtures with valid Ethereum addresses and modified assertions to verify the new output structure containing both report and encoded calldata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings October 30, 2025 20:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@timbrinded timbrinded left a comment

Choose a reason for hiding this comment

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

almost there but i think we should be using encodeFunctionCall() instead in a new helper so that we decouple the publisher from the safe component.

Currently in this PR we call encode_submit_reports() which ties the two modules together. If you hoist this this into another helper then we can keep publisher and safe separate

Copy link
Collaborator

@timbrinded timbrinded left a comment

Choose a reason for hiding this comment

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

see prev comment

Copilot AI review requested due to automatic review settings October 31, 2025 15:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings October 31, 2025 15:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@timbrinded timbrinded left a comment

Choose a reason for hiding this comment

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

lgtm

@timbrinded timbrinded merged commit c1008d5 into master Oct 31, 2025
6 checks passed
@timbrinded timbrinded deleted the feat/add-encoded-submit-reports-to-stdout branch October 31, 2025 16:04
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 encoded function data to dry run

3 participants