Skip to content

Latest commit

 

History

History
101 lines (86 loc) · 5.23 KB

README.md

File metadata and controls

101 lines (86 loc) · 5.23 KB

ganache

Version: 0.1.2 Type: application

Ganache is an Ethereum simulator that makes developing Ethereum applications faster, easier, and safer. It includes all popular RPC functions and features (like events) and can be run deterministically to make development a breeze.

Homepage: https://www.trufflesuite.com/ganache

Source Code

Values

Key Type Default Description
affinity object {} Affinity configuration for pods
annotations object {} Annotations for the StatefulSet
containerSecurityContext object See values.yaml The security context for containers
customCommand list [] Command replacement for the ganache container
extraArgs list [] Extra args for the ganache container
extraContainers list [] Additional containers
extraEnv list [] Additional env variables
extraPorts list [] Additional ports. Useful when using extraContainers
extraVolumeMounts list [] Additional volume mounts
extraVolumes list [] Additional volumes
fullnameOverride string "" Overrides the chart's computed fullname
image.pullPolicy string "IfNotPresent" Ganache container pull policy
image.repository string "trufflesuite/ganache-cli" Ganache container image repository
image.tag string "v6.12.2" Ganache container image tag
imagePullSecrets list [] Image pull secrets for Docker images
ingress.annotations object {} Annotations for Ingress
ingress.enabled bool false Ingress resource for the HTTP API
ingress.hosts[0].host string "chart-example.local"
ingress.hosts[0].paths list []
ingress.tls list [] Ingress TLS
initChownData.enabled bool true Init container to set the correct permissions to access data directories
initChownData.image.pullPolicy string "IfNotPresent" Container pull policy
initChownData.image.repository string "busybox" Container repository
initChownData.image.tag string "1.34.0" Container tag
initChownData.resources object {} Resource requests and limits
initContainers list [] Additional init containers
livenessProbe object See values.yaml Liveness probe
nameOverride string "" Overrides the chart's name
nodeSelector object {} Node selector for pods
persistence.accessModes list ["ReadWriteOnce"] Access mode for the volume claim template
persistence.annotations object {} Annotations for volume claim template
persistence.enabled bool false Uses an EmptyDir when not enabled
persistence.existingClaim string nil Use an existing PVC when persistence.enabled
persistence.selector object {} Selector for volume claim template
persistence.size string "5Gi" Requested size for volume claim template
podAnnotations object {} Pod annotations
podDisruptionBudget object {} Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabels object {} Pod labels
podManagementPolicy string "OrderedReady" Pod management policy
priorityClassName string nil Pod priority class
readinessProbe object See values.yaml Readiness probe
resources object {} Resource requests and limits
secretEnv object {} Additional env variables injected via a created secret
securityContext object See values.yaml The security context for pods
service.type string "ClusterIP" Service type
serviceAccount.annotations object {} Annotations to add to the service account
serviceAccount.create bool true Specifies whether a service account should be created
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
terminationGracePeriodSeconds int 30 How long to wait until the pod is forcefully terminated
tolerations list [] Tolerations for pods
topologySpreadConstraints list [] Topology Spread Constraints for pods
updateStrategy object {"type":"RollingUpdate"} Update stategy for the Statefulset
updateStrategy.type string "RollingUpdate" Update stategy type

Examples

Private blockchain with pre-filled accounts generated from an HD wallet using a mnemonic phrase

secretEnv:
  # Don't re-use this mnemonic for production environments
  MNEMONIC: census exchange hotel volcano sea hunt mother enlist twelve lonely cause female

extraArgs:
  - --mnemonic="$(MNEMONIC)"
  - --accounts=10
  - --defaultBalanceEther=1000
  - --networkId=5123
  - --chainId=5123
  - --blockTime=3

Fork an existing blockchain

extraEnv:
  - name: BLOCK_NUMBER
    value: "13331332"
secretEnv:
  INFURA_PROJECT_ID: "xxxxx"

extraArgs:
  - --fork="https://mainnet.infura.io/v3/$(INFURA_PROJECT_ID)@$(BLOCK_NUMBER)"