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

Analyze json ABI import #1134

Open
Valazan opened this issue Aug 6, 2024 · 1 comment
Open

Analyze json ABI import #1134

Valazan opened this issue Aug 6, 2024 · 1 comment

Comments

@Valazan
Copy link
Contributor

Valazan commented Aug 6, 2024

Currently, TypeScript does not support direct type inference from JSON files. The issue arises because we are registering the contracts on VeChain in the folder https://github.com/vechain/b32/tree/master as JSON files.

The goal of this task is to find a method to load an ABI from a .json file while enabling TypeScript to utilize type inference.

@Valazan
Copy link
Contributor Author

Valazan commented Aug 6, 2024

Idea: after speaking with @lucanicoladebiasi, we thought that it will be possible to read the b32 registry during the build phase of the SDK and synthetically create the abi ts constants compatible with the abitype specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants