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

Use FFI to perform paycall multi-step simulation #98

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

banky
Copy link
Contributor

@banky banky commented Oct 30, 2024

Currently, the logic for multi-step simulation for paycall transactions is all done on the client side. This PR aims to move this logic into QuarkBuilder by making a call to a simulation ffi. ie. when calling the builder with an intent which uses paycall, the builder first simulates the transaction to get the estimated max payment cost and then uses the estimate for building up the transaction with paycall


libs = ["./lib"]

[profile.ir]
via_ir = true
optimizer = true
optimizer = false
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 should not go into main, just using locally to make the compiler a bit faster

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