hashgraph / hedera-sourcify

Tools for verifying Hedera smart contracts using standard open source libraries.
Apache License 2.0
6 stars 7 forks source link

Support for Foundry verification in our Sourcify instance #122

Closed acuarica closed 5 months ago

acuarica commented 5 months ago

Foundry allows developers to verify contracts using Sourcify. See https://docs.sourcify.dev/docs/how-to-verify/#foundry.

Ensure our instance works with Foundry verification.

acuarica commented 5 months ago

Foundry verification has been confirmed to be working properly. Our verification service instance is located at https://server-verify.hashscan.io.

Once you have a running Foundry example, you can deploy and verify it with our verification service, for example

forge create --rpc-url https://testnet.hashio.io/api \
  --private-key <your_private_key> src/Counter.sol:Counter \
  --verify \
  --verifier sourcify \
  --verifier-url https://server-verify.hashscan.io

After the contract has been verified, you can check its sources in the verification repository, for example see https://repository-verify.hashscan.io/contracts/full_match/296/0x559e79D4Edf86E772840eFc2ee4CFC37bB500f2F/.