Skip to content

Remove the Context-Free Action API - #130

Merged
heifner merged 1 commit into
masterfrom
feature/remove-context-free
Nov 9, 2026
Merged

heifner merged 1 commit into
masterfrom
feature/remove-context-free

Conversation

@heifner

@heifner heifner commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The chain no longer supports context-free actions (Wire-Network/wire-sysio#754), so CDT drops the API for them.

  • sysiolib no longer declares send_context_free_inline, get_context_free_data or action::send_context_free (and the action wrappers' send_context_free). A contract that uses one fails to compile. compile-fail/context_free_removed pins it.
  • The native tester and imports/cdt.imports.in drop both intrinsics, and codegen drops send_context_free_inline from its lists of write and inline-action host functions.
  • blockchain_parameters loses context_free_discount_net_usage_num and context_free_discount_net_usage_den. The chain unpacks the packed parameters straight into its own struct, so the two have to match field for field.
  • sysio::transaction keeps context_free_actions, which must be empty, so a transaction still packs as the chain expects.
  • docs/migrating-from-antelope.md lists the removed calls, and says what to use instead.

Draft: this pairs with Wire-Network/wire-sysio#754 and lands with it. A wire-sysio tag build uses the latest wire-cdt release, so wire-cdt needs a release before the next wire-sysio tag.

sysiolib no longer declares `send_context_free_inline`, `get_context_free_data` or `action::send_context_free`, and the native tester and the import list drop the two intrinsics. `blockchain_parameters` loses `context_free_discount_net_usage_num` and `_den`, to match the chain's parameters. `sysio::transaction` keeps its `context_free_actions` field, which must be empty, so a transaction still packs as the chain expects.

Change-Id: I1ad9fde02c1f1fdbbc8c0b977870e44255e313fa
@heifner
heifner marked this pull request as ready for review November 9, 2026 23:37
@heifner
heifner merged commit 4753b0a into master Nov 9, 2026
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