Skip to content

Commit 53c2271

Browse files
authored
Merge pull request #322 from benbaley/master
更新开发网信息
2 parents 601251b + 3d303fb commit 53c2271

19 files changed

Lines changed: 92 additions & 92 deletions

docs/DApp通过WalletConnect接入ATON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ payload: {
184184
event: "connect"
185185
params: [
186186
accounts: ['0xdc8c0f103dc8523c82d38064f746dda9fa28bf7f']
187-
chainId: 2206132
187+
chainId: 20250407
188188
peerId: "BC246E88-ACC0-4FD6-BF10-DEF314EF42BE"
189189
peerMeta: {description: "hello,i'm Platon.", icons: Array(0), name: 'ATON', url: 'https://safe.gnosis.io'}
190190
]

docs/MetaMask_Configure.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MetaMask makes operations such as transfer, signing, and contract interaction mo
3030

3131
> PlatON MainNet:https://scan.platon.network/
3232
>
33-
> PlatON DevNet2: https://devnet2scan.platon.network/
33+
> PlatON DevNet3: https://devnet3scan.platon.network/
3434
>
3535
> Alaya MainNet:https://scan.alaya.network/
3636
>
@@ -139,14 +139,14 @@ Done! It is worth mentioning that only Hex addresses are supported on the mainne
139139

140140
### PlatON DevNet
141141

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

144144
```
145145
Network Name: PlatON Dev2 Network
146-
New RPC URL: https://devnet2openapi.platon.network/rpc OR wss://devnet2openapi.platon.network/ws
147-
Chain ID:2206132
146+
New RPC URL: https://devnet3openapi.platon.network/rpc OR wss://devnet3openapi.platon.network/ws
147+
Chain ID:20250407
148148
Currency Symbol:LAT
149-
Block Explorer URL: https://devnet2scan.platon.network/
149+
Block Explorer URL: https://devnet3scan.platon.network/
150150
```
151151

152152

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

157157

158158

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

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

docs/PlaTrust钱包js-sdk安装及使用说明.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function main() {
7272
);
7373
const userOpHash = await activateOp.getUserOpHashFromContract(
7474
relayerManagerAddr, // <address> EntryPoint Contract Address
75-
new ethers.providers.JsonRpcProvider( "https://devnet2openapi.platon.network/rpc"), // ethers.providers
75+
new ethers.providers.JsonRpcProvider( "https://devnet3openapi.platon.network/rpc"), // ethers.providers
7676
);
7777
const signedHash = platrust.packSignatureHash(userOpHash, SignatureMode.owner, 0, 0);
7878
const sig = platrust.signMessage(signedHash, pks[0])
@@ -83,7 +83,7 @@ async function main() {
8383

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

8989
const validation = await bundler.simulateValidation(activateOp);
@@ -112,7 +112,7 @@ main();
112112
## PlatON Testnet Configuration
113113

114114
```javascript
115-
TestnetURL: 'https://devnet2openapi2.platon.network/rpc'
115+
TestnetURL: 'https://devnet3openapi2.platon.network/rpc'
116116
bundleURL: 'https://testbundler.platon.network'
117117

118118
walletLogic: '0x3b682b956E65b5F5b8150f75F2235f156A8F4b7B'

docs/Samurai API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ These are the IDs of the PlatON/Alaya chain supported by Samurai by default.
407407
| Hexadecimal | Decimal | Network |
408408
| ----------- | ------- | -------------- |
409409
| 0x335f9 | 210425 | PlatON mainnet |
410-
| 0x21a9b4 | 2206132 | PlatON Devnet2 |
410+
| 0x21a9b4 | 20250407 | PlatON Devnet3 |
411411
| 0x3113a | 201018 | Alaya network |
412412
| 0x31146 | 201030 | Alaya testnet |
413413

docs/在线PlatON MTool使用手册.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ There are differences in the use of environment variables for the PlatON MTool d
122122
## PlatON MTool Command Details
123123

124124
> Note: The follow-up command is the command format under Ubuntu. Under Windows, you need to modify `$PLATON_MTOOLDIR` to `%PLATON_MTOOLDIR%`.
125-
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:2206131) if needed.
126-
> - 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.
125+
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:20250407) if needed.
126+
> - 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.
127127
128128
### Create A Wallet
129129

docs/成为开发网验证节点.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ ntpq -4c rv | grep leap_none
5050
5151
#### Install PlatON
5252

53-
devnet2:
53+
devnet3:
5454

5555
```bash
56-
sudo wget https://download.platon.network/platon/devnet2/platon/1.5.0/platon -O /usr/bin/platon
57-
sudo wget https://download.platon.network/platon/devnet2/platon/1.4.0/platonkey -O /usr/bin/platonkey
56+
sudo wget https://download.platon.network/platon/devnet3/platon/1.5.0/platon -O /usr/bin/platon
57+
sudo wget https://download.platon.network/platon/devnet3/platon/1.4.0/platonkey -O /usr/bin/platonkey
5858
```
5959

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

113113
## Join the PlatON development network
114114

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

117117
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.
118118

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

127127
#### Develop network related resources
128128

129-
> - platon: devnet2https://download.platon.network/platon/devnet2/platon/1.5.0/platon
129+
> - platon: devnet3https://download.platon.network/platon/devnet3/platon/1.5.0/platon
130130
>
131-
> - platonkey: devnet2https://download.platon.network/platon/devnet2/platon/1.4.0/platonkey
131+
> - platonkey: devnet3https://download.platon.network/platon/devnet3/platon/1.4.0/platonkey
132132
>
133133
> - mtool windows:https://download.platon.network/platon/devnet/mtool/windows/1.1.1/platon_mtool.exe
134134
>
135135
> - mtool linux:https://download.platon.network/platon/devnet/mtool/linux/1.1.1/platon_mtool.zip
136136
>
137-
> > You need to change the chain ID in the configuration file config.properties to the development network 2 chain ID: 2206132
137+
> > You need to change the chain ID in the configuration file config.properties to the development network 2 chain ID: 20250407
138138
>
139139
>
140-
> - Open the RPC URL: https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
140+
> - Open the RPC URL: https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws
141141
>
142-
> - development network 2 Scan Browser Address:https://devnet2scan.platon.network
142+
> - development network 2 Scan Browser Address:https://devnet3scan.platon.network
143143
144144
#### Initialize the genesis block
145145

146146
- Save the genesis block file
147147

148148
Save the following to the genesis.json file:
149149

150-
devnet2
150+
devnet3
151151

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

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

170170
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).
171171

172-
devnet2
172+
devnet3
173173

174174
```shell
175-
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 &
175+
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 &
176176
```
177177

178178
**Prompt:**
@@ -364,7 +364,7 @@ Enter the password once and confirm the password again to create the wallet file
364364
365365
#### Update config.properties
366366
367-
If you want to run mtool on the development network 2, change the chain ID in the config.properties file to 2206132
367+
If you want to run mtool on the development network 2, change the chain ID in the config.properties file to 20250407
368368
369369
#### Configure verification node information
370370

docs/接入开发网.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ sidebar_label: Dev Network
66

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

9-
ChainId: 2206132
9+
ChainId: 20250407
1010

1111
openapi:
1212

13-
https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
13+
https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws
1414

1515
faucet:
1616

17-
https://devnet2faucet.platon.network/faucet
17+
https://devnet3faucet.platon.network/faucet
1818

1919
explorer:
2020

21-
https://devnet2scan.platon.network
21+
https://devnet3scan.platon.network
2222

2323

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

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

2828
```
29-
https://devnet2openapi.platon.network/rpc or wss://devnet2openapi.platon.network/ws
29+
https://devnet3openapi.platon.network/rpc or wss://devnet3openapi.platon.network/ws
3030
```
3131

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

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

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

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

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

66-
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.
66+
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.
6767
```
6868
Title: PlatON Development Network Token Request
6969
Your Name:
@@ -75,7 +75,7 @@ Click [faucet](https://devnet2faucet.platon.network/faucet/) to receive the Test
7575
Remarks:
7676
```
7777

78-
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).
78+
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).
7979

8080
## How to deploy a devnet node?
8181

docs/离线PlatON MTool使用手册.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ There are differences in the use of environment variables for the PlatON MTool d
125125
## Detailed explanation of PlatON MTool wallet commands
126126

127127
> Note: The follow-up command is the command format under Ubuntu. Under Windows, you need to modify `$PLATON_MTOOLDIR` to `%PLATON_MTOOLDIR%`.
128-
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet2 (ChainID:2206131) if needed.
129-
> - 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.
128+
> - Original Devnet1 (ChainID:210309) has been disabled, please change it to Devnet3 (ChainID:20250407) if needed.
129+
> - 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.
130130
131131
### Create a cold wallet
132132

docs/网络说明.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ If you want to connect to the development network as a validator, please refer t
2626

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

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

31-
devnet2https://devnet2faucet.platon.network/faucet/
31+
devnet3https://devnet3faucet.platon.network/faucet/
3232

3333

3434
> **Note**: LAT on the development network has no real value and is for testing only!

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/DApp_Migration_Tutorial.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sidebar_label: 以太坊DApp快速迁移教程
1616

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

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

2121

2222

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

3131
```javascript
3232
网络名称: PlatON开发测试网
33-
新增RPC URL: https://devnet2openapi.platon.network/rpc
34-
ID: 2206132
33+
新增RPC URL: https://devnet3openapi.platon.network/rpc
34+
ID: 20250407
3535
符号(选填): LAT
36-
区块浏览器URL(选填): https://devnet2scan.platon.network
36+
区块浏览器URL(选填): https://devnet3scan.platon.network
3737
```
3838

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

@@ -209,7 +209,7 @@ initHash is at: 0x2d2546605b9f2d8c64755e6b9c29cc742d5f0b74bad6d7b8c188c2ccd0822f
209209
210210
```javascript
211211
export const injected = new InjectedConnector({
212-
supportedChainIds: [1, 3, 4, 5, 42, 2206132]
212+
supportedChainIds: [1, 3, 4, 5, 42, 20250407]
213213
})
214214
```
215215
@@ -255,7 +255,7 @@ blockTimeStamp需要乘1000,因为PlatON开发测试网络的区块时间戳
255255
256256
#### uniswap迁移总结
257257
258-
+ swap源代码及依赖库@uniswap/sdk增加PlatON网络配置,支持chainId为2206132的PlatON开发2测试网
258+
+ swap源代码及依赖库@uniswap/sdk增加PlatON网络配置,支持chainId为20250407的PlatON开发2测试网
259259
260260
+ 修改业务相关的合约的依赖合约UniswapV2Library中的init code hash对应代码,然后部署业务相关的合约(uniswapV2Factory/WETH/uniswapV2Router/multicall),获取相关合约的地址(solidity版本需要注意的点)。
261261

0 commit comments

Comments
 (0)