Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/DApp通过WalletConnect接入ATON.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ payload: {
event: "connect"
params: [
accounts: ['0xdc8c0f103dc8523c82d38064f746dda9fa28bf7f']
chainId: 2206132
chainId: 20250407
peerId: "BC246E88-ACC0-4FD6-BF10-DEF314EF42BE"
peerMeta: {description: "hello,i'm Platon.", icons: Array(0), name: 'ATON', url: 'https://safe.gnosis.io'}
]
Expand Down
12 changes: 6 additions & 6 deletions docs/MetaMask_Configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MetaMask makes operations such as transfer, signing, and contract interaction mo

> PlatON MainNet:https://scan.platon.network/
>
> PlatON DevNet2: https://devnet2scan.platon.network/
> PlatON DevNet3: https://devnet3scan.platon.network/
>
> Alaya MainNet:https://scan.alaya.network/
>
Expand Down Expand Up @@ -139,14 +139,14 @@ Done! It is worth mentioning that only Hex addresses are supported on the mainne

### PlatON DevNet

Similarly, you can add and configure the PlatON DevNet2 according to the following information:
Similarly, you can add and configure the PlatON DevNet3 according to the following information:

```
Network Name: PlatON Dev2 Network
New RPC URL: https://devnet2openapi.platon.network/rpc OR wss://devnet2openapi.platon.network/ws
Chain ID:2206132
New RPC URL: https://devnet3openapi.platon.network/rpc OR wss://devnet3openapi.platon.network/ws
Chain ID:20250407
Currency Symbol:LAT
Block Explorer URL: https://devnet2scan.platon.network/
Block Explorer URL: https://devnet3scan.platon.network/
```


Expand All @@ -156,7 +156,7 @@ After the settings are saved, it will automatically jump to PlatON DevNet, and t



Next, we can apply for test tokens on the PlatON DevNet faucet (https://devnet2faucet.platon.network/faucet) to test the transfer operation.
Next, we can apply for test tokens on the PlatON DevNet faucet (https://devnet3faucet.platon.network/faucet) to test the transfer operation.

<img src="/docs/img/en/MetaMask_Configure.assets/image-20220112184859903.png" alt="image-20220112184859903"/>

Expand Down
6 changes: 3 additions & 3 deletions docs/PlaTrust钱包js-sdk安装及使用说明.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function main() {
);
const userOpHash = await activateOp.getUserOpHashFromContract(
relayerManagerAddr, // <address> EntryPoint Contract Address
new ethers.providers.JsonRpcProvider( "https://devnet2openapi.platon.network/rpc"), // ethers.providers
new ethers.providers.JsonRpcProvider( "https://devnet3openapi.platon.network/rpc"), // ethers.providers
);
const signedHash = platrust.packSignatureHash(userOpHash, SignatureMode.owner, 0, 0);
const sig = platrust.signMessage(signedHash, pks[0])
Expand All @@ -83,7 +83,7 @@ async function main() {

const bundler = new walletLib.Bundler(
'0x0', // <address> EntryPoint Contract Address
new ethers.providers.JsonRpcProvider( "https://devnet2openapi.platon.network/rpc"), // ethers.providers
new ethers.providers.JsonRpcProvider( "https://devnet3openapi.platon.network/rpc"), // ethers.providers
);

const validation = await bundler.simulateValidation(activateOp);
Expand Down Expand Up @@ -112,7 +112,7 @@ main();
## PlatON Testnet Configuration

```javascript
TestnetURL: 'https://devnet2openapi2.platon.network/rpc'
TestnetURL: 'https://devnet3openapi2.platon.network/rpc'
bundleURL: 'https://testbundler.platon.network'

walletLogic: '0x3b682b956E65b5F5b8150f75F2235f156A8F4b7B'
Expand Down
2 changes: 1 addition & 1 deletion docs/Samurai API.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ These are the IDs of the PlatON/Alaya chain supported by Samurai by default.
| Hexadecimal | Decimal | Network |
| ----------- | ------- | -------------- |
| 0x335f9 | 210425 | PlatON mainnet |
| 0x21a9b4 | 2206132 | PlatON Devnet2 |
| 0x21a9b4 | 20250407 | PlatON Devnet3 |
| 0x3113a | 201018 | Alaya network |
| 0x31146 | 201030 | Alaya testnet |

Expand Down
4 changes: 2 additions & 2 deletions docs/在线PlatON MTool使用手册.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ There are differences in the use of environment variables for the PlatON MTool d
## PlatON MTool Command Details

> Note: The follow-up command is the command format under Ubuntu. Under Windows, you need to modify `$PLATON_MTOOLDIR` to `%PLATON_MTOOLDIR%`.
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:2206131) if needed.
> - If you are connecting to the Development 2 network, you need to modify the domainid of the config.properties configuration file in the PlatON MTool installation directory to 2206131.
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:20250407) if needed.
> - If you are connecting to the Development 2 network, you need to modify the domainid of the config.properties configuration file in the PlatON MTool installation directory to 20250407.

### Create A Wallet

Expand Down
28 changes: 14 additions & 14 deletions docs/成为开发网验证节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ ntpq -4c rv | grep leap_none

#### Install PlatON

devnet2:
devnet3:

```bash
sudo wget https://download.platon.network/platon/devnet2/platon/1.5.0/platon -O /usr/bin/platon
sudo wget https://download.platon.network/platon/devnet2/platon/1.4.0/platonkey -O /usr/bin/platonkey
sudo wget https://download.platon.network/platon/devnet3/platon/1.5.0/platon -O /usr/bin/platon
sudo wget https://download.platon.network/platon/devnet3/platon/1.4.0/platonkey -O /usr/bin/platonkey
```

Granting executable permissions to files
Expand Down Expand Up @@ -112,7 +112,7 @@ Two files will be generated in the subdirectory `data` under the working directo

## Join the PlatON development network

The PlatON devnet2's Chainid is 2206132, which was launched on June 13, 2022.
The PlatON devnet3's Chainid is 20250407, which was launched on June 13, 2022.

This section assumes that the server is Ubuntu 18.04, and the working directory of the executable file is `~/platon-node`. Note that all subsequent commands should be run under the same working directory.

Expand All @@ -126,31 +126,31 @@ The development network provides a development test environment for the develope

#### Develop network related resources

> - platon: devnet2:https://download.platon.network/platon/devnet2/platon/1.5.0/platon
> - platon: devnet3:https://download.platon.network/platon/devnet3/platon/1.5.0/platon
>
> - platonkey: devnet2:https://download.platon.network/platon/devnet2/platon/1.4.0/platonkey
> - platonkey: devnet3:https://download.platon.network/platon/devnet3/platon/1.4.0/platonkey
>
> - mtool windows:https://download.platon.network/platon/devnet/mtool/windows/1.1.1/platon_mtool.exe
>
> - mtool linux:https://download.platon.network/platon/devnet/mtool/linux/1.1.1/platon_mtool.zip
>
> > You need to change the chain ID in the configuration file config.properties to the development network 2 chain ID: 2206132
> > You need to change the chain ID in the configuration file config.properties to the development network 2 chain ID: 20250407
>
>
> - Open the RPC URL: https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
> - Open the RPC URL: https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws
>
> - development network 2 Scan Browser Address:https://devnet2scan.platon.network
> - development network 2 Scan Browser Address:https://devnet3scan.platon.network

#### Initialize the genesis block

- Save the genesis block file

Save the following to the genesis.json file:

devnet2
devnet3

```bash
cd ~/platon-node && wget https://download.platon.network/platon/devnet2/platon/1.5.0/genesis.json
cd ~/platon-node && wget https://download.platon.network/platon/devnet3/platon/1.5.0/genesis.json
```

- Initialize the genesis block file
Expand All @@ -169,10 +169,10 @@ cd ~/platon-node && wget https://download.platon.network/platon/devnet2/platon/1

Please refer to [Install node](/docs/en/Install_Node) section to create a nodekey: nodekey, blskey, and then execute the following command to start the verification node to join the PlatON development network;If you need to become a verification node, please apply for a large test LAT by following instructions (the development network will be reset irregularly according to the test needs, and the LAT of the develop network has no practical value).

devnet2
devnet3

```shell
cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port 16789 --http.port 6789 --http.api "db,platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --bootnodes enode://4ea24accba3da480021bd8c9699e702d9bec0e5f3d7dd1a354697e83b67a4c275b3fb2a21a3be2438a3430fd4b8a9f97acf1c090c1ade599a619fedeac1fb730@devnet2node1.platon.network:16789 --syncmode "fast" > ./data/platon.log 2>&1 &
cd ~/platon-node/ && nohup platon --identity platon-node --datadir ./data --port 16789 --http.port 6789 --http.api "db,platon,net,web3,admin,personal" --http --nodekey ./data/nodekey --cbft.blskey ./data/blskey --verbosity 1 --http.addr 127.0.0.1 --bootnodes enode://4ea24accba3da480021bd8c9699e702d9bec0e5f3d7dd1a354697e83b67a4c275b3fb2a21a3be2438a3430fd4b8a9f97acf1c090c1ade599a619fedeac1fb730@devnet3node1.platon.network:16789 --syncmode "fast" > ./data/platon.log 2>&1 &
```

**Prompt:**
Expand Down Expand Up @@ -364,7 +364,7 @@ Enter the password once and confirm the password again to create the wallet file

#### Update config.properties

If you want to run mtool on the development network 2, change the chain ID in the config.properties file to 2206132
If you want to run mtool on the development network 2, change the chain ID in the config.properties file to 20250407

#### Configure verification node information

Expand Down
24 changes: 12 additions & 12 deletions docs/接入开发网.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ sidebar_label: Dev Network

This article will describe how to debug local applications by connecting to the PlatON DevNet(development Network).

ChainId: 2206132
ChainId: 20250407

openapi:

https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws

faucet:

https://devnet2faucet.platon.network/faucet
https://devnet3faucet.platon.network/faucet

explorer:

https://devnet2scan.platon.network
https://devnet3scan.platon.network


## How to access the dev network to debug local applications?

### **Step 1: Connect to the DevNet via RPC address**

```
https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws
```

#### Access method 1: Connect to the DevNet via the local PlatON node
Expand All @@ -36,34 +36,34 @@ sudo wget https://download.platon.network/platon/platon/1.5.0/platon -P /usr/bin
```
Connect to the development network by.
```bash
platon attach https://devnet2openapi.platon.network/rpc
platon attach https://devnet3openapi.platon.network/rpc
```

#### Access method 2: Connect to the PlatON DevNet through the SDKs

- Use the [Java SDK](/docs/en/Java_SDK) to connect to the DevNet, for example, as follows.
```java
Web3j platonWeb3j = Web3j.build(new HttpService("https://devnet2openapi.platon.network/rpc"));
Web3j platonWeb3j = Web3j.build(new HttpService("https://devnet3openapi.platon.network/rpc"));
```
- Use [Python SDK](/docs/en/Python_SDK) to access the DevNet, the example is as follows.
```python
w3 = Web3(HTTPProvider("https://devnet2openapi.platon.network/rpc"))
w3 = Web3(HTTPProvider("https://devnet3openapi.platon.network/rpc"))
```
- Use [JS SDK](/docs/en/JS_SDK) to access the DevNet, the example is as follows.
```js
var Web3 = require('web3');
var web3 = new Web3('http://https://devnet2openapi.platon.network/rpc');
var web3 = new Web3('http://https://devnet3openapi.platon.network/rpc');
```
- Using [JSON RPC](/docs/en/Json_Rpc) to access the DevNet, the example is as follows.
```curl
curl -X POST -H 'content-type: application/json' --data '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params":[], "id":67}' https://devnet2openapi.platon.network/rpc
curl -X POST -H 'content-type: application/json' --data '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params":[], "id":67}' https://devnet3openapi.platon.network/rpc
```

Not limited to the above language SDKs, you also have access through SDKs in other languages.

### **Step 2: Apply for DevNet Test Token**

Click [faucet](https://devnet2faucet.platon.network/faucet/) to receive the Test Token. If you have a large Test Token request, please send an email to support@latticex.foundation using the following format.
Click [faucet](https://devnet3faucet.platon.network/faucet/) to receive the Test Token. If you have a large Test Token request, please send an email to support@latticex.foundation using the following format.
```
Title: PlatON Development Network Token Request
Your Name:
Expand All @@ -75,7 +75,7 @@ Click [faucet](https://devnet2faucet.platon.network/faucet/) to receive the Test
Remarks:
```

After successfully accessing the DevNet, you can send transactions after completing the test Token collection to start your test journey and can check the transactions in [DevNet Browser](https://devnet2scan.platon.network).
After successfully accessing the DevNet, you can send transactions after completing the test Token collection to start your test journey and can check the transactions in [DevNet Browser](https://devnet3scan.platon.network).

## How to deploy a devnet node?

Expand Down
4 changes: 2 additions & 2 deletions docs/离线PlatON MTool使用手册.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ There are differences in the use of environment variables for the PlatON MTool d
## Detailed explanation of PlatON MTool wallet commands

> Note: The follow-up command is the command format under Ubuntu. Under Windows, you need to modify `$PLATON_MTOOLDIR` to `%PLATON_MTOOLDIR%`.
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:2206131) if needed.
> - If you are connecting to the Development 2 network, you need to modify the domainid of the config.properties configuration file in the PlatON MTool installation directory to 2206131.
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet3 (ChainID:20250407) if needed.
> - If you are connecting to the Development 2 network, you need to modify the domainid of the config.properties configuration file in the PlatON MTool installation directory to 20250407.

### Create a cold wallet

Expand Down
4 changes: 2 additions & 2 deletions docs/网络说明.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ If you want to connect to the development network as a validator, please refer t

If you need to use test LAT on the development network, you have to obtain it through the faucet at

devnet1:Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:2206131) if needed.
devnet1:Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet3 (ChainID:20250407) if needed.

devnet2:https://devnet2faucet.platon.network/faucet/
devnet3:https://devnet3faucet.platon.network/faucet/


> **Note**: LAT on the development network has no real value and is for testing only!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sidebar_label: 以太坊DApp快速迁移教程

+ 账户地址格式:PlatON同时支持EIP55和Bech32地址格式。

+ PlatON网络目前没有infrua类似的服务,目前对外提供了开发2网:https://devnet2openapi.platon.network/rpc 接口服务。
+ PlatON网络目前没有infrua类似的服务,目前对外提供了开发2网:https://devnet3openapi.platon.network/rpc 接口服务。



Expand All @@ -30,10 +30,10 @@ sidebar_label: 以太坊DApp快速迁移教程

```javascript
网络名称: PlatON开发测试网
新增RPC URL: https://devnet2openapi.platon.network/rpc
链ID: 2206132
新增RPC URL: https://devnet3openapi.platon.network/rpc
链ID: 20250407
符号(选填): LAT
区块浏览器URL(选填): https://devnet2scan.platon.network
区块浏览器URL(选填): https://devnet3scan.platon.network
```

2. 根据下文的“uniswap合约迁移”章节迁移好DApp相关合约,部署到自己的PlatON测试网络。
Expand Down Expand Up @@ -180,7 +180,7 @@ initHash is at: 0x2d2546605b9f2d8c64755e6b9c29cc742d5f0b74bad6d7b8c188c2ccd0822f
RINKEBY = 4,
GÖRLI = 5,
KOVAN = 42
PLATON = 2206132
PLATON = 20250407
}
```

Expand Down Expand Up @@ -209,7 +209,7 @@ initHash is at: 0x2d2546605b9f2d8c64755e6b9c29cc742d5f0b74bad6d7b8c188c2ccd0822f

```javascript
export const injected = new InjectedConnector({
supportedChainIds: [1, 3, 4, 5, 42, 2206132]
supportedChainIds: [1, 3, 4, 5, 42, 20250407]
})
```

Expand Down Expand Up @@ -255,7 +255,7 @@ blockTimeStamp需要乘1000,因为PlatON开发测试网络的区块时间戳

#### uniswap迁移总结

+ swap源代码及依赖库@uniswap/sdk增加PlatON网络配置,支持chainId为2206132的PlatON开发2测试网
+ swap源代码及依赖库@uniswap/sdk增加PlatON网络配置,支持chainId为20250407的PlatON开发2测试网

+ 修改业务相关的合约的依赖合约UniswapV2Library中的init code hash对应代码,然后部署业务相关的合约(uniswapV2Factory/WETH/uniswapV2Router/multicall),获取相关合约的地址(solidity版本需要注意的点)。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ payload: {
event: "connect"
params: [
accounts: ['0xdc8c0f103dc8523c82d38064f746dda9fa28bf7f']
chainId: 2206132
chainId: 20250407
peerId: "BC246E88-ACC0-4FD6-BF10-DEF314EF42BE"
peerMeta: {description: "hello,i'm Platon.", icons: Array(0), name: 'ATON', url: 'https://safe.gnosis.io'}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MetaMask作为目前市面上用户量最多,应用最广泛的浏览器插件

> PlatON MainNet:https://scan.platon.network/
>
> PlatON DevNet2: https://devnet2scan.platon.network/
> PlatON DevNet3: https://devnet3scan.platon.network/
>
> Alaya MainNet:https://scan.alaya.network/
>
Expand Down Expand Up @@ -141,10 +141,10 @@ Block Explorer URL: https://scan.platon.network/

```
Network Name: PlatON Dev Network
New RPC URL: https://devnet2openapi.platon.network/rpc OR wss://devnet2openapi.platon.network/ws
Chain ID:2206132
New RPC URL: https://devnet3openapi.platon.network/rpc OR wss://devnet3openapi.platon.network/ws
Chain ID:20250407
Currency Symbol:LAT
Block Explorer URL: https://devnet2scan.platon.network/
Block Explorer URL: https://devnet3scan.platon.network/
```


Expand All @@ -154,7 +154,7 @@ Block Explorer URL: https://devnet2scan.platon.network/



接着,我们可以在PlatON开发网水龙头(https://devnet2faucet.platon.network/faucet)上申请测试代币,测试一下转账操作。
接着,我们可以在PlatON开发网水龙头(https://devnet3faucet.platon.network/faucet)上申请测试代币,测试一下转账操作。

<img src="/docs/img/en/MetaMask_Configure.assets/image-20220112184859903.png" alt="image-20220112184859903"/>

Expand Down
Loading