Skip to content

Commit

Permalink
Merge pull request #240 from zama-ai/feat/local-devnet-tests
Browse files Browse the repository at this point in the history
Add testing network for terraform devnet
  • Loading branch information
david-zk authored Jan 12, 2024
2 parents ee74f29 + deecd60 commit d5af19d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const chainIds = {
zama: 8009,
local: 9000,
localNetwork1: 9000,
multipleValidatorTestnet: 9000,
};

function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
Expand All @@ -88,6 +89,9 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
case 'localNetwork1':
jsonRpcUrl = 'http://127.0.0.1:9650/ext/bc/fhevm/rpc';
break;
case 'multipleValidatorTestnet':
jsonRpcUrl = 'https://rpc.fhe-ethermint.zama.ai';
break;
case 'zama':
jsonRpcUrl = 'https://devnet.zama.ai';
break;
Expand Down Expand Up @@ -141,6 +145,7 @@ const config: HardhatUserConfig = {
localDev: getChainConfig('local'),
local: getChainConfig('local'),
localNetwork1: getChainConfig('localNetwork1'),
multipleValidatorTestnet: getChainConfig('multipleValidatorTestnet'),
},
paths: {
artifacts: './artifacts',
Expand Down

0 comments on commit d5af19d

Please sign in to comment.