-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from TogetherCrew/add-arbitrum
Add arbitrum
- Loading branch information
Showing
7 changed files
with
90,157 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,66 @@ | ||
import type { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox-viem"; | ||
import { vars } from "hardhat/config"; | ||
import {generatePrivateKey} from "viem/accounts" | ||
import { generatePrivateKey } from "viem/accounts"; | ||
|
||
const ALCHEMY_SEPOLIA_ENDPOINT = vars.get("ALCHEMY_SEPOLIA_ENDPOINT", ""); | ||
const PRIVATE_KEY = vars.has("PRIVATE_KEY") | ||
? vars.get("PRIVATE_KEY") | ||
: generatePrivateKey(); | ||
? vars.get("PRIVATE_KEY") | ||
: generatePrivateKey(); | ||
|
||
const ETHERSCAN_API_KEY = vars.get("ETHERSCAN_API_KEY", ""); | ||
|
||
const OPTIMISM_ETHERSCAN_API_KEY = vars.has("OPTIMISM_ETHERSCAN_API_KEY") | ||
? vars.get("OPTIMISM_ETHERSCAN_API_KEY") | ||
: ""; | ||
|
||
const BASESCAN_API_KEY = vars.has("BASESCAN_API_KEY") | ||
? vars.get("BASESCAN_API_KEY") | ||
: ""; | ||
|
||
const OPTIMISM_ETHERSCAN_API_KEY = vars.has("OPTIMISM_ETHERSCAN_API_KEY") | ||
? vars.get("OPTIMISM_ETHERSCAN_API_KEY") | ||
: ""; | ||
const ARBISCAN_API_KEY = vars.has("ARBISCAN_API_KEY") | ||
? vars.get("ARBISCAN_API_KEY") | ||
: ""; | ||
const config: HardhatUserConfig = { | ||
solidity: "0.8.26", | ||
networks: { | ||
sepolia: { | ||
url: ALCHEMY_SEPOLIA_ENDPOINT, | ||
accounts: [PRIVATE_KEY], | ||
}, | ||
optimismSepolia: { | ||
chainId: 11155420, | ||
accounts: [PRIVATE_KEY], | ||
url: "https://sepolia.optimism.io", | ||
gasMultiplier: 1.2, | ||
}, | ||
baseSepolia: { | ||
solidity: "0.8.26", | ||
networks: { | ||
sepolia: { | ||
url: ALCHEMY_SEPOLIA_ENDPOINT, | ||
accounts: [PRIVATE_KEY], | ||
}, | ||
optimismSepolia: { | ||
chainId: 11155420, | ||
accounts: [PRIVATE_KEY], | ||
url: "https://sepolia.optimism.io", | ||
gasMultiplier: 1.2, | ||
}, | ||
baseSepolia: { | ||
chainId: 84532, | ||
accounts: [PRIVATE_KEY], | ||
url: "https://sepolia.base.org/", | ||
gasMultiplier: 1.3, | ||
}, | ||
}, | ||
etherscan: { | ||
apiKey: { | ||
sepolia: ETHERSCAN_API_KEY, | ||
optimismSepolia: OPTIMISM_ETHERSCAN_API_KEY, | ||
baseSepolia: BASESCAN_API_KEY | ||
}, | ||
customChains: [ | ||
{ | ||
network: "optimismSepolia", | ||
chainId: 11155420, | ||
urls: { | ||
apiURL: "https://api-sepolia-optimistic.etherscan.io/api", | ||
browserURL: "https://sepolia-optimism.etherscan.io/", | ||
}, | ||
}, | ||
], | ||
}, | ||
arbitrum: { | ||
chainId: 42161, | ||
accounts: [PRIVATE_KEY], | ||
url: "https://arb1.arbitrum.io/rpc", | ||
}, | ||
}, | ||
etherscan: { | ||
apiKey: { | ||
sepolia: ETHERSCAN_API_KEY, | ||
optimismSepolia: OPTIMISM_ETHERSCAN_API_KEY, | ||
baseSepolia: BASESCAN_API_KEY, | ||
arbitrumOne: ARBISCAN_API_KEY, | ||
}, | ||
customChains: [ | ||
{ | ||
network: "optimismSepolia", | ||
chainId: 11155420, | ||
urls: { | ||
apiURL: "https://api-sepolia-optimistic.etherscan.io/api", | ||
browserURL: "https://sepolia-optimism.etherscan.io/", | ||
}, | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default config; |
4 changes: 4 additions & 0 deletions
4
ignition/deployments/chain-42161/artifacts/EngagementModule#Engagement.dbg.json
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,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../build-info/4e58f17c75b86363e11bf0ecd1dbfa6a.json" | ||
} |
Oops, something went wrong.