CodeChain-io / CodeChain-io/foundry
Devise a way to add a substorage when new module are deployed
- 主要言語
- Rust
- スター
- 36
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently just adding an empty substorage for ongoing use is considered a state change, resulting in a new root hash. It means that there must conceptually be a transaction to add a new empty substorage. When we upgrade applications, there might be cases where a new module with its own state is introduced. And this behavior introduces some hassles.
I'm not sure if this problem is solved if we can add an empty substorage without a transaction and the state changes only upon a change to the substorage. But it might be so.
We need to inspect this problem at least when we design the on-chain governance and upgrade scheme.
コントリビューションガイド
調査の方向性
ファイルもテストも指定されていません。まず、空の substorage を追加すると root hash がどのように変化するか、またモジュールのデプロイが状態の変更をどのように記録するかを追跡し、その後 on-chain のガバナンスおよびアップグレード方式を調査してください。プロジェクトが、不要な状態変更トランザクションなしで新しい状態を持つモジュールを導入するための定義済みのアプローチを備えていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- blockchain
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100