-
Notifications
You must be signed in to change notification settings - Fork 234
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
777 introduce dynamic circuit inputs parsing for current e2e use case #800
777 introduce dynamic circuit inputs parsing for current e2e use case #800
Conversation
} | ||
// TODO: Example input preparation for other workstep circuits from the example use-case, to be used |
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.
@ognjenkurtic is that gonna be an issue you create?
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.
@@ -18,17 +18,12 @@ import { | |||
} from '../../../../identity/bpiSubjects/models/publicKey'; | |||
|
|||
jest.setTimeout(20000); | |||
//NOTE: Skiping out the workstep1 as it requires compiled artifacts to run. |
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.
@ognjenkurtic will that be another issue?
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.
This was done by @biscuitdey . I believe these test are not needed as we can't expect the unit test suite to compile cirucits. Is it ok to remove these tests ? @biscuitdey
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 @ognjenkurtic ... check my comments
Description
Transaction agent executeTransaction method is refactored to translate transaction payload to circuit inputs using the schema previously associated with the workstep. It utilizes the circuitInputParser service for that.
Transaction agent executeTransaction method is also refactored for better readability.
CircuitInputParser service and schema is extended to support mapping inputs from arrays of objects from the tx payload .
E2E test is extended to verify the flow works.
Related Issue
#777
Motivation and Context
SRI needs to be able to support generic use-cases when it comes to circuits and this implementation allows for that.
How Has This Been Tested
Extended unit tests
Extended e2e test
Screenshots (if appropriate)
Types of changes
Checklist