1. Jul 04, 2020
  2. Jul 03, 2020
  3. Jul 02, 2020
    • Bastian Köcher's avatar
      Move `create_inherents` into the block-builder (#6553) · 4f7f312b
      Bastian Köcher authored
      
      
      * Move `create_inherents` into the block-builder
      
      This moves the `create_inherents` call into the block-builder. This has
      the advantage that `create_inherents` will be able to reuse the same
      context that will be used when applying the extrinsics and we also save
      one call to `on_initialize`. To make sure that `create_inherents` does
      not modify any state, we execute it in a transaction that is
      rolled-back after doing the runtime call.
      
      * Feedback and build fix
      
      * Update primitives/runtime/src/lib.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      
      * Update client/block-builder/src/lib.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      4f7f312b
    • Xiliang Chen's avatar
      Allow specify schedule dispatch origin (#6387) · e1d0f84c
      Xiliang Chen authored
      
      
      * allow specify schedule dispatch origin
      
      * fix tests
      
      * use caller origin for scheduled
      
      * fix tests
      
      * line width
      
      * check origin for cancel
      
      * line width
      
      * fix some issues for benchmarking
      
      * fix doc test
      
      * another way to constraint origin
      
      * fix build issues
      
      * fix cancel
      
      * line width
      
      * fix benchmarks
      
      * bump version
      
      * enable runtime upgrade
      
      * add migration code and test
      
      * Update frame/scheduler/src/lib.rs
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      
      * expose migration method
      
      * add notes
      
      * bump version
      
      * remove on_runtime_upgrade
      
      * fix test
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      e1d0f84c
  4. Jul 01, 2020
  5. Jun 30, 2020
  6. Jun 29, 2020
  7. Jun 28, 2020
  8. Jun 26, 2020
  9. Jun 25, 2020
  10. Jun 24, 2020
  11. Jun 23, 2020
    • Sergey Pepyakin's avatar
      pallet-contracts: migrate to nested storage transaction mechanism (#6382) · f36b7857
      Sergey Pepyakin authored
      
      
      * Add a simple direct storage access module
      
      * WIP
      
      * Completely migrate to the transactional system.
      
      * Format
      
      * Fix wasm compilation
      
      * Get rid of account_db module
      
      * Make deposit event eager
      
      * Make restore_to eager
      
      * It almost compiles.
      
      * Make it compile.
      
      * Make the tests compile
      
      * Get rid of account_db
      
      * Drop the result.
      
      * Backport the book keeping.
      
      * Fix all remaining tests.
      
      * Make it compile for std
      
      * Remove a stale TODO marker
      
      * Remove another stale TODO
      
      * Add proof for `terminate`
      
      * Remove a stale comment.
      
      * Make restoration diverging.
      
      * Remove redudnant trait: `ComputeDispatchFee`
      
      * Update frame/contracts/src/exec.rs
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * Introduce proper errors into the storage module.
      
      * Adds comments for contract storage module.
      
      * Inline `ExecutionContext::terminate`.
      
      * Restore_to should not let sacrifice itself if the contract present on the stack.
      
      * Inline `transfer` function
      
      * Update doc - add "if succeeded"
      
      * Adapt to TransactionOutcome changes
      
      * Updates the docs for `ext_restore_to`
      
      * Add a proper assert.
      
      * Update frame/contracts/src/wasm/runtime.rs
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      f36b7857
    • Bastian Köcher's avatar
      `pallet-scheduler`: Check that `when` is not in the past (#6480) · db7f5137
      Bastian Köcher authored
      * `pallet-scheduler`: Check that `when` is not in the past
      
      * Break some lines
      db7f5137
    • thiolliere's avatar
      2c9cadaf
    • Shawn Tabrizi's avatar
      Remove lingering runtime upgrades (#6476) · b10f1a90
      Shawn Tabrizi authored
      * Remove lingering runtime upgrades
      
      * remove unused warnings
      
      * remove tests
      b10f1a90
    • Alexander Theißen's avatar
      Implement nested storage transactions (#6269) · bb2df212
      Alexander Theißen authored
      
      
      * Add transactional storage functionality to OverlayChanges
      
      A collection already has a natural None state. No need to
      wrap it with an option.
      
      * Add storage transactions runtime interface
      
      * Add frame support for transactions
      
      * Fix committed typo
      
      * Rename 'changes' variable to 'overlay'
      
      * Fix renaming change
      
      * Fixed strange line break
      
      * Rename clear to clear_where
      
      * Add comment regarding delete value on mutation
      
      * Add comment which changes are covered by a transaction
      
      * Do force the arg to with_transaction return a Result
      
      * Use rust doc comments on every documentable place
      
      * Fix wording of insert_diry doc
      
      * Improve doc on start_transaction
      
      * Rename value to overlayed in close_transaction
      
      * Inline negation
      
      * Improve wording of close_transaction comments
      
      * Get rid of an expect by using get_or_insert_with
      
      * Remove trailing whitespace
      
      * Rename should to expected in tests
      
      * Rolling back a transaction must mark the overlay as dirty
      
      * Protect client initiated storage tx from being droped by runtime
      
      * Review nits
      
      * Return Err when entering or exiting runtime fails
      
      * Documentation fixup
      
      * Remove close type
      
      * Move enter/exit runtime to excute_aux in the state-machine
      
      * Rename Discard -> Rollback
      
      * Move child changeset creation to constructor
      
      * Move child spawning into the closure
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fixup for code suggestion
      
      * Unify re-exports
      
      * Rename overlay_changes to mod.rs and move into subdir
      
      * Change proof wording
      
      * Adapt a new test from master to storage-tx
      
      * Suggestions from the latest round of review
      
      * Fix warning message
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      bb2df212
  12. Jun 22, 2020
  13. Jun 21, 2020
  14. Jun 19, 2020