1. Nov 12, 2018
    • 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
  2. Nov 06, 2018
    • Hero Bird's avatar
      Update fixed-hash & uint utilities (#1078) · 660c747c
      Hero Bird authored
      * [core/primitives] Update crunchy 0.1 => 0.2
      
      * [core/primitives] Update fixed-hash 0.2 => 0.3.0-beta
      
      * [core/primitives] Update `uint` 0.4 => 0.5.0-beta
      
      * [core/state-machine] Fix errors emerged by fixed-hash update
      
      * [core/state-db] Fix errors that emerged from fixed-hash update
      
      * [core/sr-io] Fix errors that emerged from the fixed-hash update
      
      * [core/trie] Fix errors emerged from fixed-hash updates
      
      * [core/trie] Make use of new Hash::as_fixed_bytes_mut method in tests
      
      * [core/sr-primitives] Fix errors emerged from updating fixed-hash
      
      * [core/executor] Fix errors that emerged from fixed-hash update
      
      * [core/test-runtime] Fix errors that emerged from updating fixed-hash
      
      * [core/test-runtime] Fix an error that emerged from fixed-hash update
      
      * [core/transaction-pool] Fix errors that emerged from updating fixed-hash
      
      * Add From<u64> impl for hash types defined in core/primitives
      
      * [core/client/db] Fix errors that emerged from fixed-hash update
      
      * [core/{client/network/rpc}]: Fix errors emerged by fixed-hash update
      
      * [node/{cli/executor/runtime}]: Fix errors emerged by updating fixed-hash
      
      * [core/network]: Fix bug in parsing constant str
      
      * Update Cargo.lock
      
      - Add crunchy 0.2.1
      - fixed-hash 0.2.2 => 0.3.0-beta.3
      - Add static-assertions 0.2.5
      - uint 0.4.1 => 0.5.0-beta.1
      
      * [core/primitives]: Add fixed-hash/rustc-hex feature for FromStr impl
      
      * [core/primitives] No longer provide From<u64> impl for hash types if byteorder support is not enabled
      
      * [core/primitives] Revert to using From impl again in primitives tests
      
      * [core/..] Fix some bugs that emerged by recent fixed-hash updates
      
      * Update a bunch of Cargo.lock files
      
      * [core/state-db] Re-add whitespace between attr and extern crate/mod
      
      * [core/primitives] Fix bug in From<u64> impl for hash types using the wrong feature guard
      660c747c
  3. Nov 02, 2018
  4. Oct 27, 2018
    • Benjamin Kampmann's avatar
      Consensus Engines Implementation: Aura (#911) · 50adea62
      Benjamin Kampmann authored
      * Generalize BlockImport
      
       - move ImportBlock, BlockOrigin, ImportResult into shared sr-primitives
       - let Consensus provide  and  traits again
       - update consensus traits to latest development
       - implement traits on client::Client, test_client::TestClient
       - update RHD to use the new import_block API
      
      * Move ImportBlock into consensus-common
      * Send import notification in aura tests
      * Integrating aura into service
      * Make Signatures more generic
      * Aura Block Production with the given key
      * run aura on the thread pool
      * start at exact step start in aura
      * Add needed wasm blob, in leiu of better solutions.
      * Make API ids consistent with traits and bring upstream for sharing.
      * Add decrease_free_balance to Balances module
      * Encode `Metadata` once instead of two times
      * Bitops include xor
      * Upgrade key module.
      * Default pages to somewhat bigger.
      * Introduce upgrade key into node
      * Add `Created` event
      50adea62
  5. Oct 25, 2018
  6. Oct 20, 2018
    • Gav Wood's avatar
      Add Assets module (#925) · 583c24f0
      Gav Wood authored
      * Add Assets module
      
      * Fixes
      
      * Fix
      
      * Update comments
      
      * Support `GenesisConfig` without any fields
      
      Fixes: #923
      
      * Do not generate an empty `GenesisConfig`, instead generate no `GenesisConfig`
      583c24f0
  7. Oct 19, 2018
    • Svyatoslav Nikolsky's avatar
      Moved DigestItem impl to impl_outer_log (#932) · ca38fd72
      Svyatoslav Nikolsky authored
      * moved DigestItem impl to impl_outer_log
      
      * Enable backtrace collecting on the CI
      
      * internal module is not required in impl_outer_log
      
      * Revert "internal module is not required in impl_outer_log"
      
      This reverts commit 5430446971cdf5fd5735863b86cd08a11d35d1dd.
      
      * Revert "moved DigestItem impl to impl_outer_log"
      
      This reverts commit 8872bbee963dbb4316251222f5c0757303fb3f52.
      
      * Revert "Revert "moved DigestItem impl to impl_outer_log""
      
      This reverts commit 47afd59682f8828665bd9cfb293b40ce4c4787af.
      
      * Revert "Revert "internal module is not required in impl_outer_log""
      
      This reverts commit 9ae640010c00ef134099d5b6a4430d330be134b2.
      
      * More diagnostics
      
      * check if only 1 test fails
      
      * test is back + some "traces"
      
      * removed some traces
      
      * removed "traces"
      ca38fd72
  8. 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
  9. Oct 16, 2018
    • Gav Wood's avatar
      Compact format for block number, nonce, balance (#910) · 8bc5242c
      Gav Wood authored
      * Try to make everything compact
      
      * Make `Clone` work
      
      * Fix
      
      * Move contracts and balances over to compact encoding
      
      * Session and timestamp are compact
      
      * Sataking uses compact numbers
      
      * Treasury now compact
      
      * Compact Democracy
      
      * Council is compact
      
      * Fix
      8bc5242c
    • Bastian Köcher's avatar
      Adds `check_inherents` function to the `BlockerBuilder` API (#912) · 8de663f1
      Bastian Köcher authored
      * Adds new `check_inherents` function to the `BlockBuilder` API
      
      * Switch to `check_inherents` in `node-consensus`
      
      * Remove `CheckedBlock`, because it is not required anymore
      
      * Fixes after rebase
      
      * Fixes compilation on stable
      8de663f1
    • Benjamin Kampmann's avatar
      Generalize the Consensus Infrastructure (#883) · ac4bcf87
      Benjamin Kampmann authored
      * Split out Consensus
      * Supply ImportQueue through network-service
        - simplify ImportQueue.import_blocks
        - remove Deadlock on import_block
        - Adding Verifier-Trait
        - Implement import_queue provisioning in service; allow cli to import
      * Allow to actually customize import queue
      * Consensus Gossip: Cache Message hash per Topic
      ac4bcf87
  10. Oct 09, 2018
    • Bastian Köcher's avatar
      Runtime API clean up (#892) · 6b4b8b8f
      Bastian Köcher authored
      * Rename `NewTxQueue` to `TaggedTransactionQueue`
      
      * Remove `BlockBuilder` API and support adding documentation to the API functions
      
      * Adds new `BlockBuilder` API
      
      * Fixes compilation with new `BlockBuilder` API
      
      * Some more cleanup
      
      * Cargo.lock update
      
      * Try to fix on stable
      6b4b8b8f
    • Bastian Köcher's avatar
      Refactor the runtime API to use traits. (#878) · 2c65ad6c
      Bastian Köcher authored
      * Add missing `As` imports.
      
      * Adds new API traits that will be used by the client and runtime
      
      * Switch consensus to new API's
      
      * Switches transaction-pool to new API's
      
      * Move runtime api stuff into its own crate
      
      * Adds `impl_apis!` macro for implementing the new API traits
      
      * Make `metadata` return directly a blob
      
      * Runtime replace `impl_stubs!` with `impl_apis!`
      
      * Switches to none feature based approach for declaring the different API traits
      
      * Fixes compilation error
      
      * Fixes errors
      
      * Make the `decl_apis!` trait usable from the outside
      
      * Make the `test-client` use the new API traits
      
      * Remove last `impl_stubs!` bits and move some of them into wasm executor for tests
      
      * A little bit more documentation
      2c65ad6c
  11. Oct 05, 2018
  12. Sep 30, 2018
  13. Sep 28, 2018
    • Arkadiy Paronyan's avatar
      Integration tests (#805) · 9a660f82
      Arkadiy Paronyan authored
      * Started substrate tests
      
      * Sync test
      
      * Test updates
      
      * Improved tests
      
      * Use on-chain block delay
      
      * Parallel test execution
      
      * Otimized tests
      
      * Logging
      
      * Fixed racing test
      
      * Fixed compilation
      
      * Fixed timestamp test
      
      * Removed rlp dependency
      
      * Minor fixes
      
      * Fixed tests
      
      * Removed best_block_id and resolved fdlimit issue
      
      * Whitespace
      
      * Use keyring
      
      * Style
      
      * Added API execution setting
      
      * Removed stale import
      9a660f82
  14. Sep 27, 2018
  15. Sep 25, 2018
  16. Sep 21, 2018
  17. Sep 20, 2018
    • Gav Wood's avatar
      Transaction eras (#758) · 67bf1a6e
      Gav Wood authored
      * Initial groundwork
      
      * A mess.
      
      * Integrate
      
      * Fix tests
      
      * Unit tests
      
      * Tests for unchecked_extrisnic
      
      * fix tab
      
      * Improve binary format.
      
      * fix tests
      
      * Rename extrinsic-pool -> transaction-pool
      
      Closes #770
      
      * Implement unimplemented.
      
      * typo
      67bf1a6e
    • 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
  18. Sep 19, 2018
  19. Sep 18, 2018
    • Svyatoslav Nikolsky's avatar
      Light friendly storage tracking: changes trie + extending over ranges (#628) · 7fa337af
      Svyatoslav Nikolsky authored
      * changes_trie
      
      * changs_trie: continue
      
      * changes_trie: adding tests
      
      * fixed TODO
      
      * removed obsolete ExtrinsicChanges
      
      * encodable ChangesTrieConfiguration
      
      * removed polkadot fle
      
      * fixed grumbles
      
      * ext_storage_changes_root returns u32
      
      * moved changes trie root to digest
      
      * removed commented code
      
      * read storage values from native code
      
      * fixed grumbles
      
      * fixed grumbles
      
      * missing comma
      7fa337af
  20. Sep 17, 2018
    • Gav Wood's avatar
      Generalised Transaction Queue API (#741) · f10d8e17
      Gav Wood authored
      * First effort
      
      * API versioning
      
      * Introduce validate_transaction
      
      * Introduce the API plus fixes.
      
      * Docs
      
      * Typo
      
      * Add longevity parameter to transaction validity info.
      f10d8e17
    • 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
  21. Sep 12, 2018
    • Bastian Köcher's avatar
    • 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
  22. Sep 11, 2018
  23. Sep 10, 2018
    • Gav Wood's avatar
      Council events (#703) · c9845f33
      Gav Wood authored
      * Initial bits
      
      * More stuff
      
      * Cleave voting from council
      
      * More events
      
      * Rearrange council a little
      
      * Fix demo
      
      * More info in events
      c9845f33
    • Sergey Pepyakin's avatar
      Integrate contracts into substrate-demo runtime (#675) · 6c1b2c27
      Sergey Pepyakin authored
      * Introduce data and salt into ContractAddressFor
      
      * Accept salt arg in ext_create.
      
      * Integrate contracts into the demo runtime
      
      * Make libcontract compile to wasm
      
      * Remove salt parameter.
      
      This now is concern of userspace.
      
      * Rebuild binaries.
      6c1b2c27
    • 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
    • Arkadiy Paronyan's avatar
      Bring substrate-demo up to date (#658) · fea75051
      Arkadiy Paronyan authored
      * Updating substrate-demo
      
      * Consenus fixes
      
      * Reverted toolchain change
      
      * Adjusted timeout formula
      
      * Simplfied proposal creation
      
      * Fixed tests
      
      * Fixed a few small issues
      
      * 2017->2018
      
      * Style
      
      * More style
      
      * Renamed demo executable to substrate
      
      * Style
      
      * Fixed compilation after merge
      
      * Style
      fea75051
    • 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
    • Gav Wood's avatar
      Democracy module events (#697) · 0aefb506
      Gav Wood authored
      * Democracy module events
      
      * Fix demo runtime
      
      * Fix
      
      * Extra event in balances
      
      * Missing event
      
      * Fix test
      
      * Fix council
      
      * Fix test
      0aefb506
  24. 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
  25. Sep 05, 2018