Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocation feb28 #25

Merged
merged 29 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7147e1f
Added Tokenomics draft section with utility, allocation, inflation an…
thomivy Feb 29, 2024
0608f1c
added integration page with metadata and other details under Build
thomivy Feb 29, 2024
99287b5
added overide for prettier to map mdx files to markdown
thomivy Feb 29, 2024
faa95bb
added babel parser to prettier for mdx
thomivy Feb 29, 2024
e849c7d
updated allocation and usage typos and text
thomivy Feb 29, 2024
889a3d8
Added detailed vesting schedule and allocation details
thomivy Mar 1, 2024
fc56d56
Removed katex and remark support in favor of native latex support by …
thomivy Mar 6, 2024
36cc6cf
Moved launch page to top sidebar section. added sidebar seperators. c…
thomivy Mar 6, 2024
5b0cecf
removed old launch page location
thomivy Mar 6, 2024
666404b
updated path for image in alllocation
thomivy Mar 6, 2024
70ab314
updated sidebar and typos
thomivy Mar 6, 2024
c8da1f2
Pushing yarn configs
thomivy Mar 6, 2024
90071ce
adding services, restaking and job provision guides under Services
thomivy Mar 6, 2024
0ab7067
fixed broken paths
thomivy Mar 7, 2024
9149957
ran prettier
thomivy Mar 7, 2024
ee86d96
Updated allocaton to match code re treasury
thomivy Mar 7, 2024
56b0dfd
fixed totals
thomivy Mar 7, 2024
2fa8817
updated nextra and fixed seperator syntax in sidebar, eliminated zero…
thomivy Mar 7, 2024
9affba6
fixed metajson
thomivy Mar 7, 2024
0dd1655
Update overview page to match with site and WP
thomivy Mar 8, 2024
168ccef
updated intro to tangle
thomivy Mar 8, 2024
c60c8b0
Added developer focused introduction under build
thomivy Mar 8, 2024
cf150cc
fixed spacing in index
thomivy Mar 8, 2024
d4342e6
added a draft mainnet config info component
thomivy Mar 8, 2024
092c34a
pinned nextjs version to unproblematic and resolved version issue wit…
thomivy Mar 8, 2024
5a29e68
revert next to 13.0.0 to resolve type issues in build time
thomivy Mar 8, 2024
50b6724
fix build error
yurixander Mar 8, 2024
e7ff266
Update services to clarify skSaaS for Groth16
thomivy Mar 8, 2024
c0b2486
added GennaroDKGBls381 to TSS
thomivy Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
229 changes: 229 additions & 0 deletions components/AllocationTable.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
import React from "react";
import styled from "styled-components";

const TableContainer = styled.div`
overflow-x: auto;
margin: 20px;
`;

const Table = styled.table`
width: 100%;
border-collapse: collapse;
text-align: left;
font-size: 14px;

@media (max-width: 768px) {
font-size: 12px;
}
`;

const Header = styled.th`
background-color: #f1f1f1;
padding: 12px;
font-weight: bold;
border: 1px solid #ddd;
white-space: nowrap;
`;

const Row = styled.tr`
&:nth-child(even) {
background-color: #f9f9f9;
}
`;

const SubtotalRow = styled(Row)`
background-color: #e6f2ff !important;
font-weight: bold;
`;

const TotalRow = styled(Row)`
background-color: #d9ead3;
font-weight: bold;
`;

const Cell = styled.td`
padding: 12px;
border: 1px solid #ddd;
white-space: nowrap;
`;

