-
Notifications
You must be signed in to change notification settings - Fork 434
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
Add GET /v2/verify/{verificationId}
endpoint
#1913
Conversation
The status can be implicitly derived and is not needed for the API response
88e3727
to
ac7dab8
Compare
Note: We'd need to run the |
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.
Looks great, I have some comments. I also have a doubt regarding "v1" verifications. Do we want to create a "fake" verification jobs also for them?I think it makes sense:
If we don't implement verification_jobs for old APIs, we will have a lot of contracts that don't have verification_jobs information (such as compilation_time). And in general it feels wrong to have this discrepancy in our database. @kuzdogan please leave here also your opinion about this
services/server/src/server/services/storageServices/SourcifyDatabaseService.ts
Show resolved
Hide resolved
To summarize our yesterday's discussion, I will add the following fields to the API (also in Stoplight):
|
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
* Move API v2 related methods to bottom of SourcifyDatabaseService * Remove status column from verification_jobs table The status can be implicitly derived and is not needed for the API response * Turn id of verification_jobs table into a uuid * Add GET /v2/verify/{verificationId} endpoint * Add tests for get job endpoint * Add onchain bytecodes to verification_jobs_ephemeral table * Update API v2 specs * Make compilation_time a bigint * Add compilationTime, bytecodes and creatorTransactionHash to GET job response
* Move API v2 related methods to bottom of SourcifyDatabaseService * Remove status column from verification_jobs table The status can be implicitly derived and is not needed for the API response * Turn id of verification_jobs table into a uuid * Add GET /v2/verify/{verificationId} endpoint * Add tests for get job endpoint * Add onchain bytecodes to verification_jobs_ephemeral table * Update API v2 specs * Make compilation_time a bigint * Add compilationTime, bytecodes and creatorTransactionHash to GET job response
Closes #1831