Add WorkerModules pallet. - #1964
Open
Neopallium wants to merge 40 commits into
Open
Neopallium wants to merge 40 commits into
Neopallium wants to merge 40 commits into
Conversation
Neopallium
force-pushed
the
add_worker_modules_pallet
branch
2 times, most recently
from
September 2, 2026 16:05
9f947c3 to
14a3a00
Compare
Neopallium
force-pushed
the
add_worker_modules_pallet
branch
3 times, most recently
from
September 15, 2026 18:15
3e8896e to
caff7cb
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Neopallium
force-pushed
the
add_worker_modules_pallet
branch
from
September 16, 2026 12:28
caff7cb to
237397a
Compare
Neopallium
force-pushed
the
add_worker_modules_pallet
branch
from
September 16, 2026 20:51
4f19b4d to
7d0adc0
Compare
Neopallium
marked this pull request as ready for review
September 18, 2026 11:49
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.
Adds the
WorkerModulespallet, which stores worker protocol module code, context andconfig on-chain so the Polymesh Worker can load and upgrade protocol modules without a node
release. Also adds a develop-only
WorkerTestingpallet used to exercise that upgrade pathfrom the integration tests.
changelog
new features
WorkerModulespallet (index 60, all runtimes): root-managed on-chain storage of worker protocol module code, context and config.ProtocolConfigHashselects the active config, so protocols can be upgraded without a node release.WorkerTestingpallet (index 200, develop runtime only) for testing protocol module upgrades.host_workers(default),host_curves,no_host_fns.worker/rebuild.sh, with the artifacts committed underworker/modules/.worker-toolsgainscompress,build-release-config,export-config-jsonandcheck-release-config.new external API
WorkerModules.register_protocol(root).WorkerModules.upload_protocol_module_code(root).WorkerModules.upload_protocol_module_context(root).WorkerModules.upload_protocol_module_config(root).WorkerTesting.test_version,set_protocol_version,set_enable_work_session,submit_work_request(develop runtime only).new events
WorkerModules.ProtocolRegistered.WorkerModules.ProtocolModuleCodeUploaded.WorkerModules.ProtocolModuleContextUploaded.WorkerModules.ProtocolModuleConfigUploaded.WorkerTesting.TestingProtocolTask(develop runtime only).other
ConfidentialAssetsinstant settlements.dart-v0protocol from the workspace so it can be built with its pinned older compiler.check-worker-modulesverifies the committed DART module artifacts are reproducible.worker_testingintegration test covering the upload/activate/upgrade cycle.