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

Implement fee-related changes of CAP-66. #1522

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Mar 7, 2025

What

Implement fee-related changes of CAP-66.

This includes the following changes:

  • use the disk read bytes in place of overall read bytes, i.e. only account for the classic and restored entries (the latter is no a part of this PR)
  • use the module memory size for the contract code entries instead of their XDR size for rent computations
  • rename the fee-related fields appropriately

This also temporarily switches env to vnext XDR (until we merge next changes into curr).

Why

Support CAP-66

Known limitations

N/A

This includes the following changes:
- use the disk read bytes in place of overall read bytes, i.e. only account for the classic and restored entries (the latter is no a part of this PR)
- use the module memory size for the contract code entries instead of their XDR size for rent computations
- rename the fee-related fields appropriately
- update simulation and invocation metering to follow the new logic

This also temporarily switches env to vnext XDR.
@dmkozh dmkozh requested review from graydon, sisuresh and a team as code owners March 7, 2025 01:48
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.

1 participant