Skip to content

Commit 87452a4

Browse files
ashucoder9meaghanfitzgeraldaapsiaapsiDarioush Jalali
authored
Docsv3 sync (#1983)
* Update txn-fees.mdx Signed-off-by: Meaghan FitzGerald <[email protected]> * awm -> icm (#1971) * awm -> icm * awm -> icm * integration with evm * Fix typo in 'Custom Virtual Machine' documentation (#1968) Co-authored-by: aapsi <[email protected]> * base fee Signed-off-by: Meaghan FitzGerald <[email protected]> * api format (#1972) * formatting * nit * nit * fix build * remove eth_getAssetBalance (#1979) * 0xgasless integration (#1973) --------- Signed-off-by: Meaghan FitzGerald <[email protected]> Signed-off-by: Ashutosh Tripathi <[email protected]> Co-authored-by: Meaghan FitzGerald <[email protected]> Co-authored-by: Aapsi Khaira <[email protected]> Co-authored-by: aapsi <[email protected]> Co-authored-by: Darioush Jalali <[email protected]> Co-authored-by: Risachiofficial <[email protected]>
1 parent 1ff8eec commit 87452a4

File tree

22 files changed

+312
-292
lines changed

22 files changed

+312
-292
lines changed
Lines changed: 141 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,249 +1,276 @@
1-
import { IndentDecrease, Layers, MailIcon, MonitorCheck, Settings, SproutIcon, SquareGanttChart, TerminalIcon, Webhook, SquareIcon, ArrowLeftRight, Coins, SquareCode, SquareStackIcon, Triangle, ChevronDownIcon, Pyramid, HandCoins, Server, Code, TrendingUp, ScanFace, Telescope, LayoutTemplate, Building2, BookOpen, Podcast, Wallet } from 'lucide-react';
2-
import { RootToggle } from 'fumadocs-ui/components/layout/root-toggle';
1+
import {
2+
IndentDecrease,
3+
Layers,
4+
MailIcon,
5+
MonitorCheck,
6+
Settings,
7+
SproutIcon,
8+
SquareGanttChart,
9+
TerminalIcon,
10+
Webhook,
11+
SquareIcon,
12+
ArrowLeftRight,
13+
Coins,
14+
SquareCode,
15+
SquareStackIcon,
16+
Triangle,
17+
ChevronDownIcon,
18+
Pyramid,
19+
HandCoins,
20+
Server,
21+
Code,
22+
TrendingUp,
23+
ScanFace,
24+
Telescope,
25+
LayoutTemplate,
26+
Building2,
27+
BookOpen,
28+
Podcast,
29+
Wallet,
30+
} from "lucide-react";
31+
import { RootToggle } from "fumadocs-ui/components/layout/root-toggle";
332

433
interface Option {
5-
title: string
6-
description: string
7-
icon: React.ReactNode
8-
url: string
34+
title: string;
35+
description: string;
36+
icon: React.ReactNode;
37+
url: string;
938
}
1039

1140
interface DocsDropdownProps {
1241
buttonStyle?: "Docs" | "currentElement";
1342
}
1443

15-
export function DocsDropdown({ buttonStyle = "Docs" }: DocsDropdownProps): React.ReactElement {
44+
export function DocsDropdown({
45+
buttonStyle = "Docs",
46+
}: DocsDropdownProps): React.ReactElement {
1647
const options: Option[] = [
17-
...(buttonStyle === "Docs" ? [{
18-
title: 'Docs',
19-
description: '',
20-
icon: <></>,
21-
url: '',
22-
}] : []),
23-
{
24-
title: 'Avalanche Protocol',
25-
description: 'Learn about Avalanche',
48+
...(buttonStyle === "Docs"
49+
? [
50+
{
51+
title: "Docs",
52+
description: "",
53+
icon: <></>,
54+
url: "",
55+
},
56+
]
57+
: []),
58+
{
59+
title: "Avalanche Protocol",
60+
description: "Learn about Avalanche",
2661
icon: <SproutIcon />,
27-
url: '/learn',
62+
url: "/learn",
2863
},
2964
{
30-
title: 'Smart Contracts',
31-
description: 'Build Apps on Avalanche',
65+
title: "Smart Contracts",
66+
description: "Build Apps on Avalanche",
3267
icon: <SquareGanttChart />,
33-
url: '/dapps',
68+
url: "/dapps",
3469
},
3570
{
36-
title: 'Avalanche L1s',
37-
description: 'Build Your L1 Blockchain',
71+
title: "Avalanche L1s",
72+
description: "Build Your L1 Blockchain",
3873
icon: <Layers />,
39-
url: '/avalanche-l1s',
74+
url: "/avalanche-l1s",
4075
},
4176
{
42-
title: 'EVM Customization',
43-
description: 'Customize the Ethereum VM',
77+
title: "EVM Customization",
78+
description: "Customize the Ethereum VM",
4479
icon: <Pyramid />,
45-
url: '/evm-l1s',
80+
url: "/evm-l1s",
4681
},
4782
{
48-
title: 'Custom Virtual Machines',
49-
description: 'Customize Your Execution Layer',
83+
title: "Custom Virtual Machines",
84+
description: "Customize Your Execution Layer",
5085
icon: <IndentDecrease />,
51-
url: '/virtual-machines',
86+
url: "/virtual-machines",
5287
},
5388
{
54-
title: 'Nodes & Validators',
55-
description: 'Participate in the Network',
89+
title: "Nodes & Validators",
90+
description: "Participate in the Network",
5691
icon: <MonitorCheck />,
57-
url: '/nodes',
92+
url: "/nodes",
5893
},
5994
{
60-
title: 'Interoperability',
61-
description: 'AWM and Teleporter',
95+
title: "Interoperability",
96+
description: "ICM and ICM Contracts",
6297
icon: <MailIcon />,
63-
url: '/cross-chain',
98+
url: "/cross-chain",
6499
},
65100
{
66-
title: 'Tooling',
67-
description: 'CLI, Scripts, and More',
101+
title: "Tooling",
102+
description: "CLI, Scripts, and More",
68103
icon: <Settings />,
69-
url: '/tooling',
104+
url: "/tooling",
70105
},
71106
{
72-
title: 'API Docs',
73-
description: 'Avalanche API References',
107+
title: "API Docs",
108+
description: "Avalanche API References",
74109
icon: <Webhook />,
75-
url: '/api-reference',
76-
}
110+
url: "/api-reference",
111+
},
77112
];
78113

79-
return (
80-
<RootToggle options={options} />
81-
);
82-
114+
return <RootToggle options={options} />;
83115
}
84116

85117
export function AcademyDropdown() {
86118
const options: Option[] = [
87119
{
88-
title: 'Courses',
89-
description: '',
120+
title: "Courses",
121+
description: "",
90122
icon: <></>,
91-
url: '',
123+
url: "",
92124
},
93125
{
94-
title: 'Blockchain Fundamentals',
95-
description: 'Understand fundamental blockchain concepts.',
126+
title: "Blockchain Fundamentals",
127+
description: "Understand fundamental blockchain concepts.",
96128
icon: <SquareIcon className="w-5 h-5" />,
97-
url: 'https://academy.avax.network/course/blockchain-fundamentals',
129+
url: "https://academy.avax.network/course/blockchain-fundamentals",
98130
},
99131
{
100-
title: 'Avalanche Fundamentals',
101-
description: 'Overview of Avalanche Consensus, L1s, and VMs.',
132+
title: "Avalanche Fundamentals",
133+
description: "Overview of Avalanche Consensus, L1s, and VMs.",
102134
icon: <Triangle className="w-5 h-5" />,
103-
url: 'https://academy.avax.network/course/avalanche-fundamentals',
135+
url: "https://academy.avax.network/course/avalanche-fundamentals",
104136
},
105137
{
106138
title: "Multi-Chain Architecture",
107-
description: 'Deploy your own blockchain with multi-chain architecture.',
139+
description: "Deploy your own blockchain with multi-chain architecture.",
108140
icon: <SquareStackIcon className="w-5 h-5" />,
109-
url: 'https://academy.avax.network/course/multi-chain-architecture',
141+
url: "https://academy.avax.network/course/multi-chain-architecture",
110142
},
111143
{
112144
title: "Interchain Messaging",
113-
description: 'Build cross-chain dApps on Avalanche.',
145+
description: "Build cross-chain dApps on Avalanche.",
114146
icon: <MailIcon className="w-5 h-5" />,
115-
url: 'https://academy.avax.network/course/interchain-messaging',
147+
url: "https://academy.avax.network/course/interchain-messaging",
116148
},
117149
{
118150
title: "Interchain Token Transfer",
119-
description: 'Transfer assets between Avalanche blockchains.',
151+
description: "Transfer assets between Avalanche blockchains.",
120152
icon: <ArrowLeftRight className="w-5 h-5" />,
121-
url: 'https://academy.avax.network/course/interchain-token-transfer',
153+
url: "https://academy.avax.network/course/interchain-token-transfer",
122154
},
123155
{
124156
title: "Customizing the EVM",
125-
description: 'Add custom precompiles to the EVM.',
157+
description: "Add custom precompiles to the EVM.",
126158
icon: <SquareCode className="w-5 h-5" />,
127-
url: 'https://academy.avax.network/course/customizing-evm',
159+
url: "https://academy.avax.network/course/customizing-evm",
128160
},
129161
{
130162
title: "Layer 1 Tokenomics",
131-
description: 'Design tokenomics for your Avalanche L1.',
163+
description: "Design tokenomics for your Avalanche L1.",
132164
icon: <Coins className="w-5 h-5" />,
133-
url: 'https://academy.avax.network/course/l1-tokenomics',
165+
url: "https://academy.avax.network/course/l1-tokenomics",
134166
},
135167
{
136168
title: "AvaCloud APIs",
137-
description: 'Use AvaCloud APIs to build web apps.',
169+
description: "Use AvaCloud APIs to build web apps.",
138170
icon: <Webhook className="w-5 h-5" />,
139-
url: 'https://academy.avax.network/course/avacloudapis',
171+
url: "https://academy.avax.network/course/avacloudapis",
140172
},
141173
{
142174
title: "HyperSDK",
143-
description: 'Build high-performance blockchains with HyperSDK.',
175+
description: "Build high-performance blockchains with HyperSDK.",
144176
icon: <TerminalIcon className="w-5 h-5" />,
145-
url: 'https://academy.avax.network/course/hypersdk',
146-
}
177+
url: "https://academy.avax.network/course/hypersdk",
178+
},
147179
];
148-
return (
149-
<RootToggle options={options} />
150-
)
180+
return <RootToggle options={options} />;
151181
}
152182

153183
export function GrantsDropdown() {
154184
const options: Option[] = [
155185
{
156-
title: 'Grants & Programs',
157-
description: '',
186+
title: "Grants & Programs",
187+
description: "",
158188
icon: <></>,
159-
url: '/grants',
189+
url: "/grants",
160190
},
161191
{
162-
title: 'Retro9000',
163-
description: 'Build publicly and get rewarded.',
192+
title: "Retro9000",
193+
description: "Build publicly and get rewarded.",
164194
icon: <HandCoins className="w-5 h-5" />,
165-
url: 'https://www.avax.network/retro9000',
195+
url: "https://www.avax.network/retro9000",
166196
},
167197
{
168-
title: 'infraBUIDL()',
169-
description: 'Infrastructure projects that enhance user and developer experience',
198+
title: "infraBUIDL()",
199+
description:
200+
"Infrastructure projects that enhance user and developer experience",
170201
icon: <Server className="w-5 h-5" />,
171-
url: 'https://www.avax.network/infrabuidl-program',
202+
url: "https://www.avax.network/infrabuidl-program",
172203
},
173204
{
174-
title: 'Codebase',
175-
description: 'Transforming ambitious builders into extraordinary founders',
205+
title: "Codebase",
206+
description:
207+
"Transforming ambitious builders into extraordinary founders",
176208
icon: <Code className="w-5 h-5" />,
177-
url: 'https://codebase.avax.network/',
209+
url: "https://codebase.avax.network/",
178210
},
179211
{
180-
title: 'Blizzard Fund',
181-
description: 'VC fund investing in innovative entrepreneurs driving growth on Avalanche',
212+
title: "Blizzard Fund",
213+
description:
214+
"VC fund investing in innovative entrepreneurs driving growth on Avalanche",
182215
icon: <TrendingUp className="w-5 h-5" />,
183-
url: 'https://www.blizzard.fund/',
216+
url: "https://www.blizzard.fund/",
184217
},
185-
186218
];
187-
return (
188-
<RootToggle options={options} />
189-
)
219+
return <RootToggle options={options} />;
190220
}
191221

192222
export function IntegrationsDropdown() {
193223
const options: Option[] = [
194224
{
195-
title: 'Integrations',
196-
description: '',
225+
title: "Integrations",
226+
description: "",
197227
icon: <></>,
198-
url: '/integrations',
228+
url: "/integrations",
199229
},
200230
{
201-
title: 'Account Abstraction',
231+
title: "Account Abstraction",
202232
description: "",
203233
icon: <ScanFace className="w-5 h-5" />,
204-
url: '/integrations#Account%20Abstraction',
234+
url: "/integrations#Account%20Abstraction",
205235
},
206236
{
207-
title: 'Block Explorers',
237+
title: "Block Explorers",
208238
description: "",
209239
icon: <Telescope className="w-5 h-5" />,
210-
url: '/integrations#Block%20Explorers',
240+
url: "/integrations#Block%20Explorers",
211241
},
212242
{
213-
title: 'Blockchain as a Service',
243+
title: "Blockchain as a Service",
214244
description: "",
215245
icon: <LayoutTemplate className="w-5 h-5" />,
216-
url: '/integrations#Blockchain%20as%20a%20Service',
246+
url: "/integrations#Blockchain%20as%20a%20Service",
217247
},
218248
{
219-
title: 'Enterprise Solutions',
249+
title: "Enterprise Solutions",
220250
description: "",
221251
icon: <Building2 className="w-5 h-5" />,
222-
url: '/integrations#Enterprise%20Solutions',
252+
url: "/integrations#Enterprise%20Solutions",
223253
},
224254
{
225-
title: 'Indexers',
255+
title: "Indexers",
226256
description: "",
227257
icon: <BookOpen className="w-5 h-5" />,
228-
url: '/integrations#Indexers',
258+
url: "/integrations#Indexers",
229259
},
230260
{
231-
title: 'Oracles',
261+
title: "Oracles",
232262
description: "",
233263
icon: <Podcast className="w-5 h-5" />,
234-
url: '/integrations#Oracles',
264+
url: "/integrations#Oracles",
235265
},
236266
{
237-
title: 'Wallets',
267+
title: "Wallets",
238268
description: "",
239269
icon: <Wallet className="w-5 h-5" />,
240-
url: '/integrations#Wallet%20SDKs',
270+
url: "/integrations#Wallet%20SDKs",
241271
},
242-
243272
];
244-
return (
245-
<RootToggle options={options} />
246-
)
273+
return <RootToggle options={options} />;
247274
}
248275

249276
export function DropDownBar(): React.ReactElement {
@@ -263,4 +290,4 @@ export function DropDownBar(): React.ReactElement {
263290
</div>
264291
</div>
265292
);
266-
}
293+
}

0 commit comments

Comments
 (0)