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

Update contract verification page for etherscan and mainnet #123

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

isabellewei
Copy link
Contributor

Description

Add instructions for contract verification with Etherscan and mainnet

Copy link

netlify bot commented Nov 17, 2023

Deploy Preview for scroll-documentation ready!

Name Link
🔨 Latest commit 111ec76
🔍 Latest deploy log https://app.netlify.com/sites/scroll-documentation/deploys/6557cc0cc0acbb00080783d1
😎 Deploy Preview https://deploy-preview-123.docs.scroll.xyz/en/developers/verifying-smart-contracts
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 112 to 116
{/* <Aside type="danger" title="Warning">
Our Blockscout instance currently has inconsistent behavior in verifying contracts with Foundry. We're working on a
fix, along with other stability improvements. Don't hesitate to come ask for help [on
Discord](https://discord.com/channels/853955156100907018/1028102371894624337) though.
</Aside>
</Aside> */}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we still want to include this here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably not.

dghelm
dghelm previously approved these changes Nov 17, 2023
Copy link
Collaborator

@dghelm dghelm left a comment

Choose a reason for hiding this comment

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

Thanks for getting this updated! One nit and a few thoughts, but I'll try to get it live ASAP.

Most smart contract tooling has plugins for verifying your contracts easily on Etherscan. Blockscout supports Etherscan's contract verification APIs, and it's straightforward to use these tools with the Scroll Sepolia Testnet.
Most smart contract tooling has plugins for verifying your contracts easily on Etherscan. Blockscout supports Etherscan's contract verification APIs, so it's straightforward to use these tools using the APIs of either of these block explorers.

| Network | Scroll Scroll | Sepolia |
Copy link
Collaborator

Choose a reason for hiding this comment

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

"Scroll | Scroll Sepolia"

---

import Aside from "../../../../components/Aside.astro"
import ClickToZoom from "../../../../components/ClickToZoom.astro"
import verify1 from "./_images/verify1.png"
import CodeSample from "../../../../components/CodeSample/CodeSample.astro"

After deploying your smart contracts, it's important to verify your code on [our block explorer](https://scrollscan.com/) or the [Sepolia block explorer](https://sepolia-blockscout.scroll.io).
After deploying your smart contracts, it's important to verify your code on our block explorers. This can be done in an automated way using your developer tooling or the Web UI.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if "our" is right if we're not running Scrollscan and other blockexplorers might want visibility on this page.

"on a block explorer"

| Network | Scroll Scroll | Sepolia |
| ---------- | -------------------------------- | ---------------------------------------- |
| Scrollscan | https://api.scrollscan.com/api | https://api-sepolia.scrollscan.com/api |
| Blockscout | https://blockscout.scroll.io/api | https://sepolia-blockscout.scroll.io/api |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we even want to emphasize Blockscout? For the most part we consider it an internal tool and don't want developers defaulting to using it for contract verification.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, for now let's leave it.

Comment on lines 112 to 116
{/* <Aside type="danger" title="Warning">
Our Blockscout instance currently has inconsistent behavior in verifying contracts with Foundry. We're working on a
fix, along with other stability improvements. Don't hesitate to come ask for help [on
Discord](https://discord.com/channels/853955156100907018/1028102371894624337) though.
</Aside>
</Aside> */}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably not.

@dghelm dghelm merged commit a2fbe8c into develop Nov 17, 2023
5 of 6 checks passed
@isabellewei isabellewei deleted the isabellewei/foundryVerification branch February 8, 2024 21:52
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.

2 participants