1. Nov 14, 2019
    • Max Inden's avatar
      *: Refactor authority discovery (key mngmt, runtime API) (#3955) · becc3b0a
      Max Inden authored
      * {core,srml}/authority-discovery: Move generic to specific session keys
      
      * {srml,core}/authority-discovery: Verify signature outside of runtime
      
      Given that the `core/authority-discovery` uses concrete authority
      identifiers and signatures, one can verify a signature with the
      authority discovery within `core`. Given the above, the `verify` runtime
      api is obsolete and thus removed.
      
      * *: Add authority discovery to the set of session keys
      
      * *: Sign authority discovery DHT payload with keystore instead of runtime
      
      Instead of calling a runtime function to sign a dht payload, which then
      invokes the keystore, pass the keystore to the authority discovery
      module and use it directly.
      
      * core/authority-discovery: Give libp2p Kademlia time to start up
      
      * core/authority-discovery: Move authorities priority group name to const
      
      * node/runtime/src/lib.rs: Bump runtime spec version
      
      * *: Fix lints and node/testing test failures
      
      * *: Fix formatting
      
      * core/authority-discovery: Box dht event channel in unit tests
      
      * node/cli/src/service.rs: Fix future import
      
      * node/cli/src/service.rs: Replace unwrap by expect with proof
      
      * node/cli/src/chain_spec: Remove TODO for testnet key generation
      
      * core/authority-discovery/src/lib: Remove scale encoding TODOs
      
      * srml/authority-discovery: Make comment a doc comment
      
      * core/authority-discovery: Remove unused StreamExt import
      
      * node/runtime: Bump impl version to debug CI
      
      * Test ci.
      
      * Change the line width to 100.
      
      * Revert "Change the line width to 100."
      
      This reverts commit edff1f855bc71e0418bf3a967f81a35591d882e3.
      
      * Fix a check for polkadot to work on forked repos.
      
      * Revert "node/runtime: Bump impl version to debug CI"
      
      This reverts commit 1a90903b4c929bc55a9e0a538af34b50b7f65139.
      
      * Revert "Test ci."
      
      This reverts commit a2c9df574e645158f77cd2b3d4d9355bcae33aab.
      
      * Cargo.lock: Fix wrong lock file merge
      
      * srml/authority-discovery: Keep track of new validator set not upcoming
      
      * core/authority-discovery: Document key retrieval functions
      becc3b0a
  2. Nov 12, 2019
  3. Nov 11, 2019
    • Bastian Köcher's avatar
      Refactor sr-api to not depend on client anymore (#4086) · 2ecffa1c
      Bastian Köcher authored
      
      
      * Refactor sr-api to not depend on client anymore
      
      * Fix benches
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * Apply suggestions from code review
      2ecffa1c
    • Tomasz Drwięga's avatar
      Typed chain state queries over rpc. (#4079) · 57ab3aeb
      Tomasz Drwięga authored
      * Create typed client helpers for querying chain state storage items declared by
      'decl_storage!'.
      
      * Update substrate-rpc-custom functions to use async await syntax.
      
      * The implementation of substrate-rpc-custom was a bit verbose and repetitive.
      This commit makes the implementation simpler by intruducing a struct which
      represents query for a typed value in storage. The new struct is called
      StorageQuery. A StorageQuery wraps a raw StorageKey but is not directy
      constructable. To construct a StorageQuery, the user must supply an
      implementation of a srml_support::storage::generator trait such as
      StorageValue or StorageMap.
      
      A type implementing one of the generator traits can be aquired by:
      A) marking a storage item as pub within a call to decl_storage (recommended)
      or B) implementing one of the generator types manually.
      
      While option B may sometimes me necessary, it's not recommended because
      separate manual implementaions may lose sync with the original definition.
      
      * drop unused dependency
      
      * fmt
      
      * Remove unnecessary pub from Authorities field in test-runtime storage
      declaration.
      
      This field was added to support a test in an earlier commit. The
      test no longer relies on test-runtime so the change can be reverted.
      
      * Move it to srml as support extension.
      
      * Fix long lines.
      
      * Fix.
      57ab3aeb
  4. Nov 10, 2019
    • Kian Paimani's avatar
      Remove Self vote from phragmen (#4081) · ed5d31a2
      Kian Paimani authored
      * first draft of everything that works
      
      * Some test fixes
      ed5d31a2
    • Bastian Köcher's avatar
      Substrate runtime interface 2.0 (#4057) · b691cfe0
      Bastian Köcher authored
      * Adds first version of traits for generating the host functions
      
      * First steps of the procedural macro
      
      * Implements generation of the host extern functions
      
      * Prefix ext host function with snake case trait name
      
      * Implement host functions implementation on the host
      
      * Change `HostFunctions` interface
      
      * Implement `HostFunctions` for tuples
      
      * Make `WasmExecutor` generic over the host functions
      
      * Begin to add a test and make it compile
      
      * Make the test succeed
      
      * Add test to ensure that host functions are not found
      
      * It's alive! Make the `set_storage` test work
      
      * Add test for mutable references
      
      * Code cleanup and documentation etc
      
      * Add marker trait for types that should be passed as SCALE encoded
      
      * Inherit the visibility from the trait and more improvements
      
      * More impls and move them into their own file
      
      * Code simplification by dropping one trait
      
      * Give it a better name
      
      * Implement traits for arrays
      
      * Refactor code to support pass by codec/inner
      
      * Docs
      
      * Implement pass by inner for some crypto types and add a test
      
      * Implement exchangeable function support
      
      * Rewrite sr-io with as runtime interface
      
      * Start reworking after master merge
      
      * Adds `PassByCodec` derive
      
      * Adds `PassByInner` derive
      
      * Fix compilation errors
      
      * More implementations
      
      * Implement runtime interface traits for `str`
      
      * Make `sr-io` compile again
      
      * Fix more compilation errors
      
      * More progress on getting stuff back to compile
      
      * More compilation fixes
      
      * Fix warnings
      
      * Remove le conversions
      
      * Add support for `wasm_only` interfaces
      
      * Implement `Allocator` interface
      
      * Improve error message
      
      * Move `WasmAllocator` to `sr-io` and more clean ups
      
      * Use correct function signature for wasm functions
      
      * Store the host functions with the Wasm runtime
      
      * Docs update
      
      * Fix compilation after master merge
      
      * Remove `sr-io/without_std`
      
      * Make `srml-support` tests run again
      
      * More compilation error fixes
      
      * Use correct doc syntax
      
      * Fix test-runtime
      
      * Fix compilation
      
      * Catch native panics when executing the wasm runtime
      
      As with the native runtime, we now catch all native panics when we
      execute the wasm runtime. The panics inside the wasm runtime were
      already catched before by the wasm executor automatically, but any panic
      in the host functions could bring down the node. The recent switch to
      execute the native counterpart of the host function in `sr-io`, makes
      this change required. The native `sr-io` functions just `panic` when
      something is not provided or any other error occured.
      
      * Fix compilation
      
      * Don't panic in a panic
      
      * Move `sr-sandbox` to new runtime interface
      
      * Fixes tests after sandbox changes
      
      * Make sure we detect invalid utf8
      
      * Fixes after master merge
      
      * Adds pass by enum strategy
      
      * Fix wasmtime integration
      
      * Some macro structure clean up
      
      * Rework and test exchangebale host functions
      
      * PassBy derive macros documentation
      
      * Docs for `runtime_interface` macro
      
      * Support wild card argument names
      
      * Adds ui tests
      
      * Make sure that we are backwards compatible to the old runtime interfaces
      
      * Documentation
      
      * Fixes after latest master merge
      
      * Make `wasmtime` happy
      
      * Make `full_crypto` work
      
      * Make the new interface versionable
      
      * Rename `Sanboxing` to `Sandbox`
      
      * Don't finalize in test while importing
      
      * Fix Performance regression
      
      * Fix test
      b691cfe0
    • André Silva's avatar
      srml-timestamp: define max timestamp drift in millis (#4077) · f4c1c836
      André Silva authored
      * srml-timestamp: define max timestamp drift in millis
      
      * srml-timestamp: suffix MAX_TIMESTAMP_DRIFT with unit
      f4c1c836
  5. Nov 08, 2019
  6. Nov 07, 2019
  7. Nov 06, 2019
  8. Nov 05, 2019
  9. Nov 04, 2019
  10. Nov 03, 2019
    • Wei Tang's avatar
      Substrate EVM (#3927) · 2e424f4d
      Wei Tang authored
      
      
      * srml-evm: init the basic structures
      
      * srml-evm: finish executor implementation
      
      * srml-evm: implement balance deposit and withdraw
      
      * srml-evm: implement the actuall call/create
      
      * srml-evm: use crates.io version of evm
      
      * srml-evm: fix no-std compile
      
      * Remove dependency patch
      
      * Update to evm 0.14
      
      * Use double map for account storage
      
      * Add precompiles support
      
      * Add some basic docs
      
      * Use runtime_io::chain_id()
      
      * Update srml/evm/src/lib.rs
      
      Co-Authored-By: default avatarXiliang Chen <[email protected]>
      
      * Update srml/evm/src/lib.rs
      
      Co-Authored-By: default avatarXiliang Chen <[email protected]>
      
      * Fix WithdrawReason
      
      * Unique saturate balance to u128
      
      * Unique saturate withdraw to u128
      
      * Remove extern crate alloc
      
      * Move account code to a separate storage and use ref for convert_account_id
      
      * More match cause for error message
      
      * Fix potential interger overflow
      
      * Use decode_len for fetching code length
      2e424f4d
    • Tomasz Drwięga's avatar
      Deprecate ValidateUnsigned and prevent duplicate heartbeats (#3975) · 69c4e2f7
      Tomasz Drwięga authored
      * Add pre-dispatch checks for ValidateUnsigned
      
      * Deprecate ValidateUnsigned.
      
      * Bump specversion.
      
      * Fix test.
      69c4e2f7
    • Tomasz Drwięga's avatar
      Avoid sending heartbeat if we are already considered online. (#3981) · 45e79d61
      Tomasz Drwięga authored
      * Don't send a heartbeat if already online.
      
      * Remove env_logger.
      
      * Update lock.
      
      * Bump runtime.
      
      * Merge master
      45e79d61
  11. Nov 02, 2019
  12. Nov 01, 2019
    • Kian Paimani's avatar
      Optional serde for phragmen support (#3994) · 084b1580
      Kian Paimani authored
      
      
      * Add serde to phragmen
      
      * Update lock file
      
      * and bump a version
      
      * and bump a version again
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * revert impl-tarit for tuple update
      
      * revert session.
      
      * Revert "revert session."
      
      This reverts commit 98086c9db56677068db85f74320868b2c10d1c00.
      
      * Revert "revert impl-tarit for tuple update"
      
      This reverts commit 28a7fddee2e09c5785b19883f743065e0be8f331.
      084b1580
    • Gavin Wood's avatar
      Add events for im_online (#3991) · 26f4084f
      Gavin Wood authored
      * Add AllGood event for im_online
      
      * Another event just in case.
      
      * Bump runtime
      26f4084f
  13. Oct 31, 2019
  14. Oct 30, 2019
  15. Oct 29, 2019
  16. Oct 28, 2019