Skip to content
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

[metadata] update to scale-info 0.3, removes string interning #467

Merged
merged 43 commits into from
Jul 15, 2020

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented Jul 2, 2020

Rel #299.

  • Updates to latest scale-info 0.3 which removes the string interning, making all strings inline.
  • Adds struct name to the layout. Removed because this is an ink! specific concept and not currently required by 3rd party tools

Note: Previously this PR contained additional metadata data structures, which have now been moved over to cargo-contract. See use-ink/cargo-contract#62

metadata/Cargo.toml Outdated Show resolved Hide resolved
@ascjones ascjones changed the title Additional contract metadata New contract metadata format Jul 8, 2020
@ascjones ascjones mentioned this pull request Jul 8, 2020
11 tasks
@ascjones ascjones changed the title New contract metadata format Update contract metadata Jul 8, 2020
@ascjones ascjones changed the title Update contract metadata [metadata] update to scale-info 0.3, add struct name to layout Jul 8, 2020
@ascjones ascjones marked this pull request as ready for review July 8, 2020 15:17
@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2020

Codecov Report

Merging #467 into master will decrease coverage by 1.85%.
The diff coverage is 81.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #467      +/-   ##
==========================================
- Coverage   86.83%   84.97%   -1.86%     
==========================================
  Files         135      125      -10     
  Lines        5877     5392     -485     
==========================================
- Hits         5103     4582     -521     
- Misses        774      810      +36     
Impacted Files Coverage Δ
core/src/env/call/utils.rs 100.00% <ø> (+55.55%) ⬆️
core/src/env/engine/off_chain/db/exec_context.rs 82.00% <ø> (-0.70%) ⬇️
core/src/env/types.rs 23.52% <ø> (ø)
core/src/storage2/alloc/allocation.rs 100.00% <ø> (ø)
core/src/storage2/alloc/allocator.rs 83.33% <0.00%> (-16.67%) ⬇️
core/src/storage2/alloc/boxed/storage.rs 100.00% <ø> (ø)
core/src/storage2/alloc/boxed/tests.rs 100.00% <ø> (ø)
core/src/storage2/alloc/tests.rs 100.00% <ø> (ø)
core/src/storage2/collections/bitstash/counts.rs 92.30% <ø> (ø)
core/src/storage2/collections/bitstash/storage.rs 48.00% <0.00%> (-15.16%) ⬇️
... and 132 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68ac212...06352f7. Read the comment docs.

@ascjones ascjones requested a review from Robbepop July 15, 2020 08:04
@ascjones ascjones changed the title [metadata] update to scale-info 0.3, add struct name to layout [metadata] update to scale-info 0.3, removes string interning Jul 15, 2020
@@ -255,7 +255,7 @@ publish-docs:
- git fetch origin gh-pages
# Generating Docs
- time cargo doc --no-deps --all-features
-p scale-info -p ink_metadata -p ink_metadata_derive -p ink_core -p ink_core_derive
-p scale-info -p ink_metadata -p ink_core -p ink_core_derive
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should fix the master branch CI

Copy link
Collaborator

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny nits, LGTM overall

metadata/Cargo.toml Outdated Show resolved Hide resolved
metadata/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ascjones ascjones merged commit d99ea91 into master Jul 15, 2020
@ascjones ascjones deleted the aj-extra-metadata branch July 15, 2020 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants