Skip to content
  1. Jun 25, 2020
  2. Jun 24, 2020
  3. 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
  4. Jun 22, 2020
  5. Jun 21, 2020
  6. Jun 19, 2020
  7. Jun 18, 2020
    • Benjamin Kampmann's avatar
      4b5a0680
    • Wei Tang's avatar
      Pallet: Atomic Swap (#6349) · bd5ad9fd
      Wei Tang authored
      
      
      * Init atomic swap pallet
      
      * Implement module swap operations
      
      * Add successful swap test
      
      * Bump node spec_version
      
      * Fix storage name
      
      * Add ProofLimit parameter to prevent proof size being too large
      
      * Add missing events
      
      * Basic weight support
      
      * Add basic docs
      
      * Mark swap on claim
      
      This handles the additional case if `repatriate_reserved` fails.
      
      * Add additional expire handler
      
      * Update frame/atomic-swap/src/lib.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Add docs on ProofLimit
      
      * Fix test
      
      * Return Ok(()) even when the transfer fails
      
      Because we need to mark the swap as claimed no matter what.
      
      * Remove retry logic
      
      It's overkill. Swap is about something being executed, not necessarily successful.
      Although there should be logic (reserve and unreserve) to make it so that both parties *believes*
      that the execution is successful.
      
      * succeed -> succeeded
      
      * Add docs on duration -- revealer should use duration shorter than counterparty
      
      * Missing trait type
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      bd5ad9fd
    • Arkadiy Paronyan's avatar
      Allow empty values in the storage (#6364) · f05ae63a
      Arkadiy Paronyan authored
      * Allow empty values in the storage
      
      * Bump trie-bench
      
      * Bump trie-bench
      f05ae63a
    • Bastian Köcher's avatar
      `decl_module!` print better error on duplicate reserved keyword (#6384) · 325dab19
      Bastian Köcher authored
      * `decl_module!` print better error on duplicate reserved keyword
      
      This prints a better error message on duplicated reserved keywords,
      instead of complaining because of missing `origin`.
      
      * Review feedback
      325dab19
    • Gavin Wood's avatar
      Restrict remove_proxies (#6383) · a0541e86
      Gavin Wood authored
      a0541e86
  8. Jun 17, 2020
  9. Jun 16, 2020
  10. Jun 15, 2020