Joystream / Joystream/joystream

Content directory smart contracts: Languages, categories and licenses

Open
#1,919 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

smart-contract-content-directory
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

If we'd only rely on the initial idea described in https://github.com/Joystream/joystream/issues/1816, then in order to update the set of avilable languages / categories / licenses we would need to update the metadata json schema that includes them (ie. in form of json-schema enum type), create a PR, publish new version of content directory lib and CLI and possibly update and re-deploy all other projects that rely on the previous schema (ie. query node and possibly Atlas once it includes uploading / channel management)

The easiest way to avoid that would be have some representation of categories and languages in smart contracts instead. This seems to be the only way to handle "choice type" video/channel properties for which we want curators / lead to be able to add new possible choices without the need to change any actual code (so perhaps that would also include licenses?)

In that case each language, category and license would have it's own distinct metadata (provided as json string) and the contracts would expose methods to add / update / remove entities, executable by the lead.

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 with the initial idea in issue 1816, then inspect the content directory metadata JSON schema, library, and CLI described here. Consider how languages, categories, and licenses would be represented in contracts and how the query node and Atlas might depend on the schema. Done means the scope defines contract methods for lead-controlled add, update, and removal without requiring schema or code releases.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.