Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing tests #4

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,24 @@ out/
optimized-out/
.vscode/
broadcast/
.env
.env

# Hardhat files
/cache
/artifacts

# TypeChain files
/typechain
/typechain-types

# solidity-coverage files
/coverage
/coverage.json

# zksync build artifacts
/artifacts-zk
/cache-zk

# zksync local node logs
era_test_node.log
/node_modules
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@

[submodule "lib/hats-module"]
path = lib/hats-module
url = https://github.com/hats-protocol/hats-module
url = https://github.com/alexkeating/hats-module
[submodule "lib/hats-protocol"]
path = lib/hats-protocol
url = https://github.com/Hats-Protocol/hats-protocol
1 change: 1 addition & 0 deletions deployments-zk/zkSyncLocal/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x12c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ GNOSISSCAN_KEY=
POLYGONSCAN_KEY=
OPTIMISM_KEY=
ARBISCAN_KEY=
FOUNDRY_PROFILE=
FOUNDRY_PROFILE=
54 changes: 54 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-foundry";

import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-solc";
import "@matterlabs/hardhat-zksync-node";
import "@matterlabs/hardhat-zksync-upgradable";
import "@matterlabs/hardhat-zksync-verify"

import * as dotenv from 'dotenv';
dotenv.config();

const config: HardhatUserConfig = {
solidity: "0.8.19",
zksolc: {
version: "1.4.0",
settings: {
optimizer: {
enabled: true,
},
},
},
paths: {
"sources": "./src",
},
networks: {
hardhat: {
zksync: false,
},
ethNetwork: {
zksync: false,
url: "http://localhost:8545",
},
zkSyncLocal: {
zksync: true,
ethNetwork: "ethNetwork",
url: process.env.ZK_LOCAL_NETWORK_URL ? process.env.ZK_LOCAL_NETWORK_URL : "http://0.0.0.0:8011",
},
mainnet: {
zksync: false,
url: "https://eth-mainnet.g.alchemy.com/v2/SECRET",
},
zkSyncEra: {
zksync: true,
ethNetwork: "mainnet",
url: "https://zksync-mainnet.g.alchemy.com/v2/SECRET",
},
},
defaultNetwork: "zkSyncLocal",
};

export default config;
1 change: 1 addition & 0 deletions lib/hats-protocol
Submodule hats-protocol added at cccb71
Loading