Skip to content

Commit

Permalink
Merge pull request scaffold-eth#326 from harmony-one/master
Browse files Browse the repository at this point in the history
New network: Harmony ONE
  • Loading branch information
austintgriffith authored Aug 20, 2021
2 parents 7b56f56 + 9f9505c commit 606c905
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 606c905

Please sign in to comment.