Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
bdb8b6c5
Unverified
Commit
bdb8b6c5
authored
Aug 15, 2023
by
mergify[bot]
Committed by
GitHub
Aug 15, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into cleanup/old-upgrade-scripts
parents
7db703dc
b7edde20
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
306 additions
and
254 deletions
+306
-254
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
docker-compose.yml
indexer/docker-compose.yml
+116
-0
package.json
package.json
+1
-1
package.json
packages/common-ts/package.json
+1
-1
pnpm-lock.yaml
pnpm-lock.yaml
+185
-249
No files found.
go.mod
View file @
bdb8b6c5
...
...
@@ -43,7 +43,7 @@ require (
golang.org/x/term v0.11.0
golang.org/x/time v0.3.0
gorm.io/driver/postgres v1.5.2
gorm.io/gorm v1.25.
2
gorm.io/gorm v1.25.
3
)
require (
...
...
go.sum
View file @
bdb8b6c5
...
...
@@ -1111,8 +1111,8 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gorm.io/driver/postgres v1.5.2 h1:ytTDxxEv+MplXOfFe3Lzm7SjG09fcdb3Z/c056DTBx0=
gorm.io/driver/postgres v1.5.2/go.mod h1:fmpX0m2I1PKuR7mKZiEluwrP3hbs+ps7JIGMUBpCgl8=
gorm.io/gorm v1.25.
2 h1:gs1o6Vsa+oVKG/a9ElL3XgyGfghFfkKA2SInQaCyMho
=
gorm.io/gorm v1.25.
2
/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k=
gorm.io/gorm v1.25.
3 h1:zi4rHZj1anhZS2EuEODMhDisGy+Daq9jtPrNGgbQYD8
=
gorm.io/gorm v1.25.
3
/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k=
grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
...
...
indexer/docker-compose.yml
View file @
bdb8b6c5
...
...
@@ -98,5 +98,121 @@ services:
postgres
:
condition
:
service_healthy
gateway-frontend
:
command
:
pnpm nx start @gateway/frontend --host 0.0.0.0 --port
5173
# Change tag to `latest` after https://github.com/ethereum-optimism/gateway/pull/2541 merges
image
:
ethereumoptimism/gateway-frontend:0687c408e4f85cbe81acf7a197e861df8c7282df
ports
:
-
5173:5173
healthcheck
:
test
:
curl http://0.0.0.0:5173
environment
:
-
VITE_GROWTHBOOK=${VITE_GROWTHBOOK:-https://cdn.growthbook.io/api/features/dev_iGoAbSwtGOtEJONeHdVTosV0BD3TvTPttAccGyRxqsk}
-
VITE_ENABLE_DEVNET=true
-
VITE_RPC_URL_ETHEREUM_MAINNET=$VITE_RPC_URL_ETHEREUM_MAINNET
-
VITE_RPC_URL_ETHEREUM_OPTIMISM_MAINNET=$VITE_RPC_URL_OPTIMISM_MAINNET
-
VITE_RPC_URL_ETHEREUM_GOERLI=$VITE_RPC_URL_ETHEREUM_GOERLI
-
VITE_RPC_URL_ETHEREUM_OPTIMISM_GOERLI=$VITE_RPC_URL_OPTIMISM_GOERLI
-
VITE_BACKEND_URL_MAINNET=http://localhost:7421
-
VITE_BACKEND_URL_GOERLI=http://localhost:7422
-
VITE_ENABLE_ALL_FEATURES=true
backend-mainnet
:
image
:
ethereumoptimism/gateway-backend:latest
environment
:
# this enables the backend to proxy history requests to the indexer
-
BRIDGE_INDEXER_URI=http://api
-
HOST=0.0.0.0
-
PORT=7300
-
MIGRATE_APP_DB_USER=${MIGRATE_APP_DB_USER:-postgres}
-
MIGRATE_APP_DB_PASSWORD=${MIGRATE_APP_DB_PASSWORD:-db_password}
-
APP_DB_HOST=${APP_DB_HOST:-postgres-app}
-
APP_DB_USER=${APP_DB_USER:-gateway-backend-mainnet@oplabs-local-web.iam}
-
APP_DB_NAME=${APP_DB_NAME:-gateway}
-
APP_DB_PORT=${APP_DB_PORT:-5432}
# THis is for the legacy indexer which won't be used but the env variable is still required
-
INDEXER_DB_HOST=postgres-mainnet
# THis is for the legacy indexer which won't be used but the env variable is still required
-
INDEXER_DB_USER=db_username
# THis is for the legacy indexer which won't be used but the env variable is still required
-
INDEXER_DB_PASS=db_password
# THis is for the legacy indexer which won't be used but the env variable is still required
-
INDEXER_DB_NAME=db_name
# THis is for the legacy indexer which won't be used but the env variable is still required
-
INDEXER_DB_PORT=5432
# THis is for the legacy indexer which won't be used but the env variable is still required
-
DATABASE_URL=postgres://db_username:db_password@postgres-mainnet:5432/db_name
-
JSON_RPC_URLS_L1=$JSON_RPC_URLS_L1_MAINNET
-
JSON_RPC_URLS_L2=$JSON_RPC_URLS_L2_MAINNET
-
JSON_RPC_URLS_L2_GOERLI=$JSON_RPC_URLS_L2_GOERLI
# anvil[0] privater key as placeholder
-
FAUCET_AUTH_ADMIN_WALLET_PRIVATE_KEY=${$FAUCET_AUTH_ADMIN_WALLET_PRIVATE_KEY:-0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80}
-
IRON_SESSION_SECRET=${IRON_SESSION_SECRET:-UNKNOWN_IRON_SESSION_PASSWORD_32}
-
CHAIN_ID_L1=1
-
CHAIN_ID_L2=10
-
FLEEK_BUCKET_ADDRESS=34a609661-6774-441f-9fdb-453fdbb89931-bucket
-
FLEEK_API_SECRET=$FLEEK_API_SECRET
-
FLEEK_API_KEY=$FLEEK_API_KEY
-
MOCK_MERKLE_PROOF=true
-
LOOP_INTERVAL_MINUTES=.1
-
GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
-
GITHUB_SECRET=$GITHUB_SECRET
-
MAINNET_BEDROCK=$MAINNET_BEDROCK
-
TRM_API_KEY=$TRM_API_KEY
-
GOOGLE_CLOUD_STORAGE_BUCKET_NAME=oplabs-dev-web-content
# Recommened to uncomment for local dev unless you need it
#- BYPASS_EVENT_LOG_POLLER_BOOTSTRAP=true
ports
:
-
7421:7300
# overrides command in Dockerfile so we can hot reload the server in docker while developing
#command: ['pnpm', 'nx', 'run', '@gateway/backend:docker:watch']
healthcheck
:
test
:
curl http://0.0.0.0:7300/api/v0/healthz
backend-goerli
:
image
:
ethereumoptimism/gateway-backend:latest
environment
:
# this enables the backend to proxy history requests to the indexer
-
BRIDGE_INDEXER_URI=http://api
-
HOST=0.0.0.0
-
PORT=7300
-
MIGRATE_APP_DB_USER=${MIGRATE_APP_DB_USER:-postgres}
-
MIGRATE_APP_DB_PASSWORD=${MIGRATE_APP_DB_PASSWORD:-db_password}
-
APP_DB_HOST=${APP_DB_HOST:-postgres-app}
-
APP_DB_USER=${APP_DB_USER:-gateway-backend-goerli@oplabs-local-web.iam}
-
APP_DB_NAME=${APP_DB_NAME:-gateway}
-
APP_DB_PORT=${APP_DB_PORT:-5432}
-
INDEXER_DB_HOST=${INDEXER_DB_HOST_GOERLI:-postgres-goerli}
-
INDEXER_DB_USER=${INDEXER_DB_USER_GOERLI:-db_username}
-
INDEXER_DB_PASS=${INDEXER_DB_PASSWORD_GOERLI:-db_password}
-
INDEXER_DB_NAME=${INDEXER_DB_NAME_GOERLI:-db_name}
-
INDEXER_DB_PORT=${INDEXER_DB_PORT_GOERLI:-5432}
-
DATABASE_URL=${DATABASE_URL_GOERLI:-postgres://db_username:db_password@postgres-goerli:5432/db_name}
-
JSON_RPC_URLS_L1=$JSON_RPC_URLS_L1_GOERLI
-
JSON_RPC_URLS_L2=$JSON_RPC_URLS_L2_GOERLI
-
JSON_RPC_URLS_L2_GOERLI=$JSON_RPC_URLS_L2_GOERLI
-
FAUCET_AUTH_ADMIN_WALLET_PRIVATE_KEY=$FAUCET_AUTH_ADMIN_WALLET_PRIVATE_KEY
-
IRON_SESSION_SECRET=${IRON_SESSION_SECRET:-UNKNOWN_IRON_SESSION_PASSWORD_32}
-
CHAIN_ID_L1=5
-
CHAIN_ID_L2=420
-
FLEEK_BUCKET_ADDRESS=34a609661-6774-441f-9fdb-453fdbb89931-bucket
-
FLEEK_API_SECRET=$FLEEK_API_SECRET
-
FLEEK_API_KEY=$FLEEK_API_KEY
-
MOCK_MERKLE_PROOF=true
-
LOOP_INTERVAL_MINUTES=.1
-
GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
-
GITHUB_SECRET=$GITHUB_SECRET
-
MAINNET_BEDROCK=true
-
TRM_API_KEY=$TRM_API_KEY
-
GOOGLE_CLOUD_STORAGE_BUCKET_NAME=oplabs-dev-web-content
# Recommened to uncomment for local dev unless you need it
#- BYPASS_EVENT_LOG_POLLER_BOOTSTRAP=true
ports
:
-
7422:7300
# overrides command in Dockerfile so we can hot reload the server in docker while developing
#command: ['pnpm', 'nx', 'run', '@gateway/backend:docker:watch']
healthcheck
:
test
:
curl http://0.0.0.0:7300/api/v0/healthz
volumes
:
postgres_data
:
package.json
View file @
bdb8b6c5
...
...
@@ -68,7 +68,7 @@
"
markdownlint-cli2
"
:
"
0.4.0
"
,
"
mkdirp
"
:
"
^1.0.4
"
,
"
mocha
"
:
"
^10.2.0
"
,
"
nx
"
:
"
1
5
.6.0
"
,
"
nx
"
:
"
1
6
.6.0
"
,
"
nyc
"
:
"
^15.1.0
"
,
"
patch-package
"
:
"
^6.4.7
"
,
"
prettier
"
:
"
^2.8.0
"
,
...
...
packages/common-ts/package.json
View file @
bdb8b6c5
...
...
@@ -48,7 +48,7 @@
"morgan"
:
"^1.10.0"
,
"pino"
:
"^6.11.3"
,
"pino-multi-stream"
:
"^5.3.0"
,
"pino-sentry"
:
"^0.
7
.0"
,
"pino-sentry"
:
"^0.
14
.0"
,
"prom-client"
:
"^13.1.0"
},
"devDependencies"
:
{
...
...
pnpm-lock.yaml
View file @
bdb8b6c5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment