Skip to content

Commit

Permalink
applying prettier to entire repo (w3f#4512)
Browse files Browse the repository at this point in the history
Co-authored-by: Polkadot-Kusama Bot <[email protected]>
  • Loading branch information
github-actions[bot] and Polkadot-Kusama Bot authored Feb 27, 2023
1 parent 332c0f9 commit a199acb
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 34 deletions.
12 changes: 8 additions & 4 deletions docs/build/build-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@ out-of-the-box, and can be further extended with custom GraphQL resolvers.

### SubQuery

[SubQuery](https://subquery.network/) is a fast, flexible, and reliable open-source data indexer that provides you with custom APIs for your Substrate/Polkadot project. We build the best, fully-featured indexer, so you don’t have to, with:
[SubQuery](https://subquery.network/) is a fast, flexible, and reliable open-source data indexer
that provides you with custom APIs for your Substrate/Polkadot project. We build the best,
fully-featured indexer, so you don’t have to, with:

- automatic support for any Substrate network
- support for all Polkadot smart contract frameworks (FrontierEVM, Acala EVM+, and Wasm)
- automated historical state tracking to enable faster partial re-indexing
- a lightweight and portable design that doesn't require centralised archives
- full support for GraphQL filtering, pagination, interfaces, subscriptions, and aggregations
- a future decentralized network acts as chain-agnostic data aggregation, indexing, and querying layer between blockchains and applications that will not require centralised services.

To start building, head to the [SubQuery documentation](https://academy.subquery.network/) where you'll find quick start guides and walkthrough developer tutorials.
- a future decentralized network acts as chain-agnostic data aggregation, indexing, and querying
layer between blockchains and applications that will not require centralised services.

To start building, head to the [SubQuery documentation](https://academy.subquery.network/) where
you'll find quick start guides and walkthrough developer tutorials.

### Web3Go

Expand Down
7 changes: 4 additions & 3 deletions docs/general/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ custom remote nodes, phishing detection, QR account import, export/import/derive
### SubWallet

A non-custodial Polkadot, Substrate & Ethereum wallet. Track, send, receive and monitor multi-chain
assets on 150+ networks. Import account with seedphrase, private key, QR-code, JSON file. Import token & NFT, attach read-only account. XCM Transfer, NFT Management, Parity Signer & Ledger support, light clients
support, EVM DApp support, MetaMask compatibility, custom
endpoints, fiat on-ramp, phishing detection, transaction history. SubWallet received funding from Polkadot Treasury
assets on 150+ networks. Import account with seedphrase, private key, QR-code, JSON file. Import
token & NFT, attach read-only account. XCM Transfer, NFT Management, Parity Signer & Ledger support,
light clients support, EVM DApp support, MetaMask compatibility, custom endpoints, fiat on-ramp,
phishing detection, transaction history. SubWallet received funding from Polkadot Treasury
[[1](https://polkadot.polkassembly.io/treasury/138),
[2](https://polkadot.polkassembly.io/treasury/162),
[3](https://polkadot.polkassembly.io/treasury/218)].
Expand Down
5 changes: 3 additions & 2 deletions docs/learn/learn-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ Before transferring a non-sufficient asset, ensure the receiver account has enou
the existential deposit and transaction fees for future transfers. Failing to do so will cause the
asset transfer to fail. The transfer will be successful for sufficient assets, but without
{{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} tokens, you will not be able to transfer
those assets from the receiver account through Polkadot-JS UI. The feature request to [enable
sufficient assets for transaction fee payment on Polkadot-JS UI](https://github.com/polkadot-js/apps/issues/7812) is yet to be implemented.
those assets from the receiver account through Polkadot-JS UI. The feature request to
[enable sufficient assets for transaction fee payment on Polkadot-JS UI](https://github.com/polkadot-js/apps/issues/7812)
is yet to be implemented.

:::

Expand Down
34 changes: 18 additions & 16 deletions docs/learn/learn-opengov.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ For additional details, see the

#### Public Referenda

In Governance V1, anyone can propose a referendum by depositing the minimum amount of tokens for a certain period
(number of blocks). If someone agrees with the proposal, they may deposit the same amount of tokens
to show support
In Governance V1, anyone can propose a referendum by depositing the minimum amount of tokens for a
certain period (number of blocks). If someone agrees with the proposal, they may deposit the same
amount of tokens to show support

- this action is called _endorsing_. The proposal with the highest amount of bonded support will be
selected to be a referendum in the next voting cycle.
Expand All @@ -158,36 +158,38 @@ accounts bonding
{{ polkadot: 20 DOT each would "outweigh" ten accounts bonding a single DOT each. :polkadot }}
{{ kusama: 3 KSM each would "outweigh" six accounts bonding 0.5 KSM each. :kusama }}

The bonded tokens will be released once the proposal is tabled (that is, when it is brought to a vote).
The bonded tokens will be released once the proposal is tabled (that is, when it is brought to a
vote).

For Governance v1, there can be a maximum of
{{ polkadot: <RPC network="polkadot" path="consts.democracy.maxProposals" defaultValue={100} /> :polkadot }}
{{ kusama: <RPC network="kusama" path="consts.democracy.maxProposals" defaultValue={100} /> :kusama }}
public proposals in the proposal queue.

In OpenGov, when a referendum is initially created, it can be immediately voted on by the community.
However, it is not immediately in a state where it can end, or otherwise have its votes counted, be approved and
summarily enacted. Instead, referenda must fulfil a number of criteria before they are moved into a
state known as **Deciding**. Until they are in the initial state, they remain undecided.
However, it is not immediately in a state where it can end, or otherwise have its votes counted, be
approved and summarily enacted. Instead, referenda must fulfil a number of criteria before they are
moved into a state known as **Deciding**. Until they are in the initial state, they remain
undecided.

The criteria for entering the **Deciding** state is a follows:

1. A **lead-in period** that outlines the amount of time that must elapse before deciding can begin.
This helps mitigate against the possibility of "decision sniping" where an attacker controlling
a substantial amount of voting power might seek to have a proposal passed immediately after
This helps mitigate against the possibility of "decision sniping" where an attacker controlling a
substantial amount of voting power might seek to have a proposal passed immediately after
proposing, not allowing the overall voting population adequate time to consider and participate.
2. There must be room for the decision. All Tracks specify their own limit on the number of
referenda which can be decided simultaneously. Tracks that have more potent abilities will have
lower limits. For example, the Root level Origin has a limit of one, implying that only a single
proposal may be decided on at once.
3. A **Decision Deposit** must be submitted. Creating a referendum is cheap as the deposit value consists
of only the value required for the on-chain storage needed to track it. But, having a referendum
reviewed and decided upon carries the risk of using up the limited spots available in the
referenda queue. It makes sense to have a larger, but refundable deposit requirement to help
3. A **Decision Deposit** must be submitted. Creating a referendum is cheap as the deposit value
consists of only the value required for the on-chain storage needed to track it. But, having a
referendum reviewed and decided upon carries the risk of using up the limited spots available in
the referenda queue. It makes sense to have a larger, but refundable deposit requirement to help
mitigate spam.
Once the three criteria listed above are met, the referendum moves to the **Deciding** state.
The votes of the referendum are now counted towards the outcome.

Once the three criteria listed above are met, the referendum moves to the **Deciding** state. The
votes of the referendum are now counted towards the outcome.

#### Council Referenda (v1)

Expand Down
18 changes: 9 additions & 9 deletions docs/learn/learn-treasury.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ proposal, they will probably need to find an off-chain way to explain the propos
takes place on the following platforms:

- Many community members participate in discussion in the
{{ polkadot: [Polkadot Watercooler](https://matrix.to/#/#polkadot-watercooler:web3.foundation) and :polkadot }}
{{ kusama: [Kusama Direction room](https://matrix.to/#/#kusama:matrix.parity.io) and the :kusama }}
{{ polkadot: [Polkadot Direction room](https://matrix.to/#/#polkadot-direction:matrix.parity.io). :polkadot }}
{{ kusama: [Kusama Watercooler](https://matrix.to/#/#kusamawatercooler:polkadot.builders). :kusama }}
- The [Polkassembly](https://polkassembly.io) and [SubSquare](https://www.subsquare.io/) discussion platforms
automatically read proposals from the chain, turning them into discussion
threads and allow users to log in with their Web3 address. It also offers a sentiment gauge poll to get a feel
{{ polkadot: [Polkadot Watercooler](https://matrix.to/#/#polkadot-watercooler:web3.foundation) and :polkadot }}
{{ kusama: [Kusama Direction room](https://matrix.to/#/#kusama:matrix.parity.io) and the :kusama }}
{{ polkadot: [Polkadot Direction room](https://matrix.to/#/#polkadot-direction:matrix.parity.io). :polkadot }}
{{ kusama: [Kusama Watercooler](https://matrix.to/#/#kusamawatercooler:polkadot.builders). :kusama }}
- The [Polkassembly](https://polkassembly.io) and [SubSquare](https://www.subsquare.io/) discussion
platforms automatically read proposals from the chain, turning them into discussion threads and
allow users to log in with their Web3 address. It also offers a sentiment gauge poll to get a feel
for a proposal before committing to a vote.

Spreading the word about the proposal's explanation to the community is ultimately up to the proposer.

Spreading the word about the proposal's explanation to the community is ultimately up to the
proposer.

### Creating the Proposal

Expand Down

0 comments on commit a199acb

Please sign in to comment.