Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add part 2 quickstart guide: create an app #896

Merged
merged 26 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3d6df1c
Add backend quickstart guide
jlwllmr Dec 5, 2024
8ee9211
Feedback and adjustments
jlwllmr Dec 6, 2024
ded1763
Merge branch 'main' into quickstart
jlwllmr Dec 6, 2024
46aaa0b
Adjustments for clarity
jlwllmr Dec 6, 2024
d3271b5
Filename changes etc.
jlwllmr Dec 6, 2024
ce34dc0
Merge branch 'main' into quickstart
jlwllmr Dec 6, 2024
82fcf6c
Fix Infura docs link
jlwllmr Dec 6, 2024
39787ba
Merge branch 'quickstart' of https://github.com/Consensys/doc.linea i…
jlwllmr Dec 6, 2024
7340f97
Amend paths
jlwllmr Dec 9, 2024
a537e14
Hide part 2, other minor changes
jlwllmr Dec 10, 2024
659481e
Merge branch 'main' into quickstart
jlwllmr Dec 10, 2024
f618b40
Fix Cookbook images
jlwllmr Dec 10, 2024
3c71f8f
Add part 2
jlwllmr Dec 11, 2024
486abed
Fix deploy.mdx anchors
jlwllmr Dec 11, 2024
c4878b1
Merge branch 'main' into quickstart-3
jlwllmr Dec 11, 2024
dcefd4c
Some fixes
jlwllmr Dec 11, 2024
9e44aa2
Merge branch 'main' into quickstart-3
jlwllmr Dec 11, 2024
e3e4cd0
Expand intro and add estimated time
jlwllmr Dec 11, 2024
466d46d
Merge branch 'quickstart-3' of https://github.com/Consensys/doc.linea…
jlwllmr Dec 11, 2024
fb5a63b
Adjust quickstart sidebar link
jlwllmr Dec 11, 2024
512f176
Update titles and descriptions
jlwllmr Dec 11, 2024
efe2002
Add Vercel deployment details
jlwllmr Dec 12, 2024
d5d6d2c
Adjust description
jlwllmr Dec 12, 2024
df9abd0
Merge branch 'main' into quickstart-3
jlwllmr Dec 12, 2024
1d28d09
Adjust wording
jlwllmr Dec 12, 2024
515a3d6
Address suggestions
jlwllmr Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
471 changes: 468 additions & 3 deletions docs/get-started/build/quickstart/app.mdx

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions docs/get-started/build/quickstart/deploy.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Contract deployment
title: Deploy your contract
description: Create a new project and deploy and verify your contracts using Foundry
sidebar_position: 1
pagination_next: get-started/build/quickstart/app
Expand All @@ -11,8 +11,8 @@ Building apps on Linea needn't be complicated. In this guide, we'll walk you thr
[Foundry](https://book.getfoundry.sh/) to create a new project from scratch.

This involves:
1. [Creating a project](#create-a-project)
2. [Deploying](#deploy-a-contract) and then [verifying](#verify-a-contract) your contract.
1. [Creating a project](#create-your-project)
2. [Deploying](#deploy-your-contract) and then [verifying](#verify-your-contract) your contract.

> _Estimated time to complete: ~20 minutes._

Expand Down Expand Up @@ -197,7 +197,9 @@ Transaction hash: 0x ... // The deployment transaction itself
You can copy each of these addresses and head to the [block explorer](https://sepolia.lineascan.build/)
to see the deployed contract.

Make sure to copy the `Deployed to` address, as you'll need it to verify the contract.
Make sure to copy the `Deployed to` address, as you'll need it to verify the contract. It'll also
be useful in part two of this quickstart, where we'll need it to interact with the contract in our
app.

## Verify your contract

Expand Down Expand Up @@ -251,3 +253,19 @@ forge create --rpc-url https://rpc.sepolia.linea.build --account test-account --

Now you've successfully deployed and verified your contract! It's recorded on the blockchain and
ready to receive calls from your app.

## Next steps

Proceed to [part two](./app.mdx) of this quickstart, where we'll build a simple web app for
interacting with the counter contract.

## Help and resources

If you get stuck at any point in this guide, head to our [Discord](https://discord.gg/linea) and
visit the `#developer-chat` channel.

- [Foundry documentation](https://book.getfoundry.sh/)
- [Foundry CLI](https://book.getfoundry.sh/forge/)
- [Foundry Cast](https://book.getfoundry.sh/cast/)
- [Linea Sepolia block explorer](https://sepolia.lineascan.build/)
- [Node providers](../../tooling/node-providers/index.mdx)
14 changes: 7 additions & 7 deletions docs/get-started/tooling/contracts-templates/cookbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ explore protocols on Linea, or search for specific smart contracts in the search
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_1.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_1.png"
alt="Cookbook Search"
/>
</div>
Expand All @@ -29,7 +29,7 @@ questions about Linea, Solidity, or your smart contract.
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_2.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_2.png"
alt="Cookbook Analyze Code Snippet"
/>
</div>
Expand All @@ -43,7 +43,7 @@ any smart contract address into the Cookbook search bar.
<div class="center-container">
<div class="img-large">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_3.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_3.png"
alt="Cookbook Import Contract"
/>
</div>
Expand All @@ -59,7 +59,7 @@ Remix Homepage.
<div class="center-container">
<div class="img-medium">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_8.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_8.png"
alt="Cookbook Remix Featured Plugin"
/>
</div>
Expand All @@ -70,7 +70,7 @@ Alternatively, search Cookbook and select "Activate" in the Remix Plugin Manager
<div class="center-container">
<div class="img-small">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_9.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_9.png"
alt="Cookbook Remix Add Plugin"
/>
</div>
Expand All @@ -79,13 +79,13 @@ Alternatively, search Cookbook and select "Activate" in the Remix Plugin Manager
Search for any protocol or smart contract and click the search result to import the smart contract
code into Remix.

Cookbook's AI solidity co-pilot, ChefGPT, is available within the Remix plugin to answer questions
Cookbook's AI Solidity co-pilot, ChefGPT, is available within the Remix plugin to answer questions
about Linea, Solidity, or the smart contract you're working with.

<div class="center-container">
<div class="img-small">
<img
src="/img/developers/quickstart/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_10.png"
src="/img/get_started/how_to/deploy_smart_contract/cookbook/Linea_deploy_smart_contract_Cookbook_10.png"
alt="Cookbook Remix Search"
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const sidebars = {
{
type: "category",
label: "Quickstart",
collapsible: false,
link: {
type: "doc",
id: "get-started/build/quickstart/deploy",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading