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 ability to create bundle of ABI and Wasm #82

Open
austinabell opened this issue Oct 24, 2022 · 1 comment
Open

Add ability to create bundle of ABI and Wasm #82

austinabell opened this issue Oct 24, 2022 · 1 comment

Comments

@austinabell
Copy link
Contributor

This issue was split from #21 as there are different motivations for each. The purpose of this is to have one build file which has both the ABI and Wasm within it to make sure the two are kept in sync and so that multiple files don't have to be managed when integrating with other tooling.

The context for this, copied from #21:

.: Bundle of ABI and wasm in JSON file. Wasm should probably be included in base64 (nearcore RPC accepts this, so no transformation will be required). The motivation for this is some tooling might want both to avoid having to use two separate files.

What the bundle looks like may be opinionated, maybe it's the same schema as ABI except with an extra key for code, or it's a map of {"abi": ..., "code":}. The latter might be a bit redundant/confusing because ABI already has a key abi.

@miraclx
Copy link
Contributor

miraclx commented Oct 24, 2022

The latter might be a bit redundant/confusing because ABI already has a key abi.

PS: ABI no longer has key abi. Since near/near-abi-rs#3, it's been renamed to body.

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

No branches or pull requests

2 participants