Skip to content

Commit d60cc5f

Browse files
committed
update intros to POS's major sections
1 parent a8a185e commit d60cc5f

File tree

11 files changed

+64
-24
lines changed

11 files changed

+64
-24
lines changed

docs/pos/architecture/index.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# Architecture
22

3+
Due to the proof-of-stake consensus, Polygon PoS consists of a consensus layer called Heimdall and execution layer called Bor.
4+
5+
Nodes on Polygon are therefore designed with a two-layer implementation represented by Bor (the block producer layer) and Heimdall (the validator layer).
6+
7+
This section provides architectural details of Polygon PoS.
8+
9+
In particular, and on the execution client side, it delineates on snapshots and state syncing, network configurations, and frequently used commands when running PoS nodes.
10+
11+
On the consesus client side, one finds descriptions on how Heimdall handles; authentication of account addresses, management of validators' keys, management of gas limits, enhancement of transaction verifications, balance transfers, staking and general chain management.
12+
13+
<!--
314
<div class="flex-figure" markdown="1">
4-
<div class="flex-figure-left" markdown="1">
15+
<div class="flex-figure-left" markdown="1"> -->
516

6-
On Polygon, the node is designed with a two-layer implementation represented by Bor (the block producer layer) and Heimdall (the validator layer).
717

818
</div>
919
<div class="flex-figure-right">

docs/pos/concepts/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
This section covers basic concepts necessary in understanding a few more aspects about Polygon PoS. Specifically the network's native token MATIC and its proposed replacement POL, two Ethereum improvement proposals (EIP-1559 and EIP-4337) pertaining to gas estimations, transaction costs, as well as account abstraction.
2+
3+
The section contains an elaborate discussion on the proposed transition from MATIC to POL as the Polygon PoS's native token. The POL subsection defines the POL token and continues to present, in a question-and-answer (Q&A) format, all the information that users need to know about the proposed transition. A subsequent subsection defines what the MATIC token is, gives an example script to send MATIC tokens from one account to another, the three different ways to acquire MATIC tokens and finally how to obtain test MATIC tokens.
4+
5+
In the Transactions subsection is a brief discussion on the types of transactions, how legacy transaction format works, and ways in which different types of transactions can be sent.
6+

docs/pos/concepts/tokens/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
The Tokens subsection focuses on the proposed Polygon PoS's native token POL and the soon to be replaced native token MATIC.
2+
3+
The POL subsection defines the POL token and continues to present, in a question-and-answer (Q&A) format, all the information that users need to know about the proposed transition.
4+
5+
The subsequent MATIC subsection defines what the MATIC token is, gives an example script to send MATIC tokens from one account to another, the three different ways to acquire MATIC tokens and finally how to obtain test MATIC tokens.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
2+
3+
The Transactions subsection provides information about the EIP-1559 as it applies to how gas estimations and costing of transations work on Polygon PoS. Further on, are discussions on new and old types of transaction formats and how they are processed in Polygon PoS.
4+
5+
Regarding account abstraction, the subsection contains a simplified overview of the different components of ERC-4337 and how these components work together. These are altogether; `UserOperation`, `Bundler`, `EntryPoint`, and `Contract Account`. Optional ERC-4337 components are `Paymasters` and `Aggregators`.
6+
7+
There is a extra subsection discussion several aspects of the so-called Meta-transactions. These are transactions that allow anyone to interact with the blockchain without requiring users to have tokens in order to pay for the network’s services.
8+

