Skip to content

Update before versioning up develop #221

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

Merged
merged 6 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/components/RPCTable/RPCTable.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ chainData = chainData || {
url: "https://scrollscan.com",
standard: "EIP3091",
},
{
name: "Blockscout",
url: "https://blockscout.scroll.io",
standard: "EIP3091",
},
],
parent: {
type: "L2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Transactions aren't committed 1-by-1 -- they are collected in batches of blocks

### Estimating the L1 Data Fee

Scroll has a pre-deployed `L1GasPriceOracle`, accessible on both Scroll and Scroll Sepolia at ([`0x5300000000000000000000000000000000000002`](https://sepolia-blockscout.scroll.io/address/0x5300000000000000000000000000000000000002)). It provides a `getL1Fee` method to estimate the L1 data fee for a given transaction's raw data.
Scroll has a pre-deployed `L1GasPriceOracle`, accessible on both Scroll and Scroll Sepolia at ([`0x5300000000000000000000000000000000000002`](https://sepolia.scrollscan.com/address/0x5300000000000000000000000000000000000002)). It provides a `getL1Fee` method to estimate the L1 data fee for a given transaction's raw data.

```solidity
function getL1Fee(bytes memory _data) external view override returns (uint256);
Expand Down
45 changes: 8 additions & 37 deletions src/content/docs/en/developers/verifying-smart-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,20 @@ After deploying your smart contracts, it's important to verify your code on a bl

## Using Developer Tools

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.
Most smart contract tooling has plugins for verifying your contracts easily on Etherscan.

| 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 |
- Scroll Mainnet: https://api.scrollscan.com/api
- Scroll Sepolia: https://api-sepolia.scrollscan.com/api

<Aside type="tip" title="Using the Scrollscan API">
When using Scrollscan, you will need to [register an account](https://scrollscan.com/register) and create an API key. The same key can be used for both Scroll Sepolia and mainnet. After creating your API key, please wait a few minutes before it comes into effect.
</Aside>

### Hardhat

Modify `hardhat.config.ts` to point to Scroll's RPC and block explorer API. For Blockscout, a dummy `apiKey` value is required, but anything works for its value. For Scrollscan, use your own API key.
Modify `hardhat.config.ts` to point to Scroll's RPC and block explorer API.

For example, if you are using Scroll Sepolia on Blockscout, your config will look like this:
For example, the config for Scroll Sepolia will look like this:
```javascript
...

Expand All @@ -47,15 +45,15 @@ const config: HardhatUserConfig = {
},
etherscan: {
apiKey: {
scrollSepolia: 'abc',
scrollSepolia: <YOUR API KEY>,
},
customChains: [
{
network: 'scrollSepolia',
chainId: 534351,
urls: {
apiURL: 'https://sepolia-blockscout.scroll.io/api',
browserURL: 'https://sepolia-blockscout.scroll.io/',
apiURL: 'https://api-sepolia.scrollscan.com/api',
browserURL: 'https://sepolia.scrollscan.com/',
},
},
],
Expand Down Expand Up @@ -92,9 +90,6 @@ When using Foundry, the `verify-contract` command helps automate the process of

Refer to the [Foundry documentation](https://book.getfoundry.sh/reference/forge/forge-verify-contract) for further options you can specify.


#### Scrollscan

```bash
forge verify-contract <contract address> <contract name> \
--verifier-url https://api-sepolia.scrollscan.com/api \
Expand All @@ -103,28 +98,4 @@ forge verify-contract <contract address> <contract name> \
```
<Aside type="caution" title="Caution">
Do not specify the chain ID.
</Aside>

#### Blockscout

Specify the verification provider as `blockscout`.

##### Scroll
```bash
forge verify-contract <contract address> <contract name> \
--verifier-url https://blockscout.scroll.io/api\? \
--verifier blockscout \
--constructor-args <your constructor arguments>
```

##### Scroll Sepolia
```bash
forge verify-contract <contract address> <contract name> \
--verifier-url https://sepolia-blockscout.scroll.io/api\? \
--verifier blockscout \
--constructor-args <your constructor arguments>
```

<Aside type="danger" title="Warning">
Notice we add `\?` at the end of the verifier URL otherwise verification would fail. (Last tested on forge v0.2.0).
</Aside>
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Scroll has worked with several industry-leading security audit firms to review o
- [Report 1](https://github.com/Zellic/publications/blob/master/Scroll%20-%2005.26.23%20Zellic%20Audit%20Report.pdf)
- [Report 2](https://github.com/Zellic/publications/blob/master/Scroll%20-%2009.27.23%20Zellic%20Audit%20Report.pdf)

### Auxiliary contracts
- ZkTrie Verifier
- [OpenZeppelin](https://blog.openzeppelin.com/scroll-zktrieverifier-audit#notes-additional-information)

## Bug Bounty Program

Scroll has an active [Bug Bounty Program on Immunefi](https://immunefi.com/bounty/scroll/), a leading bug bounty platform. The program is open to the public, and we encourage anyone to participate.
Expand Down
7 changes: 3 additions & 4 deletions src/content/docs/en/user-guide/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ If you want to try out Scroll mainnet, follow the guide, then use the mainnet li

Thank you for testing the Scroll Sepolia Testnet. If you have questions or want to give feedback, join our [Discord](https://discord.gg/scroll)!

The Sepolia Testnet consists of _Ethereum's Sepolia Testnet_ and the _Scroll Sepolia_ test network. Sepolia is an Ethereum test network, while Scroll Sepolia is a zero knowledge rollup testnet deployed on top of the former. There are some pre-deployed demo applications: a [bridge](https://sepolia.scroll.io/bridge) between _Sepolia_ and _Scroll Sepolia_,[^1] a [block explorer](https://sepolia-blockscout.scroll.io/) for _Scroll Sepolia_,[^2] and a [rollup explorer](https://sepolia.scroll.io/rollupscan).
The Sepolia Testnet consists of _Ethereum's Sepolia Testnet_ and the _Scroll Sepolia_ test network. Sepolia is an Ethereum test network, while Scroll Sepolia is a zero knowledge rollup testnet deployed on top of the former. There are some pre-deployed demo applications: a [bridge](https://sepolia.scroll.io/bridge) between _Sepolia_ and _Scroll Sepolia_,[^1] a [block explorer](https://sepolia.scrollscan.com) for _Scroll Sepolia_, and a [rollup explorer](https://sepolia.scroll.io/rollupscan).

To view L1 transactions, check out Etherscan's [Sepolia explorer](https://sepolia.etherscan.io/).
To view L2 transactions, you can use [Scrollscan](https://sepolia.scrollscan.com) or Scroll's [Blockscout](https://sepolia-blockscout.scroll.io/), but you may also want to try out the additional functionality provided by [Dora](https://www.ondora.xyz/network/scroll-sepolia/interactions) or [L2Scan](https://scroll-sepolia.l2scan.co/).
To view L2 transactions, you can use [Scrollscan](https://sepolia.scrollscan.com), or you may also want to try out the additional functionality provided by [Dora](https://www.ondora.xyz/network/scroll-sepolia/interactions) or [L2Scan](https://scroll-sepolia.l2scan.co/).

Here is the suggested workflow to explore the Testnet:

Expand All @@ -40,5 +40,4 @@ You can find the instructions for each app in the rest of this user guide.

If you encounter any issues, join our [Discord](https://discord.gg/scroll) and talk to us in the `#general-support` channel. We would love to hear your thoughts or feedback on how we can improve your experience, too.

[^1]: Forked from the [Hop Exchange](https://hop.exchange/) UI 🐇🙌
[^2]: Using [Blockscout](https://blockscout.com/)'s great open source block explorer
[^1]: Forked from the [Hop Exchange](https://hop.exchange/) UI 🐇🙌