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

Price event bytes at the same rate as storage #370

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Commits on Jul 1, 2024

  1. contracts: add function that emits event with input

    Eduardo Leegwater Simões committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    cb080a1 View commit details
    Browse the repository at this point in the history
  2. piecrust: price event bytes at the same rate as storage

    Each byte in an event, be it topic or data, is priced at the same rate
    as each byte in a storage instruction. This ensures each event is priced
    more than a simple host function, since they require a larger processing
    window.
    
    This should be the final commit in pricing imports and host functions,
    apart from adding additional functionality such as external
    configuration.
    
    Resolves #359
    Eduardo Leegwater Simões committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    b88c100 View commit details
    Browse the repository at this point in the history