docs/pos/get-started/building-on-polygon.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
If you are an Ethereum developer, you are already a Polygon developer. Simply switch to the [Polygon RPC](https://polygon-rpc.com/) and get started. All the tools you are familiar with on the Ethereum blockchain are supported on Polygon by default, such as Truffle, Remix, and Web3js.
1+
Ethereum developers are by default Polygon developers. Welcome. Simply switch to the [Polygon RPC](https://polygon-rpc.com/) and get started. All familiar tools used on Ethereum are supported on Polygon. Whether it is Truffle, Remix or Web3js, Polygon offers the same UX as Ethereum.
2+
3+
Connect your wallet and deploy any decentralized application to either Polygon Mainnet or Polygon Mumbai Testnet.
4+
5+
Polygon Mumbai Testnet connects to Ethereum Goërli Testnet, which acts as its ParentChain, a testnet layer 1 (L1).
6+
7+
Find all the network-related details in the [network documentation](https://github.com/0xPolygon/wiki/blob/master/docs/pos/reference/rpc-endpoints.md).
28

3-
You can deploy decentralized applications to either Polygon Mumbai Testnet or the Mainnet. The Polygon Mumbai Testnet connects with the Ethereum Goërli Testnet, which acts as its ParentChain. You can find all the network-related details in the [network documentation](https://github.com/0xPolygon/wiki/blob/master/docs/operate/network.md).
49

510
## Overview
611

7-
Polygon consists of the three following layers:
12+
Polygon is a layer 2 (L2) network to Ethereum, employing a proof-of-stake (PoS) consensus mechanism, and thus composed of the following two layers:
813

9-
- Ethereum layer — a set of contracts on the Ethereum mainnet.
10-
- Heimdall layer — a set of proof-of-stake Heimdall nodes running in parallel to the Ethereum mainnet, monitoring the set of staking contracts deployed on the Ethereum mainnet, and committing the Polygon Network checkpoints to the Ethereum mainnet. Heimdall is based on Tendermint.
11-
- Bor layer — a set of block-producing Bor nodes shuffled by Heimdall nodes. Bor is based on Go Ethereum.
14+
- Heimdall layer, a consensus layer consisting of a set of proof-of-stake Heimdall nodes for monitoring staking contracts deployed on the Ethereum mainnet, and committing the Polygon Network checkpoints to the Ethereum mainnet. Heimdall is based on Tendermint.
15+
- Bor layer, an execution layer which is made up of a set of block-producing Bor nodes shuffled by Heimdall nodes. Bor is based on Go Ethereum (Geth).
1216

13-
To be a validator on the Polygon Network, you must run:
17+
In order to be a validator on the Polygon Network, you need to:
1418

15-
- Sentry node a separate machine running a Heimdall node and a Bor node. A sentry node is open to all nodes on the Polygon Network.
16-
- Validator node a separate machine running a Heimdall node and a Bor node. A validator node is only open to its sentry node and closed to the rest of the network.
19+
- Run a sentry node, which is a separate machine running a Heimdall node and a Bor node. A sentry node is open to all nodes on the Polygon Network.
20+
- Run a validator node, which is a separate machine running a Heimdall node and a Bor node. A validator node is only open to its sentry node and closed to the rest of the network.
1721
- Stake the MATIC tokens in the staking contracts deployed on the Ethereum mainnet.
1822

1923
## Wallets

docs/pos/get-started/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
To be written.
1+
This section of the documentation provides guidelines to building on the Polygon PoS network. It gives a brief architectural overview of the PoS network, and showcases how various developer toolings commonly used on Ethereum work seamlessly on Polygon PoS.
2+
3+
It outlines how developers can build on Polygon PoS by connecting commonly used wallets such as Metamask and Arkane, deploying Ethereum smart contracts using Remix or developing a decentralized apps (dApps) using Fauna.

docs/pos/how-to/bridging/ethereum-polygon/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
Polygon brings you a trustless two-way transaction channel between Polygon PoS and Ethereum by introducing the cross-chain bridge. With this users can transfer tokens across Polygon PoS without incurring third-party risks and market liquidity limitations. **The PoS Bridge is available on both Mumbai Testnet as well as Polygon PoS Mainnet**. You can bridge assets to Polygon PoS using the [Polygon Wallet Suite](https://wallet.polygon.technology/polygon/bridge/deposit).
1+
Polygon brings you a trustless two-way transaction channel between Polygon PoS and Ethereum by introducing the cross-chain bridge. With this users can transfer tokens across Polygon PoS without incurring third-party risks and market liquidity limitations.
22

3-
Polygon also offers the **zkEVM Bridge** which can also be used via the [Polygon Wallet Suite](https://wallet.polygon.technology/polygon/bridge/deposit). This document is not about zkEVM Bridge.
3+
The PoS Bridge is available on both Mumbai Testnet as well as Polygon PoS Mainnet. You can bridge assets to Polygon PoS using the [Polygon Wallet Suite](https://wallet.polygon.technology/polygon/bridge/deposit).
44

5-
**Polygon PoS bridge provides a bridging mechanism that is near-instant, low-cost, and quite flexible**.
5+
Polygon also offers the zkEVM Bridge which can also be used via the [Polygon Wallet Suite](https://wallet.polygon.technology/polygon/bridge/deposit). This document is not about zkEVM Bridge.
66

7-
**There is no change to the circulating supply of your token when it crosses the bridge**;
7+
Polygon PoS bridge provides a bridging mechanism that is near-instant, low-cost, and quite flexible.
8+
9+
There is no change to the circulating supply of your token when it crosses the bridge;
810

911
- Tokens that leave the Ethereum network are locked and the same number of tokens are minted on Polygon PoS as a pegged token (1:1).
1012
- To move the tokens back to the Ethereum network, tokens are burned on Polygon PoS network and unlocked on Ethereum network during the process.

docs/pos/how-to/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Welcome to the Polygon PoS how-to section! There's a bunch of how-tos here to help you get started with common technical tasks. We hope you find them useful.
1+
Welcome to the Polygon PoS how-to section! There is a number of how-to guides here to help you get started with common technical tasks. We hope you find them useful.
2+
3+
The section covers a number of tutorials on how to operate different types of Polygon PoS nodes, how to bridge assets from PoS to Ethereum and conversely, or send messages between L1 and L2 networks, and how to work with smart contracts.
4+
5+
Included in the section is an elaborate startup guide for users who wish to implement the Polygon DID, which is a three-part package consisting of an indentity-registrar, an identity-resolver and an identity-registry-contract.

docs/pos/how-to/operating/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
This subsection contains details on the requirements users need in order to setup the different types of Polygon PoS nodes, and guides on how to setup each type of a Polygon PoS node.
2+
3+
Polygon PoS users can participate in the network in various ways. Depending on the extend to which each user wishes to participate and their individual computational capacity, they can connect to the network as; Full nodes, Validator nodes, Access nodes, Archive nodes or Erigon nodes. Details on each of these nodes, and their requirements, are elaborated on in the ensuing sub-subsections.

docs/zkEVM/concepts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This section covers some of the basic concepts crucial to understanding the design approach of Polygon zkEVM. Since Polygon zkEVM emulates the EVM, a few EVM basics are herein detailed.
22

3-
One of the differences between Polygon zkEVM and Ethereum is in the way their states are recorded. Ethereum uses Patricia Merkle tries while Polygon zkEVM uses Sparse Merkle trees (SMTs). The Concepts section therefore discusses how SMTs are constructed and the Create, Read, Update and Delete operations executed on the SMTs.
3+
One of the differences between Polygon zkEVM and Ethereum is in the way their states are recorded. Ethereum uses Patricia Merkle tries while Polygon zkEVM uses Sparse Merkle trees (SMTs). The Concepts section therefore discusses how SMTs are constructed and the operations executable on the SMTs. These are Create, Read, Update and Delete, or simply CRUD.
44

5-
The design approach is delineated in terms of an example: the multiplicative Fibonacci state machine. Further details of the Polygon zkEVM design are given in the form of a 'Generic state machine', which involves a program written in zkASM called the ROM.
5+
The design approach is delineated in terms of an example: the multiplicative Fibonacci state machine. Further details of the Polygon zkEVM's state machine design are given in the form of a 'Generic state machine', which involves a program written in zkASM called the ROM.
66

77
This section also includes a brief discussion on what CIRCOM is, and how it is used in the zkProver.

0 commit comments

Comments
 (0)