Refactor all (demo) runtime modules to use new storage (#98)
* Completely rework dispatch mechanism into something modular. Not yet complete but 75% there. * Council vote tests. * Fix tests. * whitespace. * Fix demo runtime tests. * Fix up tests. * Remove dead code. * Timestamp uses new storage API. * Move over system module to new API. * Much nicer storage API, moved over staking module. * More refactoring. * Democracy uses new storage API. * Council uses new RPC. * Fix more tests. * Use match for Id * Use match for Id * Make PrivPass better protected. * Address other grumbles. * Give PrivPass a private member. * Testing PrivPass. * Add docs. * Recompile binaries after merge. * Remove duplicated code. * New binaries. * Docs * Docs * avoid use of (arguably) confusing terminology.
Showing
- demo/executor/src/lib.rs 17 additions, 17 deletionsdemo/executor/src/lib.rs
- demo/runtime/src/genesismap.rs 24 additions, 27 deletionsdemo/runtime/src/genesismap.rs
- demo/runtime/src/lib.rs 1 addition, 1 deletiondemo/runtime/src/lib.rs
- demo/runtime/src/runtime/council.rs 157 additions, 235 deletionsdemo/runtime/src/runtime/council.rs
- demo/runtime/src/runtime/council_vote.rs 37 additions, 59 deletionsdemo/runtime/src/runtime/council_vote.rs
- demo/runtime/src/runtime/democracy.rs 79 additions, 116 deletionsdemo/runtime/src/runtime/democracy.rs
- demo/runtime/src/runtime/session.rs 33 additions, 58 deletionsdemo/runtime/src/runtime/session.rs
- demo/runtime/src/runtime/staking.rs 185 additions, 235 deletionsdemo/runtime/src/runtime/staking.rs
- demo/runtime/src/runtime/system.rs 16 additions, 18 deletionsdemo/runtime/src/runtime/system.rs
- demo/runtime/src/runtime/timestamp.rs 8 additions, 10 deletionsdemo/runtime/src/runtime/timestamp.rs
- demo/runtime/wasm/target/wasm32-unknown-unknown/release/demo_runtime.compact.wasm 0 additions, 0 deletions.../wasm32-unknown-unknown/release/demo_runtime.compact.wasm
- demo/runtime/wasm/target/wasm32-unknown-unknown/release/demo_runtime.wasm 0 additions, 0 deletions...m/target/wasm32-unknown-unknown/release/demo_runtime.wasm
- polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm 0 additions, 0 deletions...m32-unknown-unknown/release/polkadot_runtime.compact.wasm
- polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm 0 additions, 0 deletions...rget/wasm32-unknown-unknown/release/polkadot_runtime.wasm
- substrate/runtime-support/src/lib.rs 1 addition, 1 deletionsubstrate/runtime-support/src/lib.rs
- substrate/runtime-support/src/storage/generator.rs 232 additions, 197 deletionssubstrate/runtime-support/src/storage/generator.rs
- substrate/runtime-support/src/storage/mod.rs 66 additions, 34 deletionssubstrate/runtime-support/src/storage/mod.rs
- substrate/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm 0 additions, 0 deletions...known-unknown/release/substrate_test_runtime.compact.wasm
- substrate/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.wasm 0 additions, 0 deletions...asm32-unknown-unknown/release/substrate_test_runtime.wasm
Please register or sign in to comment