Skip to content

Commit

Permalink
Fix/hapi cronjob node path (#934)
Browse files Browse the repository at this point in the history
* fix(hapi): update cronjob node path

* fix(hapi): update cronjob node path

* fix(testnet): update testet domain name to edenia.cloud
  • Loading branch information
xavier506 authored Apr 16, 2022
1 parent ac6c589 commit 1c4752f
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HAPI_POSTGRES_DB=eosrate
HAPI_POSTGRES_SCHEMA=public
HAPI_SERVER_PORT=9090
HAPI_SERVER_ADDRESS=0.0.0.0
HAPI_EOS_API_ENDPOINT=https://jungle.eosio.cr
HAPI_EOS_API_ENDPOINT=https://jungle.edenia.cloud
HAPI_EOS_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
HAPI_PROXY_CONTRACT=proxyaccount
HAPI_RATING_CONTRACT=rateproducer
Expand All @@ -42,8 +42,8 @@ REACT_APP_MAINNET_VERSION=true
REACT_APP_EDEN_CONTRACT=genesis.eden
REACT_APP_GRAPHQL_HTTP_URL=http://localhost:8080/v1/graphql
REACT_APP_GRAPHQL_WS_URL=ws://localhost:8080/v1/graphql
REACT_APP_EOS_API_URL=https://jungle.eosio.cr
REACT_APP_EOS_API_HOST=jungle.eosio.cr
REACT_APP_EOS_API_URL=https://jungle.edenia.cloud
REACT_APP_EOS_API_HOST=jungle.edenia.cloud
REACT_APP_EOS_API_PORT=443
REACT_APP_EOS_API_PROTOCOL=https
REACT_APP_EOS_CHAIN_ID=2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840
Expand Down
2 changes: 1 addition & 1 deletion demux/src/handlerVersions/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { massiveConfig } = require('../../config')
const eosjs = require('eosjs')
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args))

const rpc = new eosjs.JsonRpc(process.env.REACT_APP_EOS_API_URL || 'https://jungle.eosio.cr', { fetch })
const rpc = new eosjs.JsonRpc(process.env.REACT_APP_EOS_API_URL || 'https://jungle.edenia.cloud', { fetch })
const getStats = async bp => {
const response = await rpc.get_table_rows({
json: true, // Get the response as json
Expand Down
2 changes: 1 addition & 1 deletion demux/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const actionHandler = new ObjectActionHandler([handlerVersion]);
const actionReader = new NodeosActionReader({
startAtBlock: 0,
onlyIrreversible: false,
nodeosEndpoint: process.env.EOS_API_ENDPOINT || "https://jungle.eosio.cr"
nodeosEndpoint: process.env.EOS_API_ENDPOINT || "https://jungle.edenia.cloud"
});

/* BaseActionWatcher
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/libs/sync-proxies.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fetch = (...args) =>
const { massiveDB } = require('../config')

const HAPI_EOS_API_ENDPOINT =
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.eosio.cr'
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'
const HAPI_PROXY_CONTRACT = process.env.HAPI_PROXY_CONTRACT || 'proxyaccount'

const getProxiesData = async () => {
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/libs/sync-ratings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
} = require('../config')

const HAPI_EOS_API_ENDPOINT =
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.eosio.cr'
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'
const HAPI_RATING_CONTRACT = process.env.HAPI_RATING_CONTRACT || 'rateproducer'

const getUserRatings = async scope => {
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/libs/sync-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
const { getTotalStats } = require('../utils')

const HAPI_EOS_API_ENDPOINT =
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.eosio.cr'
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'
const HAPI_RATING_CONTRACT = process.env.HAPI_RATING_CONTRACT || 'rateproducer'

const getRatingsStats = async scope => {
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/utils/update-bp-stats.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const HAPI_RATING_CONTRACT = process.env.HAPI_RATING_CONTRACT || 'rateproducer'

const getBpStats = async (bp, scope) => {
const rpc = new eosjs.JsonRpc(
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.eosio.cr',
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud',
{ fetch }
)

Expand Down
2 changes: 1 addition & 1 deletion hapi/src/utils/update-user-rating.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fetch = (...args) =>
const { massiveDB } = require('../config')

const HAPI_EOS_API_ENDPOINT =
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.eosio.cr'
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'
const HAPI_RATING_CONTRACT = process.env.HAPI_RATING_CONTRACT || 'rateproducer'

// gets data from blockchain
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: HAPI_POSTGRES_USER
value: "${HAPI_POSTGRES_USER}"
- name: HAPI_EOS_API_ENDPOINT
value: https://api.eosio.cr
value: "$HAPI_EOS_API_ENDPOINT}"
- name: HAPI_SERVER_ADDRESS
value: 0.0.0.0
- name: HAPI_SERVER_PORT
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ We are running the application infrastructure on premises in San Jose, Costa Ric
- **hapi:**
A back end service for synchronizing `rateproducer` blockchain tables with postgreSQL.

- **EOSIO Node:** https://api.eosio.cr
- **EOSIO Node:** https://eos.edenia.cloud
<br/>[`fill-pg`](https://github.com/EOSIO/history-tools#fill-pg) fills postgresql with data from nodeos's State History Plugin.

_Note: This project is based on [EOS DApp Boilerplate](https://github.com/eoscostarica/eos-dapp-boilerplate)._
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/mock/bps.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default [
p2p_endpoint: '',
bnet_endpoint: '',
api_endpoint: '',
ssl_endpoint: 'https://api.eosio.cr'
ssl_endpoint: 'https://eos.edenia.cloud'
},
{
location: {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/routes/TermsOfUse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TermsOfUse = () => {
<TitlePage title={t('tabTitle')} />
<RicardianContract
contractName={mainConfig.contract}
httpEndpoint='https://api.eosio.cr'
httpEndpoint='https://eos.edenia.cloud'
/>
</Box>
</Box>
Expand Down

0 comments on commit 1c4752f

Please sign in to comment.