Skip to content

Commit

Permalink
update l1-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed Oct 30, 2024
1 parent 08739d4 commit d84cd7c
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 216 deletions.
8 changes: 4 additions & 4 deletions charts/l1-explorer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
apiVersion: v2
description: l1-explorer helm charts
name: l1-explorer
version: 0.0.2
version: 0.0.3
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
- name: scroll-tech
email: sebastien@scroll.io
dependencies:
- name: common
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
version: 1.5.1
- name: external-secrets-lib
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
version: 0.0.3
- name: blockscout-stack
repository: https://blockscout.github.io/helm-charts
version: 1.6.8
130 changes: 42 additions & 88 deletions charts/l1-explorer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# l1-explorer

![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

l1-explorer helm charts

Expand All @@ -16,99 +16,53 @@ Kubernetes: `>=1.22.0-0`

| Repository | Name | Version |
|------------|------|---------|
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | common | 1.5.1 |
| https://blockscout.github.io/helm-charts | blockscout-stack | 1.6.8 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | external-secrets-lib | 0.0.3 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| command[0] | string | `"/bin/sh"` | |
| command[1] | string | `"-c"` | |
| command[2] | string | `"/app/bin/blockscout start"` | |
| controller.replicas | int | `1` | |
| controller.strategy | string | `"Recreate"` | |
| controller.type | string | `"deployment"` | |
| defaultProbes.custom | bool | `true` | |
| defaultProbes.enabled | bool | `true` | |
| defaultProbes.spec.httpGet.path | string | `"/"` | |
| defaultProbes.spec.httpGet.port | int | `3000` | |
| envFrom[0].configMapRef.name | string | `"l1-explorer-env"` | |
| env[0].name | string | `"ECTO_USE_SSL"` | |
| env[0].value | bool | `false` | |
| env[10].name | string | `"SUBNETWORK"` | |
| env[10].value | string | `"Scroll Sepolia Testnet"` | |
| env[11].name | string | `"SUPPORTED_CHAINS"` | |
| env[11].value | string | `"[{ \"title\": \"Scroll SDK (L1)\", \"url\": \"https://localhost:3000\", \"test_net?\": true }, { \"title\": \"Scroll SDK (L2) Testnet\", \"url\": \"http://blockscout:3000\", \"test_net?\": true }]"` | |
| env[12].name | string | `"DISABLE_EXCHANGE_RATES"` | |
| env[12].value | bool | `true` | |
| env[13].name | string | `"BLOCKSCOUT_VERSION"` | |
| env[13].value | string | `"5.2.1"` | |
| env[14].name | string | `"FOOTER_GITHUB_LINK"` | |
| env[14].value | string | `"https://github.com/blockscout/blockscout"` | |
| env[15].name | string | `"ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT"` | |
| env[15].value | string | `"10s"` | |
| env[16].name | string | `"INDEXER_MEMORY_LIMIT"` | |
| env[16].value | string | `"10gb"` | |
| env[17].name | string | `"BLOCK_TRANSFORMER"` | |
| env[17].value | string | `"clique"` | |
| env[18].name | string | `"MICROSERVICE_SC_VERIFIER_ENABLED"` | |
| env[18].value | bool | `true` | |
| env[1].name | string | `"ETHEREUM_JSONRPC_VARIANT"` | |
| env[1].value | string | `"geth"` | |
| env[2].name | string | `"INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER"` | |
| env[2].value | bool | `true` | |
| env[3].name | string | `"PORT"` | |
| env[3].value | int | `3000` | |
| env[4].name | string | `"NETWORK"` | |
| env[4].value[0] | string | `""` | |
| env[5].name | string | `"COIN"` | |
| env[5].value | string | `"ETH"` | |
| env[6].name | string | `"COIN_NAME"` | |
| env[6].value | string | `"ETH"` | |
| env[7].name | string | `"LOGO"` | |
| env[7].value | string | `"/images/logo.svg"` | |
| env[8].name | string | `"WEBAPP_URL"` | |
| env[8].value | string | `"https://l1-explorer.scroll.tech"` | |
| env[9].name | string | `"BLOCKSCOUT_HOST"` | |
| env[9].value | string | `"test-l1-explorer.scroll.io"` | |
| global.fullnameOverride | string | `"l1-explorer"` | |
| global.nameOverride | string | `"l1-explorer"` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"blockscout/blockscout"` | |
| image.tag | string | `"6.6.0"` | |
| ingress.main.annotations | object | `{}` | |
| ingress.main.enabled | bool | `true` | |
| ingress.main.hosts[0].host | string | `"l1-explorer.scrollsdk"` | |
| ingress.main.hosts[0].paths[0].path | string | `"/"` | |
| ingress.main.hosts[0].paths[0].pathType | string | `"Prefix"` | |
| ingress.main.ingressClassName | string | `"nginx"` | |
| ingress.main.labels | object | `{}` | |
| ingress.main.primary | bool | `true` | |
| initContainers.1-migrate-db.command[0] | string | `"/bin/sh"` | |
| initContainers.1-migrate-db.command[1] | string | `"-c"` | |
| initContainers.1-migrate-db.command[2] | string | `"/app/bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\""` | |
| initContainers.1-migrate-db.envFrom[0].configMapRef.name | string | `"l1-explorer-env"` | |
| initContainers.1-migrate-db.image | string | `"blockscout/blockscout:6.6.0"` | |
| persistence.env.enabled | bool | `true` | |
| persistence.env.mountPath | string | `"/config/"` | |
| persistence.env.name | string | `"l1-explorer-env"` | |
| persistence.env.type | string | `"configMap"` | |
| probes.liveness.<<.custom | bool | `true` | |
| probes.liveness.<<.enabled | bool | `true` | |
| probes.liveness.<<.spec.httpGet.path | string | `"/"` | |
| probes.liveness.<<.spec.httpGet.port | int | `3000` | |
| probes.readiness.<<.custom | bool | `true` | |
| probes.readiness.<<.enabled | bool | `true` | |
| probes.readiness.<<.spec.httpGet.path | string | `"/"` | |
| probes.readiness.<<.spec.httpGet.port | int | `3000` | |
| probes.startup.<<.custom | bool | `true` | |
| probes.startup.<<.enabled | bool | `true` | |
| probes.startup.<<.spec.httpGet.path | string | `"/"` | |
| probes.startup.<<.spec.httpGet.port | int | `3000` | |
| service.main.enabled | bool | `true` | |
| service.main.ports.http.enabled | bool | `true` | |
| service.main.ports.http.port | int | `3000` | |
| blockscout-stack.blockscout.env.BLOCK_TRANSFORMER | string | `"clique"` | |
| blockscout-stack.blockscout.env.ECTO_USE_SSL | bool | `false` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_HTTP_INSECURE | bool | `true` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_HTTP_URL | string | `"http://l2-rpc:8545"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_TRACE_URL | string | `"http://l2-rpc:8545"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_VARIANT | string | `"geth"` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_WS_URL | string | `"ws://l2-rpc:8546"` | |
| blockscout-stack.blockscout.env.INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER | bool | `true` | |
| blockscout-stack.blockscout.envFrom[0].configMapRef.name | string | `"l1-explorer-env"` | |
| blockscout-stack.blockscout.image.pullPolicy | string | `"IfNotPresent"` | |
| blockscout-stack.blockscout.image.repository | string | `"blockscout/blockscout-scroll"` | |
| blockscout-stack.blockscout.image.tag | string | `"6.9.0-alpha.1"` | |
| blockscout-stack.blockscout.ingress.annotations | object | `{}` | |
| blockscout-stack.blockscout.ingress.className | string | `"nginx"` | |
| blockscout-stack.blockscout.ingress.enabled | bool | `true` | |
| blockscout-stack.blockscout.ingress.hostname | string | `"l1-explorer.scrollsdk"` | |
| blockscout-stack.frontend.env.FAVICON_MASTER_URL | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/favicons/scroll_180x180.png"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_HOST | string | `"l1-explorer.scrollsdk"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_PROTOCOL | string | `"http"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL | string | `"ws"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_APP_PROTOCOL | string | `"http"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_CHARTS | string | `"[\"daily_txs\"]"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG | string | `"{'background':['rgba(255, 238, 218, 1)'],'text_color':['rgba(25, 6, 2, 1)']}"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_HOMEPAGE_STATS | string | `"[\"total_blocks\", \"average_block_time\", \"total_txs\", \"wallet_addresses\", \"gas_tracker\"]"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_ICON | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_ICON_DARK | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll-dark.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_LOGO | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_NETWORK_LOGO_DARK | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll-dark.svg"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_OG_IMAGE_URL | string | `"https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/scroll-sepolia.png"` | |
| blockscout-stack.frontend.image.tag | string | `"v1.35.2"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-headers" | string | `"updated-gas-oracle, Content-Type, Authorization"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-methods" | string | `"GET, POST, OPTIONS"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-origin" | string | `"http://l1-explorer.scrollsdk"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/cors-max-age" | string | `"86400"` | |
| blockscout-stack.frontend.ingress.annotations."nginx.ingress.kubernetes.io/enable-cors" | string | `"true"` | |
| blockscout-stack.frontend.ingress.className | string | `"nginx"` | |
| blockscout-stack.frontend.ingress.enabled | bool | `true` | |
| blockscout-stack.frontend.ingress.hostname | string | `"l1-explorer.scrollsdk"` | |
| blockscout-stack.fullnameOverride | string | `"l1-explorer"` | |
| blockscout-stack.nameOverride | string | `"l1-explorer"` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
14 changes: 0 additions & 14 deletions charts/l1-explorer/templates/common.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
---
{{- include "scroll.common.loader.init" . }}

{{- define "app-template.hardcodedValues" -}}
# Set the nameOverride based on the release name if no override has been set
{{ if not .Values.global.nameOverride }}
global:
nameOverride: "{{ .Release.Name }}"
{{ end }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "app-template.hardcodedValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "scroll.common.loader.generate" . }}
---
{{- include "scrolllib.externalsecrets.tpl" . }}
162 changes: 52 additions & 110 deletions charts/l1-explorer/values.yaml
Original file line number Diff line number Diff line change
@@ -1,117 +1,59 @@
---
global:
nameOverride: &app_name l1-explorer
blockscout-stack:
nameOverride: &app_name "l1-explorer"
fullnameOverride: *app_name

controller:
replicas: 1
strategy: Recreate
type: deployment
blockscout:
image:
repository: blockscout/blockscout-scroll
pullPolicy: IfNotPresent
tag: 6.9.0-alpha.1

env:
ETHEREUM_JSONRPC_HTTP_URL: http://l2-rpc:8545
ETHEREUM_JSONRPC_TRACE_URL: http://l2-rpc:8545
ETHEREUM_JSONRPC_VARIANT: geth
ETHEREUM_JSONRPC_WS_URL: ws://l2-rpc:8546
BLOCK_TRANSFORMER: clique
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: true
ECTO_USE_SSL: false
ETHEREUM_JSONRPC_HTTP_INSECURE: true

image:
repository: blockscout/blockscout
pullPolicy: Always
tag: 6.6.0

env:
- name: ECTO_USE_SSL
value: false
- name: ETHEREUM_JSONRPC_VARIANT
value: geth
- name: INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER
value: true
- name: PORT
value: 3000
- name: NETWORK
value: [""]
- name: COIN
value: ETH
- name: COIN_NAME
value: ETH
- name: LOGO
value: /images/logo.svg
- name: WEBAPP_URL
value: https://l1-explorer.scroll.tech
- name: BLOCKSCOUT_HOST
value: test-l1-explorer.scroll.io
- name: SUBNETWORK
value: "Scroll Sepolia Testnet"
- name: SUPPORTED_CHAINS
value: '[{ "title": "Scroll SDK (L1)", "url": "https://localhost:3000", "test_net?": true }, { "title": "Scroll SDK (L2) Testnet", "url": "http://blockscout:3000", "test_net?": true }]'
- name: DISABLE_EXCHANGE_RATES
value: true
- name: BLOCKSCOUT_VERSION
value: 5.2.1
- name: FOOTER_GITHUB_LINK
value: https://github.com/blockscout/blockscout
- name: ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT
value: 10s
- name: INDEXER_MEMORY_LIMIT
value: 10gb
- name: BLOCK_TRANSFORMER
value: clique
- name: MICROSERVICE_SC_VERIFIER_ENABLED
value: true

envFrom:
- configMapRef:
name: l1-explorer-env

command:
[
"/bin/sh",
"-c",
"/app/bin/blockscout start"
]

service:
main:
enabled: true
ports:
http:
enabled: true
port: 3000

defaultProbes: &default_probes
enabled: true
custom: true
spec:
httpGet:
path: "/"
port: 3000

probes:
liveness:
<<: *default_probes
readiness:
<<: *default_probes
startup:
<<: *default_probes

persistence:
env:
enabled: true
type: configMap
mountPath: /config/
name: l1-explorer-env

initContainers:
1-migrate-db:
image: blockscout/blockscout:6.6.0
command: ["/bin/sh", "-c", "/app/bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\""]
envFrom:
- configMapRef:
name: l1-explorer-env

ingress:
main:
enabled: true
primary: true
annotations: {}
labels: {}
ingressClassName: "nginx"
hosts:
- host: l1-explorer.scrollsdk
paths:
- path: /
pathType: Prefix
ingress:
enabled: true
className: "nginx"
annotations: {}
hostname: l1-explorer.scrollsdk

frontend:
image:
tag: v1.35.2

env:
NEXT_PUBLIC_NETWORK_LOGO: "https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll.svg"
NEXT_PUBLIC_NETWORK_LOGO_DARK: "https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-logos/scroll-dark.svg"
NEXT_PUBLIC_NETWORK_ICON: "https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll.svg"
NEXT_PUBLIC_NETWORK_ICON_DARK: "https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/network-icons/scroll-dark.svg"
NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG: "{'background':['rgba(255, 238, 218, 1)'],'text_color':['rgba(25, 6, 2, 1)']}"
NEXT_PUBLIC_OG_IMAGE_URL: 'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/og-images/scroll-sepolia.png'
FAVICON_MASTER_URL: "https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/favicons/scroll_180x180.png"
NEXT_PUBLIC_HOMEPAGE_CHARTS: '["daily_txs"]'
NEXT_PUBLIC_HOMEPAGE_STATS: '["total_blocks", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"]'
NEXT_PUBLIC_API_PROTOCOL: http
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL: ws
NEXT_PUBLIC_API_HOST: "l1-explorer.scrollsdk"
NEXT_PUBLIC_APP_PROTOCOL: http

ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "http://l1-explorer.scrollsdk"
nginx.ingress.kubernetes.io/cors-allow-headers: "updated-gas-oracle, Content-Type, Authorization"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-max-age: "86400"
className: "nginx"
hostname: l1-explorer.scrollsdk

0 comments on commit d84cd7c

Please sign in to comment.