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

Simple MaxBoundedLen Implementations #8793

Merged
60 commits merged into from
May 28, 2021
Merged

Commits on May 6, 2021

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

Commits on May 12, 2021

  1. Configuration menu
    Copy the full SHA
    e7c14fb View commit details
    Browse the repository at this point in the history
  2. some formatting + doc

    gui1117 committed May 12, 2021
    Configuration menu
    Copy the full SHA
    42c4f48 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2021

  1. sudo sanity check

    shawntabrizi committed May 13, 2021
    Configuration menu
    Copy the full SHA
    d1032a3 View commit details
    Browse the repository at this point in the history
  2. timestamp

    shawntabrizi committed May 13, 2021
    Configuration menu
    Copy the full SHA
    f2582d5 View commit details
    Browse the repository at this point in the history
  3. assets (not working)

    shawntabrizi committed May 13, 2021
    Configuration menu
    Copy the full SHA
    bf354b0 View commit details
    Browse the repository at this point in the history
  4. fix assets

    shawntabrizi committed May 13, 2021
    Configuration menu
    Copy the full SHA
    38cecd6 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

  1. impl for proxy

    shawntabrizi committed May 14, 2021
    Configuration menu
    Copy the full SHA
    06b872a View commit details
    Browse the repository at this point in the history
  2. update balances

    shawntabrizi committed May 14, 2021
    Configuration menu
    Copy the full SHA
    43edcac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ca09ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ada719b View commit details
    Browse the repository at this point in the history
  5. merge both StorageInfoTrait and PalletStorageInfo

    I think it is more future proof. In the future some storage could make
    use of multiple prefix. Like one to store how much value has been
    inserted, etc...
    gui1117 committed May 14, 2021
    Configuration menu
    Copy the full SHA
    341d3f5 View commit details
    Browse the repository at this point in the history
  6. Update frame/support/procedural/src/storage/parse.rs

    Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
    gui1117 and coriolinus committed May 14, 2021
    Configuration menu
    Copy the full SHA
    5521953 View commit details
    Browse the repository at this point in the history
  7. Update frame/support/procedural/src/storage/storage_struct.rs

    Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
    gui1117 and coriolinus committed May 14, 2021
    Configuration menu
    Copy the full SHA
    02b0cbb View commit details
    Browse the repository at this point in the history
  8. Fix max_size using hasher information

    hasher now expose `max_len` which allows to computes their maximum len.
    For hasher without concatenation, it is the size of the hash part,
    for hasher with concatenation, it is the size of the hash part + max
    encoded len of the key.
    gui1117 committed May 14, 2021
    Configuration menu
    Copy the full SHA
    999640b View commit details
    Browse the repository at this point in the history
  9. fix tests

    gui1117 committed May 14, 2021
    Configuration menu
    Copy the full SHA
    a7909d7 View commit details
    Browse the repository at this point in the history
  10. fix ui tests

    gui1117 committed May 14, 2021
    Configuration menu
    Copy the full SHA
    e5964c0 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2021

  1. Move MaxBoundedLen into its own crate (#8814)

    * move MaxEncodedLen into its own crate
    
    * remove MaxEncodedLen impl from frame-support
    
    * add to assets and balances
    
    * try more fixes
    
    * fix compile
    
    Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
    coriolinus and shawntabrizi committed May 15, 2021
    Configuration menu
    Copy the full SHA
    2001d32 View commit details
    Browse the repository at this point in the history
  2. nits

    shawntabrizi committed May 15, 2021
    Configuration menu
    Copy the full SHA
    566425d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb1d521 View commit details
    Browse the repository at this point in the history
  4. fix compile

    shawntabrizi committed May 15, 2021
    Configuration menu
    Copy the full SHA
    1a398cb View commit details
    Browse the repository at this point in the history
  5. line width

    shawntabrizi committed May 15, 2021
    Configuration menu
    Copy the full SHA
    3685d3c View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. Configuration menu
    Copy the full SHA
    15918ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4fc7829 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/gui-max_values-macro' into shawn…

    …tabrizi-maxboundedlen-start
    gui1117 committed May 17, 2021
    Configuration menu
    Copy the full SHA
    9c42372 View commit details
    Browse the repository at this point in the history
  4. fix max-values-macro merge

    gui1117 committed May 17, 2021
    Configuration menu
    Copy the full SHA
    e8841f5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c12be40 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

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

Commits on May 21, 2021

  1. Configuration menu
    Copy the full SHA
    9a45be6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5af7c4c View commit details
    Browse the repository at this point in the history

Commits on May 22, 2021

  1. Configuration menu
    Copy the full SHA
    0e50fe0 View commit details
    Browse the repository at this point in the history
  2. Update lib.rs

    shawntabrizi committed May 22, 2021
    Configuration menu
    Copy the full SHA
    7683f73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c09750 View commit details
    Browse the repository at this point in the history
  4. fix

    shawntabrizi committed May 22, 2021
    Configuration menu
    Copy the full SHA
    d93b503 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Configuration menu
    Copy the full SHA
    73623e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db766a8 View commit details
    Browse the repository at this point in the history
  3. width

    shawntabrizi committed May 25, 2021
    Configuration menu
    Copy the full SHA
    1bb36fd View commit details
    Browse the repository at this point in the history
  4. Revert "remove app crypto for now"

    This reverts commit 73623e9.
    shawntabrizi committed May 25, 2021
    Configuration menu
    Copy the full SHA
    f1e3ced View commit details
    Browse the repository at this point in the history

Commits on May 26, 2021

  1. Configuration menu
    Copy the full SHA
    562f6b0 View commit details
    Browse the repository at this point in the history
  2. unused variable

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    747e613 View commit details
    Browse the repository at this point in the history
  3. more unused variables

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    7af3dcc View commit details
    Browse the repository at this point in the history
  4. more fixes

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    0dd6403 View commit details
    Browse the repository at this point in the history
  5. Add #[max_encoded_len_crate(...)] helper attribute

    The purpose of this attribute is to reduce the surface area of
    max_encoded_len changes. Crates deriving `MaxEncodedLen` do not
    need to add it to `Cargo.toml`; they can instead just do
    
    ```rust
    \#[derive(Encode, MaxEncodedLen)]
    \#[max_encoded_len_crate(frame_support::max_encoded_len)]
    struct Example;
    ```
    coriolinus committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b7620ef View commit details
    Browse the repository at this point in the history
  6. fix a ui test

    coriolinus committed May 26, 2021
    Configuration menu
    Copy the full SHA
    8a812bb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    04375ac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d5f3ee6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8971223 View commit details
    Browse the repository at this point in the history
  10. update lockfile

    coriolinus committed May 26, 2021
    Configuration menu
    Copy the full SHA
    016cc16 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    478c742 View commit details
    Browse the repository at this point in the history
  12. fix ui test

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    e2a16cb View commit details
    Browse the repository at this point in the history
  13. ui

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    b71b2a7 View commit details
    Browse the repository at this point in the history
  14. newline

    shawntabrizi committed May 26, 2021
    Configuration menu
    Copy the full SHA
    3acfa75 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Configuration menu
    Copy the full SHA
    62d6410 View commit details
    Browse the repository at this point in the history
  2. fix merge

    shawntabrizi committed May 27, 2021
    Configuration menu
    Copy the full SHA
    cf92608 View commit details
    Browse the repository at this point in the history
  3. try fix ui again

    shawntabrizi committed May 27, 2021
    Configuration menu
    Copy the full SHA
    2f739cd View commit details
    Browse the repository at this point in the history
  4. Update max-encoded-len/derive/src/lib.rs

    Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
    shawntabrizi and coriolinus committed May 27, 2021
    Configuration menu
    Copy the full SHA
    54839b7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1fd92a4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f41c90a View commit details
    Browse the repository at this point in the history
  7. Update lib.rs

    shawntabrizi committed May 27, 2021
    Configuration menu
    Copy the full SHA
    f6d5db3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c329b06 View commit details
    Browse the repository at this point in the history