Skip to content
  1. Dec 20, 2019
  2. 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
    • André Silva's avatar
      dfe87ec6
    • Stanislav Tkach's avatar
      Warn about using --rpc-external and --ws-external options (#4448) · d46eaf79
      Stanislav Tkach authored
      * Warn about using --rpc-external and --ws-external options
      
      * Apply review comments
      
      * Remove links placeholders
      
      * Add links to wiki
      d46eaf79
    • 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
    • Ashley's avatar
      Update grafana-data-source to tokio 0.2 (#4441) · 9a1bb758
      Ashley authored
      9a1bb758
    • 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
    • Kian Paimani's avatar
      Few extra tests for phragmen (#4451) · 0aab5c65
      Kian Paimani authored
      0aab5c65
  3. Dec 18, 2019
  4. Dec 17, 2019
  5. 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