Skip to content

Commit

Permalink
add zksync example (#21)
Browse files Browse the repository at this point in the history
* add zksync example

* lint fix
  • Loading branch information
zkJoaquin authored Feb 6, 2024
1 parent eb5ad95 commit 1cc0292
Show file tree
Hide file tree
Showing 7 changed files with 8,120 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/zksync/.env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This is a sample .env file for use in local development.

# Duplicate this file as .env here

# Your Private key

DEVNET_PRIVKEY="0x your key here"

# Hosted Aggregator Node (JSON-RPC Endpoint). This is Arbitrum Sepolia Testnet, can use any Arbitrum chain

L2RPC="https://sepolia.era.zksync.dev"

# Ethereum RPC; i.e., for Sepolia https://sepolia.infura.io/v3/<your infura key>

L1RPC=""

# Arbitrum chain name
ZKSYNC="ZKSYNCTEST"

# Ethereum chain name
ETHEREUM="SEPOLIA"
1 change: 1 addition & 0 deletions examples/zksync/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
13 changes: 13 additions & 0 deletions examples/zksync/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require('@nomicfoundation/hardhat-toolbox');
require('@matterlabs/hardhat-zksync-verify');
require('./scripts/syncL2Requests');
require('./scripts/syncBatchRoot');

const BaseConfig = require('../../hardhat.base.config');

module.exports = Object.assign({}, BaseConfig, {
paths: {
cache: '../../cache',
artifacts: '../../artifacts',
},
});
Loading

0 comments on commit 1cc0292

Please sign in to comment.