-
Notifications
You must be signed in to change notification settings - Fork 87
Refactor outside execution functions #1537
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
Comments
@franciszekjob I'm happy to tackle that issue, if you need help, of course. But would be nice to make a call to discuss. |
Sure, you can address this once #1530 is done 😄 |
I’d like to work on this. |
outside_execution_to_typed_data
Can I jump on this task? |
Let me try this one! |
@baitcode would you like to work on this one as we discussed? |
@franciszekjob if his answer is negative, I'm still up for this. |
I’m interested in this one. |
Is this issue still available? |
@franciszekjob It's been 13 days with no response, can I take on this? |
@franciszekjob I'd love to but currently working on other issues. Can it wait for another week? |
@franciszekjob I can take it |
@baitcode Yes |
Can I start working on this? |
@BlessingEmejulu sorry, but another contributor will address it. |
May I try my hand at this? |
Can I take this from here? |
I’d love to work on this task. |
@franciszekjob Ready to start on 13th of Jan. |
@franciszekjob Yes, sure, that is an easy one. |
I’m interested in this one. |
@franciszekjob could you assign me to that one, please? |
@baitcode done |
@franciszekjob I did some research and found some problems. I see that the main problem that produces loads of cyclic dependency issues is module: starknet_py.utils.typed_data I see 2 possible ways of approaching this With minimal changes but increasing entropy.Move OutsideExecution to separate module (need help with naming here) import typed_data there and implement discussed functionality. Will not produce any cyclic imports. In several steps trying to improve module connectivity.Lots of changes, probably will introduce some backward incompatible ones. I don't think I'll ever get approve for such a change. But at least I'll document my thoughts. starknet_py/utils/typed_data.py simplification split starknet_py.net.client_models
Import flow fix I would propose to remove dependency:
Merge those files contain similar data structures, I haven't yet fully understood what are the responsibilities
|
Hi @baitcode 👋 , thanks for the deep dive into the problem! I think we should choose option 2, because these cyclic imports are really problematic in the long term, so it's best if we get rid of them. Will it brings lots of breaking changes? Would you like to start working on this? |
@franciszekjob Sure will do. But I wan't to approach it in several steps. Will outline those here a bit later. |
@baitcode sure, ping me whenever you need 👍 |
Feature Request
outside_execution_to_typed_data
function should be a method ofOutsideExecution
, e.g.This requires resolving cycling imports errors, discussed here -> #1530 (comment)
OutsideExecution. to_abi_dict()
should ideally use schema while creating dict.The text was updated successfully, but these errors were encountered: