1. Oct 24, 2019
  2. Oct 23, 2019
  3. Oct 22, 2019
    • Tomasz Drwięga's avatar
      Runtime logging. (#3821) · a31c01b3
      Tomasz Drwięga authored
      * Implement Printable for tuples.
      
      * Add debugging function.
      
      * Add debug 1.
      
      * Implement  for everything.
      
      * RuntimeDebug derive.
      
      * Introduce RuntimeDebug.
      
      * Add some dummy logging.
      
      * Replace RuntimeDebug with Debug.
      
      * Revert "Replace RuntimeDebug with Debug."
      
      This reverts commit bc47070a.
      
      * Working on Debug for all.
      
      * Fix bounds.
      
      * Add debug utils.
      
      * Implement runtime logging.
      
      * Add some docs and clean up.
      
      * Clean up derives.
      
      * Fix custom derive impl.
      
      * Bump runtime.
      
      * Fix long lines.
      
      * Fix doc test.
      
      * Use CARGO_CFG_STD.
      
      * Revert "Use CARGO_CFG_STD."
      
      This reverts commit ea429566.
      
      * Use parse_macro_input
      
      * Update lockfile.
      
      * Apply review suggestions.
      
      * Remove stray re-export.
      
      * Add no-std impl.
      
      * Update lockfile.
      a31c01b3
    • asynchronous rob's avatar
      Explicitly declare decl_storage! getters as functions (#3870) · 0b972942
      asynchronous rob authored
      * parse decl_storage getters with fn keyword
      
      * test for get in decl_storage
      
      * update all decl_storage! getters
      
      * bump version
      
      * adjust missed doc line
      0b972942
  4. Oct 21, 2019
  5. Oct 20, 2019
  6. Oct 19, 2019
    • Ashley's avatar
      Move sr-arithmetic to a new crate and add in a fuzzer (#3799) · dccaf161
      Ashley authored
      
      
      * Split up sr_arithmetic.rs
      
      * Add some basic fuzzing
      
      * Add more tests
      
      * Add printing to fuzzing
      
      * Clean things up
      
      * Remove arbitrary
      
      * Remove comments
      
      * More cleaning, fix small error that was causing a panic
      
      * Add rational128
      
      * Remove old random tests
      
      * introduce panic
      
      * fuzzing should panic properly
      
      * Bit of cleanup
      
      * Add a test uncovered via fuzzing that fails!
      
      * Few small changes
      
      * Move sr-arithmetic to its own crate
      
      * Fix fuzzing
      
      * Got rid of fuzzer Cargo.lock
      
      * Added no_std
      
      * re-export assert_eq_error_rate
      
      * bump impl and spec version
      
      * re add convert into
      
      * Add an ignore to the test
      
      * Enabled benchmarking
      
      * Reindent
      
      * Clean up biguint fuzzer
      
      * Clean up biguint more
      
      * shuffle sr-primitives/traits about
      
      * Remove unused dependencies
      
      * Apply clippy suggestions
      
      * upgrade primitive-types versions
      
      * Run tests against num-bigint
      
      * Get rid of allocation in assert_biguints_eq
      
      * Add an optimisation to multiply_by_rational
      
      * rename parts_per_x -> per_things
      
      * Change fuzzer cargo.toml
      
      * Remove allocation from BigUint PartialEq impl
      
      * Remove accidental indentation
      
      * Renmove Lazy and Convert traits
      
      * Copy assert_eq_error_rate macro back to sr-primitives
      
      * Add documentation to fuzzers
      
      * fix sr-primitives assert_eq_error_rate
      
      * add cfg(test)
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Allow rounding up in rational128
      
      * Make changes to biguint.rs
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Final touches
      
      * Convert to num_bigint::BigUint to compare
      
      * remove unused mut
      
      * more small changes
      
      * shuffle sr-primitives trait imports
      
      * more code review
      
      * move assert_eq_error_rate to lib.rs
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Get rid of S
      
      * Simplify rational128 honggfuzz link
      
      * Insignificantly change rational128 fuzzing code
      
      * Slightly tidy up some of the arithmetic logic
      
      * Get rid of sr_arithmetic again(?) and fix sr-primitives/weights
      
      * Apply updates to sr_arithmetic.rs to crate
      dccaf161
  7. Oct 18, 2019
    • André Silva's avatar
      grandpa: pluggable voting rules (#3673) · 4f25b470
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      * grandpa: support pluggable custom voting rules
      
      * grandpa: add docs to grandpa voting rule
      
      * grandpa: make voting rule mandatory
      
      * grandpa: add test for voting rule
      
      * node: add GRANDPA voting rule
      
      * grandpa: pass backend to VotingRule
      
      * core: fix docs in SelectChain::finality_target
      
      * grandpa: implement 3/4 of unfinalized chain restriction as voting rule
      
      * grandpa: rename AlwaysBehindBestBlock voting rule
      
      * grandpa: fix tests
      
      * grandpa: remove useless test
      
      * grandpa: extend environemnt voting rule test
      
      * grandpa: add proofs to unreachable statements
      
      * grandpa: fix typo
      
      * grandpa: fix docs
      4f25b470
    • Ximin Luo's avatar
      Make build work with rustc 1.37 stable and RUSTC_BOOTSTRAP=1 (#3844) · 5ad7a68f
      Ximin Luo authored
      * Make build work with rustc 1.37 stable and RUSTC_BOOTSTRAP=1
      
      * Bump versions to run CI
      5ad7a68f
    • cheme's avatar
      Code redundancy between ext implementation and testing. (#3830) · c2761470
      cheme authored
      * fix child_storage_hash
      
      * extract common implementation for ext and testing
      
      * cleaning impl.
      
      * replace ExtBasisMut by actual Ext
      
      * remove extbasis.
      
      * Update tests to use Ext from test externalities.
      
      * use Ext constructor for getting ext from TestExternalities.
      
      * Add missing extensions from ext.
      
      * fix wasmi test
      
      * Fix merge error.
      c2761470
  8. Oct 17, 2019
    • Kian Paimani's avatar
      refactor: Transaction-Payment module (#3816) · df1582be
      Kian Paimani authored
      * Initial draft that compiles
      
      * Extract payment stuff from balances
      
      * Extract multiplier update stuff from system
      
      * Some fixes.
      
      * Update len-fee as well
      
      * some review comments.
      
      * Remove todo
      
      * bump
      df1582be
  9. Oct 16, 2019
    • thiolliere's avatar
      Refactor decl storage (#3765) · e0f3fa38
      thiolliere authored
      * split implementation in multiple files:
        * transformation -> genesis_config/  getters.rs  instance_trait.rs  metadata.rs  mod.rs  store_trait.rs
        * mod.rs -> parser.rs
        * impl.rs -> storage_struct.rs
      * parser is isolated into parse module, it could be improved as well but this can be done in another PR
      * modules contains a defintion of decl_storage input which must be ok to work with.
      * implementation change:
        * T: Trait might be more often bound to 'static (anyway we only use static one and it is needed for metadata current implementation).
        * GenesisConfig no longer requires its fields to be Clone (possible since to EncodeLike feature)
        * builder for map storages must return precise type Vec<(key, value)>
      e0f3fa38
    • Tomasz Drwięga's avatar
      Move srml RPC extensions to separate crates (#3791) · ead7e0ef
      Tomasz Drwięga authored
      
      
      * Move srml-system RPC out.
      
      * Fix tests for system-rpc module.
      
      * Contracts RPC moved.
      
      * Fix rpc test.
      
      * Clean up.
      
      * Update lockfile.
      
      * Bump runtime version.
      
      * Update srml/contracts/rpc/runtime-api/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Bump impl version.
      ead7e0ef
    • Fabio Tudone's avatar
      Fix #1536: do not require to construct a block for encoding it (#3813) · ba43ca16
      Fabio Tudone authored
      * Fix #1536: do not require to construct a block for encoding it
      
      * Bump `impl_version`
      
      * Improve `Block::encode_from` signature and rustdoc (from review by @bkchr)
      ba43ca16
  10. Oct 12, 2019
  11. Oct 11, 2019
  12. Oct 10, 2019
  13. Oct 09, 2019
    • Demi Obenour's avatar
      Bump dependencies (#3787) · e44bd441
      Demi Obenour authored
      * Update dependencies, respecting semver
      
      * Bump dependencies
      
      * Don’t patch tiny-bip39 dependency
      e44bd441
    • Bastian Köcher's avatar
      Move `Externalities` into its own crate (#3775) · 79c776af
      Bastian Köcher authored
      * Move `Externalities` into `substrate-externalities`
      
      - `Externalities` now support generic extensions
      - Split of `primtives-storage` for storage primitive types
      
      * Move the externalities scoping into `substrate-externalities`
      
      * Fix compilation
      
      * Review feedback
      
      * Adds macro for declaring extensions
      
      * Fix benchmarks
      
      * Introduce `ExtensionStore` trait
      
      * Last review comments
      
      * Implement it for `ExtensionStore`
      79c776af
  14. Oct 08, 2019
  15. Oct 05, 2019
  16. Oct 04, 2019
  17. Oct 03, 2019
  18. Oct 02, 2019
    • DemiMarie-parity's avatar
      Upgrade dependencies whenever “easy” (#3556) · 0cfe7438
      DemiMarie-parity authored
      * Update all dependencies
      
      * Upgrade dependencies whenever “easy”
      
      “easy” means that there are no major changes required.
      
      * Fix build and bump paste dependency to 0.1.6
      
      * Remove dead code
      
      * Re-add = dependency for futures-preview
      
      * Add missing std features for runtime-io
      
      * Remove git dependencies
      
      as updated versions have been published to crates.io
      
      * try to debug bug
      
      * For sr-io, "std" should imply "no_oom" and "no_panic_handler".
      
      Otherwise, rustc complains (correctly) about duplicate lang items.
      
      * Add missing "runtime-io/std" features
      
      * Fix compilation errors
      
      * Prevent duplicate lang items
      
      Rust does not allow duplicate lang items.  When compiled without the
      `std` feature, `sr-io` defines two lang items.  Therefore, `sr-io`
      compiled without `feature = "std"` must not be linked with `std`.
      
      However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless
      compiled with `default-features = "false"`.  This caused a duplicate
      lang item error.  Building both with `default-features = "false"`
      prevents this error.  When building with `feature = "std"`, they should
      both be built with the `std` feature, so this feature needs to be
      explicitly depended on.
      
      * Bump `impl_version`
      
      * Make tests pass
      
      Three tests used 1 less gas than they had previously.
      
      * Try to un-break build
      
      * Add a Cargo.lock file
      
      * Revert offchain code
      
      * Revert "Revert offchain code"
      
      This reverts commit d216d08c
      
      .
      
      * Don’t try to send a body with a GET request
      
      without adding a Transfer-Encoding or Content-Length header.
      
      This has always been wrong, but hyperium/hyper#1925 hid the bug until
      hyper was upgraded to 0.12.35.
      
      * Change some more GET requests to POST requests
      
      * Fix excess line width and remove an `extern crate`
      
      * Delete commented-out extern crate
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      
      * Fix regression in Cargo.toml files
      
      dev-dependencies need `default-features = false`, too.
      
      * Bump parity-wasm dependency
      
      * Bump `futures-preview`
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update Cargo.lock files
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/service/src/chain_ops.rs
      
      Co-Authored-By: default avatarSergei Pepyakin <[email protected]>
      0cfe7438
    • thiolliere's avatar
      Fix quantization from OnDilution in treasury (#3736) · 27a86ed7
      thiolliere authored
      * fix
      
      * bump version
      
      * remove println
      27a86ed7
  19. Oct 01, 2019
    • thiolliere's avatar
      Use EncodeLike for storages traits (#3676) · db417ffd
      thiolliere authored
      
      
      * impl
      
      * patch
      
      * lock
      
      * some refactor
      
      * some avoided copy
      
      * new api without ref for doublemap
      
      * fix
      
      * version bump
      
      * fix
      
      * point to incoming release
      
      * use codec latest
      
      * bumpd impl version
      
      * fix unused
      
      * fix
      
      * Update srml/support/src/storage/mod.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      db417ffd
    • Max Inden's avatar
      srml/authority-discovery: Abstract session key type (#3698) · 7fc0a91e
      Max Inden authored
      * srml/authority-discovery: Abstract session key type
      
      Previously `srml/authority-discovery` dependet on the `srml/im-online`
      session key type directly. With this patch `srml/authority-discovery` is
      generic over the session key type it is going to use, as long as it
      implements the RuntimeAppPublic trait.
      
      With this patch one can use the `srml/authority-discovery` module
      without the `srml/im-online` module.
      
      Next to the above, this patch configures `node/runtime` to use the babe
      session keys for the authority discovery module.
      
      * srml/authority-discovery: Fix line length
      
      * srml/authority-discovery/Cargo: Move babe to dev-dependencies
      
      * node/runtime: Bump implementation version
      
      * srml/authority-discovery: Add doc comment for authority discovery Trait
      7fc0a91e
    • Svyatoslav Nikolsky's avatar
      Prepare for asynchronous transaction validation in tx pool (#3650) · 55c9d145
      Svyatoslav Nikolsky authored
      
      
      * async txpool API
      
      * Update core/rpc/src/author/mod.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Update core/transaction-pool/graph/src/pool.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Pool -> Pool + ValidatedPool
      
      * removed lost block_on when importing xt from network
      
      * fix grumbles
      
      * alias for future::Executor in rpc
      
      * removed executor from Author RPCs
      
      * Pool + SharedValidatedPool -> Pool
      
      * fix compilation after merge
      
      * another fix
      
      * another fix
      55c9d145
    • André Silva's avatar
      srml: system: add kill_prefix (#3729) · aae1a9e2
      André Silva authored
      * srml: system: add kill_prefix
      
      * node: bump spec_version
      aae1a9e2
  20. Sep 30, 2019
  21. Sep 28, 2019