ethereum / sourcify

Decentralized Solidity contract source code verification service
https://sourcify.dev
MIT License
782 stars 399 forks source link

documentation to setting local sourcify and local blockscout #1040

Open haidarabdillah opened 1 year ago

haidarabdillah commented 1 year ago

hello im alredy running blockscout in local, any documentation to running sourcify locally and auto verify too in my local blockscout?

View in Huly HI-476

kuzdogan commented 1 year ago

Hello

Did you check this page in docs? https://docs.sourcify.dev/docs/run-locally/

In theory you can run Sourcify on http://localhost:5555. Then there should be a setting on your Blockscout to set the Sourcify URL which you can change it with this URL.

What do you mean by auto-verify? This monitoring service? https://docs.sourcify.dev/docs/monitoring/

haidarabdillah commented 1 year ago

thanks for your reply, but seem a little confuse about it. any step by step to do it? already install sourcify local .

my goal :

  1. local ethereum
  2. local sourcify
  3. auto verify maybe use hardhat plugin or something like thats, any information?
kuzdogan commented 1 year ago

I am assuming you want to run a local Ganache, Hardhat Network, Anvil etc.

If that's the case you need to add your local chain to

  1. chains.json
  2. sourcify-chains.ts

Then follow the steps in https://docs.sourcify.dev/docs/run-locally/

In hardhat currently you can use the hardhat-deploy plugin and set the --endpoint to your local URL e.g. localhost:5555. You need to have your network added in the hardhat-config file.

Let me know if this is clearer

haidarabdillah commented 1 year ago

thanks for reply, will try it and report it