Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buildonpolygon/zkevm-wsteth
Polygon zkEVM wstETH
https://github.com/buildonpolygon/zkevm-wsteth
Last synced: 1 day ago
JSON representation
Polygon zkEVM wstETH
- Host: GitHub
- URL: https://github.com/buildonpolygon/zkevm-wsteth
- Owner: BuildOnPolygon
- Created: 2023-09-10T04:13:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-29T17:23:00.000Z (7 months ago)
- Last Synced: 2024-05-30T07:29:09.699Z (7 months ago)
- Language: Solidity
- Size: 728 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Audit: audit/Polygon_usdc_Oct23Confidential.pdf
Awesome Lists containing this project
README
# Polygon zkEVM wstETH Bridge
wstETH Bridge leveraging LxLy for between zkEVM and Mainnet.
## Get started
### Requirements
This repository is using foundry. You can install foundry via
[foundryup](https://book.getfoundry.sh/getting-started/installation).### Setup
Clone the repository:
```sh
git clone [email protected]:pyk/zkevm-wsteth.git
cd zkevm-wsteth/
```Install the dependencies:
```sh
forge install
```### Tests
Create `.env` with the following contents:
```
ETH_RPC_URL=""
ZKEVM_RPC_URL="https://zkevm-rpc.com"
ETHERSCAN_API_KEY=""
```Use the following command to run the test:
```sh
forge test
```You can also run individual test using the following command:
```sh
forge test --fork-url $ETH_RPC_URL --match-test bridgeToken -vvvvforge test --fork-url "https://zkevm-rpc.com" --match-path test/L2wstETH.t.sol --match-test testBridgeWithMockedBridge -vvvv
```> **Note**
> You can set `ETHERSCAN_API_KEY` to helps you debug the call trace.## Contract addresses
| Smart contract | Network | Address |
| -------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| wstETH | Mainnet | [0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0](https://etherscan.io/address/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0) |
| Polygon ZkEVM Bridge | Mainnet | [0x2a3dd3eb832af982ec71669e178424b10dca2ede](https://etherscan.io/address/0x2a3dd3eb832af982ec71669e178424b10dca2ede) |
| | zkEVM Mainnet | [0x2a3dd3eb832af982ec71669e178424b10dca2ede](https://zkevm.polygonscan.com/address/0x2a3dd3eb832af982ec71669e178424b10dca2ede) |
| WstETHBridgeL1 | Mainnet | [0xf0cde1e7f0fad79771cd526b1eb0a12f69582c01](https://etherscan.io/address/0xf0cde1e7f0fad79771cd526b1eb0a12f69582c01#code) |
| WstETHBridgeL2 | zkEVM Mainnet | [0xDB5D9c10FD2a92692DB51853e06058EE0436d69B](https://zkevm.polygonscan.com/address/0xdb5d9c10fd2a92692db51853e06058ee0436d69b#code) |
| WstETHWrapped | zkEVM Mainnet | [0xbf6De60Ccd9D22a5820A658fbE9fc87975EA204f](https://zkevm.polygonscan.com/address/0xbf6De60Ccd9D22a5820A658fbE9fc87975EA204f#code) |
| NativeConverter | zkEVM Mainnet | [0x5A80E7b0323BB16Fc777e7221E88809c077a2f01](https://zkevm.polygonscan.com/address/0x5a80e7b0323bb16fc777e7221e88809c077a2f01) |