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

feat(manifests): add json schema for abi #1034

Merged
merged 29 commits into from
Jul 23, 2022
Merged

Conversation

Niraj-Kamdar
Copy link
Contributor

No description provided.

@Niraj-Kamdar Niraj-Kamdar marked this pull request as draft July 7, 2022 10:44
@Niraj-Kamdar Niraj-Kamdar marked this pull request as ready for review July 14, 2022 23:56
@Niraj-Kamdar Niraj-Kamdar changed the title feat(abi-json-schema): first iteration feat(manifests): add json schema for abi Jul 14, 2022
Copy link
Contributor

@cbrzn cbrzn left a comment

Choose a reason for hiding this comment

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

This is amazing Niraj. Thanks for pushing this 🙏

@@ -369,7 +369,7 @@ export class Compiler {
});

const info: WrapManifest = {
abi: filteredAbi,
abi: (filteredAbi as unknown) as WrapAbi,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit sketchy, and points out that we have 2 ABI types defined in schema/parse/abi and manifest/wrap.info/abi.

I looked into using the manifest/wrap.info/abi inside of the schema pipeline directly, but it is a bit complicated... I think we should create a new PR after this is merged to consolidate these definitions and only use the manifest's ABI.

Copy link
Contributor

Choose a reason for hiding this comment

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

I added a final validation pass below this to ensure we don't write invalid ABIs.

dOrgJelli
dOrgJelli previously approved these changes Jul 23, 2022
@dOrgJelli dOrgJelli merged commit 84ac338 into origin-dev Jul 23, 2022
@cbrzn
Copy link
Contributor

cbrzn commented Jul 23, 2022

I looked into using the manifest/wrap.info/abi inside of the schema pipeline directly, but it is a bit complicated... I think we should create a new PR after this is merged to consolidate these definitions and only use the manifest's ABI.

I will push this forward

@dOrgJelli dOrgJelli deleted the feat/json-schema-abi branch April 10, 2023 17:03
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