Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hedera network by KrypC team #176

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ Here's a list of network names currently pre-configured:
- `mumbai` (Polygon Mumbai)
- `xdc` (XDC Network Mainnet)
- `xdcapothem` (XDC Apothem TestNet)
- `hederamainnet` (Hedera Network Mainnet)
- `hederatestnet` (Hedera Network TestNet)

> 💡 You can configure existing and add other networks you wish to deploy to in the `hardhat.config.ts` file.

Expand Down
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ const config: HardhatUserConfig = {
...networkConfig,
url: "https://erpc.apothem.network",
},
hederamainnet: {
...networkConfig,
url: "https://mainnet.hashio.io/api",
},
hederatestnet: {
...networkConfig,
url: "https://testnet.hashio.io/api",
},
/**
* Polygon
*/
Expand Down
2 changes: 2 additions & 0 deletions src/constants/contract-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const ChainId = {
PolygonMumbai: 80001,
XDC: 50,
XDCApothem: 51,
HederaMainnet: 295,
HederaTestnet: 296,
};

export const contractAddress = {
Expand Down