-
Notifications
You must be signed in to change notification settings - Fork 261
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
Typed Storage Keys #1419
Merged
Merged
Typed Storage Keys #1419
Changes from 15 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
eeded2c
first iteration on storage multi keys
tadeohepperle 4f052d0
decoding values from concat style hashers
tadeohepperle e4e4437
move util functions and remove comments
tadeohepperle 3f20d77
change codegen for storage keys and fix examples
tadeohepperle 3f0d8f0
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle 28e1b77
trait bounds don't match scale value...
tadeohepperle 489ccdc
fix trait bounds and examples
tadeohepperle 23203da
reconstruct storage keys in iterations
tadeohepperle 7a36ce3
build(deps): bump js-sys from 0.3.67 to 0.3.68 (#1428)
dependabot[bot] d7c658d
build(deps): bump clap from 4.4.18 to 4.5.0 (#1427)
dependabot[bot] b21e94d
build(deps): bump either from 1.9.0 to 1.10.0 (#1425)
dependabot[bot] 252e31e
build(deps): bump thiserror from 1.0.56 to 1.0.57 (#1424)
dependabot[bot] db12bd7
build(deps): bump jsonrpsee from 0.21.0 to 0.22.0 (#1426)
dependabot[bot] 5313f6a
subxt: Derive `std::cmp` traits for subxt payloads and addresses (#1429)
lexnv 8e1f77f
Merge
tadeohepperle a2ad8d1
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle cef1f6b
fix clippy
tadeohepperle 62fd01f
add integration tests
tadeohepperle 394b206
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle b131b0f
fix doc tests
tadeohepperle 1b856bc
change hashing logic for hashers=1
tadeohepperle b0ddafa
refactor
tadeohepperle 3202601
clippy and fmt
tadeohepperle 0b4f2ea
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle 4c750f4
regenerate polkadot file which got changed by the automatic PR
tadeohepperle a404c85
nested design for storage keys
tadeohepperle e87eb3c
refactor codegen
tadeohepperle 9c27b47
codegen adjustments
tadeohepperle 585c01c
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle 4bfaa4c
fix storage hasher codegen test
tadeohepperle bd01aab
Suggestions for storage value decoding (#1457)
jsdw a284ed8
integrate nits from PR
tadeohepperle 5a68e8e
add fuzztest for storage keys, fix decoding bug
tadeohepperle e4195b2
clippy and fmt
tadeohepperle 97962ee
clippy
tadeohepperle 8f0eb04
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle 9b33cbc
Niklas Suggestions
tadeohepperle b7a6b41
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle aa5e703
lifetime issues and iterator impls
tadeohepperle 1eaa75d
fmt and clippy
tadeohepperle 56f1864
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle c5e071d
regenerate polkadot.rs
tadeohepperle 4a3b936
fix storage key encoding for empty keys
tadeohepperle a660a67
Merge branch 'master' into tadeohepperle/decoding-storage-keys
tadeohepperle f7a530c
rename trait methods for storage keys
tadeohepperle 26947b5
fix hasher bug...
tadeohepperle 81cd16e
impl nits, add iterator struct seperate from `StorageHashers`
tadeohepperle 1a42c9e
clippy fix
tadeohepperle 809331e
remove println
tadeohepperle 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 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 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 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 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 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 |
---|---|---|
|
@@ -206,6 +206,9 @@ pub enum StorageAddressError { | |
/// The number of fields in the metadata for this storage entry. | ||
fields: usize, | ||
}, | ||
/// The bytes of a storage address are not the expected address for decoding the storage keys of the address. | ||
#[error("Storage address bytes are not the expected format")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would add a small section about keys needing at least 16 bytes (pallet ++ entry) Edit: ah this can also mean we are needing 8 bytes and so on (prob good to add a u8 here?) |
||
UnexpectedAddressBytes, | ||
} | ||
|
||
/// Something went wrong trying to access details in the metadata. | ||
|
This file contains 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The examples look great!