Skip to content

Commit

Permalink
Quick changes (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashucoder9 authored Jul 10, 2024
2 parents 22e64d5 + 670b7b8 commit 43e82d6
Show file tree
Hide file tree
Showing 40 changed files with 76 additions and 41 deletions.
1 change: 0 additions & 1 deletion app/layout.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { DocsLayoutProps } from 'fumadocs-ui/layout';
import { BookIcon } from 'lucide-react';
import { utils } from '@/utils/source';
import { NavChildren, SidebarBanner, Title } from '@/app/layout.client';

Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { Analytics } from "@vercel/analytics/react";
export const metadata = createMetadata({
title: {
template: '%s | Avalanche Academy',
default: 'Avalanche Academy',
default: 'The Learning Platform for Avalanche Ecosystem',
},
description: 'Learning hub for the Avalanche Network',
description: 'The Learning Platform for Avalanche Ecosystem',
metadataBase: baseUrl,
});

Expand Down
2 changes: 1 addition & 1 deletion app/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { ReactNode } from 'react';
import { TooltipProvider } from '@radix-ui/react-tooltip';

const SearchDialog = dynamic(() => import('@/components/search'), {
ssr: false,
ssr: true,
});

export function Provider({
Expand Down
2 changes: 1 addition & 1 deletion content/course/multi-chain-architecture/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"---Multi-Chain Architecture---",
"index",
"...01-intro",
"---Multi-Chain Architecture Deepdive---",
"---Custom Blockchains---",
"...02-custom-blockchains",
"---Avalanche Starter Kit---",
"...03-avalanche-starter-kit",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🎯 Learning Outcomes
title: Learning Outcomes
description: Learn about the basics of Avalanche.
updated: 2024-05-31
authors: [ashucoder9]
icon: ListTodo
---

By the end of this course, you will:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📚 Prerequisites
title: Prerequisites
description: Learn about the basics of Avalanche.
updated: 2024-05-31
authors: [ashucoder9]
icon: Notebook
---

TBD
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🤝 Join Course Chat
title: Join Course Chat
description: Join the Avalanche Academy Telegram group to chat with other students and instructors.
updated: 2024-05-31
authors: [ashucoder9]
icon: Send
---

import CourseChat from "@/content/common/intro/course-chat.mdx";
Expand Down
3 changes: 2 additions & 1 deletion content/course/teleporter-chainlink-vrf/index.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 👋 Welcome to the Course
title: Welcome to the Course
description: Learn about using Chainlink VRF with Teleporter.
updated: 2024-05-31
authors: [ashucoder9]
icon: Smile
---

Welcome to the ...
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🎯 Learning Outcomes
title: Learning Outcomes
description: Learn about the basics of Avalanche.
updated: 2024-05-31
authors: [ashucoder9]
icon: ListTodo
---

By the end of this course, you will:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📚 Prerequisites
title: Prerequisites
description: Learn about the basics of Avalanche.
updated: 2024-05-31
authors: [ashucoder9]
icon: Notebook
---

TBD
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🤝 Join Course Chat
title: Join Course Chat
description: Join the Avalanche Academy Telegram group to chat with other students and instructors.
updated: 2024-05-31
authors: [ashucoder9]
icon: Send
---

import CourseChat from "@/content/common/intro/course-chat.mdx";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Tokens
title: Tokens
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Native Tokens
title: Native Tokens
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 👩‍💻 Transfer Native Tokens
title: Transfer Native Tokens
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Terminal
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Payable Smart Contract Functions
title: Payable Smart Contract Functions
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 👩‍💻 Create a Payable Smart Contract
title: Create a Payable Smart Contract
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Terminal
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 ERC-20 Tokens
title: ERC-20 Tokens
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 👩‍💻 Deploy an ERC-20 Token
title: Deploy an ERC-20 Token
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Terminal
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Wrapped Native Tokens
title: Wrapped Native Tokens
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 👩‍💻 Create a Wrapped Native Token
title: Create a Wrapped Native Token
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Terminal
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 🗺️ Token Bridging
title: Token Bridging
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Bridge Architecture
title: Bridge Architecture
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 👩‍💻 Use a Demo Bridge
title: Use a Demo Bridge
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Terminal
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Bridge Hacks
title: Bridge Hacks
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🗺️ Teleporter Token Bridge
title: Teleporter Token Bridge
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---

Teleporter token bridge is an application that allows users to transfer tokens between Subnets. The bridge is a set of smart contracts that are deployed across multiple Subnets, and leverages [Teleporter](https://github.com/ava-labs/teleporter) for cross-chain communication.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 Bridge Design
title: Bridge Design
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

Each bridge instance consists of one "hub" contract and at least one but possibly many "spoke" contracts. Each hub contract instance manages one asset to be bridged out to spoke instances. The hub contract lives on the Subnet where the asset to be bridged exists and locks that asset as collateral to be bridged to other Subnets. The spoke contracts, each of which has a single specified hub contract, live on other Subnets that want to import the asset bridged by their specified hub. The token bridges are designed to be permissionless: anyone can register compatible spoke instances to allow for bridging tokens from the hub instance to that new spoke. The hub contract keeps track of token balances bridged to each spoke instance, and it handles returning the original tokens back to the user when assets are bridged back to the hub instance. Spoke instances are registered with their hub contract via a Teleporter message upon creation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 File Structure
title: File Structure
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

https://github.com/ava-labs/teleporter-token-bridge/blob/main/contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 Token Hub
title: Token Hub
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

![Token Hub Contract Structure](/common-images/teleporter-token-bridge/hub-contract-structure.png)
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 Token Spoke
title: Token Spoke
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

![Token Spoke Contract Structure](/common-images/teleporter-token-bridge/spoke-contract-structure.png)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 🗺️ ERC-20 to ERC-20 Bridge
title: ERC-20 to ERC-20 Bridge
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🗺️ Tokens on Multiple Chains
title: Tokens on Multiple Chains
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---

The token bridge also supports "multi-hop" transfers, where tokens can be transferred between spoke chains. To illustrate, consider two spokes _S<sub>a</sub>_ and _S<sub>b</sub>_ that are both connected to the same hub _H_. A multi-hop transfer from _S<sub>a</sub>_ to _S<sub>b</sub>_ first gets routed from _S<sub>a</sub>_ to _H_, where spoke balances are updated, and then _H_ automatically routes the transfer on to _S<sub>b</sub>_.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🗺️ Native to ERC-20 Token Bridge
title: Native to ERC-20 Token Bridge
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---

TEST
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🗺️ Recap Precompiles
title: Recap Precompiles
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---

...
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 Precompiles
title: Precompiles
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

import Precompiles from "@/content/common/evm-precompiles/precompiles.mdx";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 📕 Allowlist
title: Allowlist
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---

import AllowList from "@/content/common/evm-precompiles/allowlist.mdx";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 📕 Native Minter
title: Native Minter
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: BookOpen
---
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 🗺️ ERC-20 to Native Token Bridge
title: ERC-20 to Native Token Bridge
description: TBD
updated: 2024-05-31
authors: [ashucoder9]
icon: Book
---

# When to use ERC-20 to Native Token Bridge?
Expand Down
Loading

0 comments on commit 43e82d6

Please sign in to comment.