1. Feb 25, 2019
  2. Feb 21, 2019
  3. Feb 20, 2019
  4. Feb 19, 2019
    • thiolliere's avatar
      Improve fees module (#1821) · efd5224b
      thiolliere authored
      * remove amount associated
      * make a new trait to bound some arithmetics to balances or assets:
        It also remove arithmetic bounds of srml-support::traits::Currency.
      
        To update your code then use srml_support::traits::ArithmeticType like:
        `type Currency: ArithmeticType + Currency<Self::AccountId, Balance=BalanceOf<Self>>; ` 
        with `type BalanceOf<T> = <<T as Trait>::Currency as ArithmeticType>::Type; `
      
      * improve decl_storage when it explicit serde bound: basically don't try to be smarter than rust and just use where clause.
      efd5224b
  5. Feb 18, 2019
    • Tomasz Drwięga's avatar
      Fix linked map for trait types and Option (#1809) · edf2a8fc
      Tomasz Drwięga authored
      * Fix linked map for traits.
      
      * Fix Option<_> variant.
      
      *  Improve naming a tad
      
      * Rebuild runtime
      
      * Encapsulate private data in the inner module.
      
      * Bump impl version.
      
      * Fix deriving codec in srml-example.
      
      * Fix derivation without importing parity-codec-derive.
      
      * Fix config() for map.
      edf2a8fc
  6. Feb 17, 2019
    • Gregory Terzian's avatar
      Rewrite the BasiQueue using channels (#1327) · ed2faf44
      Gregory Terzian authored
      * use channels to implement basic import queue
      
      * async justification import
      
      * better conditional for is_done in tests
      
      * reword the test for presence of link
      
      * fix conditional
      
      * trace instead of panic when no link present
      
      * reword expectations when sending to importers
      
      * fix
      
      * debug justification import error
      
      * update expectations
      
      * use NumberFor
      
      * nits
      
      * add general description
      
      * move error handling into closure
      ed2faf44
  7. Feb 15, 2019
    • Stanislav Tkach's avatar
      Migrate finality-grandpa to the 2018 edition (#1797) · 50bfe375
      Stanislav Tkach authored and asynchronous rob's avatar asynchronous rob committed
      50bfe375
    • Xiliang Chen's avatar
      Transaction Fee Module (#1648) · 14ee64c3
      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.
      14ee64c3
  8. Feb 13, 2019
    • Shawn Tabrizi's avatar
      Adding vesting tests to Balances module (#1786) · 6a4b5806
      Shawn Tabrizi authored
      * Adding vesting tests to Balances module
      
      * Fix gitlab message, bump impl
      6a4b5806
    • Stanislav Tkach's avatar
      ac9d30a8
    • Gav Wood's avatar
      Introduce Ristretto signing (#1730) · 71fb4448
      Gav Wood authored
      
      
      * first draft of ristretto crypto module #1685
      
      * adds better comments and code-style
      
      * remove the last evil unwrap
      
      * remove a mistakenly committed lockfile
      
      * add a fresh new lockfile --will probably need a manual merge later
      
      * fix an invalid old test vector
      
      * Wire in ristretto
      
      * Update comment
      
      * Fix use.
      
      * new Signature type api alias to be compatible with substrate
      
      * Add new keyring, fix node executor tests
      
      * Bump version.
      
      * Remove all hashes.
      
      * Update core/primitives/src/sr25519.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      
      * Revert back to Ed25519 (until JS UI is ready)
      
      * Fix test
      71fb4448
    • Tomasz Drwięga's avatar
      EnumerableStorageMap (#1763) · 21f58001
      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.
      21f58001
  9. Feb 11, 2019
    • Gav Wood's avatar
      Add Proposed event (#1761) · 6288a477
      Gav Wood authored
      * Add Proposed event.
      
      * Bump and rebuild
      6288a477
    • Marcio Diaz's avatar
      Adds new execution strategy nativeElseWasm (#1546) · 5f4ebb47
      Marcio Diaz authored
      * fix: adds new execution strategy nativeElseWasm and replace nativeWhenPossible with it
      
      * feat: adds cmd line params for execution strategies
      
      * fix: uses of cmd line execution strategies
      
      * chore: remove white spaces
      
      * chore: remove println
      
      * chore: remove whitespace
      
      * fix: generating functions with context
      
      * feat: add function to generate with_context declarations
      
      * fix: add implementation for with_context function calls
      
      * fix: add execution context to call_api_at function
      
      * fix: making use of context to select strategy for block_builder
      
      * chore: cleaning up
      
      * fix: merging issues
      
      * fix tests
      
      * add wasm files
      
      * chore: small doc for context fields
      
      * chore: delete redundant docs
      
      * fix: use full path for ExecutionContext
      
      * fix: add context functions from inside fold_item_impl
      
      * chore: remove clone
      
      * fix: moving generative function to utils, remove unused imports
      
      * fix: add missing full path for ExecutionContext
      
      * fix: merge issues
      
      * update wasm files
      
      * fix: update to keep up with changes in master
      
      * chore: remove unused functions, clean up
      
      * fix test
      
      * fix grumbles
      
      * fix: add more tests
      
      * fix: some refactorings
      
      * feat: add execution strategy to call
      
      * chore: small improvements
      
      * fix: add message to panic
      
      * fix tests
      5f4ebb47
    • Bastian Köcher's avatar
      Make `sr-api-macros` and `srml-support` renaming of crates (#1757) · 9bb2125e
      Bastian Köcher authored
      Procedural do not support `$crate` to get access to the crate where the
      macro is defined. We use a hack to re-export the crate under a known
      name. With rust edition 2018, people started to rename their crates in
      `Cargo.toml`, but that breaks the re-export. This commit introduces
      `proc-maco-crate` that supports finding the requested crate name, even
      if it was renamed.
      9bb2125e
    • Stanislav Tkach's avatar
      c188a3dc
  10. Feb 10, 2019
    • Gav Wood's avatar
      Vesting schedules. (#1726) · f58a6f72
      Gav Wood authored
      * Vesting.
      
      * Vesting stuff.
      
      * Add new wasm blobs
      
      * Bump runtime version
      
      * Update lock
      
      * Fix tests
      
      * Bump version
      f58a6f72
  11. Feb 09, 2019
  12. Feb 08, 2019
  13. Feb 07, 2019
  14. Feb 06, 2019
    • Bastian Köcher's avatar
      Moves `node-template` into substrate repo (#1637) · e4c8d74c
      Bastian Köcher authored
      * Make runtime macros work without required `macro_use`
      
      * Adds node-template
      
      * Adds node-template-release tool
      
      * Fixes building `node-template` and improve the release
      
      * Add `profile.release` by release script to remove warning
      
      * Adds script for releasing the node template
      
      * Fixes compilation after master merge
      
      * Port node-template to edition 2018
      
      * Remove license
      
      * Fixes compilation after master merge
      
      * Add `node-template-release.sh` into the CI
      
      * WIP Ci integrate node template (#1701)
      
      * copy artifacts to s3 bucket latest path
      
      * typo
      
      * bucket name
      
      * Update wasm files
      e4c8d74c
    • Pierre Krieger's avatar
      Update libp2p to v0.3 (#1634) · 86f26a7f
      Pierre Krieger authored and Arkadiy Paronyan's avatar Arkadiy Paronyan committed
      * Update libp2p
      
      * Some more diagnostics
      
      * 30 seconds back to 5 seconds
      
      * Bump libp2p-core and improve test
      
      * Fix runtime Cargo.lock
      
      * More work
      
      * Finish upgrade to libp2p 0.3
      
      * Add a maximum of 60 seconds for the rounds
      
      * Remove env_logger
      
      * Update Cargo.lock
      
      * Update Cargo.lock in test-runtime
      
      * Fix test compilation
      
      * Make the test pass
      
      * Add identify addresses to Kademlia
      
      * Don't connect to nodes we're already connected to
      
      * Add warning for non-Substrate nodes
      
      * Fix external address not added
      
      * Start in Enabled mode
      86f26a7f
    • Wei Tang's avatar
      Update trie to v0.11 (#1704) · 2056e4cd
      Wei Tang authored
      * Update trie to v0.11
      
      * Update wasm runtimes
      2056e4cd
    • Gregory Terzian's avatar
      Rewrite network protocol/service to use channels (#1340) · 64cde6f9
      Gregory Terzian authored
      * rewrite network protocol/service to use channels
      
      * remove use of unwrap
      
      * re-introduce with_spec
      
      * remove unnecessary mut
      
      * remove unused param
      
      * improve with_spec, add with_gossip
      
      * rename job to task
      
      * style: re-add comma
      
      * remove extra string allocs
      
      * rename use of channel
      
      * turn TODO into FIXME
      
      * remove mut in match
      
      * remove Self in new
      
      * pass headers by value to network service
      
      * remove network sender from service
      
      * remove TODO
      
      * better expect
      
      * rationalize use of network sender in ondemand
      64cde6f9
    • Bastian Köcher's avatar
      Make API backwards compatible with CC (#1697) · 95e9be2c
      Bastian Köcher authored
      * Rework how a runtime api calls into the runtime
      
      Now we generate a default implementation for each api call that calls
      a generated method `method_runtime_api_impl`. This newly generated
      method is the one that will be implemented by the `impl_runtime_apis`
      macro in the runtime for the client side.
      
      * Support `changed_in` to change runtime api function signatures
      
      * Update documentation
      
      * Fixes tests
      
      * Implement checking the api version with a predicate
      
      * Make the implementation backwards compatible with CC
      
      * Update wasm files after merge
      
      * Check for wasm runtime differences by building master and current branch
      
      * Update spec_version and wasm files
      
      * Fixes
      
      * Revert my changes
      
      * Remove `patch.crates-io` from test-runtime
      v0.10
      95e9be2c
    • Wei Tang's avatar
      Support multi-hash in multi-trie via PlainDB (#1106) · dd3fdeed
      Wei Tang authored and Arkadiy Paronyan's avatar Arkadiy Paronyan committed
      * Temporarily pin trie to #2
      
      * Use generic and delay trait object casting
      
      Rust does not support super-trait upcasting
      
      * Add PlainDB impl for Ephemeral
      
      * Add PlainDB trait alias for completeness
      
      * Use PlainDB for test TrieBackendStorage fetch
      
      We always check overlay first for a storage fetch, which already checked null data. Using PlainDB here makes it work
      nicer with other PlainDB overlays.
      
      * Update trie reference
      
      * Use HashDBRef in places when approriate
      
      * Use PlainDBRef in places when approriate
      
      * Update trie crate reference
      
      * Remove unused HashDB::keys
      
      * Patch dependencies
      
      * Fix cargolock
      
      * Update cargo lock again
      dd3fdeed
    • Gav Wood's avatar
      Add OnInitialise handler. (#1690) · be46b0c8
      Gav Wood authored
      * Add OnInitialise handler.
      
      Closes #1686
      
      * Fix typo
      
      * Fix wasm build
      
      * Add tests for initialise and finalise.
      be46b0c8
  15. Feb 05, 2019
  16. Feb 04, 2019
  17. Feb 02, 2019