Skip to content

Conversation

@mihailjianu1
Copy link
Contributor

This PR adds the price version, as described in dfinity/portal#6101 to the management canister http_request endpoint.

This PR also persists the version in the replicated state. In the future that will be used to determine which pricing strategy should be applied.

The flag is a candid opt nat32, which, if missing, defaults to "1", which corresponds to the "current" pricing. Similarly, if set to "2", the flag will default back to 1, as version 2 is not implemented yet.

In the future, we will support pricing_Version = 2, which corresponds to the "pay-as-you-go" pricing.

@github-actions github-actions bot added the feat label Oct 27, 2025
Copy link
Contributor

@kpop-dfinity kpop-dfinity left a comment

Choose a reason for hiding this comment

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

Left some comments mostly about the choices between returning errors vs returning default values

Copy link
Contributor

@mraszyk mraszyk left a comment

Choose a reason for hiding this comment

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

I'm approving this PR since the code owned by the execution team is correct (as far as I can see) and my suggestion regarding using an enumeration instead of integers in the public API is a design concern that should have been caught earlier in the process (and thus it is not blocking at this stage).

Copy link
Contributor

@kpop-dfinity kpop-dfinity left a comment

Choose a reason for hiding this comment

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

LGTM with some nits

@mihailjianu1 mihailjianu1 requested a review from a team as a code owner November 7, 2025 13:30
@mihailjianu1 mihailjianu1 added this pull request to the merge queue Nov 7, 2025
Merged via the queue into master with commit 9fbe41f Nov 7, 2025
39 checks passed
@mihailjianu1 mihailjianu1 deleted the mihailjianu1/outcalls-price-flag branch November 7, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants