Skip to content

Commit

Permalink
feature: deploy redstone holesky (#18)
Browse files Browse the repository at this point in the history
* feature: deploy

* Delete .DS_Store
  • Loading branch information
yoanslvy authored Nov 28, 2023
1 parent 30d0063 commit 68e8abb
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 18 deletions.
1 change: 1 addition & 0 deletions deployments/redstone_holesky_production/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17001
87 changes: 87 additions & 0 deletions deployments/redstone_holesky_production/P256SignerFactory.json

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions deployments/redstone_holesky_production/Webauthn.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

41 changes: 23 additions & 18 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { ethers } = require("ethers");
const { getDeterministicDeployment } = require('@cometh/contracts-factory');
const { getDeterministicDeployment } = require("@cometh/contracts-factory");

require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-ethers");
Expand All @@ -20,24 +20,25 @@ module.exports = {
},
},
deterministicDeployment: (network) => {
const networkName = process.env.HARDHAT_NETWORK ?? '';
const networkName = process.env.HARDHAT_NETWORK ?? "";
const env = (() => {
switch (true) {
case networkName.endsWith('_production'):
return 'production';
case networkName.endsWith('_staging'):
return 'staging';
case networkName.endsWith("_production"):
return "production";
case networkName.endsWith("_staging"):
return "staging";
default:
return 'develop';
return "develop";
}
})();return getDeterministicDeployment(env)(network);
})();
return getDeterministicDeployment(env)(network);
},
networks: {
hardhat: {
forking: {
url: "https://polygon-mainnet.infura.io/v3/" + process.env.INFURA_ID,
blockNumber: 47134068,
}
},
},
muster_testnet: {
url: "https://muster-anytrust.alt.technology",
Expand Down Expand Up @@ -66,17 +67,17 @@ module.exports = {
polygon: {
url: "https://polygon-mainnet.infura.io/v3/" + process.env.INFURA_ID,
accounts: [process.env.PRIVATE_KEY || ethers.ZeroHash],
gasPrice: Number(ethers.parseUnits('100', 'gwei')),
gasPrice: Number(ethers.parseUnits("100", "gwei")),
},
polygon_production: {
url: "https://polygon-mainnet.infura.io/v3/" + process.env.INFURA_ID,
accounts: [process.env.PRIVATE_KEY || ethers.ZeroHash],
gasPrice: Number(ethers.parseUnits('100', 'gwei')),
gasPrice: Number(ethers.parseUnits("100", "gwei")),
},
polygon_staging: {
url: "https://polygon-mainnet.infura.io/v3/" + process.env.INFURA_ID,
accounts: [process.env.PRIVATE_KEY || ethers.ZeroHash],
gasPrice: Number(ethers.parseUnits('100', 'gwei')),
gasPrice: Number(ethers.parseUnits("100", "gwei")),
},
gnosischain: {
url: "https://rpc.gnosischain.com",
Expand Down Expand Up @@ -114,6 +115,10 @@ module.exports = {
url: "https://rpc.public.zkevm-test.net",
accounts: [process.env.PRIVATE_KEY || ethers.ZeroHash],
},
redstone_holesky_production: {
url: "https://rpc.holesky.redstone.xyz",
accounts: [process.env.PRIVATE_KEY || ethers.ZeroHash],
},
},
etherscan: {
// Your API key for Etherscan
Expand All @@ -125,18 +130,18 @@ module.exports = {
chainId: 10200,
urls: {
apiURL: "https://gnosis-chiado.blockscout.com/api",
browserURL: "https://gnosis-chiado.blockscout.com/"
}
browserURL: "https://gnosis-chiado.blockscout.com/",
},
},
{
network: "polygon_zkevm_testnet",
chainId: 1442,
urls: {
apiURL: "https://testnet-zkevm.polygonscan.com/api",
browserURL: "https://testnet-zkevm.polygonscan.com/"
}
}
]
browserURL: "https://testnet-zkevm.polygonscan.com/",
},
},
],
},
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
Expand Down

0 comments on commit 68e8abb

Please sign in to comment.