diff --git a/docs/base-chain/quickstart/builder-codes.mdx b/docs/base-chain/quickstart/builder-codes.mdx index ce3f27b59..16f26af03 100644 --- a/docs/base-chain/quickstart/builder-codes.mdx +++ b/docs/base-chain/quickstart/builder-codes.mdx @@ -16,7 +16,7 @@ Once your app is registered on [Base.dev](http://base.dev/), the Base App will a ## For App Developers -When you register on [base.dev](https://base.dev/), you will receive a **Builder Code**—a random string (e.g., `bc_b7k3p9da` ) that you'll use to generate your attribution suffix. +When you register on [base.dev](https://base.dev/), you will receive a **Builder Code**—a random string (e.g., `bc_b7k3p9da`) that you'll use to generate your attribution suffix. You can find your code anytime under **Settings** → **Builder Code**. diff --git a/docs/learn/onchain-app-development/finance/access-real-world-data-chainlink.mdx b/docs/learn/onchain-app-development/finance/access-real-world-data-chainlink.mdx index 8f018f941..2f47556fa 100644 --- a/docs/learn/onchain-app-development/finance/access-real-world-data-chainlink.mdx +++ b/docs/learn/onchain-app-development/finance/access-real-world-data-chainlink.mdx @@ -39,7 +39,7 @@ In order to deploy a smart contract, you will first need a wallet. You can creat Deploying contracts to the blockchain requires a gas fee. Therefore, you will need to fund your wallet with ETH to cover those gas fees. -For this tutorial, you will be deploying a contract to the Base Goerli test network. You can fund your wallet with Base Goerli ETH using one of the faucets listed on the Base [Network Faucets](https://docs.base.org/base-chain/tools/network-faucets) page. +For this tutorial, you will be deploying a contract to the Base Sepolia test network. You can fund your wallet with Base Sepolia ETH using one of the faucets listed on the Base [Network Faucets](https://docs.base.org/base-chain/tools/network-faucets) page. ## What are Chainlink Data Feeds? @@ -99,7 +99,7 @@ Once your project has been created and dependencies have been installed, you can The Solidity code below defines a smart contract named `DataConsumerV3`. The code uses the `AggregatorV3Interface` interface from the [Chainlink contracts library](https://docs.chain.link/data-feeds/api-reference#aggregatorv3interface) to provide access to price feed data. -The smart contract passes an address to `AggregatorV3Interface`. This address (`0xcD2A119bD1F7DF95d706DE6F2057fDD45A0503E2`) corresponds to the `ETH/USD` price feed on the Base Goerli network. +The smart contract passes an address to `AggregatorV3Interface`. This address (`0x4aDC67696b1f2351e98475682738F7473D1E0E84`) corresponds to the `ETH/USD` price feed on the Base Sepolia network. Chainlink provides a number of price feeds for Base. For a list of available price feeds on Base, visit the [Chainlink documentation](https://docs.chain.link/data-feeds/price-feeds/addresses/?network=base&page=1). @@ -115,12 +115,12 @@ Chainlink provides a number of price feeds for Base. For a list of available pri AggregatorV3Interface internal priceFeed; /** - * Network: Base Goerli + * Network: Base Sepolia * Aggregator: ETH/USD - * Address: 0xcD2A119bD1F7DF95d706DE6F2057fDD45A0503E2 + * Address: 0x4aDC67696b1f2351e98475682738F7473D1E0E84 */ constructor() { - priceFeed = AggregatorV3Interface(0xcD2A119bD1F7DF95d706DE6F2057fDD45A0503E2); + priceFeed = AggregatorV3Interface(0x4aDC67696b1f2351e98475682738F7473D1E0E84); } function getLatestPrice() public view returns (int) { @@ -170,12 +170,12 @@ To confirm that the wallet was imported as the `deployer` account in your Foundr cast wallet list ``` -### Setting up environment variables for Base Goerli +### Setting up environment variables for Base Sepolia -To setup your environment for deploying to the Base network, create an `.env` file in the home directory of your project, and add the RPC URL for the Base Goerli testnet: +To setup your environment for deploying to the Base network, create an `.env` file in the home directory of your project, and add the RPC URL for the Base Sepolia testnet: ``` -BASE_GOERLI_RPC="https://goerli.base.org" +BASE_SEPOLIA_RPC="https://sepolia.base.org" ``` Once the `.env` file has been created, run the following command to load the environment variables in the current command line session: @@ -184,27 +184,27 @@ Once the `.env` file has been created, run the following command to load the env source .env ``` -### Deploying the smart contract to Base Goerli +### Deploying the smart contract to Base Sepolia -With your contract compiled and environment setup, you are ready to deploy the smart contract to the Base Goerli Testnet! +With your contract compiled and environment setup, you are ready to deploy the smart contract to the Base Sepolia Testnet! For deploying a single smart contract using Foundry, you can use the `forge create` command. The command requires you to specify the smart contract you want to deploy, an RPC URL of the network you want to deploy to, and the account you want to deploy with. -To deploy the `DataConsumerV3` smart contract to the Base Goerli test network, run the following command: +To deploy the `DataConsumerV3` smart contract to the Base Sepolia test network, run the following command: ```bash -forge create ./src/DataConsumerV3.sol:DataConsumerV3 --rpc-url $BASE_GOERLI_RPC --account deployer +forge create ./src/DataConsumerV3.sol:DataConsumerV3 --rpc-url $BASE_SEPOLIA_RPC --account deployer ``` When prompted, enter the password that you set earlier, when you imported your wallet's private key. -Your wallet must be funded with ETH on the Base Goerli Testnet to cover the gas fees associated with the smart contract deployment. Otherwise, the deployment will fail. +Your wallet must be funded with ETH on the Base Sepolia Testnet to cover the gas fees associated with the smart contract deployment. Otherwise, the deployment will fail. -To get testnet ETH for Base Goerli, see the [prerequisites](#prerequisites). +To get testnet ETH for Base Sepolia, see the [prerequisites](#prerequisites). -After running the command above, the contract will be deployed on the Base Goerli test network. You can view the deployment status and contract by using a [block explorer](/base-chain/tools/block-explorers). +After running the command above, the contract will be deployed on the Base Sepolia test network. You can view the deployment status and contract by using a [block explorer](/base-chain/tools/block-explorers). ## Interacting with the Smart Contract @@ -213,7 +213,7 @@ Foundry provides the `cast` command-line tool that can be used to interact with To call the `getLatestPrice()` function of the smart contract, run: ```bash -cast call --rpc-url $BASE_GOERLI_RPC "getLatestPrice()" +cast call --rpc-url $BASE_SEPOLIA_RPC "getLatestPrice()" ``` You should receive the latest `ETH / USD` price in hexadecimal form.