Skip to content

Commit ac8246b

Browse files
authored
fix(jungle): migrate dev environment to jungle 4 (#988)
* fix(jungle): migrate dev environment to jungle 4 * fix(jungle): migrate dev environment to jungle 4
1 parent 432c9b3 commit ac8246b

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

.env.example

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ HAPI_POSTGRES_DB=eosrate
1818
HAPI_POSTGRES_SCHEMA=public
1919
HAPI_SERVER_PORT=9090
2020
HAPI_SERVER_ADDRESS=0.0.0.0
21-
HAPI_EOS_API_ENDPOINT=https://jungle3.cryptolions.io
21+
HAPI_EOS_API_ENDPOINT=https://jungle.edenia.cloud
2222
HAPI_EOS_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
2323
HAPI_PROXY_CONTRACT=proxyaccount
2424
HAPI_RATING_CONTRACT=rateproducer
25-
HAPI_HYPERION_API=https://jungle3history.cryptolions.io
25+
HAPI_HYPERION_API=http://jungle.eosusa.io
2626
HAPI_HYPERION_START_AT=2022-03-01T00:00:00.000+00:00
2727
HAPI_HASURA_URL=http://hasura:8080/v1/graphql
2828
HAPI_HASURA_ADMIN_SECRET=myadminsecretkey
@@ -34,16 +34,16 @@ HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090
3434
# WEBAPP
3535
REACT_APP_RATING_CONTRACT=rateproducer
3636
REACT_APP_GRAPHQL_HTTP_URL=http://localhost:8080/v1/graphql
37-
REACT_APP_API_URL=https://jungle3.cryptolions.io
37+
REACT_APP_API_URL=https://jungle.edenia.cloud
3838
REACT_APP_GRAPHQL_WS_URL=ws://localhost:8080/v1/graphql
39-
REACT_APP_EOS_API_URL=https://jungle3.cryptolions.io
40-
REACT_APP_EOS_API_HOST=jungle3.cryptolions.io
39+
REACT_APP_EOS_API_URL=https://jungle.edenia.cloud
40+
REACT_APP_EOS_API_HOST=jungle.edenia.cloud
4141
REACT_APP_EOS_API_PORT=443
4242
REACT_APP_EOS_API_PROTOCOL=https
43-
REACT_APP_EOS_CHAIN_ID=2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840
43+
REACT_APP_EOS_CHAIN_ID=73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
4444
REACT_APP_BLOCK_EXPLORER=https://jungle3.bloks.io
4545
REACT_APP_NETWORK_MONITOR_URL=https://jungle.eosio.online/
4646
REACT_APP_VERSION=v1.4.21
4747
REACT_APP_MAINNET_VERSION= v1.4.21
48-
REACT_APP_EDEN_CONTRACT=genesisdeden
48+
REACT_APP_EDEN_CONTRACT=genesis.eden
4949
REACT_APP_UAL_APP_NAME=EOSRate

.github/workflows/push-staging-environment.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ jobs:
4545
REACT_APP_VERSION: ${{ github.ref }}
4646
REACT_APP_RATING_CONTRACT: rateproducer
4747
REACT_APP_MAINNET_VERSION: false
48-
REACT_APP_EDEN_CONTRACT: genesisdeden
48+
REACT_APP_EDEN_CONTRACT: genesis.eden
4949
REACT_APP_GRAPHQL_HTTP_URL: https://graphql-jungle.eosrate.io/v1/graphql
5050
REACT_APP_GRAPHQL_WS_URL: wss://graphql-jungle.eosrate.io/v1/graphql
51-
REACT_APP_EOS_API_URL: https://jungle3.cryptolions.io
52-
REACT_APP_EOS_API_HOST: jungle3.cryptolions.io
51+
REACT_APP_EOS_API_URL: https://jungle.edenia.cloud
52+
REACT_APP_EOS_API_HOST: jungle.edenia.cloud
5353
REACT_APP_EOS_API_PORT: 443
5454
REACT_APP_EOS_API_PROTOCOL: https
55-
REACT_APP_EOS_CHAIN_ID: 2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840
56-
REACT_APP_BLOCK_EXPLORER: https://jungle3.bloks.io
55+
REACT_APP_EOS_CHAIN_ID: 73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
56+
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
5757
REACT_APP_NETWORK_MONITOR_URL: https://jungle.eosio.online/
5858

5959
- name: Build kubernetes files
@@ -87,9 +87,9 @@ jobs:
8787
HAPI_POSTGRES_HOST: postgres
8888
HAPI_POSTGRES_PORT: 5432
8989
HAPI_POSTGRES_SCHEMA: public
90-
HAPI_EOS_API_ENDPOINT: https://jungle3.cryptolions.io
91-
HAPI_EOS_CHAIN_ID: 2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840
92-
HAPI_HYPERION_API: https://jungle3history.cryptolions.io
90+
HAPI_EOS_API_ENDPOINT: https://jungle.edenia.cloud
91+
HAPI_EOS_CHAIN_ID: 73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d
92+
HAPI_HYPERION_API: http://jungle.eosusa.io
9393
HAPI_HYPERION_START_AT: '2022-03-01T00:00:00.000+00:00'
9494
# hasura
9595
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }}

contracts/rateproducer/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ make -j
5050

5151
Add resources:
5252
```bash
53-
cleos -u https://jungle3.cryptolions.io system buyram rateproducer rateproducer "100 EOS"
53+
cleos -u https://jungle.edenia.cloud system buyram rateproducer rateproducer "100 EOS"
5454
```
5555

5656
Publish Contract:
5757
```bash
58-
cleos -u https://jungle3.cryptolions.io set contract rateproducer ./ -p rateproducer@active
58+
cleos -u https://jungle.edenia.cloud set contract rateproducer ./ -p rateproducer@active
5959
```
6060

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

6767
example 2:
6868
```bash
69-
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
69+
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
7070
```
7171

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

7777
Get stats table:
7878
```bash
79-
cleos -u https://jungle3.cryptolions.io get table -l 50 rateproducer rateproducer stats
79+
cleos -u https://jungle.edenia.cloud get table -l 50 rateproducer rateproducer stats
8080
```
8181

8282
Get bp table:
8383
```bash
84-
cleos -u https://jungle3.cryptolions.io get table -l 50 rateproducer rateproducer ratings
84+
cleos -u https://jungle.edenia.cloud get table -l 50 rateproducer rateproducer ratings
8585
```
8686

8787
Clean data for a block producer:

hapi/src/libs/sync-bps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const request = require('request-promise')
44
const { massiveDB, chainConfig } = require('../config')
55

66
const HAPI_EOS_API_ENDPOINT =
7-
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle3.cryptolions.io'
7+
process.env.HAPI_EOS_API_ENDPOINT || 'https://jungle.edenia.cloud'
88

99
const getBlockProducersData = async () => {
1010
const eos = EosApi({

0 commit comments

Comments
 (0)