File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11name : contracts
22description : A helm chart to manage fhevm Smart Contracts Deployment
3- version : 0.7.5
3+ version : 0.7.6
44apiVersion : v2
55keywords :
66 - fhevm
Original file line number Diff line number Diff line change 99 deploy-contracts.sh : |
1010 #!/bin/bash
1111 set -eo pipefail
12-
12+
13+ {{- if .Values.scDeploy.configmap.create }}
1314 create_configmap() {
1415 configmap_name="${1}"
1516 if [[ -z "$configmap_name" ]]; then
7778 exit 0
7879 fi
7980 {{- end }}
81+ {{- end }}
8082
8183 echo "executing deploy commands"
8284 {{- range .Values.scDeploy.deployCommands }}
@@ -104,8 +106,10 @@ data:
104106 {{- if .Values.scDeploy.verifyContracts }}
105107 npx --no-install hardhat verify:verify || true
106108 {{- end }}
109+ {{- if .Values.scDeploy.configmap.create }}
107110 echo "adding the current contracts version to the configmap"
108111 kubectl patch configmap "${CONFIGMAP_NAME}" -p="{\"data\": {\"contracts.version\": \"{{ .Values.scDeploy.image.tag }}\"}}"
112+ {{- end }}
109113 upgrade-contracts.sh : |
110114 #!/bin/bash
111115 set -eo pipefail
@@ -121,6 +125,8 @@ data:
121125 {{- range .Values.scUpgrade.upgradeCommands }}
122126 {{ . | nindent 4 }}
123127 {{- end }}
128+ {{- if .Values.scDeploy.configmap.create }}
124129 echo "updating the contracts version to the configmap"
125130 CONFIGMAP_NAME="{{ .Values.scDeploy.configmap.name }}"
126131 kubectl patch configmap "${CONFIGMAP_NAME}" -p="{\"data\": {\"contracts.version\": \"{{ .Values.scDeploy.image.tag }}\"}}"
132+ {{- end }}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ scDeploy:
3030
3131 # ConfigMap to store deployed contract addresses
3232 configmap :
33+ create : true
3334 name : " sc-addresses"
3435 annotations :
3536
You can’t perform that action at this time.
0 commit comments