Skip to content

Commit

Permalink
english edits
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellewei committed Mar 8, 2024
1 parent bcd0b2e commit b7c88c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 47 deletions.
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>
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 πŸ‡πŸ™Œ

0 comments on commit b7c88c9

Please sign in to comment.