-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 1176-migrate-from-other-chains
- Loading branch information
Showing
130 changed files
with
10,911 additions
and
7,724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Docusaurus CICD | |
|
||
env: | ||
prod_pages_fqdn: ${{ vars.PROD_PAGES_FQDN }} | ||
selected_node_version: 16.14 | ||
|
||
on: | ||
push: | ||
|
@@ -27,9 +28,6 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
selected_node_version: 16.14 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -39,7 +37,7 @@ jobs: | |
node-version: ${{ env.selected_node_version }} | ||
cache: yarn | ||
|
||
- name: Template credentials | ||
- name: Template credentials - production | ||
if: github.ref == 'refs/heads/dev' | ||
uses: cuchi/jinja2-action@1149b92d9ea6db61d7f71c22e3d5028d8065f140 | ||
with: | ||
|
@@ -62,6 +60,19 @@ jobs: | |
ALGOLIA_SITE_INDEX_NAME: ${{ vars.ALGOLIA_SITE_INDEX_NAME }} | ||
BASE_URL: ${{ vars.BASE_URL }} | ||
|
||
- name: Template credentials - preview | ||
if: github.event_name == 'pull_request' | ||
uses: cuchi/jinja2-action@1149b92d9ea6db61d7f71c22e3d5028d8065f140 | ||
with: | ||
template: .github/templates/.env.production.j2 | ||
output_file: .env.production | ||
env: | ||
DIRECTUS_URL: ${{ secrets.PREVIEW_DIRECTUS_URL }} | ||
DIRECTUS_GRAPHQL_URL: ${{ secrets.PREVIEW_DIRECTUS_GRAPHQL_URL }} | ||
DIRECTUS_TOKEN: ${{ secrets.PREVIEW_DIRECTUS_TOKEN }} | ||
SITE_URL: ${{ vars.SITE_URL }} | ||
BASE_URL: ${{ vars.BASE_URL }} | ||
|
||
- name: Yarn install | ||
run: | | ||
yarn install | ||
|
@@ -70,10 +81,6 @@ jobs: | |
run: | | ||
yarn format | ||
- name: Validate external links | ||
run: | | ||
yarn check:externals | ||
- name: Clear Docusaurus cache | ||
run: | | ||
yarn clear | ||
|
@@ -93,6 +100,27 @@ jobs: | |
name: gh-pages-depl-payload | ||
path: ./docs | ||
|
||
validate-external-links: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ env.selected_node_version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.selected_node_version }} | ||
cache: yarn | ||
|
||
- name: Yarn install | ||
run: | | ||
yarn install | ||
- name: Validate external links | ||
run: | | ||
yarn check:externals | ||
system-tests-predeployment: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
@@ -148,6 +176,32 @@ jobs: | |
curl --fail http://127.0.0.1:4000/concepts/serialization-standard/ | ||
working-directory: ./docs | ||
|
||
deploy-preview: | ||
if: github.event_name == 'pull_request' | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: gh-pages-depl-payload | ||
path: ./docs | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: 'docs' | ||
production-deploy: false | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: ${{ github.event.pull_request.title }} | ||
enable-pull-request-comment: true | ||
enable-commit-comment: false | ||
enable-github-deployment: false | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.PREVIEW_NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.PREVIEW_NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 | ||
|
||
deploy-prod: | ||
if: ${{ github.ref == 'refs/heads/dev' && github.repository == 'casper-network/docs' }} | ||
needs: [backup, system-tests-predeployment] | ||
|
@@ -203,5 +257,3 @@ jobs: | |
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
source/docs/casper/about.md → source/docs/casper/concepts/about.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
--- | ||
id: welcome | ||
title: Welcome | ||
title: What is Casper? | ||
slug: / | ||
--- | ||
|
||
## What is Casper? {#what-is-casper} | ||
|
||
Casper is a new [Turing-complete](./concepts/glossary/T.md#turing-complete-blockchain) smart-contracting platform, backed by a Proof-of-Stake (PoS) consensus algorithm and WebAssembly (Wasm). The network is a [permissionless](./concepts/glossary/P.md#permissionless), decentralized, public blockchain. | ||
Casper is a new [Turing-complete](../concepts/glossary/T.md#turing-complete-blockchain) smart-contracting platform, backed by a Proof-of-Stake (PoS) consensus algorithm and WebAssembly (Wasm). The network is a [permissionless](../concepts/glossary/P.md#permissionless), decentralized, public blockchain. | ||
|
||
The network's consensus protocol is called [Highway](https://arxiv.org/pdf/2101.02159.pdf), and it has several benefits over classic Byzantine Fault Tolerant (BFT) consensus protocols. First, Highway allows networks to reach higher thresholds of _finality_, meaning that more blocks are finalized, and validators agree to add them to the blockchain. Second, the protocol achieves flexibility by expressing block finality in ways not possible in BFT models. This protocol is built on the [correct-by-construction (CBC) Casper](https://github.com/cbc-casper/cbc-casper-paper) research. | ||
|
||
Additionally, the Casper Network is optimized for enterprise and developer adoption. While leveraging blockchain technology, the network seeks to accelerate business operations via unique features like predictable network fees, upgradeable contracts, on-chain governance, privacy flexibility, and developer-friendly languages. Casper's [core features and strengths](./resources/build-on-casper.md) enable developers and enterprises to reap the benefits of blockchain technology. | ||
Additionally, the Casper Network is optimized for enterprise and developer adoption. While leveraging blockchain technology, the network seeks to accelerate business operations via unique features like predictable network fees, upgradeable contracts, on-chain governance, privacy flexibility, and developer-friendly languages. Casper's [core features and strengths](../resources/build-on-casper.md) enable developers and enterprises to reap the benefits of blockchain technology. | ||
|
||
Casper also solves the scalability trilemma. Notably, the network is optimized for security, decentralization, and high throughput. All this is achieved while evolving to provide leading solutions for open-source projects and enterprises. | ||
|
||
## How does Casper work? {#how-does-casper-work} | ||
|
||
Casper relies on a group of validators to verify transactions and uphold the network. Unlike Proof-of-Work networks, which need to centralize validators for economies of scale, Casper allows for the geographical decentralization of validators. Casper validators verify transactions based on staked tokens and receive CSPR rewards for participating in the PoS consensus mechanism. CSPR is the native token on the Casper Network. | ||
|
||
To understand the design further, read [this article](../concepts/design/casper-design.md). | ||
|
||
## Other Sections | ||
## Disclaimer | ||
|
||
- [Disclaimer](./disclaimer.md): Legal Disclaimer | ||
Read the [Legal Disclaimer](../disclaimer.md) regarding this CasperLabs Tech Spec (this "Whitepaper"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Deploys and the Deploy Lifecycle | ||
title: Deploy Lifecycle | ||
slug: /deploy-and-deploy-lifecycle | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
title: Highway Consensus | ||
--- | ||
|
||
# The Highway Consensus Protocol | ||
|
||
## What is Consensus? | ||
|
Oops, something went wrong.