Skip to content

Commit

Permalink
fix(jungle): migrate dev environment to jungle 4 (#988)
Browse files Browse the repository at this point in the history
* fix(jungle): migrate dev environment to jungle 4

* fix(jungle): migrate dev environment to jungle 4
  • Loading branch information
xavier506 authored Sep 25, 2022
1 parent 432c9b3 commit ac8246b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ HAPI_POSTGRES_DB=eosrate
HAPI_POSTGRES_SCHEMA=public
HAPI_SERVER_PORT=9090
HAPI_SERVER_ADDRESS=0.0.0.0
HAPI_EOS_API_ENDPOINT=https://jungle3.cryptolions.io
HAPI_EOS_API_ENDPOINT=https://jungle.edenia.cloud
HAPI_EOS_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
HAPI_PROXY_CONTRACT=proxyaccount
HAPI_RATING_CONTRACT=rateproducer
HAPI_HYPERION_API=https://jungle3history.cryptolions.io
HAPI_HYPERION_API=http://jungle.eosusa.io
HAPI_HYPERION_START_AT=2022-03-01T00:00:00.000+00:00
HAPI_HASURA_URL=http://hasura:8080/v1/graphql
HAPI_HASURA_ADMIN_SECRET=myadminsecretkey
Expand All @@ -34,16 +34,16 @@ HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090
# WEBAPP
REACT_APP_RATING_CONTRACT=rateproducer
REACT_APP_GRAPHQL_HTTP_URL=http://localhost:8080/v1/graphql
REACT_APP_API_URL=https://jungle3.cryptolions.io
REACT_APP_API_URL=https://jungle.edenia.cloud
REACT_APP_GRAPHQL_WS_URL=ws://localhost:8080/v1/graphql
REACT_APP_EOS_API_URL=https://jungle3.cryptolions.io
REACT_APP_EOS_API_HOST=jungle3.cryptolions.io
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
REACT_APP_EOS_CHAIN_ID=73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
REACT_APP_BLOCK_EXPLORER=https://jungle3.bloks.io
REACT_APP_NETWORK_MONITOR_URL=https://jungle.eosio.online/
REACT_APP_VERSION=v1.4.21
REACT_APP_MAINNET_VERSION= v1.4.21
REACT_APP_EDEN_CONTRACT=genesisdeden
REACT_APP_EDEN_CONTRACT=genesis.eden
REACT_APP_UAL_APP_NAME=EOSRate
16 changes: 8 additions & 8 deletions .github/workflows/push-staging-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ jobs:
REACT_APP_VERSION: ${{ github.ref }}
REACT_APP_RATING_CONTRACT: rateproducer
REACT_APP_MAINNET_VERSION: false
REACT_APP_EDEN_CONTRACT: genesisdeden
REACT_APP_EDEN_CONTRACT: genesis.eden
REACT_APP_GRAPHQL_HTTP_URL: https://graphql-jungle.eosrate.io/v1/graphql
REACT_APP_GRAPHQL_WS_URL: wss://graphql-jungle.eosrate.io/v1/graphql
REACT_APP_EOS_API_URL: https://jungle3.cryptolions.io
REACT_APP_EOS_API_HOST: jungle3.cryptolions.io
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
REACT_APP_BLOCK_EXPLORER: https://jungle3.bloks.io
REACT_APP_EOS_CHAIN_ID: 73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
REACT_APP_BLOCK_EXPLORER: https://local.bloks.io/?nodeUrl=https%3A%2F%2Fjungle4.api.eosnation.io&systemDomain=eosio&hyperionUrl=https%3A%2F%2Fjungle4.cryptolions.io
REACT_APP_NETWORK_MONITOR_URL: https://jungle.eosio.online/

- name: Build kubernetes files
Expand Down Expand Up @@ -87,9 +87,9 @@ jobs:
HAPI_POSTGRES_HOST: postgres
HAPI_POSTGRES_PORT: 5432
HAPI_POSTGRES_SCHEMA: public
HAPI_EOS_API_ENDPOINT: https://jungle3.cryptolions.io
HAPI_EOS_CHAIN_ID: 2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840
HAPI_HYPERION_API: https://jungle3history.cryptolions.io
HAPI_EOS_API_ENDPOINT: https://jungle.edenia.cloud
HAPI_EOS_CHAIN_ID: 73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
HAPI_HYPERION_API: http://jungle.eosusa.io
HAPI_HYPERION_START_AT: '2022-03-01T00:00:00.000+00:00'
# hasura
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }}
Expand Down
10 changes: 5 additions & 5 deletions contracts/rateproducer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ make -j

Add resources:
```bash
cleos -u https://jungle3.cryptolions.io system buyram rateproducer rateproducer "100 EOS"
cleos -u https://jungle.edenia.cloud system buyram rateproducer rateproducer "100 EOS"
```

Publish Contract:
```bash
cleos -u https://jungle3.cryptolions.io set contract rateproducer ./ -p rateproducer@active
cleos -u https://jungle.edenia.cloud set contract rateproducer ./ -p rateproducer@active
```

Push rating with all categories:
Expand All @@ -66,7 +66,7 @@ cleos -u hhttp://jungle2.cryptolions.io:80 push action rateproducer rate '{ "use

example 2:
```bash
cleos -u https://jungle3.cryptolions.io push action rateproducer rate '{ "user": "eoscrvoter11", "bp":"eoscrprodo51","transparency":8,"infrastructure":8,"trustiness":7,"development":6,"community":9 }' -p eoscrvoter11@active
cleos -u https://jungle.edenia.cloud push action rateproducer rate '{ "user": "eoscrvoter11", "bp":"eoscrprodo51","transparency":8,"infrastructure":8,"trustiness":7,"development":6,"community":9 }' -p eoscrvoter11@active
```

Push rating with partial categories:
Expand All @@ -76,12 +76,12 @@ cleos -u http://monitor.jungletestnet.io:8888 push action rateproducer rate '{ "

Get stats table:
```bash
cleos -u https://jungle3.cryptolions.io get table -l 50 rateproducer rateproducer stats
cleos -u https://jungle.edenia.cloud get table -l 50 rateproducer rateproducer stats
```

Get bp table:
```bash
cleos -u https://jungle3.cryptolions.io get table -l 50 rateproducer rateproducer ratings
cleos -u https://jungle.edenia.cloud get table -l 50 rateproducer rateproducer ratings
```

Clean data for a block producer:
Expand Down
2 changes: 1 addition & 1 deletion hapi/src/libs/sync-bps.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const request = require('request-promise')
const { massiveDB, chainConfig } = require('../config')

const HAPI_EOS_API_ENDPOINT =
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle3.cryptolions.io'
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'

const getBlockProducersData = async () => {
const eos = EosApi({
Expand Down

0 comments on commit ac8246b

Please sign in to comment.