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

Generate a solc_json output #140

Open
stas opened this issue Dec 21, 2024 · 6 comments
Open

Generate a solc_json output #140

stas opened this issue Dec 21, 2024 · 6 comments

Comments

@stas
Copy link

stas commented Dec 21, 2024

Overview

Trying to verify manually a deployed contract, but can't generate a vyper -f solc_json output.

Manually calling the vyper doesn't work because I have dependencies installed via ape pm.

Specification

Ideally we get the solc_json output as a JSON file with the contract name somewhere in the .build folder.

Copy link

linear bot commented Dec 21, 2024

@stas
Copy link
Author

stas commented Dec 21, 2024

Current work-around is to manually call the vyper with the dependency paths. Eg.

/root/.vvm/vyper-0.4.0 -f solc_json -o lp1.json --path=/root/.ape/packages/projects/pcaversaccio_snekmate/0_1_0/src/ --evm-version cancun contracts/LpSugar.vy

Full context here:
https://github.com/velodrome-finance/sugar/pull/102/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557

@antazoey
Copy link
Member

antazoey commented Jan 7, 2025

solc_json is not available yet in vyper when using --standard-json, I started adding it here: vyperlang/vyper#4440

@stas
Copy link
Author

stas commented Jan 7, 2025

@antazoey did you see my previous comment? I'm not sure where --standard-json is needed 🤔

@antazoey
Copy link
Member

antazoey commented Jan 7, 2025

@antazoey did you see my previous comment? I'm not sure where --standard-json is needed 🤔

Yeah, sorry I was confused, I didn't realize this was a stand-alone output format.
We're working on a fix!

@stas
Copy link
Author

stas commented Jan 8, 2025

Thanks so much!

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

No branches or pull requests

2 participants