|
| 1 | + |
| 2 | +# smart-contract-verifier-http |
| 3 | + |
| 4 | +  |
| 5 | + |
| 6 | +Smart-contract verification service. Runs as an HTTP server and allows making verification requests through REST API. |
| 7 | + |
| 8 | +**Homepage:** <https://github.com/blockscout/blockscout-rs/tree/main/smart-contract-verifier-http> |
| 9 | + |
| 10 | +## Source Code |
| 11 | + |
| 12 | +* <https://github.com/blockscout/blockscout-rs/tree/main/smart-contract-verifier-http> |
| 13 | + |
| 14 | +## Values |
| 15 | + |
| 16 | +| Key | Type | Default | Description | |
| 17 | +|-----|------|---------|-------------| |
| 18 | +| affinity | object | `{}` | Affinity configuration for pods | |
| 19 | +| annotations | object | `{}` | Annotations for the StatefulSet | |
| 20 | +| config | string | See `values.yaml` | Config file | |
| 21 | +| customArgs | list | `[]` | Custom args for the smart-contract-verifier-http container | |
| 22 | +| customCommand | list | `[]` | Command replacement for the smart-contract-verifier-http container | |
| 23 | +| extraContainers | list | `[]` | Additional containers | |
| 24 | +| extraEnv | list | `[]` | Additional env variables | |
| 25 | +| extraPorts | list | `[]` | Additional ports. Useful when using extraContainers | |
| 26 | +| extraVolumeMounts | list | `[]` | Additional volume mounts | |
| 27 | +| extraVolumes | list | `[]` | Additional volumes | |
| 28 | +| fullnameOverride | string | `""` | Overrides the chart's computed fullname | |
| 29 | +| image.pullPolicy | string | `"IfNotPresent"` | smart-contract-verifier-http container pull policy | |
| 30 | +| image.repository | string | `"ghcr.io/blockscout/smart-contract-verifier"` | smart-contract-verifier-http container image repository | |
| 31 | +| image.tag | string | `"main"` | smart-contract-verifier-http container image tag | |
| 32 | +| imagePullSecrets | list | `[]` | Image pull secrets for Docker images | |
| 33 | +| ingress.annotations | object | `{}` | Annotations for Ingress | |
| 34 | +| ingress.enabled | bool | `false` | Ingress resource for the HTTP API | |
| 35 | +| ingress.hosts[0].host | string | `"chart-example.local"` | | |
| 36 | +| ingress.hosts[0].paths | list | `[]` | | |
| 37 | +| ingress.tls | list | `[]` | Ingress TLS | |
| 38 | +| initContainers | list | `[]` | Additional init containers | |
| 39 | +| livenessProbe | object | See `values.yaml` | Liveness probe | |
| 40 | +| nameOverride | string | `""` | Overrides the chart's name | |
| 41 | +| nodeSelector | object | `{}` | Node selector for pods | |
| 42 | +| persistence.accessModes | list | `["ReadWriteOnce"]` | Access mode for the volume claim template | |
| 43 | +| persistence.annotations | object | `{}` | Annotations for volume claim template | |
| 44 | +| persistence.enabled | bool | `false` | Uses an EmptyDir when not enabled | |
| 45 | +| persistence.existingClaim | string | `nil` | Use an existing PVC when persistence.enabled | |
| 46 | +| persistence.selector | object | `{}` | Selector for volume claim template | |
| 47 | +| persistence.size | string | `"2Gi"` | Requested size for volume claim template | |
| 48 | +| persistence.storageClassName | string | `nil` | Use a specific storage class E.g 'local-path' for local storage to achieve best performance Read more (https://github.com/rancher/local-path-provisioner) | |
| 49 | +| podAnnotations | object | `{}` | Pod annotations | |
| 50 | +| podDisruptionBudget | object | `{}` | Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created | |
| 51 | +| podLabels | object | `{}` | Pod labels | |
| 52 | +| podManagementPolicy | string | `"OrderedReady"` | Pod management policy | |
| 53 | +| priorityClassName | string | `nil` | Pod priority class | |
| 54 | +| readinessProbe | object | See `values.yaml` | Readiness probe | |
| 55 | +| replicas | int | `1` | Number of replicas | |
| 56 | +| resources | object | `{}` | Resource requests and limits | |
| 57 | +| secretEnv | string | `nil` | Env variables injected via a created secret | |
| 58 | +| securityContext | object | See `values.yaml` | The security context for pods | |
| 59 | +| service.type | string | `"ClusterIP"` | Service type | |
| 60 | +| serviceAccount.annotations | object | `{}` | Annotations to add to the service account | |
| 61 | +| serviceAccount.create | bool | `true` | Specifies whether a service account should be created | |
| 62 | +| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | |
| 63 | +| serviceMonitor.annotations | object | `{}` | Additional ServiceMonitor annotations | |
| 64 | +| serviceMonitor.enabled | bool | `false` | If true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator | |
| 65 | +| serviceMonitor.interval | string | `"1m"` | ServiceMonitor scrape interval | |
| 66 | +| serviceMonitor.labels | object | `{}` | Additional ServiceMonitor labels | |
| 67 | +| serviceMonitor.namespace | string | `nil` | Alternative namespace for ServiceMonitor | |
| 68 | +| serviceMonitor.path | string | `"/metrics"` | Path to scrape | |
| 69 | +| serviceMonitor.relabelings | list | `[]` | ServiceMonitor relabelings | |
| 70 | +| serviceMonitor.scheme | string | `"http"` | ServiceMonitor scheme | |
| 71 | +| serviceMonitor.scrapeTimeout | string | `"30s"` | ServiceMonitor scrape timeout | |
| 72 | +| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration | |
| 73 | +| terminationGracePeriodSeconds | int | `30` | How long to wait until the pod is forcefully terminated | |
| 74 | +| tolerations | list | `[]` | Tolerations for pods | |
| 75 | +| updateStrategy | object | `{"type":"RollingUpdate"}` | Update stategy for the Statefulset | |
| 76 | +| updateStrategy.type | string | `"RollingUpdate"` | Update stategy type | |
| 77 | + |
| 78 | +# Examples |
| 79 | + |
| 80 | +## Setting the configuration via Env vars |
| 81 | + |
| 82 | +```yaml |
| 83 | +secretEnv: |
| 84 | + HCAPTCHA_SECRET: "your_hcaptcha_secret" |
| 85 | + HCAPTCHA_SITEKEY: "your_hcaptcha_site_key" |
| 86 | + APP_ETHKEY: "key in hex format" |
| 87 | + APP_AMOUNT: "1000000000000000000" # 1 ETH |
| 88 | + APP_CHAINS: "5" # Comma separated chain IDs that you support |
| 89 | + APP_TITLE: "%CHAINNAME smart-contract-verifier-http" |
| 90 | + #APP_IMAGEURL: |
| 91 | +``` |
0 commit comments