Skip to content

Ship creation code in the gem at 0.2.0 - #7

Merged
Alexey1100 merged 1 commit into
mainfrom
feat/gem-ships-creation-code
Sep 22, 2026
Merged

Alexey1100 merged 1 commit into
mainfrom
feat/gem-ships-creation-code

Conversation

@Alexey1100

@Alexey1100 Alexey1100 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

What

The Ruby gem now ships artifacts/ (creation code) alongside the ABIs, manifests and verification sources, and exposes artifact(release, contract) and bytecode(release, contract).

Notes

  • abi and bytecode in the shipped artifacts are byte-identical to the copies Rails serves today.
  • The packed gem grows from about 480 KB to 765 KB.
  • A new test digests the shipped creation code against manifest.artifacts[].creationCode.sha256, which the manifest records over raw bytes, so a truncated or re-encoded copy fails the build.
  • The npm package already shipped artifacts/ and does not change.

Made with Cursor

The gem carried ABIs and verification sources only, on the reasoning
that a Ruby consumer never deploys. Rails does hand creation code to a
browser that deploys the set, and it read that code from its own copy of
the artifacts. One copy has to go, so the gem carries artifacts/ now and
Rails can drop its copy.

artifact and bytecode read the new files. A test digests the shipped
creation code against the manifest, which records it as raw bytes, so a
truncated or re-encoded copy fails the build.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Alexey1100
Alexey1100 merged commit a9c071e into main Sep 22, 2026
6 checks passed
@Alexey1100
Alexey1100 deleted the feat/gem-ships-creation-code branch September 22, 2026 00:16
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