Skip to content

Commit

Permalink
Added Harmony testnet + mainnet networks
Browse files Browse the repository at this point in the history
  • Loading branch information
givp committed Aug 20, 2021
1 parent 7b56f56 commit 9f9505c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,22 @@ module.exports = {
mnemonic: mnemonic(),
},
},
testnetHarmony: {
url: "https://api.s0.b.hmny.io",
gasPrice: 1000000000,
chainId: 1666700000,
accounts: {
mnemonic: mnemonic(),
},
},
mainnetHarmony: {
url: "https://api.harmony.one",
gasPrice: 1000000000,
chainId: 1666600000,
accounts: {
mnemonic: mnemonic(),
},
},
},
solidity: {
compilers: [
Expand Down
16 changes: 16 additions & 0 deletions packages/react-app/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,22 @@ export const NETWORKS = {
rpcUrl: `https://api.avax.network/ext/bc/C/rpc`,
gasPrice: 225000000000,
},
testnetHarmony: {
name: "Harmony Testnet",
color: "#00b0ef",
chainId: 1666700000,
blockExplorer: "https://explorer.pops.one/",
rpcUrl: `https://api.s0.b.hmny.io`,
gasPrice: 1000000000,
},
mainnetHarmony: {
name: "Harmony Mainnet",
color: "#00b0ef",
chainId: 1666600000,
blockExplorer: "https://explorer.harmony.one/",
rpcUrl: `https://api.harmony.one`,
gasPrice: 1000000000,
},
};

export const NETWORK = chainId => {
Expand Down

0 comments on commit 9f9505c

Please sign in to comment.