https://github.com/nitantchhajed/op-stack-bridge
Bridge for op-stack chains using WAGMI
https://github.com/nitantchhajed/op-stack-bridge
bridge ethereum op-stack optimism wagmi
Last synced: 29 days ago
JSON representation
Bridge for op-stack chains using WAGMI
- Host: GitHub
- URL: https://github.com/nitantchhajed/op-stack-bridge
- Owner: nitantchhajed
- Created: 2023-06-21T11:19:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-08T09:30:49.000Z (almost 2 years ago)
- Last Synced: 2024-06-08T10:39:31.396Z (almost 2 years ago)
- Topics: bridge, ethereum, op-stack, optimism, wagmi
- Language: JavaScript
- Homepage: https://testnet-bridge.raceconomy.com/
- Size: 14.3 MB
- Stars: 25
- Watchers: 2
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @op-stack/bridge
The `op-Bridge` is a service for op-stack chains which provides a functional UI for the Bridging between L1 and L2.
## Installation
Clone this repo
```
git clone https://github.com/nitantchhajed/op-stack-bridge.git
yarn
```
## Running the service
Copy `.env.example` into a new file named `.env`, then set the environment variables listed there.
Once your environment variables or flags have been set, run the service via:
```
yarn start
```
## What this service does
The `op-bridge` uses the @eth-optimism/sdk https://sdk.optimism.io/ to provide the bridging functionality by using CrossChainMessenger. It provides the Deposit and withdraw functionality.
## Tutorial
### Deposits
The Deposit process is an easy one step process which Bridges the Assets from L1(Sepolia) to L2 layer.
- go the the deposit page, choose your asset and initiate the deposit process.

### Withdrawal
Withdrawal is a three step process
1. Initiate withdrawal on L2
2. Prove withdrawal on L1 (available after state root is published, usually takes 25-50 mins to change the status)
3. Caim the Withdrawal on L1 (available after challenge period is over)
--------------------------------------------------------------------------------------------------
- Initiate the withdrawal on L2

- View your withdrawals from Account section -

- You will see that your withdrawal status is `Waiting for Confirmation` which means your state root is not published yet

- After your state root is published you can see the status change to `Prove` Button
- After proving your Transaction on L1 by clicking on prove button the status will change to `In challenge Period`
- When the Challenge period is complete the Status will change to `Claim`

- After you Claim the Withdrawal on L1 the withdrawal process is fully completed.
** NOTE - Refresh the page to see the status changes
### Please Give a star and Follow if you liked the Application.
Thank you !!!