Skip to content

Commit

Permalink
➕ Add Telos, Core, and Rootstock Main and Test Network Deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Jun 6, 2024
1 parent 7288e38 commit eeda076
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 105 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ All files | 100 | 100 | 100 | 100 |
- Kroma: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://kromascan.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Kava: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://kavascan.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- X Layer: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://www.oklink.com/xlayer/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Core: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://scan.coredao.org/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Telos: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://www.teloscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Rootstock: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://rootstock.blockscout.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- **Ethereum Test Networks:**
- Rinkeby (⚠️ Deprecated): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://rinkeby.etherscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Ropsten (⚠️ Deprecated): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://ropsten.etherscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
Expand Down Expand Up @@ -135,3 +138,6 @@ All files | 100 | 100 | 100 | 100 |
- Kroma Testnet (Sepolia): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://sepolia.kromascan.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Sei Arctic Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://seistream.app/account/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- X Layer (Sepolia): [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://www.oklink.com/xlayer-test/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Core Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://scan.test.btcs.network/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Telos Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://www.teloscan.io/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
- Rootstock Testnet: [`0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2`](https://rootstock-testnet.blockscout.com/address/0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2)
93 changes: 93 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,42 @@ const config: HardhatUserConfig = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
coreTestnet: {
chainId: 1115,
url: process.env.CORE_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
coreMain: {
chainId: 1116,
url: process.env.CORE_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
telosTestnet: {
chainId: 41,
url: process.env.TELOS_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
telosMain: {
chainId: 40,
url: process.env.TELOS_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
rootstockTestnet: {
chainId: 31,
url: process.env.ROOTSTOCK_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
rootstockMain: {
chainId: 30,
url: process.env.ROOTSTOCK_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -747,6 +783,15 @@ const config: HardhatUserConfig = {
// For BOB testnet & mainnet
bob: process.env.BOB_API_KEY || "",
bobTestnet: process.env.BOB_API_KEY || "",
// For Core testnet & mainnet
core: process.env.CORE_MAINNET_API_KEY || "",
coreTestnet: process.env.CORE_TESTNET_API_KEY || "",
// For Telos testnet & mainnet
telos: process.env.TELOS_API_KEY || "",
telosTestnet: process.env.TELOS_API_KEY || "",
// For Rootstock testnet & mainnet
rootstock: process.env.ROOTSTOCK_API_KEY || "",
rootstockTestnet: process.env.ROOTSTOCK_API_KEY || "",
},
customChains: [
{
Expand Down Expand Up @@ -1225,6 +1270,54 @@ const config: HardhatUserConfig = {
browserURL: "https://testnet-explorer.gobob.xyz",
},
},
{
network: "core",
chainId: 1116,
urls: {
apiURL: "https://openapi.coredao.org/api",
browserURL: "https://scan.coredao.org",
},
},
{
network: "coreTestnet",
chainId: 1115,
urls: {
apiURL: "https://api.test.btcs.network/api",
browserURL: "https://scan.test.btcs.network",
},
},
{
network: "telos",
chainId: 40,
urls: {
apiURL: "https://api.teloscan.io/api",
browserURL: "https://www.teloscan.io",
},
},
{
network: "telosTestnet",
chainId: 41,
urls: {
apiURL: "https://api.testnet.teloscan.io/api",
browserURL: "https://testnet.teloscan.io",
},
},
{
network: "rootstock",
chainId: 30,
urls: {
apiURL: "https://rootstock.blockscout.com/api",
browserURL: "https://rootstock.blockscout.com",
},
},
{
network: "rootstockTestnet",
chainId: 31,
urls: {
apiURL: "https://rootstock-testnet.blockscout.com/api",
browserURL: "https://rootstock-testnet.blockscout.com",
},
},
],
},
};
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
"deploy:xlayermain": "npx hardhat run --network xlayerMain scripts/deploy.ts",
"deploy:bobtestnet": "npx hardhat run --network bobTestnet scripts/deploy.ts",
"deploy:bobmain": "npx hardhat run --network bobMain scripts/deploy.ts",
"deploy:coretestnet": "npx hardhat run --network coreTestnet scripts/deploy.ts",
"deploy:coremain": "npx hardhat run --network coreMain scripts/deploy.ts",
"deploy:telostestnet": "npx hardhat run --network telosTestnet scripts/deploy.ts",
"deploy:telosmain": "npx hardhat run --network telosMain scripts/deploy.ts",
"deploy:rootstocktestnet": "npx hardhat run --network rootstockTestnet scripts/deploy.ts",
"deploy:rootstockmain": "npx hardhat run --network rootstockMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
Expand All @@ -138,7 +144,7 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.1",
"@types/node": "^20.14.2",
"chai": "^4.4.1",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
Expand All @@ -148,7 +154,7 @@
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.0",
"prettier": "^3.3.0",
"prettier": "^3.3.1",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^5.0.1",
"solidity-coverage": "^0.8.12",
Expand Down
Loading

0 comments on commit eeda076

Please sign in to comment.