Skip to content

Commit

Permalink
fix broken link (#120)
Browse files Browse the repository at this point in the history
Co-authored-by: isabelle <[email protected]>
  • Loading branch information
isabellewei and isabelle authored Nov 15, 2023
1 parent f2ad82d commit e0b08d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The Gateway Router allows ETH and ERC20 token bridging from L1 to L2 using the `
When bridging ERC20 tokens, you don’t have to worry about selecting the right Gateway. This is because the `L1GatewayRouter` will choose the correct underlying entry point to send the message:

- **`L1StandardERC20Gateway`:** This Gateway permits any ERC20 deposit and will be selected as the default by the L1GatewayRouter for an ERC20 token that doesn’t need custom logic on L2. On the very first token bridging, a new token will be created on L2 that implements the ScrollStandardERC20. To bridge a token, call the `depositERC20` function on the `L1GatewayRouter`.
- **`L1CustomERC20Gateway`:** This Gateway will be selected by the `L1GatewayRouter` for tokens with custom logic. For an L1/L2 token pair to work on the Scroll Custom ERC20 Bridge, the L2 token contract has to implement `IScrollStandardERC20`. Additionally, the token should grant `mint` or `burn` capability to the `L2CustomERC20Gateway`. Visit the [Bridge an ERC20 through the Custom Gateway](/developers/developer-guides/bridge-erc20-through-the-custom-gateway) guide for a step-by-step example of how to bridge a custom token.
- **`L1CustomERC20Gateway`:** This Gateway will be selected by the `L1GatewayRouter` for tokens with custom logic. For an L1/L2 token pair to work on the Scroll Custom ERC20 Bridge, the L2 token contract has to implement `IScrollStandardERC20`. Additionally, the token should grant `mint` or `burn` capability to the `L2CustomERC20Gateway`. Visit the [Bridge an ERC20 through the Custom Gateway](/developers/guides/bridge-erc20-through-the-custom-gateway) guide for a step-by-step example of how to bridge a custom token.

All Gateway contracts will form the message and send it to the `L1ScrollMessenger` which can send arbitrary messages to L2. The `L1ScrollMessenger` passes the message to the `L1MessageQueue`. Any user can send messages directly to the Messenger to execute arbitrary data on L2. This means they can execute any function on L2 from a transaction made on L1 via the bridge. Although an application could directly pass messages to existing token contracts, the Gateway abstracts the specifics and simplifies making transfers and calls.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Al enviar tokens ERC20, no tienes que preocuparte de seleccionar la Gateway corr
- **`L1StandardERC20Gateway`:** Esta Gateway permite cualquier depósito de tokens ERC20 y será seleccionada por defecto por la `L1GatewayRouter` para un token ERC20 que no necesite lógica personalizada en L2. En el primer bridging de tokens, se creará un nuevo token en L2 que implemente el ScrollStandardERC20. Para hacer bridging de un token, llama a la función `depositERC20` en el `L1GatewayRouter`.
- **`L1CustomERC20Gateway`:** Esta Gateway será seleccionada por el `L1GatewayRouter` para tokens con lógica personalizada. Para que un pair de token L1/L2 funcione en el bridge de ERC20 personalizado de Scroll, el contrato de token en L2 tiene que implementar `IScrollStandardERC20`. Además, el token debe conceder la capacidad `mint` y `burn` a la `L2CustomERC20Gateway`.

Visita la guía [Bridge ERC20 a través de una Gateway Personalizada](/developers/developer-guides/bridge-erc20-through-the-custom-gateway) para ver un ejemplo paso a paso de cómo hacer bridging de un token personalizado.
Visita la guía [Bridge ERC20 a través de una Gateway Personalizada](/developers/guides/bridge-erc20-through-the-custom-gateway) para ver un ejemplo paso a paso de cómo hacer bridging de un token personalizado.

Todos los contratos Gateway formarán el mensaje y lo enviarán al `L1ScrollMessenger` que puede enviar mensajes arbitrarios a L2. El `L1ScrollMessenger` pasa el mensaje a la `L1MessageQueue`. Cualquier usuario puede enviar mensajes directamente al Messenger para ejecutar datos arbitrarios en L2. Esto significa que pueden ejecutar cualquier función en L2 desde una transacción realizada en L1 a través del bridge. Aunque una aplicación podría pasar directamente mensajes a los contratos de tokens existentes, el Gateway abstrae los detalles y simplifica las transferencias y llamadas.

Expand Down

0 comments on commit e0b08d1

Please sign in to comment.