Skip to content

Commit 7d4184c

Browse files
committed
Learn section docs added
1 parent 0f5a975 commit 7d4184c

File tree

10 files changed

+130
-18
lines changed

10 files changed

+130
-18
lines changed

docs/learn/deep-dive-arch.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Deep-dive into the architecture
2+
3+
For a deep dive into the proposed architecture of Polygon 2.0, please read the blog post [here](https://polygon.technology/blog/polygon-2-0-protocol-vision-and-architecture). More details will be forthcoming and added to this section in the coming months.

docs/learn/index.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,26 @@ hide:
44
- toc
55
---
66

7-
TODO: learn section
7+
The Polygon Knowledge Layer consists of two parts. Firstly, documents that developers need in order to build with Polygon protocols. Secondly, resources necessary for learning about Polygon technologies.
8+
9+
The Learn section outlines scaling technologies, both live and in-development Polygon protocols, with the intention to display how they will all fit together.
10+
As these scaling technologies go live, details of the concepts will in tandem be documented and published.
11+
12+
This section gives you a peek into the future, the Polygon 2.0 vision which is community-driven.
13+
14+
## Polygon 2.0: The basics
15+
16+
Polygon technologies will help developers build in an elastically scalable and unified ecosystem of ZK-powered Layer 2s on Ethereum, where users can create, program and exchange value.
17+
18+
The Polygon 2.0 vision is a unified multichain ecosystem. A web of interoperable ZK-powered Ethereum L2s, with near-instant and atomic L2 <> L2 transactions, and designed to empower developers to build without limitations. Developers will choose to build dApps, design and launch dedicated application-specific L2 chains, or migrate existing EVM Layer 1 chains to become an L2.
19+
20+
The endgame of Polygon 2.0 is for developers to build in an environment that feels and functions more like the internet. This means a blockchain ecosystem that can scale without limit, seamlessly unified, and backed by the decentralization and security of Ethereum.
21+
22+
### Zero-knowledge is the key
23+
24+
Fundamentally, building this web of ZK-powered L2s comes down to one challenge: trustless, off-chain computation. In order to scale Ethereum, one needs to preserve Ethereum’s execution logic while making it more efficient.
25+
26+
The best way to accomplish this goal is through zero-knowledge cryptography as it is capable of providing verifiable proofs that attest to the integrity of off-chain computations. Otherwise, scaling technologies often have to add additional social-economic mechanisms to mediate off-chain computations. The consequence of which is delayed settlement of transactions.
27+
28+
Polygon 2.0 applies the open source, zero-knowledge scaling technology developed at Polygon Labs, and this will allow Ethereum to scale to the limits of the internet.
29+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Polygon 2.0 envisions a network of ZK-powered L2s on Ethereum that unify liquidity across the ecosystem and can scale on demand. Here is how that vision comes into focus.
2+
3+
### Unified liquidity
4+
5+
In an interoperable Polygon ecosystem, access to cross-chain liquidity will be a solved problem. This is due to the in-development interop layer, which is what distinguishes the Polygon ecosystem from other multi-chain scaling architectures.
6+
7+
The interop layer will be a service that aggregates proofs and coordinates cross-chain transactions between L2 chains built using Polygon technology, enabling unified liquidity. The interop layer expands on the design of the LxLy protocol, currently used by Polygon zkEVM. The core characteristics of the interop layer are:
8+
9+
- Proof aggregation: The aggregator accepts ZK proofs and Message Queues' representations (like Merkle roots) from chains, aggregates these ZK proofs into a single ZK proof, and submits the proof to Ethereum.
10+
- Atomic cross-chain execution: Bundles of transactions are submitted to many chains in the Polygon network, with the guarantee that all transactions will be successfully executed, or none will be included.
11+
12+
With readily-available liquidity, developers can focus on use-case, rather than bootstrapping users. By abstracting the complexity of cross-chain communication, from the perspective of the end-user, the entire Polygon network will feel like using a single chain.
13+
14+
### Unlimited scale
15+
16+
Polygon CDK is an open source toolkit that allows developers to design and launch ZK-powered chains on demand–or migrate existing EVM-based L1 chains into L2s–backed by the security of Ethereum. In practice, it means unlimited scale in an environment unified through the interop layer.
17+
18+
Existing approaches to an ecosystem of L2s often provide new blockspace at the expense of a chain’s sovereignty. In contrast, Polygon CDK helps developers preserve a chain’s self-determination. The tools available in Polygon CDK are modular: Chains may use any parts of the stack they need, and none that they don’t. Configs will include, but are not limited to, customizable gas tokens, rollup and validium modes, support for different data availability solutions, and more.
19+
20+
Even as the Polygon ecosystem feels like a single chain, each specific chain will be distinctive, with Polygon PoS, Polygon zkEVM, each Polygon CDK chain, and, eventually, Polygon Miden, providing differentiated feature-sets that will suit some projects more than others.

docs/learn/polygon-protocols.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## Polygon PoS
2+
3+
Polygon PoS is a widely-adopted EVM-compatible sidechain designed for low transaction costs and fast transaction times.
4+
5+
### Where Polygon PoS is heading
6+
7+
Here is how the proposed development, with consensus of the Polygon community, will be achieved:
8+
9+
- Changes to network architecture. Becoming a zero-knowledge validium instead of a zk-rollup.
10+
- Changes to network token.
11+
- Introduction of a Staking Layer, which will eventually serve all L2 chains in the Polygon network.
12+
13+
Polygon 2.0: A pre-PIP discussion for upgrading Polygon PoS to a zkEVM validium is underway. This community discussion is guiding the technical specification of the potential upgrade. If this PIP is accepted, Polygon PoS will eventually plug into the interop layer that will connect the entire Polygon network.
14+
15+
Phase 0: PIP-18 has suggested a phased approach to implementation of Polygon 2.0. As it relates to Polygon PoS, Phase 0 includes:
16+
17+
- The initiation of the POL upgrade
18+
- The upgrade from MATIC to POL as the native (gas) token for PoS
19+
- The adoption of POL as the staking token for Polygon PoS
20+
- The launch of the Staking Layer and migration of Polygon public chains to consequently leverage it.
21+
22+
## Polygon zkEVM
23+
24+
Polygon zkEVM is a Type-3, EVM-equivalent ZK rollup, which maximizes network security by posting both ZK proofs and transaction data to Ethereum.
25+
26+
### Where Polygon zkEVM is heading
27+
28+
Type 2: The primary goal for Polygon zkEVM is to become a full Type-2 ZK-EVM, supporting all nine precompiled smart contracts and all the opcodes.
29+
30+
Security: The two near-term priorities for Polygon zkEVM are:
31+
- Adding support for a forced-transaction mechanism that will make the network censorship-resistant.
32+
- Lengthening the 10-day timelock for network upgrades.
33+
34+
EVM-equivalence: As EIPs change and shape Ethereum’s execution logic, Polygon zkEVM will evolve to maintain EVM-equivalence. The two most important forthcoming changes are:
35+
- EIP-4844: Expected in the Cancun hard fork, proto-Danksharding creates a low-cost alternative to CALLDATA, expected to greatly reduce transaction fees on rollups.
36+
- EIP-7212: A new precompiled contract will support signature verifications in the secp256r1 elliptic curve.
37+
38+
Polygon 2.0: Polygon zkEVM will continue to offer the strongest open source software security guarantees by making transaction data available (DA) on Ethereum. Eventually, Polygon zkEVM will plug into the unified interop layer that will help connect the entire Polygon ecosystem.
39+
40+
## Polygon CDK
41+
42+
Polygon CDK is a collection of open source software components for launching ZK-powered L2 chains on Ethereum. Currently, it supports two primary configurations, rollup mode and validium mode, with an additional customizable data availability committee (DAC) for validium chains.
43+
44+
### Where Polygon CDK is heading
45+
46+
Upcoming release: The next release of Polygon CDK, expected in Q1 2024, will support a wider set of features and configurations. These include:
47+
48+
- The unified LxLy bridge: As the first phase of the interop layer, projects building with CDK will have the option to plug into the unified LxLy bridge that will, eventually, help connect the entire Polygon ecosystem.
49+
- Custom native (gas) tokens.
50+
- Custom allow-lists for smart contracts and transactions.
51+
- Support for modular, third-party data availability solutions.
52+
53+
## Polygon Miden
54+
55+
Polygon Miden is an in-development, novel ZK rollup designed as a zkVM. Powered by the Miden VM, Polygon Miden extends Ethereum’s feature set, providing throughput and privacy features that are beyond the capabilities of the EVM.
56+
57+
### Where Polygon Miden is heading
58+
59+
A testnet for Polygon Miden is expected to launch in Q1 2024, with mainnet following later in the year.
60+
61+
Polygon 2.0: Once Polygon Miden is on mainnet, it will plug into the interop layer that will help connect the entire Polygon ecosystem.

docs/zkEVM/get-started/quick-start/connect-wallet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
!!!caution
33
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures]() section.
44

