Skip to content

Commit 06f0e38

Browse files
authored
lido qs (#2731)
* lido qs * fix format * update sidebar * update * update
1 parent a5afd43 commit 06f0e38

23 files changed

+856
-167
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ typechain-types
1414
public/snippets
1515
public/search-index.json
1616
vercel.json
17-
src/content/quickstarts/**/*.mdx
17+
1818

1919
coverage
128 KB
Loading
91.3 KB
Loading
Binary file not shown.

src/config/sidebar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,10 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
15151515
title: "Tools",
15161516
url: "ccip/tools-resources/tools",
15171517
},
1518+
{
1519+
title: "Cross-chain Examples",
1520+
url: "ccip/examples",
1521+
},
15181522
],
15191523
},
15201524
],

src/content.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const quickstartsFrontmatter = z
5959
.object({
6060
title: z.string(),
6161
description: z.string(),
62+
excerpt: z.string().optional(),
6263
githubSourceCodeUrl: z.string().optional(),
6364
image: z.string(),
6465
products: z.array(productEnum),

src/content/ccip/examples/index.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
section: ccip
33
date: Last Modified
4-
title: "Example Cross-chain dApps and Tools"
4+
title: "Example Cross-chain dApps"
55
metadata:
6-
description: "Explore Chainlink CCIP examples: Starter kits (Hardhat/Foundry), Tic Tac Toe game, Name Service, DeFi lending, liquidation protection, and cross-chain NFTs."
6+
description: "Explore Chainlink CCIP examples: Starter kits (Hardhat/Foundry), Tic Tac Toe game, Name Service, DeFi lending, liquidation protection, cross-chain NFTs, and direct staking solutions."
7+
excerpt: "Comprehensive collection of Chainlink CCIP cross-chain development examples including starter kits for Hardhat and Foundry, gaming dApps, cross-chain name services, DeFi lending and liquidation protection, NFT minting, and direct staking with liquid staking tokens (LSTs). Features production-ready code samples, integration guides, and tutorials for building cross-chain applications using CCIP Programmable Token Transfers across multiple blockchain networks including Ethereum, Base, Arbitrum, and Optimism."
78
isIndex: true
8-
whatsnext: { "CCIP Directory": "/ccip/directory", "Learn CCIP best practices": "/ccip/concepts/best-practices" }
99
---
1010

1111
import { Aside } from "@components"
@@ -15,6 +15,14 @@ import CcipCommon from "@features/ccip/CcipCommon.astro"
1515

1616
Several example dApps and tools are available to help you learn about use cases for CCIP.
1717

18+
## CCIP Direct Staking
19+
20+
[CCIP Direct Staking](https://github.com/Aphyla/chainlink-csr) enables users to stake native tokens on supported L2 networks and receive liquid staked tokens (LSTs, e.g., wstETH) directly on the same chain. Supports both instant (fast) and delayed (slow) staking options.
21+
22+
Learn more about the architecture and workflow in the [technical blog post](https://blog.chain.link/scaling-staking-protocols-cross-chain/).
23+
24+
For third-party integrators who want to build offchain components to interact with CCIP Direct Staking contracts, see the [Direct Staking integration guide](/quickstarts/ccip-direct-staking) with reference implementations and utilities. The guide includes a hands-on tutorial using [Lido](https://lido.fi/) on Base Mainnet.
25+
1826
## CCIP Starter Kits
1927

2028
The CCIP Starter Kits demonstrate how to transfer tokens and send messages using the HardHat or Foundry frameworks.

src/content/quickstarts/automated-portfolio-manager.mdx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,25 @@ A live demo is available at https://automated-portfolio-manager.vercel.app.
1919

2020
The example contract supports dynamic asset management using tokens that adhere to the ERC20 standard. For this demonstration, Mimic Tokens representing gold (mXAU), Wrapped Bitcoin (mWBTC), and Ethereum (mETH) are used as the underlying assets. These tokens are automatically bought or sold to mirror changes in crypto market sentiment and gold volatility (GVZ) to ensure the portfolio adjusts to evolving market conditions. This functionality demonstrates how blockchain and Chainlink technologies can be used to create a dynamic investment strategy that adapts to global financial movements in real time.
2121

22-
**Note**: In a real-world use case, you can integrate the portfolio rebalancing mechanism with any DeFi protocol, such as a swapping mechanism or investments in ERC-4626 vaults.
22+
**Note**: In a real-world use case, you can integrate the portfolio rebalancing mechanism with any DeFi protocol, such as a swapping mechanism or investments in ERC-4626 vaults.
2323

2424
<ClickToZoom src="/images/quickstarts/automated-portfolio-manager/Automated_Portfolio_Manager_Concept.webp" />
2525

2626
<Aside type="caution" title="Disclaimer">
27-
This tutorial represents an example of using a Chainlink product or service and is provided to help you understand how to interact with Chainlink's systems and services so that you can integrate them into your own. This template is provided "AS IS" and "AS AVAILABLE" without warranties of any kind, has not been audited, and may be missing key checks or error handling to make the usage of the product more clear. Do not use the code in this example in a production environment without completing your own audits and application of best practices. Neither Chainlink Labs, the Chainlink Foundation, nor Chainlink node operators are responsible for unintended outputs that are generated due to errors in code.
27+
This tutorial represents an example of using a Chainlink product or service and is provided to help you understand how
28+
to interact with Chainlink's systems and services so that you can integrate them into your own. This template is
29+
provided "AS IS" and "AS AVAILABLE" without warranties of any kind, has not been audited, and may be missing key
30+
checks or error handling to make the usage of the product more clear. Do not use the code in this example in a
31+
production environment without completing your own audits and application of best practices. Neither Chainlink Labs,
32+
the Chainlink Foundation, nor Chainlink node operators are responsible for unintended outputs that are generated due
33+
to errors in code.
2834
</Aside>
2935

3036
<Aside type="caution" title="Disclaimer">
31-
The rebalancing strategy and logic outlined in this tutorial are solely for educational purposes and have not been backtested. This content is not meant to be financial advice and should not be interpreted as such. The example is intended to demonstrate the potential of Chainlink products. Users are strongly advised to perform their own due diligence before making any financial decisions.
37+
The rebalancing strategy and logic outlined in this tutorial are solely for educational purposes and have not been
38+
backtested. This content is not meant to be financial advice and should not be interpreted as such. The example is
39+
intended to demonstrate the potential of Chainlink products. Users are strongly advised to perform their own due
40+
diligence before making any financial decisions.
3241
</Aside>
3342

3443
## Table of Content
@@ -113,6 +122,7 @@ Run the following script to deploy your `OffchainDataFetcher` contract on Ethere
113122
```bash
114123
forge script script/DeployOffChainDataFetcher.s.sol --rpc-url $RPC_URL_SEPOLIA --private-key $PRIVATE_KEY --broadcast --verify -vvvv
115124
```
125+
116126
</Accordion>
117127

118128
<Accordion title="Add the contract to your Functions subscription and configure it" number={2}>
@@ -207,9 +217,11 @@ forge script script/DeployAutomatedPortfolioManager.s.sol --rpc-url $RPC_URL_SEP
207217
cp .env.example .env.local
208218
```
209219
1. Open your `.env.local` file and add your Sepolia RPC URL:
220+
210221
```
211222
NEXT_PUBLIC_SEPOLIA_RPC_URL=your_sepolia_rpc_url
212223
```
224+
213225
You can use the same RPC URL you used for contract deployment or get one from providers like [Alchemy](https://www.alchemy.com/) or [Infura](https://www.infura.io/).
214226
215227
1. Run the dApp locally:

0 commit comments

Comments
 (0)