All Projects → w3f → Polkadot Wiki

w3f / Polkadot Wiki

Licence: gpl-3.0
The source of truth for Polkadot.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Polkadot Wiki

Coinpare
Compare cryptocurrency trading data across multiple exchanges and blockchains in the comfort of your terminal
Stars: ✭ 89 (-8.25%)
Mutual labels:  blockchain
Blockchain Java
这是java版的简化示例区块链demo;另外还有kotlin版的;这个小demo能让你了解区块链中增加/效验Hash,增加工作量证明,增加/效验preHash,转账,利用webSocket技术实现节点之间的通信/同步/广播.
Stars: ✭ 95 (-2.06%)
Mutual labels:  blockchain
Uniswap Interface
🦄 An open source interface for the Uniswap protocol
Stars: ✭ 1,337 (+1278.35%)
Mutual labels:  blockchain
Hyperchain
Official Go implementation of the hyperchain protocol
Stars: ✭ 90 (-7.22%)
Mutual labels:  blockchain
Swiftyeos
SwiftyEOS is an open-source framework for interacting with EOS, written in Swift. Can be used on iOS and macOS.
Stars: ✭ 94 (-3.09%)
Mutual labels:  blockchain
Etherwalletkit
Ethereum Wallet Toolkit for iOS - You can implement an Ethereum wallet without a server and blockchain knowledge.
Stars: ✭ 96 (-1.03%)
Mutual labels:  blockchain
Cosmosjs
⭐️ CosmosJS - Cosmos JavaScript Library
Stars: ✭ 91 (-6.19%)
Mutual labels:  blockchain
Knowledge Base
Knowledge Base 慢雾安全团队知识库
Stars: ✭ 1,351 (+1292.78%)
Mutual labels:  blockchain
Dapp
Censorship resistant democracies.
Stars: ✭ 1,326 (+1267.01%)
Mutual labels:  blockchain
Blockshell
🎉 Minimal Blockchain Learning CLI
Stars: ✭ 1,348 (+1289.69%)
Mutual labels:  blockchain
Yobichain
YobiChain is your very own private blockchain ecosystem preloaded with database, web & FTP servers and D.A.V.E. (Data Authentication & Verification Engine) and S.A.M. (Smart Asset Management).
Stars: ✭ 91 (-6.19%)
Mutual labels:  blockchain
Stellar Ios Mac Sdk
Stellar SDK for iOS & macOS - Swift, Stellar, Horizon, Soneso
Stars: ✭ 92 (-5.15%)
Mutual labels:  blockchain
Zenroom
Small, secure and portable virtual machine for crypto language processing
Stars: ✭ 96 (-1.03%)
Mutual labels:  blockchain
Bounties
RChain Bounty Program
Stars: ✭ 90 (-7.22%)
Mutual labels:  blockchain
Bitcoin in a nutshell
Книга о том, как действительно работает Bitcoin
Stars: ✭ 98 (+1.03%)
Mutual labels:  blockchain
Blockchainbean2
This code pattern shows how to model a supply-chain network using the IBM Blockchain Platform and is based on a collaboration with Brooklyn Roasting Company. The story, along with the supply-chain documents that were used to model this network, can be found at: https://www.ibm.com/blockchainbean. Note that the 'view the blockchain' button is being migrated''
Stars: ✭ 90 (-7.22%)
Mutual labels:  blockchain
Explorer
Block Explorer of Nebulas
Stars: ✭ 95 (-2.06%)
Mutual labels:  blockchain
Kitty Items
Based on CryptoKitties, Kitty Items is an example of a full-stack dapp built on Flow.
Stars: ✭ 98 (+1.03%)
Mutual labels:  blockchain
Specs
COALA IP is a blockchain-ready, community-driven protocol for intellectual property licensing.
Stars: ✭ 98 (+1.03%)
Mutual labels:  blockchain
Dotnet Stellar Sdk
Stellar API SDK for .NET Core 2.x and .NET Standard 2.0
Stars: ✭ 97 (+0%)
Mutual labels:  blockchain

CircleCI

Polkadot Wiki

The Polkadot Wiki is the central source of truth for Polkadot. It is a community-focused initiative led by the Web3 Foundation to keep an up-to-date resource on the best information for building on Polkadot, learning about Polkadot, or maintaining a node on Polkadot.

Contributing to Documentation

The Wiki is a community-focused initiative and we will review all pull-requests and issues created in this repository. If you notice typos or grammatical errors, please feel free to directly create pull requests with these corrections. Larger contributions may start as issues to test the waters on the subject with the maintainers. It is generally preferable to create a pull request over an issue to propose a change to the wiki content.

