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

feat: script and predicate blobs #1520

Merged
merged 54 commits into from
Oct 6, 2024

Conversation

segfault-magnet
Copy link
Contributor

@segfault-magnet segfault-magnet commented Oct 5, 2024

closes: #1519

Waiting for a fuel-core release to remove all the patches in Cargo.toml

Release notes

In this release, we:

  • Implemented support for pre-uploading code for scripts and predicates via blobs.

Summary

Added a Executable type which can be given a Sway binary and be used to turn it into loader code.

All script/predicate code except their data sections is uploaded as a blob and referenced in the loader code.

Every loader code execution can be configured differently without the need of large transactions due to the rest of the code being uploaded beforehand as a blob.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

Br1ght0ne
Br1ght0ne previously approved these changes Oct 6, 2024
Copy link
Member

@Br1ght0ne Br1ght0ne left a comment

Choose a reason for hiding this comment

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

LGTM, as I saw most of it being written ;)

MujkicA
MujkicA previously approved these changes Oct 6, 2024
digorithm
digorithm previously approved these changes Oct 6, 2024
hal3e
hal3e previously approved these changes Oct 6, 2024
@segfault-magnet segfault-magnet merged commit 2a67e3b into master Oct 6, 2024
45 checks passed
@segfault-magnet segfault-magnet deleted the feat/script_and_predicate_blobs branch October 6, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploying predicates and scripts with blobs
5 participants