Skip to content

Commit b604725

Browse files
Maar-ioMar.ioandabak
authored
Mainnet basic data (#611)
* mainnet basic data * Update bridge-to-zkevm.md generalize to any wallet * Update bridge-to-zkevm.md --------- Co-authored-by: Mar.io <mario@stake.co.jp> Co-authored-by: Ivan <95318860+andabak@users.noreply.github.com>
1 parent 0176c25 commit b604725

File tree

5 files changed

+69
-36
lines changed

5 files changed

+69
-36
lines changed

docs/build/zkEVM/bridge-to-zkevm.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ import walletselect from '/docs/build/zkEVM/img/wallet-select.jpg'
1515

1616
## Overview
1717

18-
Here you will find information about how to bridge assets to the Astar zkEVM. Presently, there are two options for bridging assets to the zkEVM:
18+
Here you will find information about how to bridge assets to the Astar zkEVM, both to **zKatana testnet** and to **Astar zkEVM mainnet**. Presently, there are two options for bridging assets to the zkEVM:
1919

2020
1. Ethereum L1 to Astar zkEVM -> Bridged ETH is the native token required for testing and deployment of dApps on the Astar zkEVM, so before using the network, developers need to bridge some ETH from Layer 1 to Layer 2. Accessible through the Astar Portal, which can take approximately 10-30 minutes, depending on network usage.
2121
2. _Astar Parachain to Astar zkEVM (currently under development) -> A 3rd-party asset bridge or message network facilitating locking and minting of synthetic (wrapped) assets between Astar Substrate EVM and Astar zkEVM. See the [integrations section](/docs/build/zkEVM/integrations/bridges-relays/) for more information about how to use 3rd-party bridge services and compatible assets._
2222

2323
### Transfer ETH using the Astar Portal
2424

25-
Visit the [Astar Portal](https://portal.astar.network) and connect MetaMask.
25+
Visit the [Astar Portal](https://portal.astar.network) and connect your wallet.
2626

27+
:::note
28+
This example is using MetaMask wallet and examples are with for the testnet but same applies for the mainnet.
29+
:::
2730

2831
<div style={{textAlign: 'center'}}>
2932
<img src={walletselect} style={{width: 400}} />
@@ -38,15 +41,15 @@ Use the network selector and switch to zKatana network, or allow MetaMask to swi
3841
</div>
3942

4043

41-
Click on the Bridge tab on the left-hand side. Ensure Sepolia is selected as Bridge source, and zKatana is selected as destination. After you have entered the amount of ETH to transfer, press the Confirm button.
44+
Click on the Bridge tab on the left-hand side. Ensure Sepolia is selected as Bridge source, and zKatana is selected as destination. After you have entered the amount of ETH to transfer, press the Confirm button.
4245

4346

4447
<div style={{textAlign: 'center'}}>
4548
<img src={bridge2} style={{width: 1000}} />
4649
</div>
4750

4851

49-
Sign the MetaMask transaction.
52+
Sign the MetaMask transaction.
5053

5154
:::note
5255
Once the transaction shows as confirmed on the MetaMask Activity tab, it will take approximately 5-10 minutes for the Astar Portal and MetaMask to update your balance on the zKatana network side.

docs/build/zkEVM/fee.md

+32-9
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,36 @@ curl https://rpc.zkatana.gelato.digital/ \
3030
The result is the hex value of the gas price in wei.
3131

3232
## Use Blockscout Price Oracle
33-
Blockscout Price Oracle calculates the gas price from the average of previous blocks. It doesn't call `eth_gasPrice`.
33+
Blockscout Price Oracle calculates the gas price from the average of previous blocks. It doesn't call `eth_gasPrice`.
34+
3435
<Tabs>
35-
<TabItem value="testnet" label="zKatana testnet" default>
36+
<TabItem value="Mainnet" label="Astar zkEVM" default>
37+
38+
Send a GET request to the [Blockscout Price Oracle endpoint](https://astar-zkevm.explorer.startale.com/api/v1/gas-price-oracle) to get a gas price recommendation from this oracle.
39+
40+
#### cURL
41+
42+
```bash
43+
curl https://astar-zkevm.explorer.startale.com/api/v1/gas-price-oracle
44+
```
45+
46+
#### JavaScript
47+
48+
```javascript
49+
fetch('https://astar-zkevm.explorer.startale.com/api/v1/gas-price-oracle')
50+
.then(response => response.json())
51+
.then(json => console.log(json))
52+
```
53+
54+
#### Python
55+
56+
```python
57+
import requests
58+
requests.get('https://astar-zkevm.explorer.startale.com/api/v1/gas-price-oracle').json()
59+
```
60+
</TabItem>
61+
62+
<TabItem value="testnet" label="zKatana testnet">
3663

3764
Send a GET request to the [Blockscout Price Oracle endpoint](https://zkatana.blockscout.com/api/v1/gas-price-oracle) to get a gas price recommendation from this oracle.
3865

@@ -56,10 +83,6 @@ fetch('https://zkatana.blockscout.com/api/v1/gas-price-oracle')
5683
import requests
5784
requests.get('https://zkatana.blockscout.com/api/v1/gas-price-oracle').json()
5885
```
59-
60-
</TabItem>
61-
<TabItem value="Mainnet" label="Astar zkEVM">
62-
coming soon...
6386
</TabItem>
6487

6588
</Tabs>
@@ -70,9 +93,9 @@ An example JSON response from Blockscout Price Oracle will look like this:
7093

7194
```json
7295
{
73-
"average":0.02,
74-
"fast":0.02,
75-
"slow":0.02,
96+
"average":3.02,
97+
"fast":3.02,
98+
"slow":3.02,
7699
}
77100
```
78101

docs/build/zkEVM/quickstart.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,39 @@ Solidity developers are right at home on Astar zkEVM. Simply switch to the zkEVM
2020
No special tools or wallets are required to build or interact with Astar zkEVM.
2121
:::
2222

23-
Developers can deploy existing contracts from other EVM chains to the zkEVM, and users are able to deposit assets from Ethereum to transact on the zkEVM in batches, which are ultimately finalized through novel use of zero-knowledge proofs. Native account abstraction means developers can craft user interfaces that are more intuitive and web2-like, that eliminate complexity and drastically simplify the onboarding process.
23+
Developers can deploy existing contracts from other EVM chains to the zkEVM, and users are able to deposit assets from Ethereum to transact on the zkEVM in batches, which are ultimately finalized through novel use of zero-knowledge proofs. Native account abstraction means developers can craft user interfaces that are more intuitive and web2-like, that eliminate complexity and drastically simplify the onboarding process.
2424

2525
## Connecting to zkEVM
2626

2727
:::info Reminder
28-
**Astar zKatana testnet and its related documentation are under active development.**
28+
**Astar zKatana testnet and its related documentation are under active development.**
2929

3030
All feedback is welcome and highly appreciated, so please report errors or inconsistencies to a team member or as an issue on the [Astar Docs Github repo](https://github.com/AstarNetwork/astar-docs/issues), thank you.
3131
:::
3232

3333
To add the **Astar zkEVM** network to your wallet manually, enter the following details :
3434
<Tabs>
35-
<TabItem value="testnet" label="zKatana Testnet" default>
35+
<TabItem value="mainnet" label="Astar zkEVM Mainnet" default>
36+
| RPC URL | ChainID | Block Explorer URL | Currency |
37+
| ------------------------------- | ---------------- | ---------------- | ----- |
38+
| `https://rpc.startale.com/astar-zkevm` | `3776` | [https://astar-zkevm.explorer.startale.com/](https://astar-zkevm.explorer.startale.com/) | **ETH** | []
39+
</TabItem>
3640

41+
<TabItem value="testnet" label="zKatana Testnet">
3742
| RPC URL | ChainID | Block Explorer URL | Currency |
3843
| ------------------------------- | ---------------- | ---------------- | ----- |
3944
| `https://rpc.startale.com/zkatana` | `1261120` | [https://zkatana.explorer.startale.com/](https://zkatana.explorer.startale.com/) | **ETH** |
4045
| `https://rpc.zkatana.gelato.digital` | `1261120` | [https://zkatana.blockscout.com/](https://zkatana.blockscout.com/) | **ETH** |
4146
| `https://astar-zkatana-rpc.dwellir.com` | `1261120` | | **ETH** |
4247
</TabItem>
4348

44-
<TabItem value="mainnet" label="Astar zkEVM Mainnet" disabled>
45-
46-
| RPC URL | ChainID | Block Explorer URL | Currency |
47-
| ------------------------------- | ---------------- | ---------------- | ----- |
48-
| `coming soon...` | `-` | `-` | **ETH** |
49-
</TabItem>
5049
</Tabs>
5150

5251
To add the network to MetaMask, use the data above or the link at the bottom of the respective block explorer page.
5352

5453
## Bridging Assets
5554

56-
The next step is to [bridge assets](/docs/build/zkEVM/bridge-to-zkevm.md) from Ethereum &rarr; Astar zkEVM.
55+
The next step is to [bridge assets](/docs/build/zkEVM/bridge-to-zkevm.md) from Ethereum &rarr; Astar zkEVM.
5756

5857
:::important
5958
Astar's canonical [zkEVM Bridge](https://portal.astar.network) does not inherit any counterparty risk compared to 3rd party bridge services, and is trustless at the protocol level.
@@ -65,7 +64,7 @@ The development experience on zkEVM is seamless and identical to the Ethereum Vi
6564

6665
## Astar zkEVM Support for Developers
6766

68-
Developers requiring support can open an issue on [Ethereum StackExchange](https://ethereum.stackexchange.com/) and tag it with `Astar` (preferred) or join the [Astar Discord server](https://discord.gg/astarnetwork).
67+
Developers requiring support can open an issue on [Ethereum StackExchange](https://ethereum.stackexchange.com/) and tag it with `Astar` (preferred) or join the [Astar Discord server](https://discord.gg/astarnetwork).
6968

7069
<details>
7170
<summary>Ethereum StackExchange</summary>

docs/build/zkEVM/smart-contracts/using-hardhat.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ To create the sample project, run `npx hardhat init` in your project folder:
2323
<Figure src={require('/docs/build/zkEVM/smart-contracts/img/hardhat-init.png').default} width="100%" />
2424

2525
- **Press** `<ENTER>` choose javascript, typescript or empty project
26-
- **Press** `<ENTER>` to set the project root
26+
- **Press** `<ENTER>` to set the project root
2727
- **Press** `<ENTER>` again to accept addition of `.gitignore`
28-
- **Press** `<ENTER>` to install `hardhat @nomicfoundation/hardhat-toolbox`
28+
- **Press** `<ENTER>` to install `hardhat @nomicfoundation/hardhat-toolbox`
2929

3030
## Create deployer account
3131
- Create the `.env` file in your project root folder and add the following line:
@@ -75,6 +75,10 @@ Verify that your .gitignore file contains `.env` to prevent your private key fro
7575
url: `https://rpc.zkatana.gelato.digital`,
7676
accounts: [process.env.ACCOUNT_PRIVATE_KEY],
7777
},
78+
astarZkEvm: {
79+
url: `https://rpc.startale.com/astar-zkevm`,
80+
accounts: [process.env.ACCOUNT_PRIVATE_KEY],
81+
},
7882
},
7983
};
8084
```
@@ -100,6 +104,10 @@ Verify that your .gitignore file contains `.env` to prevent your private key fro
100104
url: `https://rpc.zkatana.gelato.digital`,
101105
accounts: [ACCOUNT_PRIVATE_KEY]
102106
},
107+
astarZkEvm: {
108+
url: `https://rpc.startale.com/astar-zkevm`,
109+
accounts: [process.env.ACCOUNT_PRIVATE_KEY],
110+
},
103111
},
104112
};
105113

docs/build/zkEVM/smart-contracts/verify-smart-contract.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import Figure from '/src/components/figure'
99

10-
Once a smart contract is deployed to zKatana testnet, it can be verified in various ways depending on the framework of deployment as well as the complexity of the contract. The aim here is to use examples to illustrate how you can manually verify a deployed smart contract.
10+
Once a smart contract is deployed to zKatana testnet, it can be verified in various ways depending on the framework of deployment as well as the complexity of the contract. The aim here is to use examples to illustrate how you can manually verify a deployed smart contract.
1111

1212
Ensure that your wallet is connected while following this guide. We will use Metamask wallet throughout this tutorial.
1313
For detailed explanation on how to verify smart contracts, please refer to the [Blockscout documentation](https://docs.blockscout.com/for-developers/verify-contracts).
@@ -16,9 +16,9 @@ For detailed explanation on how to verify smart contracts, please refer to the [
1616

1717
After successfully compiling a smart contract, follow the next steps to verify your smart contract.
1818

19-
1. Copy the **Address** to which the smart contract is deployed.
19+
1. Copy the **Address** to which the smart contract is deployed.
2020

21-
2. Navigate to the [zKatana Explorer](https://zkatana.blockscout.com) and paste the contract address into the Search box. This opens a window with a box labelled **Contract Details**.
21+
2. Navigate to the [block Explorer](docs/build/zkEVM/quickstart.md) and paste the contract address into the Search box. This opens a window with a box labelled **Contract Details**.
2222

2323
3. Scroll down to the box with tabs labelled - **Transactions**, **Token transfers** **Internal txns**, **Coin Balance History**, and **Contract**.
2424

@@ -30,10 +30,10 @@ After successfully compiling a smart contract, follow the next steps to verify y
3030

3131
### Solidity, Flattened Source Code
3232

33-
1. Click **Next** after selecting the **via Flattened Source Code** option.
34-
2. In order to update the **Compiler** based on your contract's compiler version,
33+
1. Click **Next** after selecting the **via Flattened Source Code** option.
34+
2. In order to update the **Compiler** based on your contract's compiler version,
3535

36-
- Click the &#8595; for a list of compiler versions.
36+
- Click the &#8595; for a list of compiler versions.
3737

3838
- Select the corresponding version. For example, select `v0.8.9+commit.e5eed63a` if your code has `pragma solidity ^0.8.9;`.
3939
3. Select the Optimization option based on your contract's optimization settings.
@@ -47,7 +47,7 @@ In order to flatten the contract code with Hardhat, one needs to only run the fo
4747
npx hardhat flatten
4848
```
4949
The result will be printed to stdout. You can create a file with the flattened sources using the `>` redirection operator:
50-
50+
5151
```bash
5252
npx hardhat flatten > flattened.sol
5353
```
@@ -63,7 +63,7 @@ After selecting **Flatten**, a new `.sol` file with the suffix `_flatten.sol` is
6363
</TabItem>
6464

6565
<TabItem value="foundry" label="Foundry">
66-
In order to flatten the code using Foundry, the following command can be used:
66+
In order to flatten the code using Foundry, the following command can be used:
6767

6868
```bash
6969
forge flatten src/<Contract-Name> -o <Any-Name-For-Flattened-Code>.sol
@@ -80,9 +80,9 @@ Select the Optimization option based on your contract's optimization settings.
8080

8181
Click **Next** after selecting the **via Standard JSON Input** option.
8282

83-
1. In order to update the **Compiler** based on your contract's compiler version,
83+
1. In order to update the **Compiler** based on your contract's compiler version,
8484

85-
- Click the &#8595; for a list of compiler versions.
85+
- Click the &#8595; for a list of compiler versions.
8686

8787
- Select the corresponding version. For example, select `v0.8.9+commit.e5eed63a` if your code has `pragma solidity ^0.8.9;`.
8888

0 commit comments

Comments
 (0)