Skip to content

Commit fa6004c

Browse files
authored
Merge pull request #1 from scroll-tech/develop
Update from Scroll
2 parents fb1356a + 28ac645 commit fa6004c

File tree

9 files changed

+13
-12
lines changed

9 files changed

+13
-12
lines changed

src/components/Footer/PureFooter/PureFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Footer = () => {
3333
<p className={styles.title}>Follow Us</p>
3434
<div>
3535
{mediaList.map((item) => (
36-
<a external href={item.href} key={item.name}>
36+
<a external href={item.href} key={item.name} target="_blank">
3737
{<item.icon />}
3838
</a>
3939
))}

src/content/docs/en/developers/guides/bridge-erc20-through-the-custom-gateway.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ contract L1Token is ERC20 {
3636

3737
## Step 2: Launch the counterpart token on Scroll Sepolia testnet
3838

39-
Next, launch you'll launch a counterpart to this token on Scroll, which will represent the original token on Sepolia. This token can implement custom logic to match that of the L1 token or even add additional features beyond those of the L1 token.
39+
Next, you'll launch a counterpart to this token on Scroll, which will represent the original token on Sepolia. This token can implement custom logic to match that of the L1 token or even add additional features beyond those of the L1 token.
4040

4141
For this to work:
4242

43-
- The token must implement the `IScrollStandardERC20`` interface in order to be compatible with the bridge.
43+
- The token must implement the `IScrollStandardERC20` interface in order to be compatible with the bridge.
4444
- The contract should provide the gateway address and the counterpart token addresses (the L1 token we just launched) under the `gateway()` and `counterpart()` functions. It should also allow the L2 gateway to call the token `mint()` and `burn()` functions, which are called when a token is deposited and withdrawn.
4545

46-
The following is a complete example of a token compatible with the bridge. To the constructor, you will pass the official Scroll Custom Gateway address (`0x31C994F2017E71b82fd4D8118F140c81215bbb37`) and the address of the token launched on Sepolia.
46+
The following is a complete example of a token compatible with the bridge. To the constructor, you will pass the official Scroll Custom Gateway address (`0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf`) and the address of the token launched on Sepolia.
4747

4848
```solidity
4949
// SPDX-License-Identifier: MIT

src/content/docs/en/developers/guides/contract-deployment-tutorial.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: "Contract Deployment Tutorial"
55
lang: "en"
66
permalink: "developers/guides/contract-deployment-tutorial"
77
excerpt: "The Scroll Sepolia Testnet allows the community to deploy smart contracts on Scroll. In this tutorial, we will teach you how to deploy a contract on Scroll Sepolia."
8-
whatsnext: { "Contract Deployment Tutorial": "/developers/developer-quickstart/" }
8+
whatsnext: { "Scroll Messenger Cross-chain Interaction": "/developers/guides/scroll-messenger-cross-chain-interaction/" }
99
---
1010

1111
import Aside from "../../../../../components/Aside.astro"

src/content/docs/en/developers/guides/scroll-messenger-cross-chain-interaction.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: Last Modified
44
title: "Scroll Messenger Cross-chain Interaction"
55
lang: "en"
66
permalink: "developers/guides/scroll-messenger-cross-chain-interaction"
7+
whatsnext: { "Bridge ERC20 through the Custom Gateway": "/developers/guides/bridge-erc20-through-the-custom-gateway" }
78
excerpt: "In this example, we will launch a dummy smart contract on either Sepolia or Scroll Sepolia testnet and interact with it from the opposite chain."
89
---
910

src/content/docs/en/developers/scroll-contracts.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ date: Last Modified
44
title: "Scroll Sepolia Contracts"
55
lang: "en"
66
permalink: "developers/scroll-contracts"
7+
whatsnext: { "Ethereum & Scroll Differences": "/developers/ethereum-and-scroll-differences" }
78
excerpt: "The network info and contract addresses you need to start with Scroll Sepolia Testnet."
89
---
910

src/content/docs/en/technology/bridge/cross-domain-messaging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function sendMessage(
217217

218218
Next, the cross-domain message hash is appended to `L2MessageQueue` by calling its `appendMessage` function. The `L2MessageQueue` contract maintains the [Withdraw Trie](#withdraw-trie), an append-only Merkle tree. Every time a new message is appended to the queue, the contract inserts it into the Withdraw Trie and updates the trie's root hash.
219219

220-
After the transaction batch containing users' L2-to-L1 messages is finalized on the L1 rollup contract, users need to submit corresponding _Execute Withdrawal_ transactions to call `relayMessageWithProof` method in the `L1ScrollMessenger` contract that executes the withdrawal on L1. Thanks to the Merle proofs, the finalization of withdrawal transactions on L1 is trustless and can be submitted by user themselves or by a third party on behalf of users.
220+
After the transaction batch containing users' L2-to-L1 messages is finalized on the L1 rollup contract, users need to submit corresponding _Execute Withdrawal_ transactions to call `relayMessageWithProof` method in the `L1ScrollMessenger` contract that executes the withdrawal on L1. Thanks to the Merkle proofs, the finalization of withdrawal transactions on L1 is trustless and can be submitted by user themselves or by a third party on behalf of users.
221221

222222
To make it easier to construct a withdraw MIP, Scroll maintains a service called Bridge History API. Bridge History API monitors `SentMessage` events emitted from `L2ScrollMessenger` and maintains a Withdraw Trie internally. It continuously generates Merkle proofs for every withdrawal messages. Users and third-party services can query Merkle proofs from the Bridge History API to include in the _Execute Withdrawal_ transactions.
223223

src/content/docs/en/technology/chain/transactions.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ First, users can directly submit transactions to L2 sequencers. To do so, users
6262

6363
Second, deposit and enforced transactions are originated on L1. Scroll L1 bridge contract provides three entry points for users and smart contracts to send transactions from the L1. All messages sent through these three entry points will be appended to the `L1MessageQueue` contract.
6464

65-
- The `ScrollGatewayRouter` contract and several standard token gateways allow users and contracts to deposit standard tokens to L2. See more details in the [Deposit Token Gateways](/-oscADc8SoKAOxjtpcEqKg).
66-
- The `L1ScrollMessenger` contract allows users and contracts to send arbitrary messages to L2. See more details in the [Sending Arbitrary Messages](/UPyw7afFQE6q-9CIdIRBag#Sending-Arbitrary-Messages).
67-
- The `EnforcedTxGateway` contract allows EOAs to initiate an enforced transaction from the same address to withdraw tokens or call other contracts on L2. See more details in the [Sending Enforced Transaction](/UPyw7afFQE6q-9CIdIRBag#Sending-Enforced-Transactions).
65+
- The `ScrollGatewayRouter` contract and several standard token gateways allow users and contracts to deposit standard tokens to L2. See more details in the [Deposit Token Gateways](/technology/bridge/deposit-gateways).
66+
- The `L1ScrollMessenger` contract allows users and contracts to send arbitrary messages to L2. See more details in the [Sending Arbitrary Messages](/technology/bridge/cross-domain-messaging#sending-arbitrary-messages).
67+
- The `EnforcedTxGateway` contract allows EOAs to initiate an enforced transaction from the same address to withdraw tokens or call other contracts on L2. See more details in the [Sending Enforced Transaction](/technology/bridge/cross-domain-messaging#sending-enforced-transactions).
6868

6969
The Scroll sequencer periodically starts a new mining job. It pulls the L1 messages from the `L1MessageQueue` contract and transactions in the L2 mempool and seals a block. Once a transaction is included in a L2 block, its status becomes `Confirmed`.
7070

7171
### Commit Transaction Data
7272

73-
The rollup node collects new L2 blocks and packs them into chunks and batches (see more details in [Transaction Batching](/RxRWLFtiQ7W_wbc0jMnQNA)). Periodically it sends a _Commit Transaction_ that posts the data of a batch of transactions to the L1 `ScrollChain` contract. After the Commit Transaction is finalized in a L1 block, the status of the transactions in this batch becomes `Committed`. At this time, users can reconstruct L2 state themselves completely based on the committed data from the L1 contract.
73+
The rollup node collects new L2 blocks and packs them into chunks and batches (see more details in [Transaction Batching](/technology/chain/transactions#transaction-batching)). Periodically it sends a _Commit Transaction_ that posts the data of a batch of transactions to the L1 `ScrollChain` contract. After the Commit Transaction is finalized in a L1 block, the status of the transactions in this batch becomes `Committed`. At this time, users can reconstruct L2 state themselves completely based on the committed data from the L1 contract.
7474

7575
### Finalize Transactions
7676

src/content/docs/en/technology/zkevm/zkevm-overview.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: "zkEVM Overview"
55
lang: "en"
66
permalink: "technology/zkevm-overview"
77
excerpt: "In order to understand how to build a zkEVM, which proves the execution of the EVM, we need to first look at the EVM itself."
8-
whatsnext: { "Bridge Overview": "/technology/bridge/bridge-overview" }
98
---
109

1110
import ClickToZoom from "../../../../../components/ClickToZoom.astro"

src/content/docs/en/user-guide/bridge.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ excerpt: "To start bridging assets from Sepolia, navigate to the portal bridge a
2020
{/* TODO: Update all instructions after being able to walk through the whole flow. */}
2121

2222
Visit our [Bridge](https://scroll.io/bridge) app to get started![^thanks-hop] The Bridge supports both **Deposit** and **Withdraw** operations, allowing users to trustlessly move assets from Sepolia Testnet to Scroll Sepolia Testnet.
23-
[^thanks-hop]: Forked from [Hop Exchange]('https://hop.exchange/')'s UI 🙌
23+
[^thanks-hop]: Forked from [Hop Exchange](https://hop.exchange/)'s UI 🙌
2424

2525
Deposits can take up to 15 minutes to be available on Scroll.
2626

0 commit comments

Comments
 (0)