export default function AllocationTable() {
return (
<TableContainer>
<Table>
<thead>
<Row>
<Header>Allocation Category</Header>
<Header>Entity Name</Header>
<Header>Allocated Share (%)</Header>
<Header>Vesting Plan</Header>
<Header>Cliff (Months)</Header>
<Header>Vesting Period (Months)</Header>
<Header>Immediate Liquidity (%)</Header>
<Header>Initial Liquid Tokens</Header>
<Header>Cliff-Release Tokens</Header>
<Header>Monthly Vesting Rate</Header>
<Header>Total Tokens Allocated</Header>
</Row>
</thead>
<tbody>
<Row>
<Cell>Contributors</Cell>
<Cell>Webb (Developer)</Cell>
<Cell>28.56%</Cell>
<Cell>B-Vesting</Cell>
<Cell>12</Cell>
<Cell>24</Cell>
<Cell>5%</Cell>
<Cell>1,356,250.00</Cell>
<Cell>12,884,375.00</Cell>
<Cell>2,147,395.83</Cell>
<Cell>27,125,000.00</Cell>
</Row>
<Row>
<Cell>Contributors</Cell>
<Cell>Investors</Cell>
<Cell>13.64%</Cell>
<Cell>A-Vesting</Cell>
<Cell>12</Cell>
<Cell>24</Cell>
<Cell>0%</Cell>
<Cell>0.00</Cell>
<Cell>6,820,000.00</Cell>
<Cell>1,136,666.67</Cell>
<Cell>13,640,000.00</Cell>
</Row>
<Row>
<Cell>Contributors</Cell>
<Cell>Indiv. Webb Contributors</Cell>
<Cell>1.44%</Cell>
<Cell>B-Vesting</Cell>
<Cell>12</Cell>
<Cell>48</Cell>
<Cell>5%</Cell>
<Cell>71,750.00</Cell>
<Cell>340,812.50</Cell>
<Cell>37,868.06</Cell>
<Cell>1,435,000.00</Cell>
</Row>
<SubtotalRow>
<Cell colSpan={2}>
<strong>Contributors Subtotal</strong>
</Cell>
<Cell>43.64%</Cell>
<Cell colSpan={4}></Cell>
<Cell>1,428,000.00</Cell>
<Cell colSpan={2}></Cell>
<Cell>42,200,000.00</Cell>
</SubtotalRow>
<Row>
<Cell>Governance-Managed</Cell>
<Cell>Treasury</Cell>
<Cell>36.36%</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>100%</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>36,360,000.00</Cell>
</Row>
<Row>
<Cell>Governance-Managed</Cell>
<Cell>Foundation</Cell>
<Cell>15.00%</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>100%</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>n/a</Cell>
<Cell>15,000,000.00</Cell>
</Row>
<SubtotalRow>
<Cell colSpan={2}>
<strong>Governance-Managed Subtotal</strong>
</Cell>
<Cell>51%</Cell>
<Cell colSpan={7}></Cell>
<Cell>51,360,000.00</Cell>
</SubtotalRow>
<Row>
<Cell>Airdrops</Cell>
<Cell>Leaderboard Participants</Cell>
<Cell>2%</Cell>
<Cell>C-Vesting</Cell>
<Cell>1</Cell>
<Cell>24</Cell>
<Cell>5%</Cell>
<Cell>100,000.00</Cell>
<Cell>79,166.67</Cell>
<Cell>82,608.70</Cell>
<Cell>2,000,000.00</Cell>
</Row>
<Row>
<Cell>Airdrops</Cell>
<Cell>DOT Validators Snapshot</Cell>
<Cell>1%</Cell>
<Cell>C-Vesting</Cell>
<Cell>1</Cell>
<Cell>24</Cell>
<Cell>5%</Cell>
<Cell>50,000.00</Cell>
<Cell>39,583.33</Cell>
<Cell>41,304.35</Cell>
<Cell>1,000,000.00</Cell>
</Row>
<Row>
<Cell>Airdrops</Cell>
<Cell>EDG Genesis Participants</Cell>
<Cell>1%</Cell>
<Cell>C-Vesting</Cell>
<Cell>1</Cell>
<Cell>24</Cell>
<Cell>5%</Cell>
<Cell>50,000.00</Cell>
<Cell>39,583.33</Cell>
<Cell>41,304.35</Cell>
<Cell>1,000,000.00</Cell>
</Row>
<Row>
<Cell>Airdrops</Cell>
<Cell>EDG 2023 Snapshot</Cell>
<Cell>1%</Cell>
<Cell>C-Vesting</Cell>
<Cell>1</Cell>
<Cell>24</Cell>
<Cell>5%</Cell>
<Cell>50,000.00</Cell>
<Cell>39,583.33</Cell>
<Cell>41,304.35</Cell>
<Cell>1,000,000.00</Cell>
</Row>
<SubtotalRow>
<Cell colSpan={2}>
<strong>Airdrops Subtotal</strong>
</Cell>
<Cell colSpan={5}></Cell>
<Cell>250,000.00</Cell>
<Cell>197,916.67</Cell>
<Cell colSpan={1}></Cell>
<Cell>5,000,000.00</Cell>
</SubtotalRow>
<TotalRow>
<Cell colSpan={2}>
<strong>Total Supply</strong>
</Cell>
<Cell>100%</Cell>
<Cell colSpan={4}></Cell>
<Cell>1,678,000.00</Cell>
<Cell colSpan={2}></Cell>
<Cell>100,000,000.00</Cell>
</TotalRow>
</tbody>
</Table>
</TableContainer>
);
}
106 changes: 106 additions & 0 deletions components/MainnetConfig.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import React, { useState } from "react";
import Link from "next/link";
import styles from "./NetworkConfig.module.css";

