CodeChain-io / CodeChain-io/foundry
Devise a way to add a substorage when new module are deployed
- Lingua principale
- Rust
- Stelle
- 36
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Non è indicato alcun file o test. Inizia tracciando come l'aggiunta di un substorage vuoto modifica l'hash radice e come il deployment del modulo registra i cambiamenti di stato, quindi esamina lo schema di governance e upgrade on-chain. Il lavoro è completato quando il progetto dispone di un approccio definito per introdurre un modulo con nuovo stato senza transazioni non necessarie che modificano lo stato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- blockchain
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100