Closed annenkov closed 1 year ago
One observation is that the questions are not asked in a particular order, if we can change this behavior in cargo-generate
that would be beneficial. This would allow us to have a nicer user flow and implement the above flow (asking more general questions and move on to the more complex questions).
One observation is that the questions are not asked in a particular order, if we can change this behavior in
cargo-generate
that would be beneficial. This would allow us to have a nicer user flow and implement the above flow (asking more general questions and move on to the more complex questions).
@DOBEN Yes, this is a good point, I also noticed it. It seems like it's fixed now https://github.com/cargo-generate/cargo-generate/pull/930, but these changes have not been realised yet, because the last release 0.18.3 is from May, and the PR with the fix was merged in July. So, it should fix itself, we just need to wait :)
The prompt order fix is available in v0.18.4 of cargo-generate
now.
Purpose
Add a credential registry template.
The template is a copy of the credential registry example with the following parameters:
restorable
- controls code generation for cancelling revocation.revocable_by_others
- controls code generation for the revocation authority functionality (public key management, signature check). The corresponding entrypoints are still generated but always return theNotSupported
error.The PR also adds tests to the CI for all combinations of
restorable
andrevocable_by_others
, and compares the generated contract with the example contract (all parameters are set totrue
in this case)The PR also adds upgradability and CIS-0 support to the registry contract example and the template.
Checklist