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

Update KeystoneForwarder contract and IReceiver #13301

Conversation

DeividasK
Copy link
Collaborator

@DeividasK DeividasK commented May 23, 2024

TODO:

  • Update Target capability.


// f can never be 0, so this means the config doesn't actually exist
if (s_configs[donId].f == 0) revert InvalidDonId(donId);

bytes32 reportId = _reportId(receiverAddress, workflowExecutionId);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed some variables because of StackTooDeep error 😭

@DeividasK DeividasK force-pushed the KS-241-finalize-report-name-idea-and-update-receiver-contract branch from cecf02e to 2e32753 Compare May 23, 2024 13:44
@DeividasK DeividasK marked this pull request as ready for review May 23, 2024 14:00
@DeividasK DeividasK requested review from archseer, bolekk, patrick-dowell and a team as code owners May 23, 2024 14:00
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@DeividasK DeividasK marked this pull request as draft May 23, 2024 14:03
bytes32 indexed workflowExecutionId,
bytes32 indexed reportName,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm worried about how much extra metadata we're passing through now and any potential size issues on Solana. Could report name just be a u8 type ID/discriminator? 255 different report types per workflow ought to be enough

Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed offline, we could use address (20 bytes) for owner and only 12 bytes for report name.

@bolekk
Copy link
Contributor

bolekk commented Jun 1, 2024

replaced by #13389

@bolekk bolekk closed this Jun 1, 2024
@DeividasK DeividasK deleted the KS-241-finalize-report-name-idea-and-update-receiver-contract branch August 15, 2024 16:46
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