1. Nov 30, 2018
    • Bastian Köcher's avatar
      Rewrite `impl_runtime_apis!` and `decl_runtime_apis!` as proc-macro (#1174) · ed421c56
      Bastian Köcher authored
      
      
      * Rewrites `impl_runtime_apis!` macro as `proc-macro`
      
      * Adds some documentation
      
      * Require the `impl_runtime_apis` to use a path for accessing the trait
      
      * Make the runtime implement `GetNodeBlockType`
      
      * Moves first chunk of runtime api code into the `impl_runtime_apis` macro
      
      This also renames `ClientWithApi` into `RuntimeApi`.
      
      * Make `impl_runtime_apis` use `runtime` api version automatically
      
      * `decl_runtime_apis` automatically adds `Block: BlockT` as generic parameter
      
      * Remove function generic arguments in block builder api
      
      * Remove some unnused stuff from the `decl_runtime_apis` macro
      
      * Make `InherentData` working again
      
      * Make `impl_runtime_apis!` implement the `RuntimeApi` side as well
      
      * Make it compile again after rebasing with master
      
      * Split `sr-api-macros` into multiple files
      
      * Reimplement `decl_runtime_apis!` as proc_macro
      
      * Use `decl_runtime_apis!` for `Core` as well and improve error reporting
      
      * Adds documentation for `decl_runtime_apis!` and `impl_runtime_apis!`
      
      * Move some code
      
      * Adds compile fail tests
      
      * Adds a test and fixes some bugs
      
      * Make `impl_runtime_apis!` support `_` as parameter name
      
      * Fixes build errors with wasm
      
      * Wasm rebuild after master rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Addresses some grumbles
      
      * Adds test to ensure that method signatures need to match
      
      * New wasm files
      ed421c56
  2. Nov 12, 2018
    • Luke Schoen's avatar
      docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix... · 037f9dde
      Luke Schoen authored
      docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix Readme Rustdoc names (#1016)
      
      * docs: Remove safe-mix since is no longer local dependency
      
      * docs: Fix existing packages link. Still only includes Substrate Core
      
      * docs: Remove empty package Readmes. Remove old docs links. Rename to Readme
      
      * docs: Remove link to old docs
      
      * misc: Merge latest from master. Renaem to sr-metadata. Fix list of RustDoc package names
      
      * Rename substrate-metadata to sr-metadata, since it is in the "srml" subdirectory
      
      * Change example to use package name that opens all packages in RustDocs
      
      * Fix list of packages names that are available to open in RustDocs
      
      * fix typo
      
      * fix ordering of CLI options and add missing backslash
      037f9dde
    • Gav Wood's avatar
      Remove unneeded Serde requirements (#1076) · 57b28963
      Gav Wood authored
      * Remove superfluous serde requirements.
      
      * Try to ensure hash is serde
      
      * Fixups
      
      * Building again
      
      * Attempt to reenable Block (doesn't build)
      
      * Fixes compilation for node cli
      
      * Fixes test compilation
      
      * Fix wasm
      
      * Fix tests
      
      * Remove unneeded changes
      
      * Fix up comments
      
      * Reenable some code
      
      * Compile error when origin misused.
      
      * Remove unnecessary includes of `serde_derive`
      
      * Cleanups
      57b28963
  3. Oct 25, 2018
  4. Oct 18, 2018
    • Bastian Köcher's avatar
      Move inherent implementation into the modules (#924) · 4132a49f
      Bastian Köcher authored
      * Adds new `ProvideInherent` trait
      
      Also implements the new trait for `srml/consensus` and `srml/timestamp`.
      
      * Adds `impl_outer_inherent!` macro
      
      * Reexport macros from `alloc`
      
      * Introduce `RuntimeString` and fix `ProvideInherent` on `no_std`
      
      * Replace `VersionString` with `RuntimeString`
      
      * Improvements for `impl_outer_inherent!`
      
      * Make `construct_runtime!` support `impl_outer_inherent!`
      
      * Fixes after rebase
      
      * Whitespace
      4132a49f
  5. Oct 10, 2018
  6. Oct 05, 2018
  7. Oct 01, 2018
  8. Sep 27, 2018
  9. Sep 20, 2018
    • Bastian Köcher's avatar
      Replace JSON metadata with custom metadata structures (#766) · 5d64be26
      Bastian Köcher authored
      * Move module metadata from json string to custom metadata
      
      * Revisit the metadata structures
      
      1. Move the structures into the metadata crate.
      2. Switch to using Cow/MaybeOwnedArray to support Encode/Decode
      
      * Adapt to new metadata structures
      
      * Convert event json metadata to new metadata structures
      
      * Convert storage json metadata to new metadata structures
      
      * Convert runtime metadata from json to new metadata structs
      
      * Implements new metadata structures in client and runtime
      
      * Fixes errors on `no_std`
      
      * Fixes errors after rebasing master
      
      * Do not use `Cow` anymore in metadata
      
      Also replace `String` with our own type definition `StringBuf`.
      This fixes compilation on `no_std`.
      
      * Wrap `RuntimeMetadata` in `RuntimeMetadataVersioned` to support versioning
      
      * Move metadata into `srml` and make core unaware of the implementation
      5d64be26
  10. Sep 17, 2018
    • Bastian Köcher's avatar
      Implement `construct_runtime!` macro (#751) · 597ea41c
      Bastian Köcher authored
      * Make `system` module renamable in `impl_outer_event!`
      
      * Implement `construct_runtime!` macro
      
      This macro generates code for calling all the common `impl_outer_*` macros.
      
      * Add documentation
      
      * Fixes wrong declaration of `contract`
      
      * Update dependencies to work on `no_std`
      
      * One more `Cargo.lock` update
      
      * Address comments
      597ea41c
  11. Sep 13, 2018
  12. Sep 12, 2018
    • Gav Wood's avatar
      Phase 1 of repo reorg (#719) · 1e011625
      Gav Wood authored and Arkadiy Paronyan's avatar Arkadiy Paronyan committed
      * Remove unneeded script
      
      * Rename Substrate Demo -> Substrate
      
      * Rename demo -> node
      
      * Build wasm from last rename.
      
      * Merge ed25519 into substrate-primitives
      
      * Minor tweak
      
      * Rename substrate -> core
      
      * Move substrate-runtime-support to core/runtime/support
      
      * Rename/move substrate-runtime-version
      
      * Move codec up a level
      
      * Rename substrate-codec -> parity-codec
      
      * Move environmental up a level
      
      * Move pwasm-* up to top, ready for removal
      
      * Remove requirement of s-r-support from s-r-primitives
      
      * Move core/runtime/primitives into core/runtime-primitives
      
      * Remove s-r-support dep from s-r-version
      
      * Remove dep of s-r-support from bft
      
      * Remove dep of s-r-support from node/consensus
      
      * Sever all other core deps from s-r-support
      
      * Forgot the no_std directive
      
      * Rename non-SRML modules to sr-* to avoid match clashes
      
      * Move runtime/* to srml/*
      
      * Rename substrate-runtime-* -> srml-*
      
      * Move srml to top-level
      1e011625
  13. Sep 11, 2018
    • Chevdor's avatar
      Remove polkadot doc from substrate (#700) · da56ae7e
      Chevdor authored
      * Improve doc
      
      - convert some md to adoc
      - include contrib docs to the main readme
      - add readme for some packages and include them
      
      * Bring changes from 46c9333f into the replacing adoc file
      
      * Minor fixes
      
      * Remove files irrelevant for substrate
      
      * Remove old polkadot related doc
      da56ae7e
  14. Sep 10, 2018
    • Svyatoslav Nikolsky's avatar
      DigestItem trait (v3) (#687) · 0e1023ae
      Svyatoslav Nikolsky authored
      * DigestItem v4
      
      * tests
      
      * wording
      0e1023ae
    • Bastian Köcher's avatar
      Implements `json_metadata` RPC call (#692) · ba23d033
      Bastian Köcher authored
      * Adds `impl_json_metadata!` for generating all metadata of a runtime
      
      * Adds `json_metadata` RPC call
      
      * Adds simple test for the `json_metadata` RPC call
      
      * Implements json metadata in the demo runtime
      
      * Fix indent
      
      * Adds missing copyright headers
      
      * Dispatch json metadata renamings and improvements
      
      * Replaces `format!` & `String` with `Vec<JSONMetadata`
      
      * Implements `Encode` and `Decode` for JSONMetadata
      
      * Make `impl_json_metadata!` compileable on `no_std`
      
      * Adapt the client to decode the correct type for `json_metadata`
      
      * Fixes compile error and warning
      
      * Whitespace
      ba23d033
    • Gav Wood's avatar
      Council motions for approving treasury proposals (#694) · bcc26dd3
      Gav Wood authored
      * Treasury in runtime, generic approve/reject
      
      * Add logic for council origin
      
      * Add tests.
      
      * Configurable number of members in EnsureMembers
      
      * Fix grumbles
      
      * Fix spelling
      
      * Comment
      bcc26dd3
  15. Sep 07, 2018
    • Gav Wood's avatar
      New extrinsic dispatch model (#678) · 761bc9f7
      Gav Wood authored
      * System and Balances switched to new call model
      
      * Fixed up executive for new pardigm
      
      * Consensus works with Origin
      
      * Timestamp ported over
      
      * Session now compatible
      
      * Ported staking
      
      * Treasury compatible
      
      * Expunge MaybeEmpty
      
      * Make democracy work
      
      * Council compatible
      
      * Remove some aux-dispatch stuff and fix balances
      
      * Rename aux -> origin, fix contracts
      
      * Fix test
      
      * Fix example
      
      * Update macro to remove superfluous cruft
      
      * Make work with new macro
      
      * Tests
      
      * Fix some tests
      
      * Tests
      
      * Fix grumbles
      
      * Final grumble
      761bc9f7
    • Bastian Köcher's avatar
      Implement json metadata for outer events (#672) · 6bc48fda
      Bastian Köcher authored
      Progress on: #535
      6bc48fda
  16. Sep 05, 2018
    • Bastian Köcher's avatar
      Implement storage json metadata (#670) · b538733a
      Bastian Köcher authored
      * `decl_storage!` exposes json metadata about the storage
      
      The metadata can be accessed by calling `store_json_metadata()`.
      
      * Hide internal macros in the documentation
      
      * Include the function documentation in the store json metadata
      
      * Adapt the storage declarations to use doc comments
      b538733a
    • Svyatoslav Nikolsky's avatar
      DigestItem trait (v2) (#650) · be7cb74b
      Svyatoslav Nikolsky authored
      * DigestItem trait
      
      * removed autoimpl in impl_outer_log
      
      * StubDigestItem -> ()
      be7cb74b
  17. Sep 04, 2018
  18. Aug 31, 2018
  19. Aug 28, 2018
    • Gav Wood's avatar
      Introduce Runtime Events (#607) · 278a054b
      Gav Wood authored
      * Squashed commit.
      
      New slashing mechanism (#554)  …
      * Slashing improvements
      
      - unstake when balance too low
      - unstake after N slashes according to val prefs
      - don't early-terminate session/era unless unstaked
      - offline grace period before punishment
      * Fix warning
      * Cleanups and ensure slash_count decays
      * Bump authoring version and introduce needed authoring stub
      * Rename
      * Fix offline tracker
      * Fix offline tracker
      * Renames
      * Add test
      * Tests
      * Tests.
      Remove accidental merge files.
      Merge remote-tracking branch 'origin/master' into gav-new-pos
      Version bump, fixes (#572)  …
      * Bump version, don't propose invalid blocks
      * Fix build.
      * Fixes.
      * More fixes.
      * Fix tests.
      * Fix more tests
      * More tests fixed
      Fix merge
      Fix accidental merge bug
      Fixes.
      Staking failsafes  …
      - Don't slash/unstake/change session when too few staking participants
      - Introduce set_balance PrivCall
      Make minimum validator count dynamic.
      test fixes
      Fix tests.
      Fix tests
      Fix tests, update readme.
      Merge remote-tracking branch 'origin/master' into gav-new-pos
      Test with release.
      Use safe math when dealing with total stake
      Fix test again.
      Introduce events into runtime.
      Fix tests
      Add events for account new/reap
      Integration-style tests for events.
      
      * Remove old code
      278a054b
  20. Aug 27, 2018
    • Guanqun Lu's avatar
      rename Polkadot to Substrate in the license header via following four commands (#614) · 58bba898
      Guanqun Lu authored
      git grep -l 'This file is part of Polkadot' | xargs sed -i 's/This file is part of Polkadot/This file is part of Substrate/g'
          git grep -l 'Polkadot is free software' | xargs sed -i 's/Polkadot is free software/Substrate is free software/g'
          git grep -l 'Polkadot is distributed in the hope' | xargs sed -i 's/Polkadot is distributed in the hope/Substrate is distributed in the hope/g'
          git grep -l 'along with Polkadot' | xargs sed -i 's/along with Polkadot/along with Substrate/g'
      58bba898
  21. Jun 18, 2018
    • Gav Wood's avatar
      Enumeratable accounts (#195) · e53c17d6
      Gav Wood authored
      * Merge remote-tracking branch 'origin/master' into gav-xts-dont-panic
      
      * Update wasm.
      
      * consensus, session and staking all panic-safe.
      
      * Democracy doesn't panic in apply.
      
      * Fix tests.
      
      * Extra helper macro, council depanicked.
      
      * Fix one test.
      
      * Fix up all council tests. No panics!
      
      * Council voting depanicked.
      
      * Dispatch returns result.
      
      * session & staking tests updated
      
      * Fix democracy tests.
      
      * Fix council tests.
      
      * Fix up polkadot parachains in runtime
      
      * Fix borked merge
      
      * More Slicable support
      
      Support general `Option` and array types.
      
      * Basic storage types.
      
      * Existential deposit for contract creation
      
      * Basic implemnetation along with removals
      
      * Fix tests.
      
      * externalities builder fix.
      
      * Tests.
      
      * Fix up the runtime.
      
      * Fix tests.
      
      * Add generic `Address` type.
      
      * Initial function integration of Address into Extrinsic.
      
      * Fix build
      
      * All tests compile.
      
      * Fix (some) tests.
      
      * Fix signing.
      
      * Push error.
      
      * transfer can accept Address
      
      * Make Address generic over AccountIndex
      
      * Fix test
      
      * Make Council use Address for dispatch.
      
      * Fix build
      
      * Bend over backwards to support braindead derive.
      
      * Repot some files.
      
      * Fix tests.
      
      * Fix grumbles
      
      * Remove Default bound
      
      * Fix build for new nightly.
      
      * Make `apply_extrinsic` never panic, return useful Result.
      
      * More merge hell
      
      * Doesn't build, but might do soon
      
      * Serde woes
      
      * get substrate-runtime-staking compiling
      
      * Polkadot builds again!
      
      * Fix all build.
      
      * Fix tests & binaries.
      
      * Reserve some extra initial byte values of address for future format changes
      
      * Make semantic of `ReservedBalance` clear.
      
      * Fix panic handler.
      
      * Integrate other balance transformations into the new model
      
      Fix up staking tests.
      
      * Fix runtime tests.
      
      * Fix panic build.
      
      * Tests for demonstrating interaction between balance types.
      
      * Repot some runtime code
      
      * Fix checkedblock in non-std builds
      
      * Get rid of `DoLookup` phantom.
      
      * Attempt to make transaction_pool work with lookups.
      
      * Remove vscode settings
      
      * New attempt at making transaction pool work.
      
      * It builds again!
      
      * --all builds
      
      * Fix tests.
      
      * New build.
      
      * Test account nonce reset.
      
      * polkadot transaction pool tests/framework.
      
      * Address grumbles.
      
      * Revert bad `map_or`
      
      * Rebuild binaries, workaround.
      
      * Avoid casting to usize early.
      
      * reenable sync tests
      e53c17d6
  22. Jun 06, 2018
    • Gav Wood's avatar
      Make substrate generic (#169) · b94cf078
      Gav Wood authored and asynchronous rob's avatar asynchronous rob committed
      * 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
      b94cf078
  23. Jun 01, 2018
    • Gav Wood's avatar
      Runtime dispatch calls return `Result` (#192) · a306074e
      Gav Wood authored
      * Merge remote-tracking branch 'origin/master' into gav-xts-dont-panic
      
      * Update wasm.
      
      * consensus, session and staking all panic-safe.
      
      * Democracy doesn't panic in apply.
      
      * Fix tests.
      
      * Extra helper macro, council depanicked.
      
      * Fix one test.
      
      * Fix up all council tests. No panics!
      
      * Council voting depanicked.
      
      * Dispatch returns result.
      
      * session & staking tests updated
      
      * Fix democracy tests.
      
      * Fix council tests.
      
      * Fix up polkadot parachains in runtime
      
      * Fix borked merge
      a306074e
  24. May 31, 2018
    • Gav Wood's avatar
      Public extrinsic apply doesn't panic (#178) · 44eaa4a1
      Gav Wood authored
      * Merge remote-tracking branch 'origin/master' into gav-xts-dont-panic
      
      * Update wasm.
      
      * consensus, session and staking all panic-safe.
      
      * Democracy doesn't panic in apply.
      
      * Fix tests.
      
      * Extra helper macro, council depanicked.
      
      * Fix one test.
      
      * Fix up all council tests. No panics!
      
      * Council voting depanicked.
      
      * utilise hygene
      44eaa4a1
  25. May 25, 2018
    • asynchronous rob's avatar
      Minimal parachain framework part 1 (#113) · 27aafb0a
      asynchronous rob authored
      * dynamic inclusion threshold calculator
      
      * collators interface
      
      * collation helpers
      
      * initial proposal-creation future
      
      * create proposer when asked to propose
      
      * remove local_availability duty
      
      * statement table tracks includable parachain count
      
      * beginnings of timing future
      
      * finish proposal logic
      
      * remove stray println
      
      * extract shared table to separate module
      
      * change ordering
      
      * includability tracking
      
      * fix doc
      
      * initial changes to parachains module
      
      * initialise dummy block before API calls
      
      * give polkadot control over round proposer based on random seed
      
      * propose only after enough candidates
      
      * flesh out parachains module a bit more
      
      * set_heads
      
      * actually introduce set_heads to runtime
      
      * update block_builder to accept parachains
      
      * split block validity errors from real errors in evaluation
      
      * update WASM runtimes
      
      * polkadot-api methods for parachains additions
      
      * delay evaluation until candidates are ready
      
      * comments
      
      * fix dynamic inclusion with zero initial
      
      * test for includability tracker
      
      * wasm validation of parachain candidates
      
      * move primitives to primitives crate
      
      * remove runtime-std dependency from codec
      
      * adjust doc
      
      * polkadot-parachain-primitives
      
      * kill legacy polkadot-validator crate
      
      * basic-add test chain
      
      * test for basic_add parachain
      
      * move to test-chains dir
      
      * use wasm-build
      
      * new wasm directory layout
      
      * reorganize a bit more
      
      * Fix for rh-minimal-parachain (#141)
      
      * Remove extern "C"
      
      We already encountered such behavior (bug?) in pwasm-std, I believe.
      
      * Fix `panic_fmt` signature by adding `_col`
      
      Wrong `panic_fmt` signature can inhibit some optimizations in LTO mode.
      
      * Add linker flags and use wasm-gc in build script
      
      Pass --import-memory to LLD to emit wasm binary with imported memory.
      
      Also use wasm-gc instead of wasm-build.
      
      * Fix effective_max.
      
      I'm not sure why it was the way it was actually.
      
      * Recompile wasm.
      
      * Fix indent
      
      * more basic_add tests
      
      * validate parachain WASM
      
      * produce statements on receiving statements
      
      * tests for reactive statement production
      
      * fix build
      
      * add OOM lang item to runtime-io
      
      * use dynamic_inclusion when evaluating as well
      
      * fix update_includable_count
      
      * remove dead code
      
      * grumbles
      
      * actually defer round_proposer logic
      
      * update wasm
      
      * address a few more grumbles
      
      * grumbles
      
      * update WASM checkins
      
      * remove dependency on tokio-timer
      27aafb0a
  26. Apr 04, 2018
    • Gav Wood's avatar
      Traitify Runtime (#104) · bd066e27
      Gav Wood authored
      * Factor out safe-mix and dispatch
      
      * Refactor dispatch into something more modular.
      
      * Fix wasm build.
      
      * Fix up timestamp
      
      * fix warnings.
      
      * Borked timestamp example
      
      * Fix build
      
      * Timestamp as skeleton for traity runtime.
      
      * New storage macro.
      
      * Dispatch module has traity API.
      
      * Move consensus module to new API
      
      * Refactoring and outer dispatch
      
      * Avoid unnecessary derives.
      
      * Abstract the low-level half of system.
      
      * nicer outer dispatch syntax.
      
      * Make runtime compile again (albeit in a heavily simplified state)
      
      * Reworking runtime and the upper levels of system.
      
      * Initial reworking of runtime:
      
      - Introduced executive module;
      - Introduced trait primitives module;
      - Provided an API endpoint.
      
      * Expose an additional function in system
      
      * Another couple of functions traitified in executive.
      
      * another function in executive traitified.
      
      * One more function traitified.
      
      * Finish traitifying executive!
      
      * Traitify session module.
      
      * Cleanups and ensure session gets run.
      
      * First part of traitification of staking module.
      
      * Bit more of staking traitified.
      
      * Additional stuff in staking. Fix up session.
      
      * Penultimate part of staking module.
      
      * Final part of staking (code)
      
      * Update demo runtime to include staking.
      
      * Final tweaks for staking integration.
      
      * Remove old runtime files.
      
      * Schedule staking.
      
      * Minor fixes
      
      * First bits of democracy.
      
      * Democracy module integrated.
      
      * Fix warning.
      
      * Traitify and integrate council module
      
      * Council voting.
      
      * Runtime binary and tweaks.
      
      * Binary update.
      
      * Fix `*Type` grumble.
      
      * Fix up genesis_map
      
      * Remove NonTrivialSlicable
      
      * Staking "test externalities" stuff along with refactor.
      
      * Add session test externalities constructor
      
      * Fixed executor tests.
      
      * Make one test in executive module work.
      
      * Remove test framework stuff into common module.
      
      * Enable other tests in executive
      
      * Session tests reinstated, minor refactoring of keyring.
      
      * Fix staking tests.
      
      * Fix up democracy tests.
      
      * First few tests in council.
      
      * Council tests reinstated :)
      
      * Avoid hardcoding blake2 into Header.
      
      * Fix last few tests.
      
      * Make all primitives generic.
      
      * Fix tests.
      
      * Refactor runtime to remove genesismap.
      
      * Streamline runtime more with macrofied config.
      
      * Clean paths
      
      * Fix warning.
      
      * Consolidate demo runtime crate.
      
      * Remove stale code.
      
      * Refactor away dodgy trait.
      
      * Add corresponding Aux type.
      
      * Fixes
      
      * Rename Digesty -> Digest
      
      * Rename Headery -> Header
      
      * Blocky -> Block
      
      * Fix wasm build.
      
      * kill warnings
      
      * more docs
      
      * minor cleanups
      bd066e27
  27. Mar 19, 2018
    • Gav Wood's avatar
      Refactor all (demo) runtime modules to use new storage (#98) · 1ecd05da
      Gav Wood authored
      * 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.
      1ecd05da
  28. Mar 14, 2018
    • asynchronous rob's avatar
      runtime-storage macro (#86) · 68515bd9
      asynchronous rob authored
      * initial draft of the macro
      
      * traits for all storage types
      
      * test for list wrapper
      
      * map API
      
      * move generator to runtime-support
      
      * specialize traits further for runtime storage
      
      * restore storage vec for unhashed
      68515bd9
  29. Feb 12, 2018
    • Gav Wood's avatar
      Additional runtime tests for the test-runtime (#69) · f344e15b
      Gav Wood authored and asynchronous rob's avatar asynchronous rob committed
      * Remove rustc dependency from ed25519 and refactor a little.
      
      * Runtime support provides more extensive test-key functionality.
      
      * Additional APIs for ed25519 stuff.
      
      * Extensive test for test-runtime.
      
      * Fixes for the new test key API.
      
      * Additional convenience for tests
      
      * Take advantage of more convenient API.
      
      * Redo formating.
      
      * Remove old test identities.
      
      * Remove boilerplate, add test.
      
      * Refactor out unneeded code.
      
      * Clean up algo for determining authorities.
      
      * Remove unneeded API.
      
      * Make `to_*` consume
      
      * Only export keyring when testing
      
      * Fix build & warning
      
      * Extract Keyring into separate library.
      
      * Add tests for Keyring and a trait-based API.
      
      * Address grumbles.
      f344e15b
  30. Feb 09, 2018
    • Gav Wood's avatar
      Introduce toy runtime for testing inside substrate. (#66) · dec6e823
      Gav Wood authored
      * Introduce simple blockchain runtime for substrate tests.
      
      * Remove bad files.
      
      * Add needed wasm binaries.
      
      * Refactoring.
      
      - Repot files in test-runtime.
      - Rename troublesome `Joiner::join` to `Joiner::and`.
      - Rework `Slicable` to dedup code.
      
      * More fixes and refactoring
      
      * Rebuild substrate test wasm.
      
      * Fix merge errors.
      
      * Rename the disasterously named `to_vec` to `encode`.
      
      Also rename `as_slice_then` to `with_encoded`.
      
      * Tests for toy runtime.
      
      * Fix doc nit
      dec6e823
  31. Feb 08, 2018
  32. Feb 07, 2018
    • Gav's avatar
      Many renames. · 5c842f77
      Gav authored
      - Everything polkadot becomes polkadot-.
      - Wasm (substrate) executor tests split from Wasm (Polkadot) runtime and
      built independently.
      5c842f77
  33. Jan 30, 2018