1. Feb 13, 2019
  2. Feb 11, 2019
    • Gav Wood's avatar
      Add Proposed event (#1761) · 90a837d4
      Gav Wood authored
      * Add Proposed event.
      
      * Bump and rebuild
      90a837d4
    • Marcio Diaz's avatar
      Adds new execution strategy nativeElseWasm (#1546) · b8bd4996
      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
      b8bd4996
    • Bastian Köcher's avatar
      Make `sr-api-macros` and `srml-support` renaming of crates (#1757) · f9975af0
      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.
      f9975af0
  3. Feb 10, 2019
    • Gav Wood's avatar
      Vesting schedules. (#1726) · e5ac7f09
      Gav Wood authored
      * Vesting.
      
      * Vesting stuff.
      
      * Add new wasm blobs
      
      * Bump runtime version
      
      * Update lock
      
      * Fix tests
      
      * Bump version
      e5ac7f09
  4. Feb 08, 2019
  5. Feb 07, 2019
  6. Feb 06, 2019
    • Bastian Köcher's avatar
      Moves `node-template` into substrate repo (#1637) · 567122fa
      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
      567122fa
    • Wei Tang's avatar
      Update trie to v0.11 (#1704) · 1d0049ee
      Wei Tang authored
      * Update trie to v0.11
      
      * Update wasm runtimes
      1d0049ee
    • Bastian Köcher's avatar
      Make API backwards compatible with CC (#1697) · 190393d4
      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
      190393d4
    • Gav Wood's avatar
      Add OnInitialise handler. (#1690) · fa2e3234
      Gav Wood authored
      * Add OnInitialise handler.
      
      Closes #1686
      
      * Fix typo
      
      * Fix wasm build
      
      * Add tests for initialise and finalise.
      fa2e3234
  7. Feb 05, 2019
  8. Jan 31, 2019
    • Gav Wood's avatar
      Transaction signing payload is hashed first (#1624) · a58de5d0
      Gav Wood authored
      * Transaction signing payload is hashed first
      
      * Fix tests
      
      * Rebuild wasm
      
      * Fix tests
      
      * Only take payload hash when payload.len > 256 bytes.
      
      * Fix tests
      a58de5d0
    • Sergei Pepyakin's avatar
      Declare storage in contracts module (#1591) · 80d4a0a2
      Sergei Pepyakin authored
      * Declare storage in contracts module
      
      This adds storage declarations of the contract module to the runtime metadata and this ultimately gives ability to inspect the storage of contract module (except contracts storage) for polkadot ui
      
      * Bump the runtime version to 17.
      
      * Rebuild the binaries.
      
      * Rebuild
      
      * Rebuild [2]
      80d4a0a2
  9. Jan 30, 2019
    • cheme's avatar
      Merge metadata by module (#1428) · ea2a03b7
      cheme authored
      Clean up metadata format. Merge events metadata into runtime metadata. Remove low value info (internal macro identifier and counters).
      ea2a03b7
  10. Jan 29, 2019
  11. Jan 25, 2019
  12. Jan 24, 2019
  13. Jan 22, 2019
    • Bastian Köcher's avatar
      Rewrite Inherent data (#1488) · 70b1af7b
      Bastian Köcher authored
      
      
      * Implement new inherent data
      
      * Fixes compilation on wasm
      
      * Fixes after rebase
      
      * Switch back to generate inherent stuff by macro
      
      * Update after rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Fix compilation after rebase
      
      * Address grumbles
      
      * Remove `InherentDataProviders` from `Client`
      
      * Update wasm files after rebase
      
      * Address grumbles
      
      * Fixes compilation after latest merge
      
      * Last fix
      70b1af7b
    • Sergei Pepyakin's avatar
      Dispatch Calls to other modules (#1473) · 58cd6530
      Sergei Pepyakin authored
      * WIP
      
      * Use system::Origin::Signed as an origin
      
      * Add a vm test for ext_dispatch_call
      
      * Take fee for dispatching a Call
      
      # Conflicts:
      #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
      
      * Clean & Rebuild
      
      # Conflicts:
      #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
      
      * Dispatch call test.
      
      * Rebuild the runtime.
      
      * Fix the length of the buffer.
      
      * Rebuild binaries.
      58cd6530
  14. Jan 21, 2019
    • Bastian Köcher's avatar
      Make runtime api calls native when possible (#1302) · 010e6311
      Bastian Köcher authored
      * Add simple benchmark for the runtime api
      
      * Make the executor support native calls
      
      * Some documentation
      
      * Hide behind `feature = "std"`
      
      * Rework the native calls
      
      * Make all tests compile again
      
      * Make every parameter using the Block serialized/deserialized in the native call
      
      * Forward `UnwindSafe` requirement
      
      * Remove debug stuff
      
      * Add some documentation
      
      * Fixes warnings
      
      * Fixes errors after master rebase
      
      * Fixes compilation after master rebase
      
      * Fixes compilation after rebase
      010e6311
  15. 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
  16. Jan 10, 2019
  17. Jan 09, 2019
    • Gav Wood's avatar
      Cherry updates (#1373) · fc5fdab5
      Gav Wood authored
      - Introduce compact extrinsics into Cherry
      - Remove UpgradeKey from Cherry (Sudo is enough)
      - Remove networkId from Cherry properties
      fc5fdab5
  18. Dec 21, 2018
    • Gav Wood's avatar
      Sudo module (#1315) · ef8b9465
      Gav Wood authored
      * Sudo module
      
      * Fix comment
      
      * Fix errors
      
      * Fix test
      
      * Update hashes
      
      * Final test fixes and build
      
      * Final hex change
      ef8b9465
  19. Dec 20, 2018
  20. Dec 10, 2018
    • asynchronous rob's avatar
      Punish offline validators, aura-style (#1216) · 6299b42a
      asynchronous rob authored
      * make offline-reporting infrastructure more generic
      
      * add a listener-trait for watching when the timestamp has been set
      
      * prevent inclusion of empty offline reports
      
      * add test for exclusion
      
      * generate aura-offline reports
      
      * ability to slash many times for being offline "multiple" times
      
      * Logic for punishing validators for missing aura steps
      
      * stub tests
      
      * pave way for verification of timestamp vs slot
      
      * alter aura import queue to wait for timestamp
      
      * check timestamp matches seal
      
      * do inherent check properly
      
      * service compiles
      
      * all tests compile
      
      * test srml-aura logic
      
      * aura tests pass
      
      * everything builds
      
      * some more final tweaks to block authorship for aura
      
      * switch to manual delays before step
      
      * restore substrate-consensus-aura to always std and address grumbles
      
      * update some state roots in executor tests
      
      * node-executor tests pass
      
      * get most tests passing
      
      * address grumbles
      6299b42a
    • Gav Wood's avatar
      Governance: Voters put money where mouth is (#1183) · 66cbe232
      Gav Wood authored
      * Referendums only gett enacted after a delay; successful voters must
      lock funds up until enactment.
      
      * Build fixes.
      
      * Configurable council enact delay, fix test builds.
      
      * Fix spelling
      
      * Remove TODO
      66cbe232
    • Bastian Köcher's avatar
      Make runtime api generate version and identifier information (#1226) · 1f671934
      Bastian Köcher authored
      * Make `decl_runtime_apis!` implement `RuntimeApiInfo` for all runtime
      apis
      
      * Make the runtime side generate the info constants as well
      
      * Make `RuntimeApiInfo` implementation use the correct generics
      
      * Adds a test for the runtime api info stuff
      
      * Remove duplicated code by using block from `test-client`
      
      * Adds `compile_fail` tests for `api_version`
      
      * Adds documentation for `api_version`
      
      * Make `impl_runtime_apis!` generate `RUNTIME_API_VERSIONS`
      
      * Update documentation and tests for `RUNTIME_API_VERSIONS`
      
      * Implement `has_api` by using the `RuntimeApiInfo`
      
      * Make `impl_runtime_apis` check that trait identifiers are unique
      
      * Prefix all runtime api function with the corresponding trait
      
      So `execute_block` will be called `Core_execute_block`.
      This makes it possible to have traits implement a function with the
      same name.
      
      * Rebase master
      
      * Update after master rebase
      1f671934
  21. Dec 03, 2018
  22. Nov 30, 2018
    • Bastian Köcher's avatar
      Rewrite `impl_runtime_apis!` and `decl_runtime_apis!` as proc-macro (#1174) · ed421c56
      Bastian Köcher authored
      
      
      * Rewrites `impl_runtime_apis!` macro as `proc-macro`
      
      * Adds some documentation
      
      * Require the `impl_runtime_apis` to use a path for accessing the trait
      
      * Make the runtime implement `GetNodeBlockType`
      
      * Moves first chunk of runtime api code into the `impl_runtime_apis` macro
      
      This also renames `ClientWithApi` into `RuntimeApi`.
      
      * Make `impl_runtime_apis` use `runtime` api version automatically
      
      * `decl_runtime_apis` automatically adds `Block: BlockT` as generic parameter
      
      * Remove function generic arguments in block builder api
      
      * Remove some unnused stuff from the `decl_runtime_apis` macro
      
      * Make `InherentData` working again
      
      * Make `impl_runtime_apis!` implement the `RuntimeApi` side as well
      
      * Make it compile again after rebasing with master
      
      * Split `sr-api-macros` into multiple files
      
      * Reimplement `decl_runtime_apis!` as proc_macro
      
      * Use `decl_runtime_apis!` for `Core` as well and improve error reporting
      
      * Adds documentation for `decl_runtime_apis!` and `impl_runtime_apis!`
      
      * Move some code
      
      * Adds compile fail tests
      
      * Adds a test and fixes some bugs
      
      * Make `impl_runtime_apis!` support `_` as parameter name
      
      * Fixes build errors with wasm
      
      * Wasm rebuild after master rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Addresses some grumbles
      
      * Adds test to ensure that method signatures need to match
      
      * New wasm files
      ed421c56
    • Guanghua Guo's avatar
      Delete unused extern (#1178) · 309f627d
      Guanghua Guo authored
      309f627d
  23. Nov 22, 2018
  24. 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
  25. Nov 16, 2018