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
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
0de4775
implement max_values + storages info
gui1117 May 6, 2021
e7c14fb
Merge remote-tracking branch 'origin/master' into gui-max_values-macro
gui1117 May 12, 2021
42c4f48
some formatting + doc
gui1117 May 12, 2021
d1032a3
sudo sanity check
shawntabrizi May 13, 2021
f2582d5
timestamp
shawntabrizi May 13, 2021
bf354b0
assets (not working)
shawntabrizi May 13, 2021
38cecd6
fix assets
shawntabrizi May 13, 2021
06b872a
impl for proxy
shawntabrizi May 14, 2021
43edcac
update balances
shawntabrizi May 14, 2021
0ca09ee
Merge remote-tracking branch 'origin/master' into gui-max_values-macro
gui1117 May 14, 2021
ada719b
rename StoragesInfo -> PalletStorageInfo
gui1117 May 14, 2021
341d3f5
merge both StorageInfoTrait and PalletStorageInfo
gui1117 May 14, 2021
5521953
Update frame/support/procedural/src/storage/parse.rs
gui1117 May 14, 2021
02b0cbb
Update frame/support/procedural/src/storage/storage_struct.rs
gui1117 May 14, 2021
999640b
Fix max_size using hasher information
gui1117 May 14, 2021
a7909d7
fix tests
gui1117 May 14, 2021
e5964c0
fix ui tests
gui1117 May 14, 2021
2001d32
Move `MaxBoundedLen` into its own crate (#8814)
coriolinus May 15, 2021
566425d
nits
shawntabrizi May 15, 2021
bb1d521
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 15, 2021
1a398cb
fix compile
shawntabrizi May 15, 2021
3685d3c
line width
shawntabrizi May 15, 2021
15918ff
Merge commit '8d02bb0bfc6136f6a3c805db19f51e43090a7cd4' into gui-max_…
gui1117 May 17, 2021
4fc7829
Merge remote-tracking branch 'origin/master' into gui-max_values-macro
gui1117 May 17, 2021
9c42372
Merge remote-tracking branch 'origin/gui-max_values-macro' into shawn…
gui1117 May 17, 2021
e8841f5
fix max-values-macro merge
gui1117 May 17, 2021
c12be40
Merge remote-tracking branch 'origin/master' into shawntabrizi-maxbou…
gui1117 May 17, 2021
1a3e03e
Add some derive, needed for test and other purpose
gui1117 May 19, 2021
9a45be6
Merge remote-tracking branch 'origin/master' into shawntabrizi-maxbou…
gui1117 May 21, 2021
5af7c4c
use weak bounded vec in some cases
gui1117 May 21, 2021
0e50fe0
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 22, 2021
7683f73
Update lib.rs
shawntabrizi May 22, 2021
0c09750
move max-encoded-len crate
shawntabrizi May 22, 2021
d93b503
fix
shawntabrizi May 22, 2021
73623e9
remove app crypto for now
shawntabrizi May 25, 2021
db766a8
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 25, 2021
1bb36fd
width
shawntabrizi May 25, 2021
f1e3ced
Revert "remove app crypto for now"
shawntabrizi May 25, 2021
562f6b0
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 26, 2021
747e613
unused variable
shawntabrizi May 26, 2021
7af3dcc
more unused variables
shawntabrizi May 26, 2021
0dd6403
more fixes
shawntabrizi May 26, 2021
b7620ef
Add #[max_encoded_len_crate(...)] helper attribute
coriolinus May 26, 2021
8a812bb
fix a ui test
coriolinus May 26, 2021
04375ac
use #[max_encoded_len_crate(...)] helper in app_crypto
coriolinus May 26, 2021
d5f3ee6
remove max_encoded_len import where not necessary
coriolinus May 26, 2021
8971223
Merge remote-tracking branch 'origin/master' into shawntabrizi-maxbou…
coriolinus May 26, 2021
016cc16
update lockfile
coriolinus May 26, 2021
478c742
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 26, 2021
e2a16cb
fix ui test
shawntabrizi May 26, 2021
b71b2a7
ui
shawntabrizi May 26, 2021
3acfa75
newline
shawntabrizi May 26, 2021
62d6410
Merge branch 'master' into shawntabrizi-maxboundedlen-start
shawntabrizi May 27, 2021
cf92608
fix merge
shawntabrizi May 27, 2021
2f739cd
try fix ui again
shawntabrizi May 27, 2021
54839b7
Update max-encoded-len/derive/src/lib.rs
shawntabrizi May 27, 2021
1fd92a4
extract generate_crate_access_2018
shawntabrizi May 27, 2021
f41c90a
Merge branch 'shawntabrizi-maxboundedlen-start' of https://github.com…
shawntabrizi May 27, 2021
f6d5db3
Update lib.rs
shawntabrizi May 27, 2021
c329b06
compiler isnt smart enough
shawntabrizi May 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix ui tests
  • Loading branch information
gui1117 committed May 14, 2021
commit e5964c029d461c231fedf4fa6a01c07d88ee8f5c
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
| ^^^^^^^^^^^^^^^^^^^^^ the trait `MaxEncodedLen` is not implemented for `Bar`
|
= note: required because of the requirements on the impl of `StorageInfoTrait` for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>`
= note: required by `frame_support::traits::StorageInfoTrait::storage_info`
= note: required by `storage_info`
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
10 | #[pallet::generate_storage_info]
| ^^^^^^^^^^^^^^^^^^^^^ the trait `MaxEncodedLen` is not implemented for `Bar`
|
= note: required because of the requirements on the impl of `types::key::KeyGeneratorMaxEncodedLen` for `NMapKey<frame_support::Twox64Concat, Bar>`
= note: required because of the requirements on the impl of `KeyGeneratorMaxEncodedLen` for `NMapKey<frame_support::Twox64Concat, Bar>`
= note: required because of the requirements on the impl of `StorageInfoTrait` for `frame_support::pallet_prelude::StorageNMap<_GeneratedPrefixForStorageFoo<T>, NMapKey<frame_support::Twox64Concat, Bar>, u32>`
= note: required by `frame_support::traits::StorageInfoTrait::storage_info`
= note: required by `storage_info`