Skip to content

Commit e182504

Browse files
authored
Add Genepaper v4 (#366)
* Add Genepaper v4 * Fix v3 title
1 parent 700c1bf commit e182504

5 files changed

Lines changed: 40 additions & 5 deletions

File tree

public/Genepaper_v4.pdf

1.13 MB
Binary file not shown.

src/components/PaperDetails/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,17 @@ const getSummaryText = (paper: Paper) => {
8484
return (
8585
<div>
8686
<div className={`${mobileSummaryClasses}`}>{paper.mobileSummary}</div>
87-
<div className={`${pcSummaryClasses}`}>{paper.summary}</div>
87+
{typeof paper.summary === "string" ? (
88+
<div className={`${pcSummaryClasses}`}>{paper.summary}</div>
89+
) : (
90+
<div className="flex flex-col gap-5">
91+
{paper.summary.map((summary, index) => (
92+
<p key={index} className={`${pcSummaryClasses}`}>
93+
{summary}
94+
</p>
95+
))}
96+
</div>
97+
)}
8898
</div>
8999
);
90100
};

src/data/menu.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ const getMenu = (_t: TFunction): Menu[] => {
5151
path: "https://www.notion.so/darwinia/c700133dd5a04c2494ceab489c75c907?v=8ff88199019d4236a3b9a190f5e7b9d5",
5252
external: true,
5353
},
54-
{ label: "Darwinia Genepaper", path: "https://darwinia.network/#/papers/1" },
55-
{ label: "Glossary", path: "https://docs.darwinia.network/glossary-8967fc4aa6a046a69b525dff7bf70a50" },
54+
{ label: "Darwinia Genepaper v4", path: "/Genepaper_v4.pdf", external: true },
55+
{ label: "Paper Resources", path: "/papers" },
56+
{
57+
label: "Glossary",
58+
path: "https://docs.darwinia.network/glossary-8967fc4aa6a046a69b525dff7bf70a50",
59+
external: true,
60+
},
5661
{ label: "FAQ", path: "https://www.notion.so/darwinia/FAQ-c9412ead803542f197ba1ccafb72c427", external: true },
5762
],
5863
},

src/data/papers.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,29 @@ const getHero = (t: TFunction<"translation">): Hero => {
2929

3030
const getPapers = (t: TFunction<"translation">): Paper[] => {
3131
return [
32+
{
33+
id: 0,
34+
title: "Darwinia Genepaper v4",
35+
authors: ["Alex Chien", "Denny Wang"],
36+
tags: ["Cross-Chain Messaging", "Darwinia Msgport", "Darwinia EVM+"],
37+
summary: [
38+
"The blockchain industry has been evolving rapidly, witnessing the emergence of numerous blockchain networks. As proponents of a multi-chain future, we recognize the increasing need for DApp interoperability among these diverse chains. While addressing this interoperability challenge, our focus extends beyond safety to encompass versatility, generalizability, cost-effectiveness, and programmability.",
39+
"Currently, several service providers offer token bridges for token holders. However, most of these solutions are limited to specific assets or use cases, lacking the desired level of generalization and programmability. Moreover, the complexity that arises from layering application-layer smart contracts on top of underlying cross-chain solutions further compromises security. To meet the needs of cross-chain DApp developers, there is a requirement for layered protocols, including a purpose-built, generalized, and programmable cross-chain messaging layer to support their applications.",
40+
"Much like how Ethereum revolutionized the industry by introducing smart contracts, thereby transforming blockchains into programmable platforms and laying the foundation for the DApp boom and DeFi summer, we anticipate a substantial increase in blockchain functionality driven by new and emerging cross-chain messaging technologies.",
41+
"Darwinia aims to lead this trend with its cross-chain messaging services and infrastructure. We focus on enhancing the cross-chain capabilities of DApps by providing developers with Darwinia Msgport. This solution enables seamless integration of cross-chain functionality into their DApps. Additionally, Darwinia offers extensive support facilities and various message protocol options, including ORMP, LCMP, XCMP, L1-L2 Messaging, and more, in addition to the Darwinia EVM+ ability.",
42+
],
43+
mobileSummary:
44+
"The blockchain industry has been evolving rapidly, witnessing the emergence of numerous blockchain networks. As proponents of a multi-chain future, we recognize the increasing need for DApp interoperability among these diverse chains. While addressing this interoperability challenge, our focus extends beyond safety to encompass versatility, generalizability, cost-effectiveness, and programmability.",
45+
link: {
46+
isExternal: true,
47+
title: t(localeKeys.viewFullPaper),
48+
url: "/Genepaper_v4.pdf",
49+
},
50+
titleUrl: "",
51+
},
3252
{
3353
id: 1,
34-
title: t(localeKeys.darwiniaGenePaper),
54+
title: "Darwinia Genepaper v3",
3555
authors: ["Alex Chien", "Denny Wang"],
3656
tags: [t(localeKeys.darwiniaChainRelay), t(localeKeys.lightClient), t(localeKeys.optimisticVerification)],
3757
summary: t(localeKeys.darwiniaGenePaperSummary),

src/data/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export interface Paper {
130130
title: string;
131131
authors: string[];
132132
tags: string[];
133-
summary: string;
133+
summary: string | string[];
134134
mobileSummary?: string;
135135
titleUrl: string;
136136
link: Link;

0 commit comments

Comments
 (0)