From 5c9aeee9d028a7a1e4bb186041d0b0cdb0e1f1e7 Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Mon, 15 Apr 2024 15:38:07 -0400 Subject: [PATCH 1/5] Option 2 --- src/config/sidebar.ts | 107 ++++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 71ffb8e9c04..54ed55d9056 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -849,6 +849,10 @@ export const SIDEBAR: Partial> = { ccip: [ { section: "Chainlink CCIP", + contents: [], + }, + { + section: "Learn", contents: [ { title: "Overview", @@ -858,6 +862,18 @@ export const SIDEBAR: Partial> = { title: "Getting Started", url: "ccip/getting-started", }, + { + title: "Key Concepts", + url: "ccip/concepts", + }, + { + title: "Architecture", + url: "ccip/architecture", + }, + { + title: "Billing", + url: "ccip/billing", + }, { title: "Supported Networks", url: "ccip/supported-networks", @@ -880,10 +896,6 @@ export const SIDEBAR: Partial> = { title: "Service Responsibility", url: "ccip/service-responsibility", }, - { - title: "Billing", - url: "ccip/billing", - }, { title: "Release Notes", url: "ccip/release-notes", @@ -891,19 +903,37 @@ export const SIDEBAR: Partial> = { ], }, { - section: "Guides", + section: "Build", contents: [ { - title: "Transfer Tokens", - url: "ccip/tutorials/cross-chain-tokens", + title: "Best Practices", + url: "ccip/best-practices", }, { - title: "Transfer Tokens with Data", - url: "ccip/tutorials/programmable-token-transfers", + title: "Acquire Test Tokens", + url: "ccip/test-tokens", }, { - title: "Transfer Tokens with Data - Defensive Example", - url: "ccip/tutorials/programmable-token-transfers-defensive", + title: "Cross-chain tokens", + url: "ccip/tutorials/offchain", + children: [ + { + title: "Transfer Tokens", + url: "ccip/tutorials/cross-chain-tokens", + }, + { + title: "Transfer Tokens with Data", + url: "ccip/tutorials/programmable-token-transfers", + }, + { + title: "Transfer Tokens with Data - Defensive Example", + url: "ccip/tutorials/programmable-token-transfers-defensive", + }, + { + title: "Transfer USDC with Data", + url: "ccip/tutorials/usdc", + }, + ], }, { title: "Offchain", @@ -920,50 +950,27 @@ export const SIDEBAR: Partial> = { ], }, { - title: "Transfer USDC with Data", - url: "ccip/tutorials/usdc", - }, - { - title: "Send Arbitrary Data", - url: "ccip/tutorials/send-arbitrary-data", - }, - { - title: "Send Arbitrary Data with Acknowledgment of Receipt", - url: "ccip/tutorials/send-arbitrary-data-receipt-acknowledgment", + title: "Cross-chain messaging", + url: "ccip/tutorials/offchain", + children: [ + { + title: "Send Arbitrary Data", + url: "ccip/tutorials/send-arbitrary-data", + }, + { + title: "Send Arbitrary Data with Acknowledgment of Receipt", + url: "ccip/tutorials/send-arbitrary-data-receipt-acknowledgment", + }, + { + title: "Optimizing Gas Limit Settings in CCIP Messages", + url: "ccip/tutorials/ccipreceive-gaslimit", + }, + ], }, { title: "Manual Execution", url: "ccip/tutorials/manual-execution", }, - { - title: "Optimizing Gas Limit Settings in CCIP Messages", - url: "ccip/tutorials/ccipreceive-gaslimit", - }, - { - title: "Acquire Test Tokens", - url: "ccip/test-tokens", - }, - ], - }, - { - section: "Concepts", - contents: [ - { - title: "Conceptual Overview", - url: "ccip/concepts", - }, - { - title: "Architecture", - url: "ccip/architecture", - }, - { - title: "Manual execution", - url: "ccip/concepts/manual-execution", - }, - { - title: "Best Practices", - url: "ccip/best-practices", - }, ], }, { From 119a9e0ca5200cdcfd7b73b1ba18e5fd19eab8e7 Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Thu, 2 May 2024 11:09:25 -0400 Subject: [PATCH 2/5] adjustment --- src/config/sidebar.ts | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 54ed55d9056..8001b5016fc 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -849,10 +849,6 @@ export const SIDEBAR: Partial> = { ccip: [ { section: "Chainlink CCIP", - contents: [], - }, - { - section: "Learn", contents: [ { title: "Overview", @@ -862,18 +858,6 @@ export const SIDEBAR: Partial> = { title: "Getting Started", url: "ccip/getting-started", }, - { - title: "Key Concepts", - url: "ccip/concepts", - }, - { - title: "Architecture", - url: "ccip/architecture", - }, - { - title: "Billing", - url: "ccip/billing", - }, { title: "Supported Networks", url: "ccip/supported-networks", @@ -888,6 +872,10 @@ export const SIDEBAR: Partial> = { }, ], }, + { + title: "Best Practices", + url: "ccip/best-practices", + }, { title: "Service Limits", url: "ccip/service-limits", @@ -896,6 +884,10 @@ export const SIDEBAR: Partial> = { title: "Service Responsibility", url: "ccip/service-responsibility", }, + { + title: "Billing", + url: "ccip/billing", + }, { title: "Release Notes", url: "ccip/release-notes", @@ -903,12 +895,21 @@ export const SIDEBAR: Partial> = { ], }, { - section: "Build", + section: "Learn", contents: [ { - title: "Best Practices", - url: "ccip/best-practices", + title: "Key Concepts", + url: "ccip/concepts", }, + { + title: "Architecture", + url: "ccip/architecture", + }, + ], + }, + { + section: "Build", + contents: [ { title: "Acquire Test Tokens", url: "ccip/test-tokens", From 88140afdadfe864d6a8264c1fca7d80e01411a1b Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Thu, 2 May 2024 12:01:17 -0400 Subject: [PATCH 3/5] Delete cross-chain messaging subsection --- src/config/sidebar.ts | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 8001b5016fc..55d73b98b74 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -951,22 +951,16 @@ export const SIDEBAR: Partial> = { ], }, { - title: "Cross-chain messaging", - url: "ccip/tutorials/offchain", - children: [ - { - title: "Send Arbitrary Data", - url: "ccip/tutorials/send-arbitrary-data", - }, - { - title: "Send Arbitrary Data with Acknowledgment of Receipt", - url: "ccip/tutorials/send-arbitrary-data-receipt-acknowledgment", - }, - { - title: "Optimizing Gas Limit Settings in CCIP Messages", - url: "ccip/tutorials/ccipreceive-gaslimit", - }, - ], + title: "Send Arbitrary Data", + url: "ccip/tutorials/send-arbitrary-data", + }, + { + title: "Send Arbitrary Data with Acknowledgment of Receipt", + url: "ccip/tutorials/send-arbitrary-data-receipt-acknowledgment", + }, + { + title: "Optimizing Gas Limit Settings in CCIP Messages", + url: "ccip/tutorials/ccipreceive-gaslimit", }, { title: "Manual Execution", From 5c7648b3623aa08f4f76b9007f7404fe798a13a8 Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Thu, 2 May 2024 12:46:01 -0400 Subject: [PATCH 4/5] Create index page for cross chain tokens tutorial subsection --- src/content/ccip/tutorials/transfer-tokens.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/content/ccip/tutorials/transfer-tokens.mdx diff --git a/src/content/ccip/tutorials/transfer-tokens.mdx b/src/content/ccip/tutorials/transfer-tokens.mdx new file mode 100644 index 00000000000..5a334a02120 --- /dev/null +++ b/src/content/ccip/tutorials/transfer-tokens.mdx @@ -0,0 +1,14 @@ +--- +section: ccip +date: Last Modified +title: "CCIP Cross-chain tokens" +--- + +These tutorials focus on transferring tokens across chains, and some tutorials show how to transfer both tokens and data across chains. + +## Tutorials + +- [Transfer Tokens](/ccip/tutorials/cross-chain-tokens): Learn how to transfer tokens between smart contracts across different blockchains, using Chainlink CCIP. +- [Transfer Tokens with Data](/ccip/tutorials/programmable-token-transfers): Learn how to transfer tokens and arbitrary data between smart contracts on different blockchains. +- [Transfer Tokens with Data - Defensive Example](/ccip/tutorials/programmable-token-transfers-defensive): Learn how to do programmable token transfers and use defensive coding in the receiver contract. +- [Transfer USDC with Data](/ccip/tutorials/usdc): Learn how to transfer USDC and arbitrary data between smart contracts across different blockchains. From d0d77de8f39774bf663528588c55bc601ba6276e Mon Sep 17 00:00:00 2001 From: thedriftofwords Date: Thu, 2 May 2024 12:46:45 -0400 Subject: [PATCH 5/5] Link new index page to nav --- src/config/sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 55d73b98b74..89fa00dbec7 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -916,7 +916,7 @@ export const SIDEBAR: Partial> = { }, { title: "Cross-chain tokens", - url: "ccip/tutorials/offchain", + url: "ccip/tutorials/transfer-tokens", children: [ { title: "Transfer Tokens",