Skip to content

Commit

Permalink
Add origins
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianH committed Jan 23, 2023
1 parent 4c8f32a commit 77b5179
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 14.17
node-version: 18

- name: install deps
run: yarn install --non-interactive
Expand All @@ -24,4 +24,4 @@ jobs:
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:18

WORKDIR /usr/src/app

Expand All @@ -9,4 +9,4 @@ RUN yarn install
COPY . .

EXPOSE 80
CMD [ "node", "./bin/www" ]
CMD [ "node", "./bin/www" ]
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ The api doc is available at http://localhost:3001/api-docs by default.
| Method | GET |
| Description | Return the current APY on the network. |

| Endpoint | /validators/accountinfos |
|-------------|-------------------------------------------------|
| Method | GET |
| Description | Return an array of validator enhanced with data from the account infos smart contract |
| Endpoint | /validators/accountinfos |
|-------------|---------------------------------------------------------------------------------------|
| Method | GET |
| Description | Return an array of validator enhanced with data from the account infos smart contract |

| Endpoint | /deploys/:hash |
|-------------|-------------------------------------|
| Method | GET |
| Method | GET |
| Description | Return a previously inserted deploy |

| Endpoint | /deploys/ |
Expand All @@ -36,19 +36,19 @@ The api doc is available at http://localhost:3001/api-docs by default.
| Description | Insert a deploy in the database |
| Body | Can be obtained by using the DeployUtil.deployToJson method from the casper js sdk. <br/>```{ deploy: {...}}``` |

| Endpoint | /validators/accountinfos |
|-------------|-------------------------------------------------|
| Method | GET |
| Description | Return an array of validator enhanced with data from the account infos smart contract |
| Endpoint | /validators/accountinfos |
|-------------|---------------------------------------------------------------------------------------|
| Method | GET |
| Description | Return an array of validator enhanced with data from the account infos smart contract |

## Admin endpoints

The api docs and the bull dashboard are exposed on a different port than the api, by default 3001.
Allowing you to choose to expose it or not with network rules.

| Endpoint | /api-docs |
|-------------|-------------------------------------------------|
| Method | GET |
| Endpoint | /api-docs |
|-------------|-----------------------------------|
| Method | GET |
| Description | Swagger ui to test easily the api |


Expand Down
2 changes: 1 addition & 1 deletion kubernetes/mainnet/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: api-casperholders-config
data:
CASPER_RPC_URL: https://node.casperholders.com
ORIGIN: https://casperholders.io,https://www.casperholders.io,https://dive.casper.dev
ORIGIN: https://casperholders.io,https://www.casperholders.io,https://dive.casper.dev,https://div3.casper.dev,https://explore.div3.app,https://div3.in
PORT: "80"
DATA_API: https://data.test.casperholders.com
NODE_ENV: "production"
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/testnet/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: api-testnet-casperholders-config
data:
CASPER_RPC_URL: https://node.testnet.casperholders.com
ORIGIN: http://localhost:8080,https://testnet.casperholders.io,https://dive.casper.dev
ORIGIN: http://localhost:8080,https://testnet.casperholders.io,https://dive.casper.dev,https://div3.casper.dev,https://explore.div3.app,https://div3.in
PORT: "80"
DATA_API: https://data.testnet.casperholders.com
NODE_ENV: "production"
Expand Down

0 comments on commit 77b5179

Please sign in to comment.