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

Use Macros for generating Contracts from ABI #75

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dev2-nomo
Copy link
Collaborator

No description provided.

@dev2-nomo dev2-nomo marked this pull request as draft July 8, 2024 15:29
@dev2-nomo
Copy link
Collaborator Author

Still need to get rid of this warning: The macro 'ContractGeneration' can't be applied in the same library cycle where it is defined.
Try moving it to a different library that does not import the one where it is applied.dart(macro_definition_application_same_library_cycle)

So basically the macro cant depend on the ContractAbi defined in wkDart. Basically we need to implement the parsing of the ABI in a new seperate library.

@dev2-nomo
Copy link
Collaborator Author

Also Macros are not expected to be stable this year (2024) so we probably should wait anyway. This was more of a experiment. Also a build_runner_generator would be the alternative for now.

@dev2-nomo dev2-nomo linked an issue Jul 8, 2024 that may be closed by this pull request
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.

Use Macros for Generating InternalContracts from a speficied ABI
1 participant