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

Add a helper that invokes a host function 'end-to-end' #964

Merged
merged 3 commits into from
Jul 29, 2023

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Jul 25, 2023

What

Move all the metered code for invoking host functions into a single host-side helper.

Also provide utilities to build input data for computing the rent fees.

Why

This helper can be invoked from any environment to get the metering data and results consistent with what Core will do. The utilities help preflight to find out the rent fees with minimal amount of duplication.

Known limitations

N/A

@dmkozh dmkozh marked this pull request as ready for review July 28, 2023 19:52
@dmkozh dmkozh requested review from graydon, sisuresh and a team as code owners July 28, 2023 19:52
…-side helper.

This helper can be invoked from any environment to get the metering data and results consistent with what Core will do.

Also provide utilities to build input data for computing the rent fees.
soroban-env-host/src/e2e_invoke.rs Show resolved Hide resolved
@graydon graydon enabled auto-merge (squash) July 29, 2023 21:47
@graydon graydon merged commit 75c0439 into stellar:main Jul 29, 2023
8 checks passed
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.

2 participants