Skip to content
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

Interaction with Casper smart-contract source code verification service #144

Open
wants to merge 33 commits into
base: dev
Choose a base branch
from

Conversation

moubctez
Copy link

@moubctez moubctez commented Apr 5, 2024

Allow interaction with Source Code Verification Service.

Check https://github.com/teonite/Casper-SCVS-Verificator for details.

@moubctez moubctez marked this pull request as ready for review April 5, 2024 08:20
@moubctez moubctez changed the title Casper smart contract source code verification service Interaction with Casper smart-contract source code verification service Apr 5, 2024
Copy link
Contributor

@zacshowa zacshowa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Largely looks good.

I would also like to see some discussion surrounding the retry logic in this code.

There are some style nits to address, and this change should be added to the change log entry corresponding to the release that you want this code to go out in.

lib/verification.rs Outdated Show resolved Hide resolved
lib/verification.rs Outdated Show resolved Hide resolved
lib/verification_types.rs Outdated Show resolved Hide resolved
lib/verification.rs Outdated Show resolved Hide resolved
lib/verification.rs Outdated Show resolved Hide resolved
lib/lib.rs Outdated Show resolved Hide resolved
src/verify_contract.rs Outdated Show resolved Hide resolved
src/verify_contract.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@zacshowa zacshowa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one additional suggestion for the about message for the command, Other than that this looks good to me.

moubctez and others added 2 commits April 11, 2024 20:11
@moubctez
Copy link
Author

I have one additional suggestion for the about message for the command, Other than that this looks good to me.

Good suggestion. I've applied it.

@zacshowa
Copy link
Contributor

Just wanted to keep you up to date on this PR. Currently it's failing Cargo audit because of a dependency having a security issue,
This is an issue that is currently being fixed in this PR.

Once that PR merges, you should be able to cherry pick the changes into this PR and make it ready to merge.

@moubctez
Copy link
Author

Just wanted to keep you up to date on this PR. Currently it's failing Cargo audit because of a dependency having a security issue, This is an issue that is currently being fixed in this PR.

Once that PR merges, you should be able to cherry pick the changes into this PR and make it ready to merge.

I have upgraded "vergen" to v8 to resolve the issue.

lib/verification.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
lib/verification.rs Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
@moubctez
Copy link
Author

@gRoussac Now build.rs is the correct one. I had ancient history in dev. My fault.

@gRoussac
Copy link
Contributor

@moubctez You build is failing tokio is an optional dep so it needs to be specified when used
try to add that arround

#[cfg(feature = "tokio")]

44fef2d#file-lib-verification-rs-L11

probably an import issue for second error

44fef2d#file-lib-lib-rs-L577

Thanks

moubctez and others added 4 commits June 26, 2024 21:11
… feature. Note that reqwest is not optional and depends on tokio with "net" and "time" features enabled, so there is no additional burden.
@gRoussac
Copy link
Contributor

When/if merging please choose, "Squash and merge" thank you

gRoussac added a commit to gRoussac/casper-client-rs that referenced this pull request Jul 17, 2024
@gRoussac gRoussac linked an issue Jul 17, 2024 that may be closed by this pull request
@devendran-m
Copy link

Hi @gRoussac , could we now merge this PR please?

gRoussac added a commit that referenced this pull request Aug 28, 2024
* Add feat-track-node-2.0 to CI

* Port from dev to feat-track-2.0 of #149 #175 Part of #144
Enable CI CD check on feat-track-2.0

* clippy/test/build with no default features not yet working

* Clippy

* Commenting out ci/cd for --no-default-features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Source Code Verification option
5 participants