Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ services:
- ethereum-sidecar
- --log_format=json
- --ethereum-sidecar.server.ethereum-node-address=${MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS}
- --ethereum-sidecar.server.network=${MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK}
restart: always
expose:
- 7500
Expand Down
1 change: 1 addition & 0 deletions docker/mainnet.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ MEZOD_CHAIN_ID="mezo_31612-1"
MEZOD_HOME="/var/mezod"
MEZOD_MONIKER="<change me>"
MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS="<change me>" # Ethereum Mainnet WS RPC
MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK="mainnet"
MEZOD_LOG_LEVEL=info
MEZOD_LOG_FORMAT=json # json|plain
MEZOD_PORT_P2P=26656 # Default. It should be changed in case of a custom setup
Expand Down
1 change: 1 addition & 0 deletions docker/testnet.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ MEZOD_CHAIN_ID="mezo_31611-1"
MEZOD_HOME="/var/mezod"
MEZOD_MONIKER="<change me>"
MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS="<change me>"
MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK="sepolia"
MEZOD_LOG_LEVEL=info
MEZOD_LOG_FORMAT=json # json|plain
MEZOD_PORT_P2P=26656 # Default. It should be changed in case of a custom setup
Expand Down
5 changes: 5 additions & 0 deletions helm-chart/mezod/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ spec:
- --home=/tmp/dummy-data
- --log_format=json
- --ethereum-sidecar.server.ethereum-node-address=$(ETHEREUM_ENDPOINT)
{{- if eq .Values.env.NETWORK "mainnet" }}
- --ethereum-sidecar.server.network=mainnet
{{- else if eq .Values.env.NETWORK "testnet" }}
- --ethereum-sidecar.server.network=sepolia
{{- end }}
env:
- name: ETHEREUM_ENDPOINT
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions native/mainnet.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export MEZOD_ETHEREUM_SIDECAR_CLIENT_SERVER_ADDRESS="127.0.0.1:7500"
# Address to an ethereum node (web socket address)
# Example: wss://your.eth.node
export MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS="<eth_node_address>"
export MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK="mainnet"
export MEZOD_LOG_FORMAT="json"
export MEZOD_KEY_NAME="key0"
export MEZOD_LOGLEVEL="info"
Expand Down
1 change: 1 addition & 0 deletions native/testnet.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export MEZOD_ETHEREUM_SIDECAR_CLIENT_SERVER_ADDRESS="127.0.0.1:7500"
# Address to an ethereum node (web socket address)
# Example: wss://your.eth.node
export MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS="<eth_node_address>"
export MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK="sepolia"
export MEZOD_LOG_FORMAT="json"
export MEZOD_KEY_NAME="key0"
export MEZOD_LOGLEVEL="info"
Expand Down
3 changes: 2 additions & 1 deletion native/v-kit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ configure_mezo() {

${MEZO_EXEC} toml set \
${app_config_file} \
-v ethereum-sidecar.server.network="${MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK}" \
-v ethereum-sidecar.client.server-address="0.0.0.0:7500" \
-v api.enable=true \
-v api.address="tcp://0.0.0.0:1317" \
Expand Down Expand Up @@ -245,7 +246,7 @@ After=network.target
[Service]
Restart=no
ExecStartPre=/bin/echo "Starting ethereum-sidecar systemd initialization..."
ExecStart=${MEZO_EXEC} ethereum-sidecar --log_format=${MEZOD_LOG_FORMAT} --ethereum-sidecar.server.ethereum-node-address=${MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS}
ExecStart=${MEZO_EXEC} ethereum-sidecar --log_format=${MEZOD_LOG_FORMAT} --ethereum-sidecar.server.network=${MEZOD_ETHEREUM_SIDECAR_SERVER_NETWORK} --ethereum-sidecar.server.ethereum-node-address=${MEZOD_ETHEREUM_SIDECAR_SERVER_ETHEREUM_NODE_ADDRESS}
StandardOutput=journal
StandardError=journal
User=root
Expand Down