Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rufusfavour authored Dec 13, 2024
2 parents 01eba1f + f584614 commit a0328aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ You should have a folder structure similar to this:
└── test
```

The `src` folder will contain a `Counter.sol` file which will serve as the country you want to deploy.
The `src` folder will contain a `Counter.sol` file which will serve as the contract you want to deploy.

:::note You will need ETH on Base to deploy
You (the deployer wallet) will need some ETH in order to broadcast the transaction to the Base network. Fortunately, transactions are usually < 1 cent on Base mainnet.
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/tutorials/docs/5_cross-chain-with-ccip.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The ETH is required for covering gas fees associated with deploying smart contra

- To fund your wallet with ETH on Base Goerli, visit a faucet listed on the [Base Faucets](https://docs.base.org/tools/network-faucets) page.
- To fund your wallet with ETH on Optimism Goerli, visit a faucet listed on the [Optimism Faucets](https://docs.optimism.io/builders/tools/faucets) page.
- To fund your wallet with LINK, visit the [Chainlink Faucet](https://faucets.chain.link/base-testnet).
- To fund your wallet with LINK, visit the [Chainlink Faucet](https://faucets.chain.link/base-sepolia).

:::info

Expand Down
12 changes: 6 additions & 6 deletions apps/base-docs/tutorials/docs/5_cross-chain-with-layerzero.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ remappings = [

## Getting started with LayerZero

LayerZero provides a smart contract standard called [OApp](https://docs.layerzero.network/contracts/oapp) that is intended for omnichain messaging and configuration.
LayerZero provides a smart contract standard called [OApp](https://docs.layerzero.network/v2/developers/evm/oapp/overview) that is intended for omnichain messaging and configuration.

```solidity
// SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -180,17 +180,17 @@ To get started using LayerZero, developers simply need to inherit from the [OApp
- `_lzSend`: A function used to send an omnichain message
- `_lzReceive`: A function used to receive an omnichain message

In this tutorial, you will be implementing the [OApp](https://docs.layerzero.network/contracts/oapp) standard into your own project to add the capability to send messages from a smart contract on Base to a smart contract on Optimism.
In this tutorial, you will be implementing the [OApp](https://docs.layerzero.network/v2/developers/evm/oapp/overview) standard into your own project to add the capability to send messages from a smart contract on Base to a smart contract on Optimism.

:::info

An extension of the [OApp](https://docs.layerzero.network/contracts/oapp) contract standard known as [OFT](https://docs.layerzero.network/contracts/oft) is also available for supporting omnichain fungible token transfers.
An extension of the [OApp](https://docs.layerzero.network/v2/developers/evm/oapp/overview) contract standard known as [OFT](https://docs.layerzero.network/v2/developers/evm/oft/quickstart) is also available for supporting omnichain fungible token transfers.

:::

:::info

For more information on transferring tokens across chains using LayerZero, visit the [LayerZero documentation](https://docs.layerzero.network/contracts/oft).
For more information on transferring tokens across chains using LayerZero, visit the [LayerZero documentation](https://docs.layerzero.network/v2/developers/evm/oft/quickstart).

:::

Expand Down Expand Up @@ -226,7 +226,7 @@ The contract's constructor expects two arguments:

### Implementing message sending (`_lzSend`)

To send messages to another chain, your smart contract must call the `_lzSend` function inherited from the [OApp](https://docs.layerzero.network/contracts/oapp) contract.
To send messages to another chain, your smart contract must call the `_lzSend` function inherited from the [OApp](https://docs.layerzero.network/v2/developers/evm/oapp/overview) contract.

Add a new custom function named `sendMessage` to your smart contract that has the following content:

Expand Down Expand Up @@ -302,7 +302,7 @@ Your contract’s `estimateFee` function should always be called immediately bef

### Implementing message receiving (`_lzReceive`)

To receive messages on the destination chain, your smart contract must override the `_lzReceive` function inherited from the [OApp](https://docs.layerzero.network/contracts/oapp) contract.
To receive messages on the destination chain, your smart contract must override the `_lzReceive` function inherited from the [OApp](https://docs.layerzero.network/v2/developers/evm/oapp/overview) contract.

Add the following code snippet to your `ExampleContract` contract to override the `_lzReceive` function:

Expand Down

0 comments on commit a0328aa

Please sign in to comment.