const NetworkCard = ({
cardTitle,
network,
type,
symbol,
decimals,
chainId,
rpcUrl,
wssUrl,
explorerUrls,
fundingInfo,
}) => {
return (
<div className={styles.networkCard}>
<div className={styles.networkType}>
{type} {cardTitle}
</div>
<div className={styles.titleContainer}>
<h2 className={styles.networkTitle}>{network}</h2>
</div>
<table className={styles.table}>
<tbody>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Network Type</th>
<td className={styles.tableCell}>{type}</td>
</tr>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Native Asset Symbol</th>
<td className={styles.tableCell}>{symbol}</td>
</tr>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Native Asset Decimals</th>
<td className={styles.tableCell}>{decimals}</td>
</tr>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Chain ID</th>
<td className={styles.tableCell}>{chainId}</td>
</tr>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Public RPC URL</th>
<td className={styles.tableCell}>
<Link href={rpcUrl}>{rpcUrl}</Link>
</td>
</tr>
<tr className={styles.tableRow}>
<th className={styles.tableHeader}>Public WSS URL</th>
<td className={styles.tableCell}>
<Link href={wssUrl}>{wssUrl}</Link>
</td>
</tr>
{explorerUrls.map((explorer, index) => (
<tr key={index}>
<th className={styles.tableHeader}>
{index === 0 ? "Interfaces & Explorers" : ""}
</th>
<td className={styles.tableCell}>
<Link href={explorer.url}>{explorer.name}</Link>
</td>
</tr>
))}
</tbody>
</table>
</div>
);
};

const NetworkInfo = () => {
// Define the network details here or fetch from an API
const networks = [
{
cardTitle: "Network Information",
network: "Tangle Network",
type: "Mainnet",
symbol: "TNT",
decimals: 18,
chainId: "5845",
rpcUrl: "https://rpc.tangle.tools",
wssUrl: "wss://rpc.tangle.tools",
explorerUrls: [
{ name: "BlockScout", url: "https://testnet-explorer.tangle.tools" }, // Update this
{
name: "PolkadotJS",
url: "TBD", // Update this
},
],
fundingInfo: {
url: "https://discord.gg/PQDYv5GT",
},
},
// Add Tangle Mainnet details here when available
];

return (
<div className={styles.networkInfo}>
{networks.map((network, index) => (
<NetworkCard key={index} {...network} />
))}
</div>
);
};

export default NetworkInfo;
11 changes: 3 additions & 8 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import nextra from "nextra";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";

/**
* @type {import('next').NextConfig}
Expand Down Expand Up @@ -39,11 +37,8 @@ const withNextra = nextra({
themeConfig: "./theme.config.js",
staticImage: true,
flexsearch: true,
latex: true,
mdxOptions: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
latex: true, // Ensure this is enabled to use Nextra's native LaTeX support
// Since Nextra supports LaTeX natively, remove the custom MDX option for remarkMath and rehypeKatex
});

export default withNextra(nextConfig);
export default withNextra(nextConfig);
Loading
Loading