5-
Add the **Polygon zkEVM** network to your wallet in order to interact with either the mainnet or the testnet.
5+
Connect to either the Polygon zkEVM's mainnet or the testnet.
66

7-
Navigate to `Add network` in your wallet, and enter the respective network details as given in the below table:
7+
Add the Polygon zkEVM network of your choice to your wallet by navigating to `Add network`, and enter the respective network details as given in the below table:
88

99
| Network | RPC URL | ChainID | Block Explorer URL | Currency |
1010
| ------- | ------------------------------- | ---------------- | ---------------- | ----- |
1111
| Polygon zkEVM | `https://zkevm-rpc.com` | `1101` | `https://zkevm.polygonscan.com/` | **ETH** |
1212
| zkEVM Testnet | `https://rpc.public.zkevm-test.net` | `1442` | `https://testnet-zkevm.polygonscan.com` | **ETH** |
1313

14-
Here is a video tutorial on **how to add Polygon zkEVM Testnet to MetaMask and deploy smart contracts**:
14+
Here is a video tutorial on how to add Polygon zkEVM Testnet to MetaMask and deploy smart contracts:
1515

1616
<video loop width="100%" height="100%" controls="true" >
1717
<source type="video/mp4" src="../../../../img/zkEVM/tutorial.mp4"></source>

