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
5cd1e996
Unverified
Commit
5cd1e996
authored
Mar 10, 2022
by
Antonis Kogias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: change service generated env variables
parent
3525635a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
13 deletions
+24
-13
serious-needles-rush.md
.changeset/serious-needles-rush.md
+7
-0
docker-compose.yml
ops/docker-compose.yml
+3
-3
relayer.sh
ops/scripts/relayer.sh
+1
-1
base-service-v2.ts
packages/common-ts/src/base-service/base-service-v2.ts
+7
-3
.env.example
packages/message-relayer/.env.example
+4
-4
.env.example
packages/replica-healthcheck/.env.example
+2
-2
No files found.
.changeset/serious-needles-rush.md
0 → 100644
View file @
5cd1e996
---
'
@eth-optimism/common-ts'
:
patch
'
@eth-optimism/message-relayer'
:
patch
'
@eth-optimism/replica-healthcheck'
:
patch
---
Have BaseServiceV2 add spaces to environment variable names
ops/docker-compose.yml
View file @
5cd1e996
...
...
@@ -136,9 +136,9 @@ services:
image
:
ethereumoptimism/message-relayer:${DOCKER_TAG_MESSAGE_RELAYER:-latest}
entrypoint
:
./relayer.sh
environment
:
MESSAGE_RELAYER__L1
RPC
PROVIDER
:
http://l1_chain:8545
MESSAGE_RELAYER__L2
RPC
PROVIDER
:
http://l2geth:8545
MESSAGE_RELAYER__L1WALLET
:
'
0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97'
MESSAGE_RELAYER__L1
_RPC_
PROVIDER
:
http://l1_chain:8545
MESSAGE_RELAYER__L2
_RPC_
PROVIDER
:
http://l2geth:8545
MESSAGE_RELAYER__L1
_
WALLET
:
'
0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97'
RETRIES
:
60
verifier
:
...
...
ops/scripts/relayer.sh
View file @
5cd1e996
...
...
@@ -13,7 +13,7 @@ curl \
--retry-connrefused
\
--retry
$RETRIES
\
--retry-delay
1
\
$MESSAGE_RELAYER__L2
RPC
PROVIDER
$MESSAGE_RELAYER__L2
_RPC_
PROVIDER
# go
exec
yarn start
packages/common-ts/src/base-service/base-service-v2.ts
View file @
5cd1e996
...
...
@@ -110,12 +110,16 @@ export abstract class BaseServiceV2<
// Use commander as a way to communicate info about the service. We don't actually *use*
// commander for anything besides the ability to run `ts-node ./service.ts --help`.
const
program
=
new
Command
()
const
reg
=
/L_1|L_2/g
for
(
const
[
optionName
,
optionSpec
]
of
Object
.
entries
(
params
.
optionsSpec
))
{
const
repl
=
optionName
.
includes
(
'
l1
'
)
?
'
L1
'
:
'
L2
'
program
.
addOption
(
new
Option
(
`--
${
optionName
.
toLowerCase
()}
`
,
`
${
optionSpec
.
desc
}
`
).
env
(
`
${
params
.
name
.
replace
(
/-/g
,
'
_
'
)
.
toUpperCase
()}
__
${
optionName
.
toUpperCase
()}
`
`
${
snakeCase
(
params
.
name
.
replace
(
/-/g
,
'
_
'
)
).
toUpperCase
()}
__
${
snakeCase
(
optionName
)
.
toUpperCase
()
.
replace
(
reg
,
repl
)}
`
)
)
}
...
...
packages/message-relayer/.env.example
View file @
5cd1e996
# URL pointing to an L1 RPC provider
MESSAGE_RELAYER__L1
RPC
PROVIDER=
MESSAGE_RELAYER__L1
_RPC_
PROVIDER=
# URL pointing to an L2 RPC provider
MESSAGE_RELAYER__L2
RPC
PROVIDER=
MESSAGE_RELAYER__L2
_RPC_
PROVIDER=
# Private key for a wallet with ETH on L1
MESSAGE_RELAYER__L1WALLET=
MESSAGE_RELAYER__L1
_
WALLET=
# Optional, L2 block height to start relaying messages from (default is 0)
MESSAGE_RELAYER__FROM
L2TRANSACTION
INDEX=
MESSAGE_RELAYER__FROM
_L2_TRANSACTION_
INDEX=
packages/replica-healthcheck/.env.example
View file @
5cd1e996
HEALTHCHECK__REFERENCE
RPC
PROVIDER=https://mainnet.optimism.io
HEALTHCHECK__TARGET
RPC
PROVIDER=http://localhost:9991
HEALTHCHECK__REFERENCE
_RPC_
PROVIDER=https://mainnet.optimism.io
HEALTHCHECK__TARGET
_RPC_
PROVIDER=http://localhost:9991
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