Skip to content

Commit

Permalink
chore: add XDC Network (#147)
Browse files Browse the repository at this point in the history
Merging XDC network as pushed by our partner for TradeTrust

---------

Co-authored-by: BlocksScanIO <[email protected]>
Co-authored-by: BlocksScan Explorer <[email protected]>
  • Loading branch information
3 people authored Jul 21, 2023
1 parent dffa3e9 commit 72720a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a href="https://tradetrust.io">TradeTrust</a> Electronic Bill of Lading (eBL)
</p>

<p align="center">
<p align="center">
<a href="https://circleci.com/gh/Open-Attestation/token-registry/tree/master" alt="Circle CI"><img src="https://img.shields.io/circleci/build/github/Open-Attestation/token-registry/master" /></a>
<a href="https://codecov.io/gh/Open-Attestation/token-registry" alt="Code Coverage"><img src="https://codecov.io/gh/Open-Attestation/token-registry/branch/master/graph/badge.svg?token=Y4R9SWXATG" /></a>
<a href="https://www.npmjs.com/package/@govtechsg/token-registry" alt="NPM"><img src="https://img.shields.io/npm/dw/@govtechsg/token-registry" /></a>
Expand Down Expand Up @@ -364,6 +364,8 @@ Here's a list of network names currently pre-configured:
- `sepolia`
- `polygon` (Polygon Mainnet)
- `mumbai` (Polygon Mumbai)
- `xdc` (XDC Network Mainnet)
- `xdcapothem` (XDC Apothem 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 @@ -94,6 +94,14 @@ const config: HardhatUserConfig = {
...networkConfig,
url: "https://rpc.sepolia.org",
},
xdc: {
...networkConfig,
url: "https://erpc.xinfin.network",
},
xdcapothem: {
...networkConfig,
url: "https://erpc.apothem.network",
},
/**
* Polygon
*/
Expand Down
4 changes: 4 additions & 0 deletions src/constants/contract-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const ChainId = {
Sepolia: 11155111,
Polygon: 137,
PolygonMumbai: 80001,
XDC: 50,
XDCApothem: 51,
};

export const contractAddress = {
Expand All @@ -13,6 +15,8 @@ export const contractAddress = {
[ChainId.Sepolia]: "0x5aA71Cc9559bC5e54E9504a81496d9F8454721F5",
[ChainId.Polygon]: "0xA38CC56c9291B9C1f52F862dd92326d352e710b8",
[ChainId.PolygonMumbai]: "0x5aA71Cc9559bC5e54E9504a81496d9F8454721F5",
[ChainId.XDC]: "0x50BfCc1b699fD2308B978B7a6A26e3C3Bbad16DC",
[ChainId.XDCApothem]: "0xce28778bE6cF32ef3Ccbc09910258DF592F3b6F1",
},
Deployer: {
[ChainId.Ethereum]: "0x92470d0Fc33Cbf2f04B39696733806a15eD7eef3",
Expand Down

0 comments on commit 72720a1

Please sign in to comment.