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

Test commit plugin Reports #292

Merged
merged 3 commits into from
Nov 4, 2024
Merged

Test commit plugin Reports #292

merged 3 commits into from
Nov 4, 2024

Conversation

dimkouv
Copy link
Contributor

@dimkouv dimkouv commented Nov 1, 2024

No description provided.

@@ -40,10 +40,13 @@ func (p *Plugin) Reports(
return nil, fmt.Errorf("failed to decode Outcome (%s): %w", hex.EncodeToString(outcomeBytes), err)
}

// Until we start adding tokens and gas to the report, we don't need to report anything
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment seemed wrong to me.

@@ -60,6 +63,11 @@ func (p *Plugin) Reports(
RMNSignatures: outcome.MerkleRootOutcome.RMNReportSignatures,
}

if rep.IsEmpty() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If report is empty skip the steps below.

Copy link

github-actions bot commented Nov 1, 2024

Metric dk/commit-report-tests main
Coverage 72.5% 72.4%

@@ -40,10 +40,13 @@ func (p *Plugin) Reports(
return nil, fmt.Errorf("failed to decode Outcome (%s): %w", hex.EncodeToString(outcomeBytes), err)
}

// Until we start adding tokens and gas to the report, we don't need to report anything
// Gas prices and token prices do not need to get reported when merkle roots do not exist.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is correct, sources may not have merkle roots but the dest needs source gas prices + token prices in order to bill for requests from dest -> rest of chains

@dimkouv dimkouv merged commit 7e92d23 into main Nov 4, 2024
4 checks passed
@dimkouv dimkouv deleted the dk/commit-report-tests branch November 4, 2024 09:30
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