Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add pallet attribute macro to declare pallets #6877

Merged
47 commits merged into from
Dec 24, 2020
Merged

Add pallet attribute macro to declare pallets #6877

47 commits merged into from
Dec 24, 2020

Commits on Nov 18, 2020

  1. rename system Config to system Trait.

    command used:
    ```
    find frame/ bin/ test-utils/ utils/ -name *.rs -exec sed -i 's/system::Trait>::/system::Config>::/g' {} \;
    find frame/ bin/ test-utils/ utils/ -name *.rs -exec sed -i 's/impl frame_system::Trait for /impl frame_system::Config for /g' {} \;
    find frame/ bin/ test-utils/ utils/ -name *.rs -exec sed -i 's/impl system::Trait for /impl system::Config for /g' {} \;
    ```
    plus some manual ones especially for frame-support tests and frame-system
    thiolliere committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    b67c866 View commit details
    Browse the repository at this point in the history
  2. make construct_runtime handle Pallet and Module

    pallets can now be implemented on struct named Pallet or Module, both
    definition are valid.
    This is because next macro will generate only Pallet placeholder.
    thiolliere committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    336d3c9 View commit details
    Browse the repository at this point in the history
  3. introduce pallet attribute macro

    currently just with tests, frame_system and other example hasn't been
    upgraded
    thiolliere committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    942c161 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1e1e8a3 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2020

  1. Improved error msg, typo.

    Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
    thiolliere and shawntabrizi committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    0d9bb3e View commit details
    Browse the repository at this point in the history
  2. Improved error msg, typo.

    Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
    thiolliere and shawntabrizi committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    b48cfc6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc165a3 View commit details
    Browse the repository at this point in the history
  4. add test for transactional

    thiolliere committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    460ccf9 View commit details
    Browse the repository at this point in the history
  5. various typo

    thiolliere committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    5ced0a8 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2020

  1. Configuration menu
    Copy the full SHA
    688f044 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5ef21f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    240a2a7 View commit details
    Browse the repository at this point in the history
  4. error messages

    thiolliere committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    1229c33 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    30000d0 View commit details
    Browse the repository at this point in the history
  6. ignore doc example

    thiolliere committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    c2148b0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5485c8 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. Configuration menu
    Copy the full SHA
    1ff085e View commit details
    Browse the repository at this point in the history
  2. fixup

    thiolliere committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    d5b745f View commit details
    Browse the repository at this point in the history
  3. fix doc

    thiolliere committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    8e8ee8d View commit details
    Browse the repository at this point in the history
  4. fix indentation

    thiolliere committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    3ea926c View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2020

  1. Apply suggestions code formatting

    Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
    thiolliere and kianenigma committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    bd99a8d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0adbb30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c96e1cf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    04a54d6 View commit details
    Browse the repository at this point in the history
  5. merge fixup

    thiolliere committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    78789d6 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2020

  1. fix ui tests

    thiolliere committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    96845d8 View commit details
    Browse the repository at this point in the history
  2. additional doc

    thiolliere committed Dec 2, 2020
    Configuration menu
    Copy the full SHA
    1762c47 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a03a4b4 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

  1. Configuration menu
    Copy the full SHA
    4cb71d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf7ae7d View commit details
    Browse the repository at this point in the history
  3. fix line width

    thiolliere committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    88e6995 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d1ec690 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2020

  1. Configuration menu
    Copy the full SHA
    3a29683 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2020

  1. Configuration menu
    Copy the full SHA
    9430b34 View commit details
    Browse the repository at this point in the history
  2. Update frame/support/procedural/src/pallet/parse/event.rs

    Co-authored-by: Andrew Jones <ascjones@gmail.com>
    thiolliere and ascjones committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    888d121 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fa68a9 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Configuration menu
    Copy the full SHA
    0c6f916 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2020

  1. Update frame/system/src/lib.rs

    Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
    thiolliere and bkchr committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    52a654f View commit details
    Browse the repository at this point in the history
  2. Update frame/support/test/tests/pallet_ui.rs

    Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
    thiolliere and bkchr committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    03c7fbf View commit details
    Browse the repository at this point in the history
  3. improve doc as suggested

    thiolliere committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    3f23d3c View commit details
    Browse the repository at this point in the history
  4. revert construct_runtime Pallet part.

    This revert the changes on construct_runtime. Now construct_runtime is
    unchanged and instead pallet macro create a type alias
    `type Module<..> = Pallet<..>` to be used by construct_runtime
    thiolliere committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    d9d48c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d56f2b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d9fdc4b View commit details
    Browse the repository at this point in the history
  7. fix ui test with new image

    thiolliere committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    98cdc0e View commit details
    Browse the repository at this point in the history
  8. fix ui tests

    thiolliere committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    ae38859 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2020

  1. add minor tests

    thiolliere committed Dec 24, 2020
    Configuration menu
    Copy the full SHA
    c158e5f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    10e8a92 View commit details
    Browse the repository at this point in the history