-
Notifications
You must be signed in to change notification settings - Fork 277
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
Introduce an optional title parameter to the AddAssetQuantity and SubtractAssetQuantity, enhancing functionality within Iroha Core for improved message communication. Ensure corresponding handling capabilities in Iroha CLI for seamless integration. #4003
Conversation
@dominious1 Please add some description. I know that it is connected with internship project, but others also should know. And also provide link to client library. |
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.
- remember about changing documentation
- remember about adding changes to iroha-lib (file:
iroha/iroha-lib/model/Tx.{h,c}pp
), if You have problems with this ask @andprogrammer
Signed-off-by: dominious1 <[email protected]>
Signed-off-by: dominious1 <[email protected]>
Signed-off-by: dominious1 <[email protected]>
@dominious1 Good news! I was able (hopefully) to fix dependencies with golang: #4173 |
Signed-off-by: dominious1 <[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.
LGTM
To sum up changes:
|
It was also checked by @iceseer |
Sorry, I was wrong, it was checked by @iceseer not @lebdron . Sorry, it is my faoult that I not always connect nicks with people. Sorry for wrong information from me. Thanks @6r1d for correcting me:) |
…tractAssetQuantity, enhancing functionality within Iroha Core for improved message communication. Ensure corresponding handling capabilities in Iroha CLI for seamless integration. (hyperledger-iroha#4003) * Implement addition of new parameters to Iroha Core for enhanced message communication, with corresponding handling capabilities in Iroha CLI. * Improve GTests in reference to param title * Enhance test coverage in the JsonCommandTest class by addressing serialization and deserialization scenarios for various command types. This commit ensures comprehensive testing, including edge cases and unknown command types, to guarantee the robustness of the JsonCommandFactory's functionality. * Enhance test cases related to the SubtractAccountAsset functionality to improve reliability, readability, and maintainability. This commit refactors and strengthens the existing test suite, addressing scenarios such as permission checks, domain permission validity, asset presence, precision validation, and asset quantity sufficiency. These improvements contribute to a more robust testing environment for the SubtractAccountAsset functionality. Signed-off-by: dominious1 <[email protected]> --------- Signed-off-by: dominious1 <[email protected]> Signed-off-by: dominious1 <[email protected]> Co-authored-by: G. Bazior <[email protected]>
…tractAssetQuantity, enhancing functionality within Iroha Core for improved message communication. Ensure corresponding handling capabilities in Iroha CLI for seamless integration. (hyperledger-iroha#4003) * Implement addition of new parameters to Iroha Core for enhanced message communication, with corresponding handling capabilities in Iroha CLI. * Improve GTests in reference to param title * Enhance test coverage in the JsonCommandTest class by addressing serialization and deserialization scenarios for various command types. This commit ensures comprehensive testing, including edge cases and unknown command types, to guarantee the robustness of the JsonCommandFactory's functionality. * Enhance test cases related to the SubtractAccountAsset functionality to improve reliability, readability, and maintainability. This commit refactors and strengthens the existing test suite, addressing scenarios such as permission checks, domain permission validity, asset presence, precision validation, and asset quantity sufficiency. These improvements contribute to a more robust testing environment for the SubtractAccountAsset functionality. Signed-off-by: dominious1 <[email protected]> --------- Signed-off-by: dominious1 <[email protected]> Signed-off-by: dominious1 <[email protected]> Co-authored-by: G. Bazior <[email protected]>
…tractAssetQuantity, enhancing functionality within Iroha Core for improved message communication. Ensure corresponding handling capabilities in Iroha CLI for seamless integration. (hyperledger-iroha#4003) * Implement addition of new parameters to Iroha Core for enhanced message communication, with corresponding handling capabilities in Iroha CLI. * Improve GTests in reference to param title * Enhance test coverage in the JsonCommandTest class by addressing serialization and deserialization scenarios for various command types. This commit ensures comprehensive testing, including edge cases and unknown command types, to guarantee the robustness of the JsonCommandFactory's functionality. * Enhance test cases related to the SubtractAccountAsset functionality to improve reliability, readability, and maintainability. This commit refactors and strengthens the existing test suite, addressing scenarios such as permission checks, domain permission validity, asset presence, precision validation, and asset quantity sufficiency. These improvements contribute to a more robust testing environment for the SubtractAccountAsset functionality. Signed-off-by: dominious1 <[email protected]> --------- Signed-off-by: dominious1 <[email protected]> Signed-off-by: dominious1 <[email protected]> Co-authored-by: G. Bazior <[email protected]> Signed-off-by: dominious1 <[email protected]>
Description
Enhance functionality in the C++ Iroha base core code by introducing an optional argument, "title," to the AddAssetQuantity and SubtractAssetQuantity commands within the commands.proto bufs. Ensure seamless integration and functionality of this optional parameter, and optimize associated Gtests to accommodate these modifications. Additionally, enhance the Python client, contained in a separate repository, to effectively handle these changes. This refinement contributes to a more robust and adaptable system, aligning with the evolving requirements of the codebase.
Link to Python client library which use protobuf GRPC shared code base:
https://github.com/hyperledger/iroha-python/
This is part of internship project:
https://wiki.hyperledger.org/display/INTERN/Iroha+1%3A+extend+queries+with+optional+arguments
Link to PR in iroha-python compatible with those changes:
hyperledger-iroha/iroha-python#157
PR which updates documentation:
#4032