-
Notifications
You must be signed in to change notification settings - Fork 480
Provide a StorageVec datastructure
#1995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 27 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
7b0b5ca
design draft
xermicus e05f98a
basic tests
xermicus be69ee7
cache the length
xermicus 65d9ea6
get and set
xermicus a5e04d6
Merge branch 'master' into storage-vec
xermicus ac73b3f
add clear
xermicus ab05008
add basic integration test
xermicus 3616b6f
add fallible methods
xermicus 3013112
tests for fallible ops
xermicus e29edd0
improve clear tests
xermicus bd03135
fmt
xermicus ec4e745
spellcheck
xermicus 63f6166
fmt
xermicus b3a564c
do not alias
xermicus 439f31e
spellcheck
xermicus 45a5776
peek
xermicus e49b846
make example more meaningful
xermicus d7abe1f
Merge branch 'master' into storage-vec
xermicus b0980af
add to mother
xermicus c87ac98
rm stale toolchain files
xermicus afe08f0
Merge branch 'master' into storage-vec
xermicus f01d430
code review
xermicus a0257bd
impl FromIter for StorageVec
xermicus 634f77c
clippy
xermicus 703430a
remove unneeded impl from slice and fix UI tests
xermicus 50271bb
bump scale dep
xermicus 5c2cb4e
ui
xermicus dc24fb9
put the cached len into a cell so we do not rely on writing operation…
xermicus 3348363
keep None length if the vec does not exist
xermicus 2b15422
Merge branch 'master' into storage-vec
xermicus 07e0e2b
changelog
xermicus b36ae42
improve peek test
xermicus f53eb73
add dev note regarding cached len
xermicus 7e161ff
Merge branch 'master' into storage-vec
xermicus b3dc029
Merge branch 'master' into storage-vec
xermicus 7a12c1e
Update crates/storage/src/lazy/vec.rs
xermicus 1d9b7d2
fmt
xermicus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,3 +121,10 @@ payability | |
| unpayable | ||
| initializer | ||
| WebSocket/S | ||
| StorageVec | ||
| KiB | ||
| GB | ||
| BufferTooSmall | ||
| KeyNotFound | ||
| ink_env | ||
| ^ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,7 @@ pub mod storage { | |
| pub use ink_storage::{ | ||
| Lazy, | ||
| Mapping, | ||
| StorageVec, | ||
| }; | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.