Skip to content

Commit

Permalink
Adding support for hyperchain (#21)
Browse files Browse the repository at this point in the history
* in progress

* Working with hyperchains

* adding blockscout - part 1

* single db

* works with hyperexplorer

* cleanup and move to separate file

* updated readme

* updated to proper docker version (hyperlocal)

* more waiting

* feat: add pgAdmin to manage postgres db (#22)

* feat: add pgAdmin to manage postgres db

* fix: update port and secure to only 127.0.0.1

---------

Co-authored-by: Nicolas Villanueva <nicolasvillanueva@msn.com>
  • Loading branch information
mm-zk and MexicanAce authored May 8, 2024
1 parent 2605e17 commit 242facf
Show file tree
Hide file tree
Showing 10 changed files with 985 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,26 @@ git clone https://github.com/matter-labs/tutorial-examples.git
cd local-setup-testing
yarn test
```



## Hyperchains

Will start a hyperchain with 3 L2s, L1 and necessary explorers.

To run:

```shell
docker compose -f hyperchain-docker-compose.yml up -d
```



### Manual transfer to hyperchains


Make sure to get the correct bridgehub address (in this example: 0x35A3783781DE026E1e854A6DA45d7a903664a9dA) from the hyperexplorer.

```
cast send -r http://localhost:15045 --private-key 0x27593fea79697e947890ecbecce7901b0008345e5d7259710d0dd5e500d040be 0x35A3783781DE026E1e854A6DA45d7a903664a9dA "requestL2TransactionDirect((uint256, uint256, address, uint256, bytes, uint256, uint256, bytes[], address))" "(270,0xde0b6b3a7640000,0x005C43B2063625e9425943Fec65c42d005a2cD1f,10000000000000,"",10000000,800,[0x1234567890123456789012345678901234567890123456789012345678901234],0x005C43B2063625e9425943Fec65c42d005a2cD1f)" --value=1000000000000000000
```
Loading

0 comments on commit 242facf

Please sign in to comment.