Joystream / Joystream/joystream

Generalised (Root Origin) Extrinsic Execution Proposal

Open
#2,868 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue proposal-system runtime urgent-post-mainnet
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Background

Currently, all proposals are hard-coded to execute a specific codepath, with hard-coded proposal parameters. If the council is to be able to control new parts of the runtime, for which there is no proposal, a new proposal has to be manually introduced.

Proposal

Our current approach is very safe, however, the ability to do generalized extrinsic invocation, even with Root Origin, can allow us to avoid introducing new proposals for every possible action, such as setting parameters, that we may want to do. By having this this action be wrapped in a specific proposal with proposal parameters equivalent to a Runtime upgrade, we do not sacrifice any security, but we make it easy for the council to manage the runtime in a no-code way as the runtime changes.

NB: only a single call should be allowed though, unless this problem has somehow been resolved https://github.com/Joystream/joystream/issues/4187

┆Issue is synchronized with this Asana task by Unito

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing hard-coded proposal execution paths and the constraint described in issue #4187. Define the scope and safety requirements for a generalized Root Origin extrinsic proposal, including the single-call restriction; done requires an agreed design that avoids adding a proposal for each runtime action.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.