Skip to content

Commit 53e1132

Browse files
authored
Merge pull request #59 from beihaili/feat/module-8-defi-deep-dive
feat: add Module 8 — DeFi 深度解析 (5 lessons)
2 parents 454d00c + b2f0efc commit 53e1132

10 files changed

Lines changed: 2232 additions & 3 deletions

File tree

scripts/sync-content.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const SOURCE_FOLDERS = [
1515
'GetStartedWithBitcoin',
1616
'Web3Thoughts',
1717
'Web3BuilderLab',
18+
'DeFiDeepDive',
1819
'L2CrossChain',
1920
'其它学习资源整理/DeFi',
2021
'其它学习资源整理/Etherum',

src/config/__tests__/courseData.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { describe, it, expect } from 'vitest';
22
import { COURSE_DATA } from '../courseData';
33

44
describe('courseData', () => {
5-
it('should have 8 modules', () => {
6-
expect(COURSE_DATA).toHaveLength(8);
5+
it('should have 9 modules', () => {
6+
expect(COURSE_DATA).toHaveLength(9);
77
});
88

99
it('module-7 should have correct structure', () => {

src/config/courseData.js

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
import { BookOpen, BrainCircuit, Shield, Globe, Cpu, Layers, Wrench, Network } from 'lucide-react';
1+
import {
2+
BookOpen,
3+
BrainCircuit,
4+
Shield,
5+
Globe,
6+
Cpu,
7+
Layers,
8+
Wrench,
9+
Landmark,
10+
Network,
11+
} from 'lucide-react';
212

313
// GitHub 配置
414
export const GITHUB_USERNAME = 'beihaili';
@@ -318,6 +328,44 @@ export const COURSE_DATA = [
318328
},
319329
],
320330
},
331+
{
332+
id: 'module-8',
333+
title: 'DeFi 深度解析',
334+
icon: Landmark,
335+
color: 'from-violet-400 to-purple-400',
336+
lessons: [
337+
{
338+
id: '8-1',
339+
title: 'DeFi 核心概念与架构',
340+
path: 'DeFiDeepDive/01_CoreConcepts',
341+
fallbackContent: FALLBACK,
342+
},
343+
{
344+
id: '8-2',
345+
title: 'AMM 与去中心化交易所',
346+
path: 'DeFiDeepDive/02_AMMAndDEX',
347+
fallbackContent: FALLBACK,
348+
},
349+
{
350+
id: '8-3',
351+
title: '借贷协议原理',
352+
path: 'DeFiDeepDive/03_LendingProtocols',
353+
fallbackContent: FALLBACK,
354+
},
355+
{
356+
id: '8-4',
357+
title: '稳定币全景',
358+
path: 'DeFiDeepDive/04_Stablecoins',
359+
fallbackContent: FALLBACK,
360+
},
361+
{
362+
id: '8-5',
363+
title: 'DeFi 风险与安全',
364+
path: 'DeFiDeepDive/05_DeFiRisks',
365+
fallbackContent: FALLBACK,
366+
},
367+
],
368+
},
321369
{
322370
id: 'module-9',
323371
title: '跨链与 Layer 2 深度解析',

src/features/badges/badgeData.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Calendar,
1010
Layers,
1111
Wrench,
12+
Landmark,
1213
Network,
1314
} from 'lucide-react';
1415

@@ -164,6 +165,25 @@ export const ACHIEVEMENT_BADGES = {
164165
nextBadgeHint: '试试构建自己的 Web3 项目并提交到 Showcase!',
165166
},
166167
},
168+
'module-8': {
169+
id: 'defi-expert',
170+
name: 'DeFi Expert',
171+
title: 'DeFi 专家',
172+
description: '深入理解 DeFi 协议原理,掌握去中心化金融的核心机制',
173+
icon: Landmark,
174+
rarity: 'Epic',
175+
color: 'from-violet-500 to-purple-500',
176+
glowColor: 'shadow-violet-500/50',
177+
borderColor: 'border-violet-500',
178+
bgColor: 'bg-violet-500/10',
179+
requirement: '完成 DeFi 深度解析的所有 5 个课程',
180+
rewards: {
181+
title: '🏦 DeFi 专家',
182+
experience: 300,
183+
unlockedFeatures: ['DeFi 协议分析工具', '收益率计算器'],
184+
nextBadgeHint: '继续学习跨链与 Layer 2 深度解析',
185+
},
186+
},
167187
'module-9': {
168188
id: 'l2-cross-chain-expert',
169189
name: 'L2 Cross-Chain Expert',

0 commit comments

Comments
 (0)