Skip to content

Commit

Permalink
chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrockrises committed Jan 18, 2024
1 parent 325c538 commit d681de3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
57 changes: 57 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,26 @@ const config: HardhatUserConfig = {
accounts: hardhatAccounts,
chainId: 91715,
},
arbitrumSepoliaTestnet: {
url: process.env.ARBITRUM_SEPOLIA_TESTNET_URL || "",
accounts: hardhatAccounts,
chainId: 421614,
},
capxTestnet: {
url: process.env.CAPX_TESTNET_URL || "",
accounts: hardhatAccounts,
chainId: 7116,
},
blastTestnet: {
url: process.env.BLAST_TESTNET_URL || "",
accounts: hardhatAccounts,
chainId: 168587773,
},
scrollTestnet: {
url: process.env.SCROLL_TESTNET_URL || "",
accounts: hardhatAccounts,
chainId: 534351,
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -331,6 +351,10 @@ const config: HardhatUserConfig = {
zkEVMMainnet: process.env.ZKEVM_API_KEY || "",
zkEVMGoerli: process.env.ZKEVM_API_KEY || "",
arbitrumNova: process.env.ARBITRUM_NOVA_API_KEY || "",
arbitrumSepolia: process.env.ARBITRUM_API_KEY || "",
capxTestnet: "PLACEHOLDER_STRING",
scrollTestnet: process.env.SCROLL_API_KEY || "",
blastTestnet: "blastTestnet", // apiKey is not required, just set a placeholder
},
customChains: [
{
Expand Down Expand Up @@ -445,6 +469,39 @@ const config: HardhatUserConfig = {
browserURL: "https://testnet-zkevm.polygonscan.com",
},
},
{
network: "blastTestnet",
chainId: 168587773,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan",
browserURL: "https://testnet.blastscan.io",
},
},
{
network: "capxTestnet",
chainId: 7116,
urls: {
apiURL: "http://148.113.163.123:4010/api",
browserURL: "http://148.113.163.123:4010",
},
},
{
network: "scrollTestnet",
chainId: 534351,
urls: {
apiURL: `https://scrollscan.com/api/${process.env.SCROLL_API_KEY}`,
browserURL: "https://sepolia.scrollscan.com",
},
},
{
network: "arbitrumSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io",
},
},
],
},
};
Expand Down
12 changes: 12 additions & 0 deletions scripts/5-stake-paymaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ const paymasterStakeConfig: Record<number, PaymasterStakeConfig> = {
unstakeDelayInSec: 60 * 60 * 24, // 1 Day
paymasterStakeInWei: parseEther("0.06"), // 1 ETH = $1,674.88
},
7116: {
unstakeDelayInSec: 60 * 60 * 24, // 1 Day
paymasterStakeInWei: parseEther("0.06"), // 1 ETH = $1,674.88
},
168587773: {
unstakeDelayInSec: 60 * 60 * 24, // 1 Day
paymasterStakeInWei: parseEther("0.06"), // 1 ETH = $1,674.88
},
534351: {
unstakeDelayInSec: 60 * 60 * 24, // 1 Day
paymasterStakeInWei: parseEther("0.06"), // 1 ETH = $1,674.88
},
};

async function stakePaymaster(deployerInstance: Deployer) {
Expand Down

0 comments on commit d681de3

Please sign in to comment.