1. Apr 19, 2019
  2. Apr 16, 2019
    • 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
  3. Apr 14, 2019
  4. Apr 12, 2019
  5. Apr 11, 2019
    • Andrew Jones's avatar
      Replace error-chain for client error (#2231) · 7f59cdb9
      Andrew Jones authored
      * WIP: convert client error
      
      * Remove error_chain for client error
      
      * Ignore tx-pool error deprecation warning
      
      * Update Cargo.lock files
      
      * Fix tests
      
      * Increment impl_version
      
      * Derive From impls, remove allow(missing_docs)
      
      * Remove space
      
      * Remove redundant into()s
      
      * Blockchain Error source
      
      * Bump impl version
      7f59cdb9
  6. Apr 10, 2019
  7. Apr 09, 2019
  8. Apr 03, 2019
  9. Apr 02, 2019
    • asynchronous rob's avatar
      Aura: add a deprecated method for seal compatibility (#2176) · f0c21815
      asynchronous rob authored
      * aura API defaults to rejecting old seals
      
      * build node-cli
      f0c21815
    • cheme's avatar
      no_std support for substrate trie (#2146) · 669e7918
      cheme authored
      * no_std trie compile in test_runtime (require to set nightly feature due
      to the way hashbrown currently works).
      
      * No nightly with hashmap_core.
      
      * using crate elastic-array
      
      * switch to publish trie crates
      
      * fix default array decl
      
      * bump impl_version for ci
      
      * set all semver when possible wasm, and remove redundant code.
      
      * Actually test use_trie function
      
      * impl version +1
      
      * Bump impl version
      669e7918
    • 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
    • Bastian Köcher's avatar
      Implement support for renaming runtime api functions (#2160) · 34514532
      Bastian Köcher authored
      * Implement support for renaming runtime api functions
      
      * Redelete the wasm files
      
      * FIxes test
      
      * Fix test correctly...
      
      * Bring back old `authorities`
      
      * Tag as deprecated
      
      * Fixes compilation on WASM
      
      * Add missing method implementations
      
      * Fixes tests
      
      * Increase `spec_version`
      34514532
  10. 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
  11. Mar 29, 2019
    • Stanislav Tkach's avatar
      Move authorities interface from Core to consensus (#1412) · cbfc36b3
      Stanislav Tkach authored
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Increment impl_version
      
      * Update lib.rs
      cbfc36b3
    • joe petrowski's avatar
      Convert all UK spelling to US (#2138) · 0ddcbf74
      joe petrowski authored
      * all the ise
      
      * forgot a misspelling
      
      * a few more replacements
      
      * bump impl
      
      * rollback and fixes
      
      * bump impl again
      
      * Add aliases for RPC
      
      * Update on_demand.rs
      0ddcbf74
    • DemiMarie-parity's avatar
      Refactor DigestItem (#2108) · a10e86ba
      DemiMarie-parity authored
      * Add `start_aura2`.
      
      * .gitignore patch conflict files
      
      and remove one that accidentally got committed
      
      * Fix build
      
      The tests still don’t work.
      
      * Fix compilation errors
      
      * Fix compile errors (again)
      
      * Try (and fail) to fix tests
      
      * Properly deserialize data
      
      Previously, `DigestItem::Consensus` had no separate `DigestItemType`,
      so it did not get properly serialized and deserialized.
      
      * Add extra debug logging.  Always allow old seals.
      
      A `RUST_LOG=substrate_aura_consensus cargo test --all -- --nocapture \
      tests::authoring_blocks` revealed that old seals were being and
      rejected, causing the test to hang.  As a temporary debug measure, allow
      old seals unconditionally, so that CI can test if this fixes the
      problem.
      
      * Forcibly disable rejection of old seals
      
      * Use old trait, but newer serialization
      
      The old trait for `CompatibleDigestItem` actually worked.  By changing
      its implementation, one can ensure that all *new* seals have the modern
      form, but *legacy* seals are still decoded correctly.
      
      * Bump impl version
      
      * Squash spurious deprecation warning
      
      `rustc` should not be emitting a deprecation warning in deprecated
      code, but it does, so silence it.
      
      * Rip out unused Cargo feature
      
      * Move AURA to aura_primitives
      
      * Respond to code review
      
      * Wrap overly-long line
      
      * Reduce logging verbosity and add target
      
      * Add dependency on `sr-primitives` to `aura_primitives`
      
      * Fix build
      
      It failed with a message about Cargo.lock being out of date.
      
      * core: aura: rename aura engine id const
      
      * core: aura: remove superfluous logging
      
      * core: primitives: add removed semicolons
      
      * core: aura: remove unused import
      
      * core: network: style fix
      
      * runtime: update wasm blobs
      
      * runtime: bump impl_version
      
      * core: primitives: tag all DigestItemType variants explicitly
      a10e86ba
  12. Mar 28, 2019
  13. Mar 27, 2019
  14. Mar 26, 2019
    • thiolliere's avatar
      improve docs (#2068) · 571d0943
      thiolliere authored
      
      
      * improve decl_storage instance doc
      
      * use decl_event doc accordignly
      
      * automate doc and while allow to extend it on event
      
      * some missed ones
      
      * Update srml/example/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update srml/support/procedural/src/storage/transformation.rs
      571d0943
  15. 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
    • Arkadiy Paronyan's avatar
      CLI option to enable authoring when offline (#2104) · c6addc9b
      Arkadiy Paronyan authored
      
      
      * CLI option to enable authoring when offline
      
      * Update core/service/src/config.rs
      
      Co-Authored-By: default avatararkpar <[email protected]>
      c6addc9b
  16. Mar 23, 2019
  17. Mar 22, 2019
  18. Mar 21, 2019
  19. Mar 20, 2019
    • Gav Wood's avatar
      Introduce safe types for handling imbalances (#2048) · dcd77a14
      Gav Wood authored and asynchronous rob's avatar asynchronous rob committed
      * Be a little safer with total issuance.
      
      * PairT instead of _Pair
      
      * Remove rev causing upset
      
      * Remove fees stuff.
      
      * Fix build (including tests)
      
      * Update runtime, bump version
      
      * Fix
      
      * Handle gas refunds properly.
      
      * Rename identifier
      
      ala #2025
      
      * Address grumbles
      
      * New not-quite-linear-typing API
      
      * Slimmer API
      
      * More linear-type test fixes
      
      * Fix tests
      
      * Tidy
      
      * Fix some grumbles
      
      * Keep unchecked functions private
      
      * Remove another less-than-safe currency function and ensure that
      contracts module can never create cash.
      
      * Address a few grumbles and fix tests
      dcd77a14
  20. Mar 19, 2019
  21. Mar 18, 2019
  22. 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
    • Gav Wood's avatar
      Crypto fixes/improvements (#2008) · 03d52fdb
      Gav Wood authored
      
      
      * Crypto fixes:
      
      - Use schnorrkel's HDKD derive
      - Assume all key URIs beginning with `/` are prefixed with public
        root phrase.
      
      * Remove commented code.
      
      * Update README
      
      * Update core/primitives/src/ed25519.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      03d52fdb
  23. Mar 13, 2019
    • Gav Wood's avatar
      Overhaul crypto (Schnorr/Ristretto, HDKD, BIP39) (#1795) · d7fcf5dc
      Gav Wood authored
      * Rijig to Ristretto
      
      * Rebuild wasm
      
      * adds compatibility test with the wasm module
      
      * Add Ed25519-BIP39 support
      
      * Bump subkey version
      
      * Update CLI output
      
      * New keys.
      
      * Standard phrase/password/path keys.
      
      * Subkey uses S-URI for secrets
      
      * Move everything to use new HDKD crypto.
      
      * Test fixes
      
      * Ignore old test vector.
      
      * fix the ^^ old test vector.
      
      * Fix tests
      
      * Test fixes
      
      * Cleanups
      
      * Fix broken key conversion logic in grandpa
      
      CC @rphmeier
      
      * Remove legacy Keyring usage
      
      * Traitify `Pair`
      
      * Replace Ed25519AuthorityId with ed25519::Public
      
      * Expunge Ed25519AuthorityId type!
      
      * Replace Sr25519AuthorityId with sr25519::Public
      
      * Remove dodgy crypto type-punning conversions
      
      * Fix some tests
      
      * Avoid trait
      
      * Deduplicate DeriveJunction string decode
      
      * Remove cruft code
      
      * Fix test
      
      * Minor removals
      
      * Build fix
      
      * Subkey supports sign and verify
      
      * Inspect works for public key URIs
      
      * Remove more crypto type-punning
      
      * Fix typo
      
      * Fix tests
      d7fcf5dc
  24. Mar 12, 2019
  25. Mar 07, 2019
  26. Mar 06, 2019
    • 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
  27. 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
  28. Mar 02, 2019
    • Gav Wood's avatar
      Stash/controller model for staking (#1782) · 828cd958
      Gav Wood authored
      * First steps to stash/controller separation
      
      * More drafting
      
      * More drafting
      
      * Finish draft.
      
      * Optimisation
      
      * Remove accidental commit
      
      * Make it build.
      
      * Fix linked map for traits.
      
      * Fix Option<_> variant.
      
      *  Improve naming a tad
      
      * Rebuild runtime
      
      * Builds!
      
      * First test.
      
      * Bump RT version
      
      * Minor fix
      
      * Update Mock
      
      * adds the correct reward testcase (+staking eras which was already ok)
      
      * fixes the basic staking testcase to work properly (along with a small fix in the module)
      
      * New logic to avoid controller transferring stash.
      
      * Fix some build issues.
      
      * adding some comments to tests
      
      * Fix impls.
      
      * adds a few more lines to explain the test case
      
      * More fixes.
      
      * gets the basic test up and running again
      
      * Fix rest of build
      
      * Rebuild wasm
      
      * Fix docs.
      
      * fix staking test with new chnages
      
      * updating some tests, pending questions
      
      * More working tests
      
      * adds double staking test
      
      * Docs
      
      * remove invalid slashing test
      
      * Payee stuff.
      
      * Fix build
      
      * Docs
      
      * Fix test
      
      * Fix a couple of tests
      
      * Layout plan for finishing tests before Pragmen
      
      * Add some working tests
      
      * re-build staking and reward tests
      
      * Add more tests
      
      * fix offline grace test
      
      * Nominator should have payee checked for cleanup
      
      * adds more nomination tets
      
      * adds validator prefs tests
      
      * Fix and clean up some TODOs
      
      * Fix a couple of issues
      
      * Fix tests
      
      * noting warnings from tests
      
      * final fix of local tests
      
      * Fix slot_stake bug
      
      * Half baked test
      
      * Add logic to limit `unstake_threshold` set in storage
      
      * Make sure to check before writing!
      
      Almost forgot this one
      
      * Move a couple of comments
      
      * fix last broken slot_stake test
      
      * Ignore broken test
      828cd958
  29. Mar 01, 2019