-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
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 is amazing Niraj. Thanks for pushing this 🙏
packages/templates/wasm/assemblyscript/src/__tests__/e2e/integration.spec.ts
Outdated
Show resolved
Hide resolved
…ration.spec.ts Co-authored-by: Cesar Brazon <cesarbrazon10@gmail.com>
@@ -369,7 +369,7 @@ export class Compiler { | |||
}); | |||
|
|||
const info: WrapManifest = { | |||
abi: filteredAbi, | |||
abi: (filteredAbi as unknown) as WrapAbi, |
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 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.
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 added a final validation pass below this to ensure we don't write invalid ABIs.
I will push this forward |
No description provided.