Running Locally

Both the Polkadot Wiki and the Kusama Guide are built from the source files in this repository. After cloning the source locally, you can start the websites with each of these respective commands (ensure you run yarn at the root of the repository first to install dependencies):

# For the Polkadot Wiki:
yarn polkadot:start
# For the Kusama Guide:
yarn kusama:start

Style Guide

Use the style guide from the Substrate Knowledge Base

Formatting

Use Prettier to format markdown pages. To run Prettier on the docs folder, run:

npx prettier --write ./docs/

Automated Deployments

The wiki is automatically deployed to GitHub Pages via the CircleCI job on each new commit to the master branch. The Kusama guide is also deployed to GitHub Pages (via a separate repository). Both websites are also uploaded to IPFS via GitHub actions.

Dynamic Value Inserts

This documentation sometimes makes references to on-chain values that may change over time. For example, it might reference the current number of validators. A custom script exists to populate these values post-build. To avoid conflicts in source files, the replacement is done on built files, not the MD files. The value placeholders are defined in scripts/inject-dict.json. The placeholders should be included in text surrounded by double curly braces, like so: {{ num_validators }}.

To use the replace script:

# For Polkadot Wiki
yarn polkadot:inject
# For Kusama Guide
yarn kusama:inject

This will read the dictionary and do the replacements for the respective website.

It is recommended to use the dry run option when adding new values and templates in, to make sure they resolve to values first and don't throw query errors. To use dry run (no replace, just output of templates and their resolved potential replacements), use the --dry or -d flag:

yarn polkadot:inject --dry

The script defaults to the websocket URL wss://kusama-rpc.polkadot.io/. To change to another URL or to connect to a local node, use the --node/-n flag:

yarn polkadot:inject -n ws://localhost:9944

Note: make sure you're running an archive node if you're querying into the past!

See other available options by using the help command.

yarn polkadot:inject help

The templates to replace in the text take the following format:

  {
    "tpl": "tip_deposit_amount",
    "default": { "kusama": 0.166, "polkadot": 1 },
    "path": "consts.treasury.tipReportDepositBase",
    "filters": ["humanReadableToken"]
  },
  • tpl is the template you want replaced in the text, it should be placed between {{ }} curly braces.
  • default is either a literal value or an object with chain-specific defaults.
  • path is the query to run on the chain
  • computed is a value that should be set to true is the value does not need a path. Computed properties are exported from computed.js.
  • filters is an array of filters to apply on the value after it's been fetched (does not apply to defaults). Filters are defined in applyFilters or inject.js.

To test the injection, run polkadot:build and kusama:build, then polkadot:inject and kusama:inject. Inspect the built files in the corresponding build folder under website or kusama-guide.

Conditional Rendering

The two wikis support conditional rendering depending on which wiki is being deployed. This is useful for mirrored pages that have most content in common, but some minor differences. To use this functionality, surround Kusama specific content with {{ kusama: :kusama }}, and polkadot specific content with {{ polkadot: :polkadot }}. Example:

If the treasury ends a budget period without spending all of its funds, it suffers a burn of a
percentage of its funds -- thereby causing deflationary pressure.
{{ polkadot: This percentage is currently at 1%
on Polkadot. :polkadot }} {{ kusama: This percentage is currently 0.2% on Kusama, with the amount currently going to
[Society](https://guide.kusama.network/docs/en/maintain-guides-society-kusama) rather than being
burned. :kusama }}

To test the resolution, run polkadot:build and kusama:build, then polkadot:inject and kusama:inject. Inspect the built files in the corresponding build folder under website or kusama-guide.

Mirror pages

A limitation of Docusaurus is that pages can only be included in one sidebar at any given time. Thus, our Kusama section will either hijack some content it shares with the rest of the wiki, or lack that content.

To solve this, the repo mirrors some pages and includes them in additional sidebars. The scripts folder contains a mirror.js script that creates a copy of the pages to duplicate across sidebars. The new pages are prefixed with mirror, and first need to be declared in mirror.js and added to the relevant sidebar section. To run the script:

yarn mirror

Note: This command runs automatically when using polkadot:start or kusama:start development scripts, so you don't need to worry about running it manually if you start the development site with one of these commands.

Internationalization

We are using Crowdin to manage all different translations. You can go to the project page and select the language you would like to translate to start.
All translated content through Crowdin will regularly submit a pull request to this repository.

If you do not see the language you would like to translate, please let us know via Riot.

License

The Polkadot Wiki is licensed under the GPL-3.0 free software license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].