Repository navigation
Remove the Context-Free Action API - #130
Merged
Merged
Conversation
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
huangminghuang
approved these changes
Nov 9, 2026
heifner
marked this pull request as ready for review
November 9, 2026 23:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The chain no longer supports context-free actions (Wire-Network/wire-sysio#754), so CDT drops the API for them.
send_context_free_inline,get_context_free_dataoraction::send_context_free(and the action wrappers'send_context_free). A contract that uses one fails to compile.compile-fail/context_free_removedpins it.imports/cdt.imports.indrop both intrinsics, and codegen dropssend_context_free_inlinefrom its lists of write and inline-action host functions.blockchain_parameterslosescontext_free_discount_net_usage_numandcontext_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::transactionkeepscontext_free_actions, which must be empty, so a transaction still packs as the chain expects.docs/migrating-from-antelope.mdlists 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.