Make substrate generic (#169)
* Some initial work on RPC and client * Rephrase as params * More work on traitifying substrate. * Traitify in_mem.rs * traitify client.rs * Make new primitives (mainly traits) build again. * Many (superficial) build fixes throughout. * Fix remaining build issues up to bft interface. * Make bft primitives be generic. * Switch out MisBehaviorReport for generic version. * Merge Hashing into Header. * Update runtime for new generics (with Hashing). * Update demo runtime. * Make runtime compile. * Build fixes for runtime * Remove old modules. * port substrate-bft to use generic substrate types * port client * port substrate-test-runtime * mostly port test-runtime to get compiling for std * Ensure `AccountId` has a `Default`. * Fix type deps. * finish porting * initialize test_runtime from genesis correctly * remove commented code * maybe unsigned signatures * runtimes compile * port over most of network * serialization for generic types * fix comment * remove some unnecessary trait bounds * network compiles * tests compile for sync * fix deserialization * temporarily remove deserialize derives * workarounds for serde issues for deriving deserialization * get demo-runtime compiling on std * port extrinsic-pool * primitives reshuffling * get network compiling again * remove debugging file * runtime tests now passing * port client-db * start to port over substrate-rpc * mostly port over PolkadotApi * test_runtime follows normal conventions * substrate runtime tests pass * deal with inherent extrinsics correctly in polkadot-api * port transaction-pool * port polkadot-consensus * port substrate-rpc * everything compiles * tests compile * fix grumbles * test-runtime uses its own transfer type * switch to master branch of jsonrpc * fix network tests and some warnings * all tests pass locally * [ci-skip] add another comment about issue * remove some curlies
Showing
- polkadot/api/src/full.rs 86 additions, 155 deletionspolkadot/api/src/full.rs
- polkadot/api/src/lib.rs 21 additions, 28 deletionspolkadot/api/src/lib.rs
- polkadot/api/src/light.rs 26 additions, 22 deletionspolkadot/api/src/light.rs
- polkadot/cli/Cargo.toml 1 addition, 7 deletionspolkadot/cli/Cargo.toml
- polkadot/cli/src/informant.rs 5 additions, 6 deletionspolkadot/cli/src/informant.rs
- polkadot/cli/src/lib.rs 5 additions, 9 deletionspolkadot/cli/src/lib.rs
- polkadot/collator/Cargo.toml 2 additions, 1 deletionpolkadot/collator/Cargo.toml
- polkadot/collator/src/lib.rs 3 additions, 2 deletionspolkadot/collator/src/lib.rs
- polkadot/consensus/Cargo.toml 1 addition, 0 deletionspolkadot/consensus/Cargo.toml
- polkadot/consensus/src/error.rs 2 additions, 2 deletionspolkadot/consensus/src/error.rs
- polkadot/consensus/src/evaluation.rs 7 additions, 9 deletionspolkadot/consensus/src/evaluation.rs
- polkadot/consensus/src/lib.rs 38 additions, 35 deletionspolkadot/consensus/src/lib.rs
- polkadot/consensus/src/service.rs 45 additions, 57 deletionspolkadot/consensus/src/service.rs
- polkadot/consensus/src/shared_table/mod.rs 2 additions, 2 deletionspolkadot/consensus/src/shared_table/mod.rs
- polkadot/executor/Cargo.toml 0 additions, 12 deletionspolkadot/executor/Cargo.toml
- polkadot/executor/src/lib.rs 0 additions, 7 deletionspolkadot/executor/src/lib.rs
- polkadot/primitives/src/lib.rs 51 additions, 21 deletionspolkadot/primitives/src/lib.rs
- polkadot/primitives/src/parachain.rs 26 additions, 63 deletionspolkadot/primitives/src/parachain.rs
- polkadot/runtime/Cargo.toml 2 additions, 2 deletionspolkadot/runtime/Cargo.toml
- polkadot/runtime/src/lib.rs 168 additions, 23 deletionspolkadot/runtime/src/lib.rs
Please register or sign in to comment