1. Jun 01, 2021
    • Ashley's avatar
      Use `SpawnTaskHandle`s for spawning tasks in the tx pool (#8958) · 84e40238
      Ashley authored
      * Remove futures-diagnose
      
      * Use `SpawnTaskHandle`s for spawning tasks in the tx pool
      
      * Box the spawner
      
      * Fix tests
      
      * Use the testing task executor
      84e40238
    • Kian Paimani's avatar
      Inject hashed prefix for remote-ext (#8960) · ac3c88fd
      Kian Paimani authored
      
      
      * Inject for remote-ext
      
      * Update utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Update utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      ac3c88fd
    • Bastian Köcher's avatar
      Dependabot use correct label (#8973) · ba52404a
      Bastian Köcher authored
      ba52404a
    • Squirrel's avatar
      Spellling corrections (no code changes) (#8971) · c0dfe2c3
      Squirrel authored
      * Spelling corrections
      
      * As this might break let's do as a separate PR
      c0dfe2c3
    • Sergey Pepyakin's avatar
      Update wasmtime to 0.27 (#8913) · 7a284fcf
      Sergey Pepyakin authored
      * Update wasmtime to 0.27
      
      A couple of notes:
      
      - Now we are fair about unsafeness of runtime creation via an compiled artifact.
        This change was prompted by the change in wasmtime which made
        `deserialize` rightfully unsafe. Now `CodeSupplyMode` was hidden and
        the `create_runtime` now takes the blob again and there is now a new
        fn for creating a runtime with a compiled artifact.
      - This is a big change for wasmtime. They switched to the modern backend
        for code generation. While this can bring performance improvements, it
        can also introduce some problems. In fact, 0.27 fixed a serious issue
        that could lead to sandbox escape. Hence we need a proper burn in.
      
      This would require a change to PVF validation host as well.
      
      * Filter regalloc logging
      7a284fcf
    • Squirrel's avatar
      Reduce cargo doc warnings (#8947) · dc88e6dd
      Squirrel authored
      
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      dc88e6dd
    • Keith Yeung's avatar
      Allow usage of path in construct_runtime! (#8801) · 3b1c2f55
      Keith Yeung authored
      * Allow usage of path in construct_runtime!
      
      * Fix whitespace
      
      * Fix whitespace
      
      * Make expand_runtime_metadata accept slice instead of Iterator
      
      * Include Call and Event in construct_runtime for testing
      
      * Migrate impl_outer_event to proc macro
      
      * Fix integrity_test_works
      
      * Update UI test expectations
      
      * Factor in module path while generating enum variant or fn names
      
      * Use ParseStream::lookahead for more helpful error messages
      
      * Remove generating outer_event_metadata
      
      * Ensure pallets with different paths but same last path segment can coexist
      
      * Remove unnecessary generated function
      
      * Migrate decl_outer_config to proc macro
      
      * Add default_filter test for expand_outer_origin
      
      * Allow crate, self and super keywords to appear in pallet path
      
      * Add UI test for specifying empty pallet paths in construct_runtime
      3b1c2f55
  2. May 31, 2021
  3. May 29, 2021
  4. May 28, 2021
    • Sebastian Müller's avatar
      weather -> whether (#8938) · 1888e56a
      Sebastian Müller authored
      1888e56a
    • joe petrowski's avatar
      32b79365
    • Shawn Tabrizi's avatar
      Simple `MaxBoundedLen` Implementations (#8793) · 444d4e20
      Shawn Tabrizi authored
      
      
      * implement max_values + storages info
      
      * some formatting + doc
      
      * sudo sanity check
      
      * timestamp
      
      * assets (not working)
      
      * fix assets
      
      * impl for proxy
      
      * update balances
      
      * rename StoragesInfo -> PalletStorageInfo
      
      * merge both StorageInfoTrait and PalletStorageInfo
      
      I think it is more future proof. In the future some storage could make
      use of multiple prefix. Like one to store how much value has been
      inserted, etc...
      
      * Update frame/support/procedural/src/storage/parse.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * Update frame/support/procedural/src/storage/storage_struct.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * Fix max_size using hasher information
      
      hasher now expose `max_len` which allows to computes their maximum len.
      For hasher without concatenation, it is the size of the hash part,
      for hasher with concatenation, it is the size of the hash part + max
      encoded len of the key.
      
      * fix tests
      
      * fix ui tests
      
      * Move `MaxBoundedLen` into its own crate (#8814)
      
      * move MaxEncodedLen into its own crate
      
      * remove MaxEncodedLen impl from frame-support
      
      * add to assets and balances
      
      * try more fixes
      
      * fix compile
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * nits
      
      * fix compile
      
      * line width
      
      * fix max-values-macro merge
      
      * Add some derive, needed for test and other purpose
      
      * use weak bounded vec in some cases
      
      * Update lib.rs
      
      * move max-encoded-len crate
      
      * fix
      
      * remove app crypto for now
      
      * width
      
      * Revert "remove app crypto for now"
      
      This reverts commit 73623e9933d50648e0e7fe90b6171a8e45d7f5a2.
      
      * unused variable
      
      * more unused variables
      
      * more fixes
      
      * Add #[max_encoded_len_crate(...)] helper attribute
      
      The purpose of this attribute is to reduce the surface area of
      max_encoded_len changes. Crates deriving `MaxEncodedLen` do not
      need to add it to `Cargo.toml`; they can instead just do
      
      ```rust
      \#[derive(Encode, MaxEncodedLen)]
      \#[max_encoded_len_crate(frame_support::max_encoded_len)]
      struct Example;
      ```
      
      * fix a ui test
      
      * use #[max_encoded_len_crate(...)] helper in app_crypto
      
      * remove max_encoded_len import where not necessary
      
      * update lockfile
      
      * fix ui test
      
      * ui
      
      * newline
      
      * fix merge
      
      * try fix ui again
      
      * Update max-encoded-len/derive/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * extract generate_crate_access_2018
      
      * Update lib.rs
      
      * compiler isnt smart enough
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      444d4e20
    • Alexander Theißen's avatar
    • Alexander Theißen's avatar
      Fix check runtime CI (#8930) · bf983749
      Alexander Theißen authored
      * Fix check_runtime.sh script
      
      * contracts: Remove confusing "Related Modules" doc
      bf983749
  5. May 27, 2021
  6. May 26, 2021
  7. May 25, 2021
    • Alexander Theißen's avatar
      contracts: Fix some minor bugs around instantiation (#8879) · c92d4a26
      Alexander Theißen authored
      
      
      * Fix output of wrongly outputted error
      
      The "Tombstoned a contract that is below the subsistence threshold: {:?}" was
      triggered when too few balance was provided. It was a false alarm.
      
      * Fix return of wrong code_len
      
      * Split up `NotCallable` into more fine grained errors
      
      * Fix typos in docs
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      
      * RentNotPayed -> RentNotPaid
      
      * Fix typo: payed -> paid
      
      It is OK to change the in-storage field name because:
      
      1. The SCALE encoding is not based on names only on position.
      2. The struct is not public (only to the crate).
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      c92d4a26
    • Denis_P's avatar
      Fix build job (#8905) · a28a517c
      Denis_P authored
      * CI: fix node-template packaging
      
      * add explicit deps versions
      a28a517c
    • Denis_P's avatar
      Fix stderr in new Rust nightly (#8904) · 2928e428
      Denis_P authored
      * CI: revert me
      
      * fix stderr
      
      * CI: revert me
      
      * typo
      
      * more stderr fixes
      
      * Revert "CI: revert me"
      
      This reverts commit 5f47effc4965fa5c0c2a6ed92e434a6adb6b1dce.
      
      * Revert "CI: revert me"
      
      This reverts commit 7f785660c797b703dd36272cbe313056dd7a1858.
      2928e428
    • Frederik Schulz's avatar
      Removes unnecessary blank impl for Backend (#8897) · ad76ac79
      Frederik Schulz authored
      * Removes unnecessary blank impl for Backend
      
      This commit removes a from my perspective unneccessary implementation
      for &T which implement Backend.
      
      The current implementation exists (again from my perspective) solely
      to satisfy a methods &mut self parameters (i.e. allows to satisfy
      this for an & reference via using &mut &Backend).
      
      As all implementors use a RefCell with borrow_mut() where actually
      calling the mentioned &mut self method and then forwad to the
      {} implementation of either TrieBackend or ProvingBackend, the
      current &mut self seems to be not needed.
      
      * Fixed tests client
      ad76ac79
    • Kian Paimani's avatar
      make remote-ext work with ws and safe RPCs (#8889) · ec409615
      Kian Paimani authored
      
      
      * make remote-ext work with ws and safe RPCs
      
      * Update docs.
      
      * Update utils/frame/remote-externalities/Cargo.toml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Fix test
      
      * Update lock file
      
      * Update utils/frame/remote-externalities/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix build again.
      
      * revert lifetime stuff
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      ec409615
    • Bastian Köcher's avatar
      Introduce `code_substitute` (#8898) · 53e28b98
      Bastian Köcher authored
      This introduces a new field `code_substitute` into the chain spec. This
      can be used to substitute the on-chain wasm starting from a given block
      until there is another wasm on chain (determined through the
      `spec_version`). This can be used to fix broken on chain wasm runtimes.
      53e28b98