Skip to content

Commit 0499e57

Browse files
committed
Add docs workspace ported from GitBook
1 parent 184d4c2 commit 0499e57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3267
-78
lines changed

Doc/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.next
2+
out
3+
node_modules
4+
.DS_Store

Doc/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

Doc/next.config.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
4+
theme: 'nextra-theme-docs',
5+
themeConfig: './theme.config.tsx',
6+
defaultShowCopyCode: true,
7+
})
8+
9+
export default withNextra({
10+
reactStrictMode: true,
11+
eslint: {
12+
ignoreDuringBuilds: true,
13+
},
14+
})

Doc/package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "gardens-docs",
3+
"private": true,
4+
"version": "0.1.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "next dev",
8+
"build": "next build",
9+
"start": "next start",
10+
"lint": "next lint",
11+
"import": "python ./scripts/import_gitbook.py"
12+
},
13+
"dependencies": {
14+
"next": "^14.2.5",
15+
"nextra": "^3.2.3",
16+
"nextra-theme-docs": "^3.2.3",
17+
"zod": "^3.25.3",
18+
"react": "18.2.0",
19+
"react-dom": "18.2.0"
20+
},
21+
"devDependencies": {
22+
"@types/node": "^20.12.7",
23+
"@types/react": "^18.2.46",
24+
"typescript": "^5.5.4"
25+
}
26+
}

Doc/pages/_app.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { AppProps } from 'next/app'
2+
import 'nextra-theme-docs/style.css'
3+
4+
function App({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}
7+
8+
export default App

Doc/pages/_meta.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const meta = {
2+
"index": {
3+
"title": "Introduction"
4+
},
5+
"the-covenant": {
6+
"title": "The Covenant"
7+
},
8+
"coordination-hierarchy": {
9+
"title": "COORDINATION HIERARCHY"
10+
},
11+
"conviction-voting": {
12+
"title": "CONVICTION VOTING"
13+
},
14+
"start-here": {
15+
"title": "START HERE"
16+
},
17+
"growth": {
18+
"title": "GROWTH"
19+
},
20+
"proposals": {
21+
"title": "Proposals"
22+
}
23+
}
24+
export default meta
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const meta = {
2+
"conviction-101": {
3+
"title": "Conviction 101"
4+
},
5+
"conviction-pool-types": {
6+
"title": "Conviction Pool Types"
7+
},
8+
"conviction-parameters": {
9+
"title": "Conviction Parameters"
10+
},
11+
"conviction-metrics": {
12+
"title": "Conviction Metrics"
13+
}
14+
}
15+
export default meta
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "Conviction 101"
3+
---
4+
5+
Conviction Voting is a disputable, time-weighted voting mechanism where proposal support grows in strength the longer it's allocated (and shrinks over time if support is removed).
6+
7+
It encourages ongoing participation, favoring consistent, long-term ideas and contributors, and it protects communities from short-term manipulation and abuse.
8+
9+
The mechanism was first conceived by BlockScience in 2019: [https://github.com/BlockScience/conviction](https://github.com/BlockScience/conviction)
10+
11+
## Terms to Know
12+
13+
- **Support:** the total voting weight allocated to a proposal.
14+
- **Conviction:** accumulates over time based on both the level of support on a proposal and the duration defined by the Conviction Growth parameter.
15+
- **Parameters: **functions that can be customized in a Pool that determine how conviction and threshold are calculated.
16+
- **Threshold: **in a Funding Pool, the level of conviction where funding can be executed
17+
- **Pool: **A Conviction Voting module in a Community.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Conviction Metrics"
3+
---
4+
5+
CV charts are graphical representations of the allocated pool weight and the accumulated conviction associated with that allocation.
6+
7+
The funding pool includes a threshold goal.
8+
9+
![The proposal has passed the support threshold requirement and conviction is growing. Once conviction reaches the 2.96 threshold, the proposal will be ready to be executed !](/media/fJMVaQlMZFHdwRlbHI0a-Screenshot-2024-08-13-at-4.24.33-PM.png)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "Conviction Parameters"
3+
---
4+
5+
Conviction Voting allows proposals to be evaluated continuously and concurrently. Participants can express their preferences for the proposals they support, and their support accumulates over time. Any actions connected to a Conviction Voting Pool - like a funding distribution - are only executable when Conviction reaches a calculated threshold.
6+
7+
## Conviction growth
8+
9+
**Pool Types = Funding, Signaling, Streaming**
10+
11+
Determines the rate at which a proposal accumulates conviction.
12+
13+
A higher value for Conviction Growth means proposals will take longer to accumulate strength based on their support. This parameter is logarithmic and represents its "half-life," or the amount of time for conviction to reach 50% of its support.
14+
15+
Example:
16+
17+
- Conviction Growth = 7 days.
18+
- Alice has 10% of a Pool's voting weight, and supports Proposal B with all of her voting weight. After leaving her support allocated for 14 days, conviction on Proposal B is 7.5%, or 2 half-lifes.
19+
20+
## Minimum Conviction
21+
22+
**Pool Types = Funding, Streaming**
23+
24+
In a Funding Pool, minimum conviction is the minimum voting weight needed for a proposal to pass. This parameter is defined as a percentage of total voting weight in a pool, and sets the amount of conviction needed for the smallest possible funding proposal (i.e. 0 tokens) to pass.
25+
26+
In a Streaming Pool, minimum conviction is the percentage of voting weight needed for the tokens to begin streaming.
27+
28+
## Spending Limit
29+
30+
**Pool Types = Funding**
31+
32+
The spending limit caps the number of tokens that can be requested in a single proposal. This parameter is defined as a percentage of tokens in the funding pool, and sets the amount of tokens requested where the proposal cannot be passed because 100% of the Pool's voting weight would need to accumulate conviction.
33+
34+
## Fixed Minimum Threshold
35+
36+
**Pool Types = Funding**
37+
38+
This threshold is a fixed value representing the minimum voting weight that conviction must reach for a proposal to pass.
39+
40+
This parameter overrides the Minimum Conviction parameter when its value is greater, and is a safeguard for newly created Pools or Pools that for any other reason do not have enough voting weight activated for funds to be considered secure.

0 commit comments

Comments
 (0)