Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/zk-passport/openpassport int…
Browse files Browse the repository at this point in the history
…o dev
  • Loading branch information
remicolin committed Oct 6, 2024
2 parents d46b11a + d60e749 commit 0dfa2b7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
15 changes: 13 additions & 2 deletions contracts/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
export PKEY='0x123'
OPTIMISM_RPC_URL=https://rpc.sepolia.org
PKEY='0x123'

MAINNET_RPC_URL=
SEPOLIA_RPC_URL=https://rpc.sepolia.org
OPTIMISM_RPC_URL=
OPTIMISM_SEPOLIA_RPC_URL=
POLYGON_RPC_URL=
MUMBAI_RPC_URL=
WORLD_RPC_URL=
WORLD_SEPOLIA_RPC_URL=

ETHERSCAN_API_KEY=
OPTIMISMSCAN_API_KEY=
26 changes: 14 additions & 12 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,38 @@ const config: HardhatUserConfig = {
url: "http://127.0.0.1:8545",
accounts: ["0xdf57089febbacf7ba0bc227dafbffa9fc08a93fdc68e1e42411a14efcf23656e"]
},
goerli: {
url: "https://eth-goerli.public.blastapi.io",
accounts: [process.env.PKEY as string],
},
// goerli: {
// url: "https://eth-goerli.public.blastapi.io",
// accounts: [process.env.PKEY as string],
// },
polygon: {
url: "https://polygon.llamarpc.com",
url: process.env.POLYGON_RPC_URL || "https://polygon.llamarpc.com",
accounts: [process.env.PKEY as string],
},
mumbai: {
url: "https://polygon-mumbai-bor.publicnode.com",
url: process.env.MUMBAI_RPC_URL || "https://polygon-mumbai-bor.publicnode.com",
accounts: [process.env.PKEY as string],
},
sepolia: {
url: "https://eth-sepolia.public.blastapi.io",
url: process.env.SEPOLIA_RPC_URL || "https://eth-sepolia.public.blastapi.io",
accounts: [process.env.PKEY as string],
gasPrice: 6 * 10 ** 9,
},
optimismSepolia: {
url: "https://opt-sepolia.g.alchemy.com/v2/t30F1rBnOskwo0M0Q4Re6bXQHQPpW_Sz",
url: process.env.OPTIMISM_SEPOLIA_RPC_URL || "https://sepolia.optimism.io",
accounts: [process.env.PKEY as string],
gasPrice: 5 * 10 ** 9, // Optimism uses a different gas mechanism, set to 0 for automatic handling
},
optimism: {
url: "https://opt-mainnet.g.alchemy.com/v2/Mjj_SdklUaCdR6EPfVKXb7m6Pj5TjzWL",
accounts: [process.env.PKEY_OP as string],
url: process.env.OPTIMISM_RPC_URL || "https://mainnet.optimism.io",
accounts: [process.env.PKEY as string],
}
},
etherscan: {
//apiKey: "GSZW9CN933WI4N3ZMQF9XCX9R6AC2H9IZF", ethereum
apiKey: "86Q5KMJ24TADN1WRUUVSDK31IAR44I1J4K" // optimism
apiKey: {
ethereum: process.env.ETHERSCAN_API_KEY as string,
optimism: process.env.OPTIMISMSCAN_API_KEY as string
}
}
};

Expand Down

0 comments on commit 0dfa2b7

Please sign in to comment.