-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deploy and init * add syncBatchRoot case(unfinished) * v1 unfinished * add zkpolygon example * fix package name
- Loading branch information
Showing
14 changed files
with
4,607 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
pragma solidity ^0.8.0; | ||
|
||
/** | ||
* @dev Define interface for PolygonZkEVM Bridge message receiver | ||
*/ | ||
interface IBridgeMessageReceiver { | ||
function onMessageReceived(address originAddress, uint32 originNetwork, bytes memory data) external payable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 zkPolygon Goerli Testnet, can use any zkPolygon chain | ||
|
||
L2RPC="https://rpc.public.zkevm-test.net" | ||
|
||
# Ethereum RPC; i.e., for Goerli https://goerli.infura.io/v3/<your infura key> | ||
|
||
L1RPC="" | ||
|
||
# zkPolygon chain name | ||
ZKPOLYGON="ZKPOLYGONTEST" | ||
|
||
# Ethereum chain name | ||
ETHEREUM="GOERLI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require('@nomiclabs/hardhat-ethers'); | ||
require('./scripts/syncL2Requests'); | ||
require('./scripts/syncBatchRoot'); | ||
require('./scripts/setValidator'); | ||
require('./scripts/changeFeeParams'); | ||
|
||
const BaseConfig = require('../../hardhat.base.config'); | ||
|
||
module.exports = Object.assign({}, BaseConfig, { | ||
paths: { | ||
cache: '../../cache', | ||
artifacts: '../../artifacts', | ||
}, | ||
}); |
Oops, something went wrong.