docs/zkEVM/get-started/setup-nodes/local-node.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
21
Developers who wish to test their own smart contracts, experiment with new code, or simply test a zk-rollup network on their local machines can do so by setting up Polygon zkEVM's local development environment.
32

3+
Developers can setup a node with either the Polygon zkEVM's mainnet or the testnet.
4+
45
This tutorial is a guide to setting up a local but single zkEVM node. It is _single_ because it has no connections to external peers. It is a sandbox environment existing only on the user's local machine.
56

67
!!!caution

docs/zkEVM/get-started/setup-nodes/production-node.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
21
Polygon zkEVM's Mainnet Beta is available for developers to launch smart contracts, execute transactions, and experiment with the network. This tutorial extends the exploration by allowing developers to launch their own production zkNode.
32

3+
Developers can setup a production node with either the Polygon zkEVM's mainnet or the testnet.
4+
45
After spinning up an instance of the production zkNode, you will be able to run the Synchronizer and utilize the JSON-RPC interface.
56

67
!!!info

docs/zkEVM/how-to/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
The aim with this section is to demostrate that existing smart contracts, developer toolings and wallets work seamlessly in Polygon zkEVM as in Ethereum.
22

3-
Herein are guides to writing a smart contract using the OpenZeppelin Wizard, deploying an NFT using Foundry, deploying an ERC-20 token using Hardhat, and verifying a smart contract either manually on the Explorer or using Remix.
3+
Herein are guides to; writing a smart contract using the OpenZeppelin Wizard, deploying an NFT using Foundry, deploying an ERC-20 token using Hardhat, and verifying a smart contract either manually on the Explorer or using Remix.

docs/zkEVM/how-to/verify-contract.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,24 @@ After successfully compiling a smart contract, follow the next steps to verify y
2424

2525
Various frameworks have specific ways to flatten the source code. Our examples are **Remix** and **Foundry**.
2626

27-
#### Using Remix
27+
#### Using Remix
2828

29-
In order to flatten the contract code with Remix, one needs to only right-click on the contract name and select **Flatten** option from the drop-down menu that appears. See the below figure for reference.
29+
In order to flatten the contract code with Remix, one needs to only right-click on the contract name and select **Flatten** option from the drop-down menu that appears. See the below figure for reference.
3030

31-
![Selecting the flatten code option](../../img/zkEVM/flatten-code-remix.png)
31+
![Selecting the flatten code option](../../img/zkEVM/flatten-code-remix.png)
3232

33-
After selecting **Flatten**, a new `.sol` file with the suffix `_flatten.sol` is automatically created. Copy the contents of the new `<Original-Name>_flatten.sol` file and paste into the `Enter the Solidity Contract` field in the explorer.
33+
After selecting **Flatten**, a new `.sol` file with the suffix `_flatten.sol` is automatically created. Copy the contents of the new `<Original-Name>_flatten.sol` file and paste into the `Enter the Solidity Contract` field in the explorer.
3434

35-
#### Using Foundry
35+
#### Using Foundry
3636

37-
In order to flatten the code using Foundry, the following command can be used:
37+
In order to flatten the code using Foundry, the following command can be used:
3838

39-
```bash
40-
forge flatten src/<Contract-Name> -o <Any-Name-For-Flattened-Code>.sol
41-
```
39+
```bash
40+
forge flatten src/<Contract-Name> -o <Any-Name-For-Flattened-Code>.sol
41+
```
42+
43+
With this command, the flattened code gets saved in the `<Any-Name-For-Flattened-Code>.sol` file. Copy the contents of the new `<Any-Name-For-Flattened-Code>.sol` file and paste into the `Enter the Solodity Contract` field in the [explorer](https://testnet-zkevm.polygonscan.com).
4244

43-
With this command, the flattened code gets saved in the `<Any-Name-For-Flattened-Code>.sol` file. Copy the contents of the new `<Any-Name-For-Flattened-Code>.sol` file and paste into the `Enter the Solodity Contract` field in the [explorer](https://testnet-zkevm.polygonscan.com).
4445

4546
??? "Standard input JSON"
4647
Click **Next** after selecting the **via Standard Input JSON** option.

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ nav:
425425
- zkEVM testnet: https://explorer-ui.mainnet.zkevm-test.net/
426426
- OKLink: https://www.oklink.com/polygon
427427
- Learn:
428-
- learn/index.md
428+
- Learn: learn/index.md
429+
- Unified liquidity and scalability: learn/liquidity-and-scalability.md
430+
- Polygon protocols: learn/polygon-protocols.md
431+
- Polygon 2.0 architecture: learn/deep-dive-arch.md
429432

430433
extra:
431434
generator: false

0 commit comments

Comments
 (0)