Skip to content

Commit

Permalink
feature xdc zero (#33)
Browse files Browse the repository at this point in the history
feature xdc zero
  • Loading branch information
GalaxySciTech authored Nov 30, 2023
1 parent 967e5c4 commit 749d169
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 468 deletions.
6 changes: 3 additions & 3 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ NODE_ENV=development

SUBNET_URL=https://devnetstats.apothem.network/subnet

PARENTCHAIN_URL=https://devnetstats.apothem.network/devnet
PARENTNET_URL=https://devnetstats.apothem.network/devnet

CHECKPOINT_CONTRACT=0x16da2C7caf46D0d7270d68e590A992A90DfcF7ee

SUBNET_ZERO_CONTRACT=0x0000000

PARENTNET_ZERO_CONTRACT=0x0000000

PARENTCHAIN_WALLET_PK=0x123
PARENTNET_WALLET_PK=0x123

ZERO_WALLET_PK=0x123
PARENTNET_ZERO_WALLET_PK=0x123

SLACK_WEBHOOK=https://hooks.slack.com/services/blablabla
2 changes: 2 additions & 0 deletions .github/workflows/pr_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run: npm install && npm run postinstall
- name: Unit tests
run: npm run test
- name: Build test
run: npm run build

- name: Record branch env
id: branch
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ To build and run this app locally you will need:
npm install
```


- Set up .env
Copy over the .example.env file and override the values to appropriate ones
The new file name shall be `.env`
Expand Down Expand Up @@ -68,9 +69,9 @@ Create a .env file (or just rename the .example.env) containing all the env vari
### Find the value for important envs

1. `SUBNET_URL` : This is the URL to your subnet with RPC port specified. e.g http://66.94.121.151:8545
2. `PARENTCHAIN_URL` : This is the XDC parent chain URL with RPC port specified.
2. `PARENTNET_URL` : This is the XDC parent chain URL with RPC port specified.
3. `CHECKPOINT_CONTRACT` : This is the smart contract address for this subnet that has been uploaded in the parent chain.
4. `PARENTCHAIN_WALLET_PK` : This is the wallet key that will be used for submit subnet data into parent chain. You will need to have credits in it first.
4. `PARENTNET_WALLET_PK` : This is the wallet key that will be used for submit subnet data into parent chain. You will need to have credits in it first.
5. `SLACK_WEBHOOK` : (Optional) If relayer detected forking of your subnet, this is the URL where we will push alerting message to. You are required to set up slack bot and install it in the relevant channel first. For details, see slack doc: https://api.slack.com/messaging/webhooks \n
Once you are done with the slack setup, find the slack webhook url and put it here. It shall look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX` We only need the ones after `https://hooks.slack.com/services/`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"patch-package": "^6.5.1",
"pg": "^8.5.1",
"viem": "^1.18.9",
"web3": "^1.8.2"
"web3": "1.8.2"
},
"jest": {
"roots": [
Expand Down
Loading

0 comments on commit 749d169

Please sign in to comment.