From b5a8b1a2a41584e6aa7772db75637eef19e1c72d Mon Sep 17 00:00:00 2001 From: Leister Francisco Alvarado Campos Date: Thu, 2 Nov 2023 13:55:37 -0600 Subject: [PATCH] perf(evm): add HASURA_GRAPHQL_ACTION_EVM_URL missing variable --- .env.jungle | 1 + .env.local | 1 + .env.mainnet | 23 +++++++++++++++++++- .github/workflows/deploy-jungle-testnet.yaml | 1 + .github/workflows/deploy-mainnet.yaml | 1 + 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.env.jungle b/.env.jungle index 0249458bc..1b71e9908 100644 --- a/.env.jungle +++ b/.env.jungle @@ -17,6 +17,7 @@ HASURA_GRAPHQL_DATABASE_URL=postgres://eoscr:password@postgres:5432/localdb HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_UNAUTHORIZED_ROLE=guest HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090 +HASURA_GRAPHQL_ACTION_EVM_URL=http://hapi-evm:9090 # hapi HAPI_EOS_API_NETWORK_NAME=jungle diff --git a/.env.local b/.env.local index ce26642bf..b9070e6a6 100644 --- a/.env.local +++ b/.env.local @@ -17,6 +17,7 @@ HASURA_GRAPHQL_DATABASE_URL=postgres://eoscr:password@postgres:5432/localdb HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_UNAUTHORIZED_ROLE=guest HASURA_GRAPHQL_ACTION_BASE_URL= +HASURA_GRAPHQL_ACTION_EVM_URL= # hapi HAPI_EOS_API_NETWORK_NAME=lacchain diff --git a/.env.mainnet b/.env.mainnet index 52c7685a1..5d7113908 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -17,6 +17,7 @@ HASURA_GRAPHQL_DATABASE_URL=postgres://eoscr:password@postgres:5432/localdb HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_UNAUTHORIZED_ROLE=guest HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090 +HASURA_GRAPHQL_ACTION_EVM_URL=http://hapi-evm:9090 # hapi HAPI_EOS_API_NETWORK_NAME=mainnet @@ -56,7 +57,27 @@ HAPI_RE_CAPTCHA_PROJECT_ID= HAPI_PUBLIC_RE_CAPTCHA_KEY= HAPI_CREATE_ACCOUNT_ACTION_NAME= -#webapp +# hapi-evm +HAPI_EVM_SERVER_PORT=9090 +HAPI_EVM_SERVER_ADDRESS=hapi-evm +HAPI_EVM_HASURA_URL=http://hasura:8080/v1/graphql +HAPI_EVM_HASURA_ADMIN_SECRET=myadminsecretkey +HAPI_EVM_DATABASE_URL=postgres://eoscr:password@postgres:5432/localdb +HAPI_EVM_ENDPOINT=https://api.evm.eosnetwork.com +HAPI_EVM_API_ENDPOINTS=["https://eos.edenia.cloud","https://api.main.alohaeos.com","https://eos.api.eosnation.io","https://eos.greymass.com","https://eos.eosphere.io","https://api.eosrio.io"] +HAPI_EVM_NETWORK=EOSIO# EOSIO, TELOS +HAPI_EVM_NETWORK_CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906 +HAPI_EVM_EOS_EVM_ACCOUNT=eosio.evm +HAPI_EVM_BLOCK_INTERVAL_SEC=1 +HAPI_EVM_OLD_BLOCK_INTERVAL_SEC=0.1 +HAPI_EVM_ATH_INTERVAL_SEC=60 +HAPI_EVM_CLEAN_OLD_BLOCK_INTERVAL_SEC=86400 +HAPI_EVM_CLEAN_OLD_TRANSFER_INTERVAL_SEC=86400 +HAPI_EVM_KEEP_HISTORY_FOR_YEARS=1 +HAPI_EVM_HYPERION_API=https://eos.eosusa.io +HAPI_EVM_HYPERION_START_AT=2022-01-01T00:00:00.000+00:00 + +# webapp PORT=3000 REACT_APP_VERSION=dev REACT_APP_NAME=$npm_package_name diff --git a/.github/workflows/deploy-jungle-testnet.yaml b/.github/workflows/deploy-jungle-testnet.yaml index bb720ff5e..000160609 100644 --- a/.github/workflows/deploy-jungle-testnet.yaml +++ b/.github/workflows/deploy-jungle-testnet.yaml @@ -132,6 +132,7 @@ jobs: HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} HASURA_GRAPHQL_UNAUTHORIZED_ROLE: guest HASURA_GRAPHQL_ACTION_BASE_URL: http://dashboard-hapi:9090 + HASURA_GRAPHQL_ACTION_EVM_URL: http://dashboard-hapi-evm:9091 - name: Setup and deploy kubernetes environment uses: steebchen/kubectl@v1.1.0 diff --git a/.github/workflows/deploy-mainnet.yaml b/.github/workflows/deploy-mainnet.yaml index 52c229fcd..086a17af7 100644 --- a/.github/workflows/deploy-mainnet.yaml +++ b/.github/workflows/deploy-mainnet.yaml @@ -130,6 +130,7 @@ jobs: HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }} HASURA_GRAPHQL_UNAUTHORIZED_ROLE: guest HASURA_GRAPHQL_ACTION_BASE_URL: http://dashboard-hapi:9090 + HASURA_GRAPHQL_ACTION_EVM_URL: http://dashboard-hapi-evm:9091 - name: Setup and deploy kubernetes environment uses: steebchen/kubectl@v1.1.0