-
Notifications
You must be signed in to change notification settings - Fork 426
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
Storage rework #1217
Storage rework #1217
Commits on Apr 11, 2022
-
Added and implemented all primitives of a new storage. Implemented `s…
…torage_item` macro to generate implementation of all traits and use a right storage types for `StorageMapping` and `StorageValue`.
Configuration menu - View commit details
-
Copy full SHA for b7a2e81 - Browse repository at this point
Copy the full SHA b7a2e81View commit details
Commits on Apr 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2c06fcc - Browse repository at this point
Copy the full SHA 2c06fccView commit details
Commits on Apr 15, 2022
-
Erc20 and Erc1155 works with a new storage. The size reduced ~550 bytes
Configuration menu - View commit details
-
Copy full SHA for 992706e - Browse repository at this point
Copy the full SHA 992706eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17b433a - Browse repository at this point
Copy the full SHA 17b433aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09fb544 - Browse repository at this point
Copy the full SHA 09fb544View commit details -
Configuration menu - View commit details
-
Copy full SHA for 184c550 - Browse repository at this point
Copy the full SHA 184c550View commit details
Commits on May 6, 2022
-
Removed all storage collections
Removed all lazy stuff except `StorageMapping` and `StorageValue`. Later I will rename `StorageMapping` into `Mapping`. Removed `AtomicStatus` trait. Instead of it added `is_atomic!` macro that returns true if the object implements `AtomicGuard<true>`. It solves the problem when the struct contains generics. Now if the generic is marked as `AtomicGuard<true>` then the struct is atomic too, else it is not atomic. Implemented `#[ink_lang::storage_item]` for structs, enums, and unions. Started cleaning of the `SpreadLayout` and other stuff. The dispatching codegen already works without it.
Configuration menu - View commit details
-
Copy full SHA for 58c21ac - Browse repository at this point
Copy the full SHA 58c21acView commit details -
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/storage/src/lazy/mapping.rs # crates/storage/src/traits/optspec.rs
Configuration menu - View commit details
-
Copy full SHA for 2a1dea4 - Browse repository at this point
Copy the full SHA 2a1dea4View commit details -
Merged with master. Added tests that
StorageValue
and `StorageMappi……ng` are not atomic
Configuration menu - View commit details
-
Copy full SHA for 5644402 - Browse repository at this point
Copy the full SHA 5644402View commit details
Commits on May 9, 2022
-
Removed
SpreadLayout
and all related stuff and traits.Created derives for a new traits. Added tests for derive. Added experimental `StorageType2` and auto-selecting of the storage key. Updated `storage_item` to be configurable and allow disabling auto derive for manual implementation.
Configuration menu - View commit details
-
Copy full SHA for 7e4b56d - Browse repository at this point
Copy the full SHA 7e4b56dView commit details
Commits on May 11, 2022
-
Updated all examples to use the latest changes.
Added `OnCallInitializer` with `pull_or_init!` for upgradeable case. Renamed `StorageMapping` -> `Mapping`. Added some comments adn updated tests.
Configuration menu - View commit details
-
Copy full SHA for 4ab1b5f - Browse repository at this point
Copy the full SHA 4ab1b5fView commit details
Commits on May 12, 2022
-
Removed
StorageType2
.StorageType
is used everywhere now.Fixed tests. Added tests for `StorageType`. Updated comments. Renamed `AutomationStorageType` into `AutoStorageType`
Configuration menu - View commit details
-
Copy full SHA for 76c50ee - Browse repository at this point
Copy the full SHA 76c50eeView commit details -
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/storage/src/collections/vec/tests.rs
Configuration menu - View commit details
-
Copy full SHA for 750bce2 - Browse repository at this point
Copy the full SHA 750bce2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8bf915 - Browse repository at this point
Copy the full SHA e8bf915View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f868fb - Browse repository at this point
Copy the full SHA 6f868fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b74b9fd - Browse repository at this point
Copy the full SHA b74b9fdView commit details
Commits on May 17, 2022
-
Unified metadata and storage key generation. The metadata contains al…
…l names that are used during the calculation of the storage key. The updated key calculation for tuples. Introduced `StorageKeyComposer` to manage all rules for storage creation. Used a `SHA2` instead of `Blake2b` to calculate the storage key hash. It is because `SHA2` supports const calculation. It is required for tuples. Implemented UI tests for `#[ink_lang::storage_item]` and fixes bugs.
Configuration menu - View commit details
-
Copy full SHA for 02f478f - Browse repository at this point
Copy the full SHA 02f478fView commit details -
Merge branch 'master' into features/storage-rework
# Conflicts: # examples/erc20/Cargo.toml # examples/upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml
Configuration menu - View commit details
-
Copy full SHA for 414d0c0 - Browse repository at this point
Copy the full SHA 414d0c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e74bd - Browse repository at this point
Copy the full SHA b8e74bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for da38d41 - Browse repository at this point
Copy the full SHA da38d41View commit details -
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/storage/derive/src/lib.rs
Configuration menu - View commit details
-
Copy full SHA for 145850f - Browse repository at this point
Copy the full SHA 145850fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f107ca1 - Browse repository at this point
Copy the full SHA f107ca1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 078a04a - Browse repository at this point
Copy the full SHA 078a04aView commit details
Commits on May 18, 2022
-
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/lang/codegen/Cargo.toml # crates/lang/macro/Cargo.toml # crates/storage/derive/Cargo.toml
Configuration menu - View commit details
-
Copy full SHA for f719a74 - Browse repository at this point
Copy the full SHA f719a74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fe995c - Browse repository at this point
Copy the full SHA 6fe995cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca8a270 - Browse repository at this point
Copy the full SHA ca8a270View commit details -
Configuration menu - View commit details
-
Copy full SHA for 294ffc3 - Browse repository at this point
Copy the full SHA 294ffc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ff2b0c - Browse repository at this point
Copy the full SHA 9ff2b0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52d4070 - Browse repository at this point
Copy the full SHA 52d4070View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44ec9e7 - Browse repository at this point
Copy the full SHA 44ec9e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58c969f - Browse repository at this point
Copy the full SHA 58c969fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c93461 - Browse repository at this point
Copy the full SHA 8c93461View commit details
Commits on May 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 099442b - Browse repository at this point
Copy the full SHA 099442bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 377a26d - Browse repository at this point
Copy the full SHA 377a26dView commit details -
One more optimization. When it will be end???=)
`return_value` ends execution fully. We use whole buffer for that without "taking"
Configuration menu - View commit details
-
Copy full SHA for 97fa7b3 - Browse repository at this point
Copy the full SHA 97fa7b3View commit details -
Merge branch 'master' into features/storage-rework
# Conflicts: # examples/mother/lib.rs
Configuration menu - View commit details
-
Copy full SHA for 07d3619 - Browse repository at this point
Copy the full SHA 07d3619View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3db8e6d - Browse repository at this point
Copy the full SHA 3db8e6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e88d535 - Browse repository at this point
Copy the full SHA e88d535View commit details -
Configuration menu - View commit details
-
Copy full SHA for c34e67c - Browse repository at this point
Copy the full SHA c34e67cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e136cf - Browse repository at this point
Copy the full SHA 0e136cfView commit details
Commits on May 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 358c00d - Browse repository at this point
Copy the full SHA 358c00dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aeb623 - Browse repository at this point
Copy the full SHA 2aeb623View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d34b1d - Browse repository at this point
Copy the full SHA 2d34b1dView commit details
Commits on May 21, 2022
-
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/storage/src/lazy/mapping.rs # crates/storage/src/lazy/mod.rs # crates/storage/src/lib.rs # crates/storage/src/traits/mod.rs # crates/storage/src/traits/optspec.rs
Configuration menu - View commit details
-
Copy full SHA for 88977bc - Browse repository at this point
Copy the full SHA 88977bcView commit details
Commits on May 25, 2022
-
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/lang/codegen/Cargo.toml # crates/lang/macro/Cargo.toml # crates/lang/src/codegen/dispatch/mod.rs # crates/primitives/Cargo.toml # crates/storage/derive/Cargo.toml
Configuration menu - View commit details
-
Copy full SHA for 45390a6 - Browse repository at this point
Copy the full SHA 45390a6View commit details
Commits on May 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9502e34 - Browse repository at this point
Copy the full SHA 9502e34View commit details
Commits on May 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6441dfc - Browse repository at this point
Copy the full SHA 6441dfcView commit details
Commits on Jun 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7fa8cd0 - Browse repository at this point
Copy the full SHA 7fa8cd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 334160c - Browse repository at this point
Copy the full SHA 334160cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6bfac6 - Browse repository at this point
Copy the full SHA d6bfac6View commit details
Commits on Jul 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5f05846 - Browse repository at this point
Copy the full SHA 5f05846View commit details
Commits on Jul 12, 2022
-
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/storage/src/traits/impls/prims.rs
Configuration menu - View commit details
-
Copy full SHA for e1fe78e - Browse repository at this point
Copy the full SHA e1fe78eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11c86dd - Browse repository at this point
Copy the full SHA 11c86ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 345ca79 - Browse repository at this point
Copy the full SHA 345ca79View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e46bd - Browse repository at this point
Copy the full SHA b8e46bdView commit details
Commits on Jul 13, 2022
-
Apply suggestions from code review
Co-authored-by: Michael Müller <mich@elmueller.net>
Configuration menu - View commit details
-
Copy full SHA for eae9152 - Browse repository at this point
Copy the full SHA eae9152View commit details -
Update crates/lang/ir/src/ir/storage_item/config.rs
Co-authored-by: Michael Müller <mich@elmueller.net>
Configuration menu - View commit details
-
Copy full SHA for 2b35bd5 - Browse repository at this point
Copy the full SHA 2b35bd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1873108 - Browse repository at this point
Copy the full SHA 1873108View commit details
Commits on Jul 20, 2022
-
Merge branch 'master' into features/storage-rework
# Conflicts: # crates/lang/codegen/Cargo.toml # crates/lang/macro/Cargo.toml # examples/mother/lib.rs
Configuration menu - View commit details
-
Copy full SHA for 9436889 - Browse repository at this point
Copy the full SHA 9436889View commit details -
Configuration menu - View commit details
-
Copy full SHA for 188d46d - Browse repository at this point
Copy the full SHA 188d46dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f77d8 - Browse repository at this point
Copy the full SHA e6f77d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b022f3 - Browse repository at this point
Copy the full SHA 9b022f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07698e0 - Browse repository at this point
Copy the full SHA 07698e0View commit details