1. May 10, 2019
  2. May 06, 2019
    • Gavin Wood's avatar
      Clean up random seed to make a bit more flexible (#2456) · adba8991
      Gavin Wood authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      
      
      * Reformulate random seed to be more random
      
      - First 80 random values come from cycling the incomplete series (
        instead of filling with zeroes)
      - Calculate random material each usage (use a single amalgamated
        ring buffer to store them for avoiding 81 lookups each time)
      - Mutate inputs by hashing each with:
        - its index (into the 81)
        - an additional "subject" key provided by caller
      
      This keeps the final output low-influence while still allowing
      it to be used as the seed to independent contexts. (Hashing the
      result to give the final seed is no better than using parent_hash).
      
      * Docs
      
      * Bump runtime
      
      * Update notes
      
      * Remove feature(alloc)
      
      * Update srml/system/src/lib.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      adba8991
  3. Apr 26, 2019
  4. Apr 25, 2019
  5. Apr 23, 2019
    • Sergei Pepyakin's avatar
      Use serde `derive` feature. (#2351) · e2bb4297
      Sergei Pepyakin authored
      * core/primitives
      
      * sr-primitives
      
      * sr-primitives
      
      * srml-treasury
      
      * substrate-executor
      
      * substrate-keystore
      
      * network-libp2p
      
      * substrate-service
      
      * srml-system
      
      * substrate-rpc
      
      * sr-version
      
      * substrate-telemetry
      
      * substrate-test-runtime
      
      * substrate-transaction-pool
      
      * node-template-runtime
      
      * node-primitives
      
      * srml-consensus
      
      * srml-contract
      
      * srml-democracy
      
      * srml-finality-tracker
      
      * srml-grandpa
      
      * srml-metadata
      
      * srml-support
      
      * Clean
      
      * Update locks
      e2bb4297
  6. Apr 17, 2019
  7. Apr 16, 2019
    • joe petrowski's avatar
      Update Documentation (#2172) · fc0b348d
      joe petrowski authored
      
      
      * timestamp
      
      * balances
      
      * balances-remove-short-example
      
      * system
      
      * sudo (+missing period in balances)
      
      * contract
      
      * staking
      
      * fix unclear definition in balances
      
      * update after review
      
      * update genesis-config-sudo link
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * genesis
      fc0b348d
    • Bastian Köcher's avatar
      Add `StorageValue::append` and speed-up `deposit_event` (#2282) · 72840bd7
      Bastian Köcher authored
      * Adds deposit event benchmark
      
      * Add `StorageValue::append`
      
      `StorageValue::append` can be used by types that implement `EncodeAppend` to speed-up situations where you just want to append
      an item to storage without wanting to decode all previous items.
      
      * Stay at 100 events
      
      * Fixes compilation
      
      * Use correct year and increase spec version
      72840bd7
  8. Apr 02, 2019
    • thiolliere's avatar
      skip phantom for decl_event (#2158) · 7e3b2d46
      thiolliere authored
      * use parity-codec-derive from parity-codec everywhere
      
      * codec v3.2 -> v3.3
      
      * skip phantom when deriving event
      
      * fix decl_module call
      
      * update impl version of node + builds
      7e3b2d46
  9. Apr 01, 2019
    • Gav Wood's avatar
      Bump version to 1.0.0 globally (#2149) · eca163ba
      Gav Wood authored
      * Bump versionb globally
      
      * Rebuild and fix
      
      * Rename fixes
      
      * Rebuild
      
      * Minor fix and code formatting for validator election
      
      * Fix tests
      
      * More test fixes
      
      * Fix several bugs in phragmen elections.
      
      * Rebuild, remove pointless closures
      eca163ba
  10. Mar 29, 2019
  11. Mar 28, 2019
    • Gautam Dhameja's avatar
      Documentation for system module (#1999) · d6927c2f
      Gautam Dhameja authored
      * srml system docs
      
      * updated docs
      
      * fixed typo
      
      * addressed initial review comments
      
      * addressed review comments
      
      * addressed review comments
      
      * minor fixes in docs
      
      * Various corrections, punctuation.
      
      * updated docs
      
      * minor edit
      
      * fixed doc test
      
      * Update srml/system/src/lib.rs
      d6927c2f
  12. Mar 25, 2019
    • Tomasz Drwięga's avatar
      Initial: Offchain Workers (#1942) · e2f5e408
      Tomasz Drwięga authored
      * Refactor state-machine stuff.
      
      * Fix tests.
      
      * WiP
      
      * WiP2
      
      * Service support for offchain workers.
      
      * Service support for offchain workers.
      
      * Testing offchain worker.
      
      * Initial version working.
      
      * Pass side effects in call.
      
      * Pass OffchainExt in context.
      
      * Submit extrinsics to the pool.
      
      * Support inherents.
      
      * Insert to inherents pool.
      
      * Inserting to the pool asynchronously.
      
      * Add test to offchain worker.
      
      * Implement convenience syntax for modules.
      
      * Dispatching offchain worker through executive.
      
      * Fix offchain test.
      
      * Remove offchain worker from timestamp.
      
      * Update Cargo.lock.
      
      * Address review comments.
      
      * Use latest patch version for futures.
      
      * Add CLI parameter for offchain worker.
      
      * Fix compilation.
      
      * Fix test.
      
      * Fix extrinsics format for tests.
      
      * Fix RPC test.
      
      * Bump spec version.
      
      * Fix executive.
      
      * Fix support macro.
      
      * Address grumbles.
      
      * Bump runtime
      e2f5e408
  13. Mar 22, 2019
  14. Mar 15, 2019
    • thiolliere's avatar
      Implement parameterisable modules (#1800) · d743a8b7
      thiolliere authored
      * first implementation
      
      * remove done comment
      
      * origin done
      
      * impl log for instance
      
      * impl inherent for instance
      
      * Fix wasm build + full example build
      
      this requires parity codec implements codec for core::marker::PhantomData
      
      * patch parity-codec link to github branch
      
      * improve internal names and fix instance prefix
      
      * Fix in macros
      
      * add test modules for support
      
      this allow to test for construct_runtime as well.
      
      The reason to have put that in another crate is:
      * if we put test in `tests/` dir of srml/support then decl_storage fails to get
        srml-support access because it believes it is inside srml-support
        crate and so derive access to `quote!{ crate }` but this is wrong
        (and I don't see any way to prevent that, and it only bother us so I
        don't think that matters that much)
      * if we put test inside lib.rs then contruct_runtime cannot be used
        because it call some macros that are defined with macros
        (decl_outer_event and decl_outer_origin) and thus rustc complains.
      
      * defaultinstance to its own struct to avoid errors
      
      * enforce <T, I> for Event and Config, impl test
      
      * add origin, log, inherent to test
      
      * test more code generation
      
      * basic storage test
      
      * fix typo
      
      * rename a few imports and field
      
      * delete wip test in example and runtime
      
      * change default prefix to make it backward compatible with test
      
      * rename Instance to I and Instantiable to Instance
      
      note: the name of generic parameter I is only enforce by decl_module!
      and this could be rewritten
      
      * doc
      
      * clean old TODOs
      
      * update parity-codec to 3.2
      
      * update node impl version + builds
      
      * fix warning
      
      * fix unrelated grandpa test
      
      * refactor code
      d743a8b7
  15. Mar 14, 2019
    • Bastian Köcher's avatar
      Prerequisites for `validate_block` in Cumulus (#1926) · 990d368f
      Bastian Köcher authored
      * Adds benchmark for direct/indirect wasm function calls
      
      * Store the benchmark function pointer in a `Cell`
      
      * Add some documentation
      
      * Make function implementations exchangeable
      
      * Add parachain stub
      
      * Add macro for registering the `validate_block` function
      
      * Make all functions replace-able by unimplemented
      
      * Some more refactoring
      
      * Adds tests for executing empty parachain block
      
      * Work on a new test with empty witness data
      
      * Don't exchange `ext_print_*` stuff
      
      * Some cleanup and one more function for `validate_block`
      
      * More tests and more functions
      
      * Fixes after merging master
      
      * Use `parity-codec` `derive` feature
      
      * CHange implementation of `wasm-nice-panic-message`
      
      * Move `parachain` stuff to cumulus
      
      * Updated wasm files
      
      * Integrate feedback
      
      * Switch to `ExchangeableFunction` struct
      
      * More fixes
      
      * Switch to Cell and panic on multiple replaces
      
      * Increase `impl_version`
      
      * Fix shifting
      
      * Make the API more verbose of `ExchangeableFunction`
      
      * Increase `impl_version`
      990d368f
  16. Mar 06, 2019
    • Bastian Köcher's avatar
      Update copyrights to 2019 (#1932) · 7927054f
      Bastian Köcher authored
      7927054f
    • Gav Wood's avatar
      Aggregate all liquidity restrictions in a single place (#1921) · ccc11974
      Gav Wood authored
      * Clean up session key rotation
      
      * Fix build
      
      * Bump version
      
      * Introduce feature to balances.
      
      * Move staking locking logic over to central point
      
      * ^^^ rest
      
      * First part of assimilation
      
      * More assimilation
      
      * More assimilation
      
      * Fix most tests
      
      * Fix build
      
      * Move Balances to new locking system
      
      * :q!
      
      * Bump runtime version
      
      * Build runtime
      
      * Convenience function
      
      * Test fix.
      
      * Whitespace
      
      * Improve type legibility.
      
      * Fix comment.
      
      * More tests.
      
      * More tests.
      
      * Bump version
      
      * Caps
      
      * Whitespace
      
      * Whitespace
      
      * Remove unneeded function.
      ccc11974
  17. Mar 05, 2019
    • Hero Bird's avatar
      Make use of parity-codec "derive" crate feature (#1919) · 128d164f
      Hero Bird authored
      * Make use of parity-codec "derive" crate feature
      
      * Bump impl_version
      
      * Update wasm files and Cargo.lock files
      
      * Transferred to parity_codec derive feature for the rest of the crates
      
      * Update wasm binaries and lock files
      
      * Update core and node wasm binaries
      128d164f
  18. Mar 04, 2019
    • thiolliere's avatar
      remove unused code (#1920) · b599556e
      thiolliere authored
      b599556e
    • thiolliere's avatar
      improve storage build type checking (#1914) · 66bc864f
      thiolliere authored
      * force build closure in decl_storage! to return explicit type
      * fix when type was different
      
      Note: it breaks API but it is easy to upgrade: just do the conversion from encode type to the final type yourself in the build closure:
      
      ```rust
      Encode::using_encoded(&value, |mut value| Decode::decode(&mut v)).unwrap();
      ```
      66bc864f
  19. Mar 01, 2019
  20. Feb 15, 2019
    • Xiliang Chen's avatar
      Transaction Fee Module (#1648) · fafffdb7
      Xiliang Chen authored
      * wip
      
      * Split bytes fee charging and charging by amount into different traits.
      
      * Move to edition 2018.
      
      * Implemented charge fee traits for fees module.
      
      * Implemented 'on_finalise' for fee module.
      
      * Updated fees finalize impl.
      
      * Renaming and documentation update.
      
      * Added overflow & underflow check for fee calculation.
      
      * Added mock and unit tests for fee module.
      
      * More unit tests for fees module.
      
      * Fixed srml-executive unit tests.
      
      * Remove transaction base/bytes fee from balances module, fix unit tests.
      
      * fix compile error
      
      * Fixed unit test.
      
      * Minor fixes.
      
      * Bump spec version.
      
      * Bump spec version.
      
      * Updated fees module and runtime wasm.
      
      * Fees module code style improvement; updated runtime wasm.
      
      * Bump spec and impl version.
      fafffdb7
  21. Feb 13, 2019
    • Tomasz Drwięga's avatar
      EnumerableStorageMap (#1763) · 9e271024
      Tomasz Drwięga authored
      * Refactor decl_storage a bit to allow easier impl of linked map.
      
      * A bunch of refactorings for storage generation.
      
      - Rename StorageMap and ChildrenStorageMap to avoid confusion with generator::StorageMap.
      - Separate implementation from the procedural macro code to clean it up.
      - Make sure that genesis is initialised using the `StorageValue/StorageMap`
        generated implementations instead of going RAW.
      
      * WiP: Writing test.
      
      * Basic implementation.
      
      * Implement enumeration.
      
      * Fix non-std issues.
      
      * fix warning
      
      * Fix test-client.
      
      * Address review grumbles - part 1
      
      * Avoid cloning the key, relax Storage requirements.
      
      * Rebuild runtime.
      
      * Remove dangling todo.
      9e271024
  22. Feb 11, 2019
  23. Feb 01, 2019
  24. Jan 30, 2019
    • Benjamin Kampmann's avatar
      Document more TODOs as tickets (#1418) · 15ae7cfe
      Benjamin Kampmann authored
      Went through the TODOs, removed a bunch, which are outdated or nothing more than a regular comment, documented a bunch more as actual tickets and made them FIXMEs and unified their structure (`FIXME #TICKETNO DESC` for local tickets, `FIXME: DESC LINK` for external tickets) for easier in-editor support. Further more remove unnecessary remarks and related old code that I noticed in that instance.
      15ae7cfe
  25. Jan 28, 2019
  26. Jan 17, 2019
  27. Jan 16, 2019
    • Gav Wood's avatar
      Split Indices module from Balances (#1404) · c9f047fe
      Gav Wood authored
      * Indices module
      
      * Remove indices stuff from balances
      
      * Rejob node, move Lookup into system.
      
      * Fix up some modules.
      
      * Fix democracy tests
      
      * Fix staking tests
      
      * Fix more tests
      
      * Final test fixes
      
      * Bump runtime versions
      
      * Assets uses compact dispatchers
      
      * Contracts module uses indexed addressing
      
      * Democracy has more compact encoding
      
      * Example now demonstrates compact eencoding
      
      * Sudo uses indexed address
      
      * Upgrade key also uses indexed lookups
      
      * Assets more compact types.
      
      * Fix test
      
      * Rebuild runtime, whitespace
      
      * Remove TOODs
      
      * Remove TODOs
      
      * Add a couple of tests back to balances.
      
      * Update lib.rs
      
      * Update lib.rs
      c9f047fe
  28. Jan 08, 2019
    • Wei Tang's avatar
      Make AuthorityId generic (#1296) · 71d889b6
      Wei Tang authored and Benjamin Kampmann's avatar Benjamin Kampmann committed
      * BlockAuthorityId convenience type
      
      * Rename AuthorityId -> Ed25519AuthorityId to make it more precise
      
      * Generalize AuthorityId up to substrate-client
      
      * Fix in client-db
      
      * rename: BlockAuthorityId -> AuthorityIdFor
      
      * typo: should be digest item
      
      * Fix test-runtime authorityId mismatch
      
      One states that AuthorityId is u64 while the other states that it's Ed25519AuthorityId.
      
      * Fix more u64 - Ed25519AuthorityId mismatch
      
      * Fix compile of most of the srml modules
      
      * Continue to pin aura and grandpa with ed25519 and fix compile
      
      * Add MaybeHash trait
      
      * Fix node-runtime compile
      
      * Fix network tests
      71d889b6
  29. Dec 20, 2018
    • cheme's avatar
      Include default values in storage metadata (#1264) · 23634b6b
      cheme authored
      * Add a 'default' field to metadata. It contains code to generate the
      default value.
      
      * wasm update
      
      * Make 'default' field an `Option`
      
      * Boxed fn is not static, that won't be fine
      
      * static fn won't do it to as it cannot get T param, will try fat trait
      
      * Fat pointer over phantom data compatible with static instantiation
      
      * DecodeDifferent is cool, using it for decoding.
      
      * using once cell to do what would require copying lazy_static internals.
      
      * Remove cache when no_std (non compatible deps)
      
      * wasm bins update
      
      * Fuse tooling struct and enum derive.
      23634b6b
  30. Nov 21, 2018
    • asynchronous rob's avatar
      Minimal switch of substrate-node to GRANDPA /Aura (#1128) · 11fe84a7
      asynchronous rob authored
      
      
      * add beginnings of SRML grandpa library
      
      * get srml-grandpa compiling
      
      * tests for srml-grandpa
      
      * add optional session integration to grandpa SRML
      
      * start integration into node runtime
      
      * Allow extracting pending change from header digest
      
      * Make it compile on wasm
      
      * make tests compile again
      
      * Move Authority Key fetching into service, simplify service factory construction
      
      * Generalize Authority Consensus Setup system
      
      * Add Authority Setup Docs
      
      * Allow CLI params to be extensible
      
       - move params to structopts
       - split parsing and default command execution
       - add custom config to node
       - extended parsing of custom config
       - extending params via structop's flatten
      
      * Minor fixes on cli extension params:
       - added docs
       - re-add actual app name, rather than node-name
       - make strategy and subcommand optional
      
      * better cli params
      
      * synchronize GRANDPA and normal node authorities
      
      * Implement grandpa::network for gossip consensus
      
      * run_grandpa in Node
      
      * Fix missed merge error
      
      * Integrate grandpa import queue
      
      * more specific type def
      
      * link up linkhalf and import block
      
      * make grandpa future send
      
      * get compiling
      
      * Fix new params convention and license header
      
      * get it running
      
      * rebuild node runtime WASM
      
      * change logging level
      
      * Update node/cli/src/params.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/params.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/runtime/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Update node/cli/src/lib.rs
      
      Co-Authored-By: default avatarrphmeier <[email protected]>
      
      * Clean up and Fixme for mutable config
      
      * Move GrandpaService Integration into grandpa, feature gated but on per default
      
      * Fixing grandpa runtime module test
      
      * Update wasm runtime hashes for tests
      
      * GRANDPA: use post-header hash when logging scheduled changes
      
      * add an extra bit of logging to authorities
      
      * fixing missing constrain
      
      * remove old code
      
      * move `NewAuthorities` to an event in srml-grandpa
      
      * fix node-executor tests to use grandpa log
      
      * Remove GossipConsensus from tests, use newly provided sync-feature, fixes tests
      
      * Update to latest wasm runtimes
      
      * address grumbles
      
      * address grumbles
      
      * only derive deserialize when using std
      
      * Clean up use of Deserialize
      11fe84a7
  31. Nov 18, 2018
    • Bastian Köcher's avatar
      Revert and redo #952 (#1133) · d149f335
      Bastian Köcher authored
      * Revert "Pruning changes trie without digests (#952)"
      
      This reverts commit 6f9a505f.
      
      * pruning changes tries without digests
      
      * u64::max_value()
      
      * Update wasm files and fix merge conflict
      
      * Fixes tests
      d149f335
  32. Nov 17, 2018
  33. Nov 16, 2018
  34. Nov 13, 2018
  35. 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
  36. Nov 01, 2018