Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…n-service/push-smart-contracts into 291-support--arbitrum-optimism-sepolia
  • Loading branch information
Zartaj0 committed Mar 15, 2024
2 parents fa70882 + 56e4a7d commit b00262d
Show file tree
Hide file tree
Showing 13 changed files with 230 additions and 57 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sender = "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38"

#Optimism Networks
optimism = "https://mainnet.optimism.io"
optimismGoerli = "https://goerli.optimism.io"
optimismSepolia = "https://sepolia.optimism.io"

#zkEVM Networks
zkEVMMainnet = "https://zkevm-rpc.com"
Expand Down
53 changes: 28 additions & 25 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const chalk = require('chalk');
const fs = require("fs");

require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-ethers");
require("hardhat-gas-reporter");
require('hardhat-contract-sizer');
require("@nomicfoundation/hardhat-verify");


const { ethers } = require("ethers");
Expand Down Expand Up @@ -71,9 +71,8 @@ module.exports = {
// ETH Network
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`, // <---- YOUR INFURA ID! (or it won't work)
Expand All @@ -85,15 +84,13 @@ module.exports = {
// Polygon Chain
polygonMumbai: {
url: `https://rpc-mumbai.maticvigil.com/`, // <---- YOUR INFURA ID! (or it won't work)
accounts: {
mnemonic: mnemonic(),
},
accounts: [process.env.PRIVATE]

},
polygon: {
url: `https://polygon-rpc.com/`, // <---- YOUR INFURA ID! (or it won't work)
accounts: {
mnemonic: mnemonic(),
},
accounts: [process.env.PRIVATE]

},

// BSC Chain
Expand All @@ -105,31 +102,38 @@ module.exports = {
},
bscMainnet: {
url: "https://bsc-dataseed1.binance.org/",
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},

// Polygon zkEVM Chain
zkEVMTestnet: {
url: "https://rpc.public.zkevm-test.net ",
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},
zkEVMMainnet: {
url: "https://zkevm-rpc.com ",
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},

// Optimisim Chain
optimismSepolia: {
url: "https://sepolia.optimism.io",
accounts: [process.env.PRIVATE]

},
optimismMainnet: {
url: "https://mainnet.optimism.io",
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},

// Arbitrum Sepolia
arbitrumSepolia: {
url: "https://arbitrum-sepolia.blockpi.network/v1/rpc/public",
accounts: [process.env.PRIVATE]
},
optimismSepolia :{
url :"https://sepolia.optimism.io/" ,
Expand All @@ -139,9 +143,8 @@ module.exports = {
// Linea Chain
linea: {
url: `https://rpc.goerli.linea.build/`,
accounts: {
mnemonic: mnemonic(),
}
accounts: [process.env.PRIVATE]

},

//Fuse Mainnet
Expand Down
165 changes: 147 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
"ethereumjs-wallet": "1.0.1",
"ethers": "^5.1.4",
"hardhat": "^2.12.6",
"hardhat": "^2.12.6",
"hardhat-gas-reporter": "^1.0.4",
"node-watch": "^0.7.1",
"solidity-bytes-utils": "^0.0.9"
},
"devDependencies": {
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomicfoundation/hardhat-verify": "^2.0.4",
"hardhat-contract-sizer": "^2.8.0",
"moment": "^2.29.1",
"prettier": "^2.3.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/versioncontrol/0_deploySample.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const deploy = {
zkEVMTestnet: {
version: 1
},
optimismGoerli: {
optimismSepolia: {
version: 1
},
optimismMainnet: {
Expand Down
Loading

0 comments on commit b00262d

Please sign in to comment.