Skip to content

Commit

Permalink
feat: support contracts verification (#229)
Browse files Browse the repository at this point in the history
* fix: contracts verifaction

* fix: lint

* fix: ci

* fix: sc verifier arch version
  • Loading branch information
yiweichi authored Nov 28, 2024
1 parent a69d99d commit c20a205
Show file tree
Hide file tree
Showing 23 changed files with 105 additions and 58 deletions.
2 changes: 1 addition & 1 deletion charts/blockscout-sc-verifier/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: blockscout-sc-verifier helm charts
name: blockscout-sc-verifier
version: 0.0.2
version: 0.1.0
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/blockscout-sc-verifier/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# blockscout-sc-verifier

![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.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

blockscout-sc-verifier helm charts

Expand Down
4 changes: 2 additions & 2 deletions charts/blockscout/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: blockscout scroll helm charts
name: blockscout
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand All @@ -14,4 +14,4 @@ dependencies:
version: 0.0.3
- name: blockscout-stack
repository: https://blockscout.github.io/helm-charts
version: 1.6.8
version: 1.8.0
14 changes: 10 additions & 4 deletions charts/blockscout/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# blockscout

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

blockscout scroll helm charts

Expand All @@ -16,14 +16,15 @@ Kubernetes: `>=1.22.0-0`

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

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| blockscout-stack.blockscout.env.BLOCK_TRANSFORMER | string | `"clique"` | |
| blockscout-stack.blockscout.env.CHAIN_SPEC_PATH | string | `"/app/genesis/genesis.json"` | |
| blockscout-stack.blockscout.env.CHAIN_TYPE | string | `"scroll"` | |
| blockscout-stack.blockscout.env.ECTO_USE_SSL | bool | `false` | |
| blockscout-stack.blockscout.env.ETHEREUM_JSONRPC_HTTP_INSECURE | bool | `true` | |
Expand All @@ -47,11 +48,16 @@ Kubernetes: `>=1.22.0-0`
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/enable-cors" | string | `"true"` | |
| blockscout-stack.blockscout.ingress.className | string | `"nginx"` | |
| blockscout-stack.blockscout.ingress.enabled | bool | `true` | |
| blockscout-stack.blockscout.ingress.hostname | string | `"blockscout-backend.scrollsdk"` | |
| blockscout-stack.blockscout.ingress.hostname | string | `"blockscout.scrollsdk"` | |
| blockscout-stack.blockscout.volumeMounts[0].mountPath | string | `"/app/genesis"` | |
| blockscout-stack.blockscout.volumeMounts[0].name | string | `"genesis-config"` | |
| blockscout-stack.blockscout.volumeMounts[0].readOnly | bool | `true` | |
| blockscout-stack.blockscout.volumes[0].configMap.name | string | `"genesis-config"` | |
| blockscout-stack.blockscout.volumes[0].name | string | `"genesis-config"` | |
| 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_AD_BANNER_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_AD_TEXT_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_HOST | string | `"blockscout-backend.scrollsdk"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_HOST | string | `"blockscout.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"` | |
Expand Down
15 changes: 13 additions & 2 deletions charts/blockscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ blockscout-stack:
SCROLL_L2_CURIE_UPGRADE_BLOCK: 0
ECTO_USE_SSL: false
ETHEREUM_JSONRPC_HTTP_INSECURE: true
CHAIN_SPEC_PATH: /app/genesis/genesis.json
# Not sure what these values are for
# SCROLL_L1_SCALAR_INIT:
# SCROLL_L1_OVERHEAD_INIT:
Expand All @@ -46,7 +47,17 @@ blockscout-stack:
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"
hostname: blockscout-backend.scrollsdk
hostname: blockscout.scrollsdk

volumes:
- name: genesis-config
configMap:
name: genesis-config

volumeMounts:
- name: genesis-config
mountPath: "/app/genesis"
readOnly: true

frontend:
image:
Expand All @@ -64,7 +75,7 @@ blockscout-stack:
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: "blockscout-backend.scrollsdk"
NEXT_PUBLIC_API_HOST: "blockscout.scrollsdk"
NEXT_PUBLIC_APP_PROTOCOL: http
NEXT_PUBLIC_AD_BANNER_PROVIDER: none
NEXT_PUBLIC_AD_TEXT_PROVIDER: none
Expand Down
5 changes: 2 additions & 3 deletions charts/blockscout/values/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ blockscout-stack:
hostname: ""
tls:
enabled: true
secretName: blockscout-tls # Set here the name of the secret. Example : blockscout-backend.scrollsdk
secretName: blockscout-tls # Set here the name of the secret. Example : blockscout.scrollsdk

frontend:
env:
NEXT_PUBLIC_API_PROTOCOL: https
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL: wss
NEXT_PUBLIC_API_HOST: "" # Backend host, example "blockscout-backend.scrollsdk"
NEXT_PUBLIC_APP_HOST: "" # Backend host, example "blockscout-backend.scrollsdk"
NEXT_PUBLIC_API_HOST: "" # Backend host, example "blockscout.scrollsdk"
NEXT_PUBLIC_APP_PROTOCOL: https

ingress:
Expand Down
2 changes: 1 addition & 1 deletion charts/contracts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: contracts helm charts
name: contracts
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# contracts

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

contracts helm charts

Expand All @@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0`
| envFrom[0].configMapRef.name | string | `"contracts-deployment-env"` | |
| global.isStandalone | bool | `false` | |
| image.repository | string | `"scrolltech/scroll-stack-contracts"` | |
| image.tag | string | `"deploy-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1"` | |
| image.tag | string | `"deploy-64934888f4cd002e77414a8e62812f70c00c5937"` | |
| scrollConfig | string | `"{}\n"` | |
| scrollConfigContracts | string | `"{}\n"` | |

Expand Down
2 changes: 1 addition & 1 deletion charts/contracts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ global:

image:
repository: scrolltech/scroll-stack-contracts
tag: deploy-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1
tag: deploy-64934888f4cd002e77414a8e62812f70c00c5937

envFrom:
- configMapRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/l1-devnet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: l1-devnet helm charts
name: l1-devnet
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/l1-devnet/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# l1-devnet

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

l1-devnet helm charts

Expand All @@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0`
|-----|------|---------|-------------|
| command[0] | string | `"/bin/bash"` | |
| command[1] | string | `"-c"` | |
| command[2] | string | `"anvil --host 0.0.0.0 --port 8545 --chain-id ${CHAIN_ID} --state /data/state.json --state-interval 60 --slots-in-an-epoch 3"` | |
| command[2] | string | `"mkdir -p /data && echo \"{number: 0x0}\" > /data/genesis.json && anvil --host 0.0.0.0 --port 8545 --chain-id ${CHAIN_ID} --state /data/state.json --state-interval 60 --slots-in-an-epoch 3"` | |
| controller.replicas | int | `1` | |
| controller.strategy | string | `"RollingUpdate"` | |
| controller.type | string | `"statefulset"` | |
Expand Down
7 changes: 6 additions & 1 deletion charts/l1-devnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ image:
tag: v0.0.4

command:
["/bin/bash", "-c", "anvil --host 0.0.0.0 --port 8545 --chain-id ${CHAIN_ID} --state /data/state.json --state-interval 60 --slots-in-an-epoch 3"]
[
"/bin/bash",
"-c",
"mkdir -p /data && echo \"{number: 0x0}\" > /data/genesis.json && \
anvil --host 0.0.0.0 --port 8545 --chain-id ${CHAIN_ID} --state /data/state.json --state-interval 60 --slots-in-an-epoch 3"
]

envFrom:
- configMapRef:
Expand Down
4 changes: 2 additions & 2 deletions charts/l1-explorer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: l1-explorer helm charts
name: l1-explorer
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand All @@ -14,4 +14,4 @@ dependencies:
version: 0.0.3
- name: blockscout-stack
repository: https://blockscout.github.io/helm-charts
version: 1.6.8
version: 1.8.0
11 changes: 5 additions & 6 deletions charts/l1-explorer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# l1-explorer

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-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,34 +16,33 @@ Kubernetes: `>=1.22.0-0`

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

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| 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_VARIANT | string | `"geth"` | |
| 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"` | |
| blockscout-stack.blockscout.image.tag | string | `"6.8.0"` | |
| blockscout-stack.blockscout.image.tag | string | `"6.9.0"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-headers" | string | `"updated-gas-oracle, Content-Type, Authorization"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-methods" | string | `"GET, POST, OPTIONS"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-origin" | string | `"http://l1-explorer.scrollsdk"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/cors-max-age" | string | `"86400"` | |
| blockscout-stack.blockscout.ingress.annotations."nginx.ingress.kubernetes.io/enable-cors" | string | `"true"` | |
| blockscout-stack.blockscout.ingress.className | string | `"nginx"` | |
| blockscout-stack.blockscout.ingress.enabled | bool | `true` | |
| blockscout-stack.blockscout.ingress.hostname | string | `"l1-explorer-backend.scrollsdk"` | |
| 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_AD_BANNER_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_AD_TEXT_PROVIDER | string | `"none"` | |
| blockscout-stack.frontend.env.NEXT_PUBLIC_API_HOST | string | `"l1-explorer-backend.scrollsdk"` | |
| 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"` | |
Expand Down
7 changes: 3 additions & 4 deletions charts/l1-explorer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ blockscout-stack:
image:
repository: blockscout/blockscout
pullPolicy: IfNotPresent
tag: 6.8.0
tag: 6.9.0

env:
ETHEREUM_JSONRPC_VARIANT: geth
BLOCK_TRANSFORMER: clique
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: true
ECTO_USE_SSL: false
ETHEREUM_JSONRPC_HTTP_INSECURE: true
Expand All @@ -28,7 +27,7 @@ blockscout-stack:
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"
hostname: l1-explorer-backend.scrollsdk
hostname: l1-explorer.scrollsdk

frontend:
image:
Expand All @@ -46,7 +45,7 @@ blockscout-stack:
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-backend.scrollsdk"
NEXT_PUBLIC_API_HOST: "l1-explorer.scrollsdk"
NEXT_PUBLIC_APP_PROTOCOL: http
NEXT_PUBLIC_AD_BANNER_PROVIDER: none
NEXT_PUBLIC_AD_TEXT_PROVIDER: none
Expand Down
12 changes: 6 additions & 6 deletions charts/scroll-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: scroll helm charts to deploy scroll sdk
name: scroll-sdk
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand All @@ -14,15 +14,15 @@ keywords:
home: https://github.com/scroll-tech/scroll-sdk
dependencies:
- name: l1-devnet
version: 0.1.0
version: 0.1.1
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l1-devnet.enabled
- name: balance-checker
version: 0.1.0
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: balance-checker.enabled
- name: blockscout
version: 0.1.0
version: 0.1.1
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: blockscout.enabled
- name: bridge-history-api
Expand All @@ -34,15 +34,15 @@ dependencies:
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: bridge-history-fetcher.enabled
- name: blockscout-sc-verifier
version: 0.0.2
version: 0.1.0
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: blockscout-sc-verifier.enabled
- name: chain-monitor
version: 0.1.0
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: chain-monitor.enabled
- name: contracts
version: 0.1.0
version: 0.1.1
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: contracts.enabled
- name: coordinator-api
Expand All @@ -62,7 +62,7 @@ dependencies:
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: gas-oracle.enabled
- name: l1-explorer
version: 0.1.0
version: 0.1.1
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l1-explorer.enabled
- name: l2-bootnode
Expand Down
Loading

0 comments on commit c20a205

Please sign in to comment.