Skip to content

Commit

Permalink
applying prettier to entire repo (w3f#4544)
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 Mar 6, 2023
1 parent 44a84cb commit 02f4e12
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 36 deletions.
18 changes: 10 additions & 8 deletions components/utilities/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@ The action has 2 primary steps:
created.

After these 2 scripts execute, a new [pull request](https://github.com/w3f/polkadot-wiki/pull/4241)
will automatically be made to the repo if any changes are detected to the cache file. The PR
is only opened by the GitHub action so you can safely run these script locally if you want to see
what updates are available or are debugging an issue. To run the scripts locally you can use the
will automatically be made to the repo if any changes are detected to the cache file. The PR is only
opened by the GitHub action so you can safely run these script locally if you want to see what
updates are available or are debugging an issue. To run the scripts locally you can use the
following commands:

1. `yarn get:auctions`
2. `yarn update:auctions`

Based on past behavior, it will sometimes be required to modify the cache manually. It has been noticed that Kusama will occasionally introduce a breaking API change or modifications to the
Based on past behavior, it will sometimes be required to modify the cache manually. It has been
noticed that Kusama will occasionally introduce a breaking API change or modifications to the
dispatch queue before the auctions begin. The `getAuctions.js` script will not attempt to monitor
changes to an auction while in the dispatch queue if it has already been added to the cache. Thus, if a `startBlock` was incorrectly added, the cache will not update with the appropriate auction
changes to an auction while in the dispatch queue if it has already been added to the cache. Thus,
if a `startBlock` was incorrectly added, the cache will not update with the appropriate auction
information as the block is likely not the start of an auction. If this issue is detected, the
automation routine will bail (displaying an error for the action) and not commit any changes until
the discrepancy is resolved manually. New auctions can be added anytime, and changes can be manually
Expand All @@ -46,9 +48,9 @@ appended. The following cache properties must be provided:
2. `startBlock` - the block an auction is expected to become active

**The remaining properties in the cache are auto-generated and should not be modified. Running
`yarn update:auctions` will overwrite those changes.** This means that when manually adding a new auction,
these are the only two properties that need to be specified. The remaining properties should still be
included, providing `null` dates or blocks and
`yarn update:auctions` will overwrite those changes.** This means that when manually adding a new
auction, these are the only two properties that need to be specified. The remaining properties
should still be included, providing `null` dates or blocks and
`0x0000000000000000000000000000000000000000000000000000000000000000` for hash values. For example,
if I wanted to manually add a new auction `(#41)` to the cache, I would append the following object:

Expand Down
7 changes: 4 additions & 3 deletions docs/build/build-hackathon.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ the {{ polkadot: [Polkadot newsletter](https://info.polkadot.network/subscribe).
## Host a Hackathon

As one of our objectives in the Web3 Foundation is promoting the
[Web3 technology stack](https://wiki.polkadot.network/docs/build-open-source), we would like to support any individual or team who wants to organize a hackathon that gets more
developers to understand {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} and
Substrate in your city or online.
[Web3 technology stack](https://wiki.polkadot.network/docs/build-open-source), we would like to
support any individual or team who wants to organize a hackathon that gets more developers to
understand {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} and Substrate in your city
or online.

We are not only providing technical resources for you, but we can have someone from our team give a
hands-on workshop/presentation about the technology to help participants get started hacking on it
Expand Down
13 changes: 8 additions & 5 deletions docs/general/contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ technology.
- matrix: [@bader:web3.foundation](https://matrix.to/#/@bader:web3.foundation)
- twitter: [@baderyo_o](https://twitter.com/baderyo_o)

Bader is a Technical Educator at the Web3 Foundation. He has been an avid blockchain and web3 advocate, full-stack software engineer, and technical writer for the past 4 years. He has used a multitude of technologies to create disruptive and unique applications, mostly centering around eliminating intermediary servers in applications and creating trust-free digital interactions for the betterment of humanity. Real technology needs to solve real problems, and Bader is very strong on creating practical solutions to those problems using Web3.

Bader has a strong passion for ensuring that this technology can be understood and utilized to its fullest potential and focuses on making it as simple and useful to digest as possible.

Bader is a Technical Educator at the Web3 Foundation. He has been an avid blockchain and web3
advocate, full-stack software engineer, and technical writer for the past 4 years. He has used a
multitude of technologies to create disruptive and unique applications, mostly centering around
eliminating intermediary servers in applications and creating trust-free digital interactions for
the betterment of humanity. Real technology needs to solve real problems, and Bader is very strong
on creating practical solutions to those problems using Web3.

Bader has a strong passion for ensuring that this technology can be understood and utilized to its
fullest potential and focuses on making it as simple and useful to digest as possible.

## Technical Integrations

Expand Down Expand Up @@ -117,7 +121,6 @@ development, education, and blockchain technology consulting. He is passionate a
teaching and has always kept a foot in education by designing and delivering software development
and blockchain classes at General Assembly, Code Fellows, and Columbia University.


### Danny Salman

- email: [[email protected]](mailto:[email protected])
Expand Down
11 changes: 3 additions & 8 deletions docs/learn/learn-nomination-pools.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,14 @@ the list of validators nominated by the pool, and so, in a way, you are trusting
to act in your best interests. However, it is advised to check the validators nominated by the pool
from time to time and change the pool if necessary.


:::info Minimum Active Nomination Value is Dynamic


The minimum amount required to become an active nominator and earn rewards is
{{ polkadot: __<RPC network="polkadot" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>__. :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>__. :kusama }}
If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active nomination and still want to participate in staking,
you can join the nomination pools.
You can now stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with
just
If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active
nomination and still want to participate in staking, you can join the nomination pools. You can now
stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with just
{{ polkadot: __<RPC network="polkadot" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={10000000000}/>__ :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={1666666650}/>__ :kusama }}
in the nomination pools and earn staking rewards. For additional information, see
Expand All @@ -326,8 +323,6 @@ Check the wiki doc on [nomination pools](learn-nomination-pools.md) for more inf

:::



| Nominating | Joining a Pool |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Minimum 100 DOT to nominate. | Minimum 1 DOT to be a member. |
Expand Down
9 changes: 3 additions & 6 deletions docs/learn/learn-nominator.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ help you get started.

:::


:::info Stake through Nomination Pools


The minimum amount required to become an active nominator and earn rewards is
{{ polkadot: __<RPC network="polkadot" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>__. :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>__. :kusama }}
If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active nomination and still want to participate in staking,
you can join the nomination pools.
You can now stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with
just
If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active
nomination and still want to participate in staking, you can join the nomination pools. You can now
stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with just
{{ polkadot: __<RPC network="polkadot" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={10000000000}/>__ :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={1666666650}/>__ :kusama }}
in the nomination pools and earn staking rewards. For additional information, see
Expand Down
8 changes: 3 additions & 5 deletions docs/learn/learn-staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ help you get started.

:::info Stake through Nomination Pools


The minimum amount required to become an active nominator and earn rewards is
{{ polkadot: __<RPC network="polkadot" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>:__ :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.staking.minimumActiveStake" defaultValue={2937000000000} filter="humanReadable"/>:__ :kusama }}
. If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active nomination and still want to participate in staking,
you can join the nomination pools.
you can now stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with
just
. If you have less {{ polkadot: DOT :polkadot }}{{ kusama: KSM :kusama }} than the minimum active
nomination and still want to participate in staking, you can join the nomination pools. you can now
stake on {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} natively with just
{{ polkadot: __<RPC network="polkadot" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={10000000000}/>__ :polkadot }}
{{ kusama: __<RPC network="kusama" path="query.nominationPools.minJoinBond" filter="humanReadable" defaultValue={1666666650}/>__ :kusama }}
in the nomination pools and earn staking rewards. For additional information, check out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ rewards earned that are distributed proportionally to the nominators after deduc
commission. Currently, the minimum validator commission is set to
{{ kusama: <RPC network="kusama" path="query.staking.minCommission" filter = "percentage" defaultValue="10"/>% :kusama }}
{{ polkadot: <RPC network="kusama" path="query.staking.minCommission" filter = "percentage" defaultValue="10"/>% :polkadot }}
which can be set through on-chain governance. For more information rewards and payouts, check the [validator payout](../maintain-guides-validator-payout.md) document.
which can be set through on-chain governance. For more information rewards and payouts, check the
[validator payout](../maintain-guides-validator-payout.md) document.

## Run a Kusama Validator

Expand Down

0 comments on commit 02f4e12

Please sign in to comment.