Skip to content
  1. Jan 08, 2020
  2. Jan 07, 2020
  3. Jan 05, 2020
  4. Jan 03, 2020
  5. Jan 02, 2020
  6. Dec 30, 2019
  7. Dec 28, 2019
    • Bastian Köcher's avatar
      Fix cli for structopt 0.3.7 and pin to that version (#4509) · 56355879
      Bastian Köcher authored
      * Fix cli for structopt 0.3.7 and pin to that version
      
      This is just some hotfix to make everything compile. In the future it
      will require another pr to not depend on internals of StructOpt, but
      that will probably also require some additions to StructOpt itself. To
      not break the code again with another StructOpt, this also pins the
      StructOpt version.
      
      * Fix benches
      
      * Fix for fix
      56355879
  8. Dec 24, 2019
  9. Dec 22, 2019
  10. Dec 21, 2019
  11. Dec 20, 2019
  12. Dec 19, 2019
    • Shawn Tabrizi's avatar
      Update Balances Pallet for `decl_error!` (#4405) · 4fffe19c
      Shawn Tabrizi authored
      * Update balances for `decl_error!`
      
      * Update for new `decl_error`
      
      * Fix staking tests
      
      * Use `ok_or` over `match`
      4fffe19c
    • Gavin Wood's avatar
      bbda30c7
    • Shawn Tabrizi's avatar
      Fix Fees in Substrate (#4421) · 1d04d5a0
      Shawn Tabrizi authored
      * Fix fees
      
      * Add comment to explain saturated multiply accumulate
      
      * Fix final fee calculation
      
      * Fix doc
      
      * improve doc
      
      * grumble
      
      * Update tests
      
      * Fix executor tests
      1d04d5a0
    • Bastian Köcher's avatar
      Make `decl_error!` errors usable (#4449) · 8e393aa5
      Bastian Köcher authored
      * Make `decl_error!` errors usable
      
      This pr implements support for returning errors of different pallets in
      a pallet. These errors need to be declared with `decl_error!`.
      
      The pr changes the following:
      
      - Each dispatchable function now returns a `DispatchResult` which is an
      alias for `Result<(), DispatchError>`.
      - `DispatchError` is an enum that has 4 variants:
        - `Other`: For storing string error messages
        - `CannotLookup`: Variant that is returned when something returns a
        `sp_runtime::LookupError`
        - `BadOrigin`: Variant that is returned for any kind of bad origin
        - `Module`: The error of a specific module. Contains the `index`,
        `error` and the `message`. The index is the index of the module in
        `construct_runtime!`. `error` is the index of the error in the error
        enum declared by `decl_error!`. `message` is the message to the error
        variant (this will not be encoded).
      - `construct_runtime!` now creates a new struct `ModuleToIndex`. This
      struct implements the trait `ModuleToIndex`.
      - `frame_system::Trait` has a new associated type: `ModuleToIndex` that
      expects the `ModuleToIndex` generated by `construct_runtime!`.
      - All error strings returned in any module are being converted now to `DispatchError`.
      - `BadOrigin` is the default error returned by any type that implements `EnsureOrigin`.
      
      * Fix frame system benchmarks
      8e393aa5
  13. Dec 18, 2019
    • Leo Arias's avatar
      Fix typo in comment (#4433) · 06e382b0
      Leo Arias authored
      06e382b0
    • Wei Tang's avatar
      pallet-evm: default implementation for FeeCalculator and ConvertAccountId and... · 7af81c29
      Wei Tang authored
      pallet-evm: default implementation for FeeCalculator and ConvertAccountId and separate gas price (#4424)
      
      * Default implementation for FeeCalculator and ConvertAccountId and separate gas price
      
      * Styling fixes and some docs addition
      
      * TruncateConvertAccountId -> HashTruncateConvertAccountId
      
      * Fix compile
      7af81c29
    • Shawn Tabrizi's avatar
      More `decl_error!` migrations (#4427) · 57c19bcf
      Shawn Tabrizi authored
      * Update assets to `decl_error`
      
      * Update aura to `decl_error`
      
      * Update authority discovery to `decl_error`
      
      * Update collective to `decl_error`
      
      * Update evm to `decl_error!`
      
      * Fix error with replace
      
      * Revert "Update authority discovery to `decl_error`"
      
      This reverts commit 26e8f3c56656963d847e984c6f2c8e1f88014899.
      
      * Revert "Update aura to `decl_error`"
      
      This reverts commit 8f17c44ca8375a4a755710aaab7ad4d9522c4376.
      
      * Update democracy to `decl_error`
      
      * Update finality-tracker to `decl_error`
      
      * Update grandpa to `decl_error`
      
      * `assert` to `ensure` in dispatchable function
      57c19bcf
    • Gavin Wood's avatar
      Remove incorrect assumption that runners-up were sorted by account (#4429) · 608d6334
      Gavin Wood authored
      * Remove incorrect assumption that runners-up were sorted by account
      
      * Fix
      
      * Update lib.rs
      608d6334
  14. Dec 17, 2019
  15. Dec 16, 2019
    • Shawn Tabrizi's avatar
      Make sudo use `decl_error!` (#4369) · 7e3872c0
      Shawn Tabrizi authored
      * Make sudo use `decl_error`
      
      * copy pasta error
      
      * Update to use `as_str`
      
      * Add doc
      
      * Add back `decl_error`
      7e3872c0
    • Tomasz Drwięga's avatar
      [big refactor] Remove crate aliasing. (#4395) · 8778ca7d
      Tomasz Drwięga authored
      * Rename: Phase 1.
      
      * Unify codec.
      
      * Fixing: Phase 2
      
      * Fixing: Phase 3.
      
      * Fixing: Phase 4.
      
      * Fixing: Phase 5.
      
      * Fixing: Phase 6.
      
      * Fixing: Phase 7.
      
      * Fixing: Phase 8. Tests
      
      * Fixing: Phase 9. Tests!!!
      
      * Fixing: Phase 10. Moar tests!
      
      * Finally done!
      
      * More fixes.
      
      * Rename primitives:: to sp_core::
      
      * Apply renames in finality-grandpa.
      
      * Fix benches.
      
      * Fix benches 2.
      
      * Revert node-template.
      
      * Fix frame-system in our modules.
      8778ca7d
    • Gavin Wood's avatar
      Identity module enhancements (#4401) · f14d98a4
      Gavin Wood authored
      * Updates; not yet tested.
      
      * Fix and add tests
      
      * Add test
      
      * Update a few comments
      f14d98a4
    • Gavin Wood's avatar
      Remove proposal when it is refused (#4399) · 83711ca2
      Gavin Wood authored
      * Remove proposal when it is refused.
      
      * Fix build, add test
      83711ca2
  16. Dec 15, 2019
  17. Dec 14, 2019
    • cheme's avatar
      Fix key collision for child trie (#4162) · 0ece5d9e
      cheme authored
      * In progress, runtime io must switch to future proof root +
      child_specific (unique id) + u32 type.
      
      * Switch interface, sr-io seems ok, rpc could use similar interface to
      sr-io, genesis json broken if there is child trie in existing encoding
      genesis.
      
      * test from previous implementation.
      
      * fix proving test.
      
      * Restore Keyspacedb from other branch, only apply to child trie.
      
      * Removing unneeded child_info from child root (child info are stored
      if things changed, otherwhise the root does not change).
      
      * Switch rpc to use same format as ext: more future proof.
      
      * use root from child info for trie backend essence.
      
      * Breaking long lines.
      
      * Update doc and clean pr a bit.
      
      * fix error type
      
      * Restore removed doc on merge and update sr-io doc.
      
      * Switch child storage api to use directly unique id, if managed id
      where to be put in place, the api will change at this time.
      
      * Clean deprecated host interface from child.
      
      * Removing assertion on child info (can fail depending on root
      memoization).
      
      * merging child info in the overlay when possible.
      
      * child iteration by prefix using child_info.
      
      * Using ChainInfo in frame support. ChainInfo gets redesign to avoid
      buffers allocation on every calls.
      
      * Add length of root to the data of child info.
      
      * comments
      
      * Encode compact.
      
      * Remove child info with root.
      
      * Fix try_update condition.
      
      * Comment Ext child root caching.
      
      * Replace tuples by struct with field
      
      * remove StorageTuple alias.
      
      * Fix doc tests, and remove StorageOverlay and ChildStorageOverlay
      aliases.
      0ece5d9e
  18. Dec 13, 2019