-
Notifications
You must be signed in to change notification settings - Fork 28
Add a TypeDef to handle Compact types #53
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 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
37c0a57
Parameterize CompactForm String for optional SCALE impl
ascjones 643f09d
Merge remote-tracking branch 'origin/master' into aj-compact-string
dvdplm 9a7ccbf
Fix no-std compilation
dvdplm 254fee1
Obey the fmt
dvdplm e74e4f9
Introduce String trait for Form
ascjones 7860c79
Rename "Compact" to "Frozen" (and associated fallout)
dvdplm 579f958
Docs cleanup and more renames
dvdplm 8333e5a
Cleanup
dvdplm 2818f7b
More cleanup
dvdplm 7706a38
Merge branch 'aj-compact-string' into dp-rename-compact-to-frozen
dvdplm e03a2cd
obey the fmt
dvdplm 3a95663
Add a `compact` flag to `Field` to indicate that this type is to be e…
dvdplm 004e107
Clippy warnings
dvdplm 93a9aeb
Acommodate older clippy
dvdplm 6569e50
Derive (scale) compact fields
dvdplm f098101
Merge branch 'master' into dp-flag-types-as-compact
dvdplm eda2769
Merge remote-tracking branch 'origin/master' into dp-flag-types-as-co…
dvdplm 09c1241
WIP
dvdplm 55f1413
Sort out the TypeInfo impl for Compact<T> (ty @ascjones!)
dvdplm e2397bf
Clean up conditionals a bit
dvdplm d15bf25
Add Compact to prelude
dvdplm 1f4f8d3
Cleanup
dvdplm 02ed1a3
fmt
dvdplm 80a8b27
Merge branch 'master' into dp-add-TypeDef-to-handle-Compact-types
dvdplm 7389297
fmt
dvdplm d8506dc
Sort out TODOs
dvdplm ab56118
Remove unused top-level way of adding a Compact
dvdplm 5436755
Merge remote-tracking branch 'origin/master' into dp-add-TypeDef-to-h…
dvdplm c70f31c
Merge remote-tracking branch 'origin/master' into dp-add-TypeDef-to-h…
dvdplm e656489
Merge remote-tracking branch 'origin/master' into dp-add-TypeDef-to-h…
dvdplm 1c0c05d
Remove unneeded bound
dvdplm 693b23a
Remove `Compact` from the prelude
dvdplm c2a38f5
Resolve TODO
dvdplm 5649a66
fmt
dvdplm aad3277
Use <T as HasCompact>::Type rather than Compact<T> (ty @thiolliere!)
dvdplm 4b18500
Split long comment
dvdplm 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
Use <T as HasCompact>::Type rather than Compact<T> (ty @thiolliere!)
- Loading branch information
commit aad32771bc4b5d8aa853de5dd2fb5c135781367d
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
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
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.
I think our use of
::scaleis becoming a problem. ink! importsparity-scale-codeccrate asscalebut from what I remember Substrate imports it ascodec. We need a solution that works for both. Probably Basti's https://crates.io/crates/proc-macro-crate could help here. For now I am fine and we can fix this 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.
this also seem to break primitive-types: paritytech/parity-common#519