https://github.com/maticnetwork/pos-plasma-tutorial
https://github.com/maticnetwork/pos-plasma-tutorial
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/maticnetwork/pos-plasma-tutorial
- Owner: maticnetwork
- Archived: true
- Created: 2020-09-09T06:17:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-08T10:02:08.000Z (over 2 years ago)
- Last Synced: 2025-03-31T10:19:49.682Z (about 1 year ago)
- Language: JavaScript
- Size: 232 KB
- Stars: 18
- Watchers: 24
- Forks: 30
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## POS - Plasma Tutorial
run `npm install` to install all the required packages
run `npm start` from root directory to start the react project
### Config
Replace the token addresses in src/config.json with your corresponding token addresses
- posRootERC20 : ERC20 root token address on pos bridge
- posChildERC20 : ERC20 child token address on pos bridge
- posWETH : PoS Weth
- rootChainWETH: WETH deployed on root chain
- plasmaWETH : Plasma WETH
- plasmaRootERC20 : ERC20 root token deployed on plasma
- plasmaChildERC20 : ERC20 child token deployed on plasma
- MATIC_RPC": RPC for child chain,
- "ETHEREUM_RPC": RPC for root chain,
- "VERSION": network version,
- "NETWORK": "testnet" or "mainnet"
- "MATIC_CHAINID": Chain ID of child chain,
- "ETHEREUM_CHAINID": Chain ID of root chain
- The corresponding configuration and key values for matic mainnet and mumbai testnet can be found here
https://static.matic.network/network/testnet/mumbai/index.json
https://static.matic.network/network/mainnet/v1/index.json