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

Add version field to ink! metadata #1313

Merged
merged 11 commits into from
Aug 23, 2022
Merged

Add version field to ink! metadata #1313

merged 11 commits into from
Aug 23, 2022

Conversation

HCastano
Copy link
Contributor

Up until now the version of the ink! metadata/ABI was specified using a version key which
wrapped the whole ink! metadata struct (MetadataVersioned(InkProject)).

However, it is nicer to have a proper version field as part of the ink! metadata object
so that it can be queried in a less-ambiguous way.

Closes #1289.

These versions can't be constructed using this version of the crate
anyways, so it doesn't really make sense to keep them.
crates/metadata/src/lib.rs Outdated Show resolved Hide resolved
We should change to using the derive macros once
our CI's nightly compiler version gets updated.
@HCastano HCastano requested a review from a team as a code owner July 14, 2022 21:17
@HCastano
Copy link
Contributor Author

The ink-waterfall step fails because it's using an old cargo-contract master instead of my branch on .

@HCastano
Copy link
Contributor Author

This builds fine with the staging Docker image. @cmichi should we use that instead while waiting for the production one to be fixed?

@HCastano HCastano requested a review from ascjones August 8, 2022 20:15
@HCastano
Copy link
Contributor Author

HCastano commented Aug 8, 2022

@ascjones can you take another look at this?

Copy link
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

crates/metadata/src/lib.rs Outdated Show resolved Hide resolved
We're never able to construct this variant with this
crate anymore, so it doesn't make sense to keep it.
@HCastano
Copy link
Contributor Author

HCastano commented Aug 9, 2022

Let's wait until we sort out the release details of cargo-contract before merging this

@HCastano
Copy link
Contributor Author

Gonna :shipit: and get the release train started

@HCastano HCastano merged commit ec96f3e into master Aug 23, 2022
@HCastano HCastano deleted the hc-versioned-metadata branch August 23, 2022 18:27
cmichi pushed a commit that referenced this pull request Aug 31, 2022
* Add `version` field to `InkProject`

* Use `InkProject` directly in metadata codegen

* Remove old metadata versions from version enum

These versions can't be constructed using this version of the crate
anyways, so it doesn't really make sense to keep them.

* Manually implement `Default`

We should change to using the derive macros once
our CI's nightly compiler version gets updated.

* Add metadata `V4` version option

* Use my branch of `cargo-contract` in CI

* Remove deprecated `V3` metadata

We're never able to construct this variant with this
crate anymore, so it doesn't make sense to keep it.
xermicus pushed a commit that referenced this pull request Sep 8, 2022
* Add `version` field to `InkProject`

* Use `InkProject` directly in metadata codegen

* Remove old metadata versions from version enum

These versions can't be constructed using this version of the crate
anyways, so it doesn't really make sense to keep them.

* Manually implement `Default`

We should change to using the derive macros once
our CI's nightly compiler version gets updated.

* Add metadata `V4` version option

* Use my branch of `cargo-contract` in CI

* Remove deprecated `V3` metadata

We're never able to construct this variant with this
crate anymore, so it doesn't make sense to keep it.
@ascjones ascjones mentioned this pull request Feb 15, 2023
@ascjones ascjones mentioned this pull request Feb 26, 2024
5 tasks
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.

Update MetadataVersioned to have version field
3 participants