-
Notifications
You must be signed in to change notification settings - Fork 449
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
Create the Mother of All Contracts #1245
Conversation
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.
I still thing we should call it mother of all contracts. It should use all ink! features so that UI devs can make sure that they support them properly. Of course some features are not applicable as they are not observable for UIs. But everything that somehow interacts with them should be included in this contract.
Could not build the contract to test it out but i can just enumerate the types of inputs we needed to handle in the UI so far. Inputs/Outputs
Messages
Events
Errors (not sure how to test these, maybe just create some messages that will always fail?)
|
Co-authored-by: Alexander Theißen <[email protected]>
@statictype thanks for your review! Regarding the input types kindly provided in your list. It seems that most of them are already there, with only these ones left to be added to the contract:
Currently we actually have
We have
Regarding Number types, I would left only |
Co-authored-by: Alexander Theißen <[email protected]>
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Wed May 18 15:36:20 CEST 2022 |
@agryaznov still couldn't build the Mother, but i can answer your questions
With this we'd like to test our recursive React component that should support multiple levels of nesting, so we need at least
What i meant here is nested
👍🏻 |
It is only the linting that fails. It isn't smart enough to recognize the delegating constructor to initialize the contract. |
Co-authored-by: Alexander Theißen <[email protected]>
@statictype the contract is updated, looking forward your feedback! |
Codecov Report
@@ Coverage Diff @@
## master #1245 +/- ##
==========================================
- Coverage 78.74% 78.58% -0.16%
==========================================
Files 228 228
Lines 8675 8654 -21
==========================================
- Hits 6831 6801 -30
- Misses 1844 1853 +9
Continue to review full report at Codecov.
|
all good from my side, i used it with the UI and already revealed a few bugs. thanks so much! |
This reverts commit 3491cfd.
bot merge |
This PR should solve #1181.
I decided to give it a narrower name, as Mother of All Contracts implies something really exhaustive, while this contract just solves its particular goal: to be a helpful example for UI developers demonstrating all possible inputs/outputs of an ink! contract.