Mantle 백서

Mantle

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 37쪽 중 28쪽

currently set at 7 days&#x20; ### Q. Are fraud proofs online on Mantle Network? As of mainnet alpha release, fraud proofs are **in development**. For more details on Mantle Network's implementation, check out the page on [Fraud Proofs](/network/network/introduction/concepts/fraud-proofs) ### Q. How does modular data availability bring down transaction costs? The majority of L2 gas costs (>70%) are incurred as the cost to publish data on L1 Ethereum. With Mantle DA powered by EigenDA technology, only state root data (along with very limited transaction data) is posted to L1 contracts, while the rollup data is posted to Mantle DA, which helps bring down the overall cost significantly. ### Q. Can I fetch DA transaction details with an API? Currently, the only way see DA transaction history is via the Explorer frontend. Here's the link: <https://explorer.mantle.xyz/eigenda-batches> ### Q. Where can I find the brand resources for Mantle Network? You can access brand resources by following [this link](https://drive.google.com/drive/folders/1GGyOmob0i86mEUqBTPvZLAhgnzt3Oxaa). ## Protocol ### Q. Do Rollup Verifier nodes verify every piece of block data processed by the Sequencer? Yes. All updated state roots are verified by Rollup Verifiers before they are submitted to L1 as a part of the rollup process. ### Q. Do Rollup Verifiers sync rollup data from the Sequencer? No. Rollup Verifiers sync rollup data from Mantle DA, which they use to generate state roots and verify the updated state roots generated by the Sequencer before they are published to L1.&#x20; ### Q. Before fraud proofs are online on Mantle Network, what happens if a Rollup Verifier detects that L2 block data doesn't match with the data being submitted to L1? &#x20;If Rollup Verifiers detect a discrepancy when verifying the updated state roots, the rollup mechanism on L2 is temporarily halted. You can learn more about failure handling here: [Architecture and Roadmap](/network/network/introduction/architecture-and-roadmap#failure-handling). ## Smart Contracts ### Q. Where can I find multicall contracts on Mantle Network? * Mainnet multicall address: 0xcA11bde05977b3631167028862bE2a173976CA11 * Testnet multicall address: 0xcA11bde05977b3631167028862bE2a173976CA11 ### Q. Does Mantle Network support contract creation using CREATE2 and CREATE3 ? We currently support CREATE2, and are working on supporting CREATE3 in a future update. Check out the section on [opcode differences](/network/network/for-devs/developing-on-mantle#opcode-differences-between-evm-and-mantle-vm) to learn more. ### Q. What's the $WMNT token contract address? **Mainnet:** `0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8` - [Explorer link](https://explorer.mantle.xyz/address/0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8) Testnet: `0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905` - [Explorer link](https://explorer.testnet.mantle.xyz/address/0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905) ## Transactions ### Q. What's the transaction lifecycle like on Mantle Network? 1. A wallet or dApp initiates a transaction 2. Sequencer executes transaction 3. TSS network signs state roots guaranteeing correctness 4. State root data is posted to L1 Ethereum, transaction data is posted to Mante DA For a detailed description, check out the page on [Transaction Lifecycle](/network/network/introduction/transaction-lifecycle) ### Q. I noticed unknown gas fee being deducted from my wallet when sending transactions. Why is that? Our gas oracle API currently only supports fetching L2 gas fee. The extra fee being deducted is the L1 rollup fee. This will be fixed soon in a future update! ### Q. Why does my transaction fail when I try to send a transaction with the "Max" amount from my wallet? A transaction sent with the "Max" amount fails with an error stating that the transaction is underpriced because our gas oracle currently only supports fetching L2 gas fee estimation, which is why the wallet undercalculates the actual gas fee that needs to paid since it is not including the L1 rollup fee. This issue will be addressed with a future network update. In the meantime, we recommend leaving at least 0.5 $MNT in your wallet to pay for L1 rollup fees.&#x20; {% hint style="info" %} For example, if you have 10 $MNT in your wallet, please limit the transaction amount to a maximum of 9.5 $MNT for a single transaction. {% endhint %} ### Q. Are there any limits set for batch transaction size? The maximum batch transaction size is derived from the target gas configuration. Mantle Network is the same as Ethereum in this regard. ### Q. Are there any limits on the gas price that can be paid when sending transactions on Mantle Network? Currently, the gas range has been set to 0.05 - 200 Gwei in order to protect users from overpaying gas fees. This limit is active on Mantle Mainnet, and will soon be applied to testnet as well. ### Q. Does Mantle Network support EIP-1559? Currently, Mantle Network does **NOT** support EIP-1559, so we recommend using legacy structuring for your transactions. The order of transactions is FIFO, and it will be executed based on the sequence (time of receiving) they are received in. ### Q. Does Mantle Network support transactions that aren't signed with the chain ID? No, Mantle Network does not support pre-[EIP155](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md) transactions that aren't signed with the chain ID. ## Explorer ### Q. Does the RPC rate limit affect Explorer API usage too? Yes. Once the RPC rate limit is reached, access to Explorer API will also be limited. ## Node operators ### Q. How big is the current testnet state? You can find details on this subject here: {% embed url="<https://github.com/mantlenetworkio/networks/blob/main/run-node.md#approximate-disk-usage>" %} # Network Roles Understanding the network protocol through its active participants {% hint style="danger" %} Mantle v2 Tectonic has been released, please move to the new [documentation](https://docs-v2.mantle.xyz/)! {% endhint %} ## Defining Network Roles There are currently four roles for nodes on Mantle network, namely **Sequencers**, **Threshold Signature Scheme (TSS) nodes**, **Rollup Verifiers/Replica Nodes, and Data Availability (DA) nodes**. Here's a simple description of their responsibilities. ### Sequencers * Receive and record transactions sent by users in real time * Produce blocks on L2 * Rollup transactions to generate batches with execution state roots * Get blocks validated by the TSS module * Broadcast block data across the network (L1 and L2) {% hint style="info" %} In the initial phases of release, Mantle core team will operate its own centralized Sequencer. However, as part of our roadmap we will be decentralizing the Sequencer eventually, creating another opportunity for nodes to contribute to Mantle. {% endhint %} ### Threshold Signature Scheme (TSS) Nodes * "Sign off" transaction batches produced by Sequencers to be sent to L1 * Broadcast batches across the L2 network after verification {% hint style="info" %} TSS nodes verify the state roots generated by Sequencers to determine their correctness. The state roots **MUST** be signed by a TSS node before they are sent to Ethereum to be recorded. {% endhint %} {% hint style="info" %} During the initial phases of release, TSS nodes are run by a group of reputable institutions, but will eventually be voted in via Mantle governance permissionlessly. {% endhint %} ### Rollup Verifiers / Replica Nodes * Sync rollup data from Mantle's trusted sequencer * Verify the state roots submitted by Sequencers on L2 * Initiate fraud proofs when invalid state data is found * Serve rollup data to users {% hint style="info" %} Fraud proofs are a part of our [roadmap](/network/network/introduction/architecture-and-roadmap#roadmap) and the feature will be added eventually via a Mainnet upgrade. {% endhint %} ### DA Nodes * Opt into taking the responsibility of storing a copy of Mantle transaction data to have it ready for access whenever necessary * Make a commitment by signing the block data they provide using the [BLS signature scheme](https://en.wikipedia.org/wiki/BLS_digital_signature) guaranteeing its usability. These signatures are verified by an EigenDA contract on Ethereum {% hint style="info" %} Learn more in the [Data Availability](/network/network/introduction/concepts/data-availability) section. {% endhint %} Mantle DA powered by EigenDA technology consists of a set of supported interactions between four major components as described below. <figure><img src="https://3701411312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNHXgeqhgrznnRobzznxl%2Fuploads%2FAsnGr1cXLy9Og1JIVxE8%2Fupdated%20da%20interaction.jpg?alt=media&amp;token=1718a0e4-4941-4255-a886-c8c5af2fdfef" alt=""><figcaption></figcaption></figure> #### Operators The service providers of the DA network and need to confirm their commitment through digital signatures, which place staked assets as a collateral guarantee on their participation. An Operator carries out the following tasks: * Run nodes which store chunks of data for a pre-defined time period and serve these chunks upon request #### Dispersers They're the users of Mantle DA's data availability service, paying for its economic guarantees of data availability. This role may be played by a rollup [Sequencer](/network/network/for-validators/network-roles#sequencers). A Disperser performs the following tasks: * Encodes its data into chunks, posts funds for making the data available for a fixed amount of time, and distributes the encoded chunks to Mantle DA operators * Aggregates signatures from the operators and posts an attestation to the blockchain, confirming availability of the data of interest for the specified time period #### Challengers They're interested parties who play an important role in the Proof of Custody protocol. Challengers perform the following tasks: * Monitor certain verifiable operations of the protocol (which in the optimistic case are not verified or resolved on-chain)&#x20; * Permissionlessly force problematic operations to be resolved on-chain, resulting in an operator’s stake being slashed {% hint style="info" %} The Proof of Custody protocol is in development stage and will go online with a future Mainnet upgrade. {% endhint %} #### `MantleLayer` and `MantleDA` Smart Contracts The collection of DA-related smart contracts running on Ethereum take care of the following: * Ensure that data is only accepted as available when a group of operators having a sufficient amount of stake has collectively signed * Implement the proof-of-custody protocol and provide mechanisms for a challenger to disclose data on chain * Verify the validity of data submitted by Challengers against a signed commitment, and enact slashing as dictated by the proof-of-custody protocol The data storage process on Mantle DA is as follows: 1. Encoding: Disperser encodes data chunks and generates KZG multireveal proofs which will allow Operators to verify the correctness of their chunk. 2. Dispersal: Disperser sends data chunks to respective DA Operators 3. Attestation: Operators verify their chunks against the global commitment. If the verification is successful, the Operator proceeds to store their chunk of data for the duration specified by the Disperser and sends back an attestation 4. Aggregation: If enough signatures are received, the Disperser aggregates the signatures and publishes them to L1 Ethereum. ## **Why Run a Rollup Verifier Node?** There are multiple advantages of running a Rollup Verifier node. 1. It grants many of the benefits of running an Ethereum node, such as the ability to simulate L2 transactions locally **without rate-limiting** (public RPCs may face such limitations)**.** 2. Allows anyone to verify the work performed by Sequencers by **re-deriving output roots** and **comparing** them against those submitted by the Sequencer. In case of a mismatch, verifiers will be able to perform a fault check and claim rewards by submitting fraud proofs on future versions of Mainnet. {% hint style="info" %} **dApp builders** are encouraged to consider the value addition of running a Rollup Verifier node given that the overhead costs tend to be low. {% endhint %} The diagram below illustrates how the Sequencer and Rollup Verifier fit together. Note that actions in <mark style="color:red;">red</mark> are performed by a **Sequencer**, while actions in <mark style="color:blue;">blue</mark> are performed by a **Rollup Verifier**: <figure><img src="https://lh4.googleusercontent.com/JV9Q7wwNHVZFhB2Cer5FX2dzZT_v6WtgcKvyLrXFLdp_QhuNYausSwCekBXGm-kNoT6KJrs1o9a3TaMMsKuntHLQwdBhrTVIVAeUBjJc5-KvyzFfeDh_oAADVbj_Ez4j4YvIrFSS3Av79OSpICMBB-Taj9evRc63PSlGamcJJhwAY9nChVSxJCD5Nc-fVA" alt=""><figcaption></figcaption></figure> # Deploy a Node # Deploying a Rollup Verifier/Replica Node Deploy a verifier node and sync rollup data as a part of Mantle network {% hint style="danger" %} Mantle v2 Tectonic has been released, please move to the new [documentation](https://docs-v2.mantle.xyz/)! {% endhint %} In order to build an app on Mantle network, you'll need access to a Mantle node. There are multiple public [Node RPC Providers](/network/network/for-devs/resources-and-tooling/node-rpc-providers) that you can choose from, or you can deploy your own depending on the requirements for your specific use cases. ## Running Your Own Node {% hint style="warning" %} If you run a node, please keep a close eye on the latest update on our [GitHub Release](https://github.com/mantlenetworkio/mantle/releases) page {% endhint %} #### **Hardware Requirements** Nodes need to store the transaction history of Mantle and run `l2geth`.&#x20; Recommended specs: * **CPU** - min. 4 cores, 8th Gen. or higher * **RAM** - min. 16 GB * **Storage** - min. 100 GB disk space free (HDD works for now, SSD is better) * **Bandwidth** - 10mb/s+ download #### Approximate Disk Usage <a href="#user-content-approximate-disk-usage" id="user-content-approximate-disk-usage"></a> Usage as of 2022-09-21: * Archive node: \~800gb * Full node: \~60gb #### Snapshot We recommend that you start the node with the latest [snapshot](https://github.com/mantlenetworkio/networks/blob/main/run-node-mainnet.md#download-latest-snapshot-from-mantle), so that you don't need to wait a long time to sync data. ### Deployment {% tabs %} {% tab title="Running the node by Docker" %} The recommended method to create a replica is to use [Docker](https://www.docker.com/) and the [Docker images we provide](https://hub.docker.com/u/mantlenetworkio). They include all the configuration settings. We use these images for our own systems, and as such they will be more thoroughly tested than any other configuration. #### Node Configuration You can find instructions to build and operate your node on Mantle testnet and mainnet by following the links below: * [**Testnet node**](https://github.com/mantlenetworkio/networks/blob/main/run-node.md) * [**Mainnet node**](https://github.com/mantlenetworkio/networks/blob/main/run-node-mainnet.md) {% endtab %} {% tab title="Running the node from binary" %} To compile a Mantle node locally and participate in the network as a Verifier, follow these steps: #### 1. Install Go and C Compiler Make sure Go (version 1.19) and a C compiler are installed on your system. You can use your preferred package manager (e.g., apt, yum, brew) to install them. #### 2. Clone the Mantle Repository Clone the Mantle GitHub repository using the following command: ```sh git clone https://github.com/mantlenetworkio/mantle.git ``` #### 3. Navigate to the `l2geth` Directory Navigate to the `l2geth` directory within the Mantle repository: ```sh cd mantle/l2geth ``` #### 4. Compile the Mantle Geth Node Choose a stable release here and compile the Mantle Geth node using the Makefile with the following command: ```sh git checkout v0.4.3-5 make geth ``` #### 5. Setup the environment ```sh git clone https://github.com/mantlenetworkio/networks.git cd networks cd mainnet/envs set -a . ./geth.env set +a mkdir ~/mantle_l2geth_data cd ../.. export ETH1_HTTP=https://rpc.ankr.com/eth # change this export SEQUENCER_CLIENT_HTTP=https://rpc.mantle.xyz export ROLLUP_STATE_DUMP_PATH=https://mantlenetworkio.github.io/networks/mainnet/genesis.json export ROLLUP_CLIENT_HTTP=https://dtl.mantle.xyz export ROLLUP_BACKEND='l2' export ETH1_CTC_DEPLOYMENT_HEIGHT=8 export RETRIES=60 export ROLLUP_VERIFIER_ENABLE='true' export DATADIR=~/mantle_l2geth_data cp ../mantle/l2geth/build/bin/geth . export PATH=$PATH:$(pwd) ``` {% hint style="info" %} 1. You need to change `ETH1_HTTP` to your own rpc 2. You need to change `DATADIR` to where you want to store data 3. If the sync speed is slow, try to change your DTL URL, you can check more details [here](#network-dtl-url). {% endhint %} 4. #### Start as a Verifier Start the node as a Verifier to join the Mantle network: ```sh sh geth.sh ``` This command launches a local node configured as a Verifier to participate in the validation process within Mantle network. {% endtab %} {% endtabs %} ## Appendix ### Network DTL URL You can change the DTL service URL based on the network your node is going to connect to by updating the `ROLLUP_CLIENT_HTTP` value in the `docker-compose.yml` file for the Docker way and the `./mainnet/envs/geth.env` for the binary way. <table><thead><tr><th width="125">Network</th><th width="87">Region</th><th>URL</th></tr></thead><tbody><tr><td>Mainnet</td><td>APAC</td><td><a href="https://dtl.mantle.xyz">https://dtl.mantle.xyz</a></td></tr><tr><td>Mainnet</td><td>APAC</td><td><a href="https://dtl-ap.mantle.xyz/">https://dtl-ap.mantle.xyz/</a></td></tr><tr><td>Mainnet</td><td>EU</td><td><a href="https://dtl-eu.mantle.xyz/">https://dtl-eu.mantle.xyz/</a></td></tr><tr><td>Mainnet</td><td>US</td><td><a href="https://dtl-us.mantle.xyz">https://dtl-us.mantle.xyz</a></td></tr><tr><td>Testnet</td><td>All</td><td><a href="https://dtl.testnet.mantle.xyz">https://dtl.testnet.mantle.xyz</a></td></tr></tbody></table> # Network Updates # Testnet v0.4.3 This network update brings about the following changes: * Optimized layer-2 (L2) transaction fee, allowing users to customize transaction fees within a wider range to support Account Abstraction (AA) * Optimized rollup submission strategy to achieve lower gas fees in scenarios with higher TPS * Optimized gas oracle data update strategy to ensure that the L2 network has a more stable real-time adjustment ability for transaction fees. * Added Mantle audit report files For more details on how the aforementioned features were included in the codebase, follow the links below to navigate to the Mantle GitHub repo.\ \ **GitHub Links:** * Full changelog: <https://github.com/mantlenetworkio/mantle/releases> * Relevant pull requests: * Optimized L2 transaction fee: <https://github.com/mantlenetworkio/mantle/pull/1144> * Optimized rollup submission strategy: <https://github.com/mantlenetworkio/mantle/pull/1301> * Optimized gas oracle data update strategy: * [https://github.com/mantlenetworkio/mantle/pull/1345](https://github.com/mantlenetworkio/mantle/pull/1345,) * <https://github.com/mantlenetworkio/mantle/pull/1346> * Mantle audit report files: <https://github.com/mantlenetworkio/mantle/pull/1333> ## Instructions for Node Operators Please follow the steps below to upgrade your node: 1. Stop current docker service 2. Change the image tag in the `docker-compose.yml`*,* Replace the current image from `mantlenetworkio/l2geth:v0.4.0-1` to [`mantlenetworkio/l2geth:v0.4.3`](https://hub.docker.com/r/mantlenetworkio/l2geth/tags) 3. Start new docker service {% hint style="info" %} Please note that the following configuration needs to be modified to start a new node: <https://github.com/mantlenetworkio/networks/pull/31/files> {%
프로젝트로 돌아가기