-
Notifications
You must be signed in to change notification settings - Fork 87
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
Support SNIP-9 #1530
Support SNIP-9 #1530
Conversation
282d593
to
7f4c71a
Compare
@franciszekjob Please, take a look. There are failing checks. I am unsure if I can figure those ones out quickly. Some dependecy does not install in docker. Let me know If you want me investigate. From the top of stackoverflow:
|
- Added new Transaction models: InvokeOutsideV1, InvokeOutsideV2 - Added method for SNIP9 nonce verification - Added Account methods for population and broadcasting(execution) of InvokeOutside transactions Small fixes: - Allowed for incomplete definition of ParameterDict as `contains` fiels is often missing and linter is complaining. WIP: miss docs and tests
- Extended base account interface - Added all utilities to deal with SNIP-9 nonce and generating OutsideExecution call - Bugfix type data generation - Cleaned up as much as I could to keep changes minimal - Added docs - Added test for positive scenario - Added one test for wrong caller scenario
…est account balance" This reverts commit 5851f12.
Hi @baitcode 👋 |
@franciszekjob Hey hey! I fixed all the required steps. With sad heart I got to admit, that some tests in the project are really bad.
It's better to remove those. Or create new account for every run. And yes, I need help with test_on_network. I can't reproduce those, neither can I understand what is wrong. You can start the review. |
I see, we can think about refactoring these tests in separate PR. I understand they may have space for improvement.
Tests on networks are failing because you haven't added secrets to your forked repository
If you don't have testnet account, you can create one using Let me know if it works! |
@franciszekjob Added repository secrets on my repo. Still not working. |
starknet_py/tests/e2e/docs/guide/test_account_sign_outside_transaction.py
Show resolved
Hide resolved
@baitcode just a couple more comments regarding tests, lmk if you need anything 👍 |
@franciszekjob I need help. For some reason argent account doesn't execute v3 transactions. Reverts with error:
For now I've reverted execute_v1 method, as it seems that v3 are actually not supported by argent according to that report. Just to provide a bit more context. Non argent account that is being set up in tests does not provide external execution support. |
Fact, right.
Ok, I see. But that's not a problem, as we're using it to execute, not create outside transaction. |
starknet_py/tests/e2e/docs/guide/test_account_sign_outside_transaction.py
Outdated
Show resolved
Hide resolved
@baitcode please check out my comments 👍 |
Co-authored-by: Franciszek Job <[email protected]>
…nsaction.py Co-authored-by: Franciszek Job <[email protected]>
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.
Could you also resolve error while building docs 🙏 ?
Sure. I'm on it atm. |
@franciszekjob Is there anything left? |
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.
@baitcode
Just these values in tests + could you please mention the change in migration_guide.rst
🙏 ?
Co-authored-by: Franciszek Job <[email protected]>
Co-authored-by: Franciszek Job <[email protected]>
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.
Please apply suggested change and we're good to go 🚀
Co-authored-by: Franciszek Job <[email protected]>
a8d7353
into
software-mansion:development
Thanks for contribution @baitcode 🤝 tomorrow I will reward you on Only Dust for completing this issue |
WOOOOHOOOO. Thanks a lot! @franciszekjob |
OMG. I should've squashed commits myself. |
I squashed and merged so it's fine 🤔 |
@baitcode you should see the funds on Only Dust 😄 |
Closes #1517
Introduced changes
[x] Added outside execution model, defined hashing
[x] Extended base account interface
[x] Added all utilities to deal with SNIP-9 nonce, interface support queries and generation OutsideExecution call
[x] Cleaned up as much as I could to keep changes minimal
[x] Added a bit of docs
[x] Added one test for positive scenario
[x] Pinned hash calculation for OutsideExecution
[x] Added one test for wrong caller scenario
Small things I had to rework on the way
[x] Moved broadcast transaction generation method closer to usage to get rid of Cyclic dependency
[x] Bugfix type data generation
[x] Allowed for incomplete definition of ParameterDict as
contains
fields is often missing and linter is.While implementing the feature I realised better what are the problems of current library implementation. I'd love to discuss those and if it proves that my vision is similar to maintainers I'd love to help fixing those.