4848 with :
4949 # This version should be updated whenever we release new contract versions or
5050 # touch a contract upgrade path.
51- ref : v0.8.0-4
51+ ref : v0.8.0-6
5252 path : previous-fhevm
5353 persist-credentials : ' false'
5454
@@ -127,36 +127,38 @@ jobs:
127127
128128 # TODO: We should instead automatically detect if the contract needs to be upgraded
129129 # See https://github.com/zama-ai/fhevm-internal/issues/379
130- # - name: Upgrade GatewayConfig contract
131- # working-directory: current-fhevm/gateway-contracts
132- # env:
133- # DOTENV_CONFIG_PATH: .env
134- # HARDHAT_NETWORK: staging
135- # CHAIN_ID_GATEWAY: 54321
136- # RPC_URL: http://localhost:8546
137- # run: |
138- # npx hardhat task:upgradeGatewayConfig \
139- # --current-implementation previous-contracts/GatewayConfig.sol:GatewayConfig \
140- # --new-implementation contracts/GatewayConfig.sol:GatewayConfig \
141- # --use-internal-proxy-address true \
142- # --verify-contract false
130+ - name : Upgrade GatewayConfig contract
131+ working-directory : current-fhevm/gateway-contracts
132+ env :
133+ DOTENV_CONFIG_PATH : .env
134+ HARDHAT_NETWORK : staging
135+ CHAIN_ID_GATEWAY : 54321
136+ RPC_URL : http://localhost:8546
137+ run : |
138+ npx hardhat task:upgradeGatewayConfig \
139+ --current-implementation previous-contracts/GatewayConfig.sol:GatewayConfig \
140+ --new-implementation contracts/GatewayConfig.sol:GatewayConfig \
141+ --use-internal-proxy-address true \
142+ --verify-contract false
143143
144144 # TODO: We should instead automatically detect if the contract needs to be upgraded
145145 # See https://github.com/zama-ai/fhevm-internal/issues/379
146- # - name: Upgrade Decryption contract
147- # working-directory: current-fhevm/gateway-contracts
148- # env:
149- # DOTENV_CONFIG_PATH: .env
150- # HARDHAT_NETWORK: staging
151- # CHAIN_ID_GATEWAY: 54321
152- # RPC_URL: http://localhost:8546
153- # run: |
154- # npx hardhat task:upgradeDecryption \
155- # --current-implementation previous-contracts/Decryption.sol:Decryption \
156- # --new-implementation contracts/Decryption.sol:Decryption \
157- # --use-internal-proxy-address true \
158- # --verify-contract false
146+ - name : Upgrade Decryption contract
147+ working-directory : current-fhevm/gateway-contracts
148+ env :
149+ DOTENV_CONFIG_PATH : .env
150+ HARDHAT_NETWORK : staging
151+ CHAIN_ID_GATEWAY : 54321
152+ RPC_URL : http://localhost:8546
153+ run : |
154+ npx hardhat task:upgradeDecryption \
155+ --current-implementation previous-contracts/Decryption.sol:Decryption \
156+ --new-implementation contracts/Decryption.sol:Decryption \
157+ --use-internal-proxy-address true \
158+ --verify-contract false
159159
160+ # TODO: We should instead automatically detect if the contract needs to be upgraded
161+ # See https://github.com/zama-ai/fhevm-internal/issues/379
160162 - name : Upgrade CiphertextCommits contract
161163 working-directory : current-fhevm/gateway-contracts
162164 env :
@@ -173,51 +175,51 @@ jobs:
173175
174176 # TODO: We should instead automatically detect if the contract needs to be upgraded
175177 # See https://github.com/zama-ai/fhevm-internal/issues/379
176- # - name: Upgrade InputVerification contract
177- # working-directory: current-fhevm/gateway-contracts
178- # env:
179- # DOTENV_CONFIG_PATH: .env
180- # HARDHAT_NETWORK: staging
181- # CHAIN_ID_GATEWAY: 54321
182- # RPC_URL: http://localhost:8546
183- # run: |
184- # npx hardhat task:upgradeInputVerification \
185- # --current-implementation previous-contracts/InputVerification.sol:InputVerification \
186- # --new-implementation contracts/InputVerification.sol:InputVerification \
187- # --use-internal-proxy-address true \
188- # --verify-contract false
178+ - name : Upgrade InputVerification contract
179+ working-directory : current-fhevm/gateway-contracts
180+ env :
181+ DOTENV_CONFIG_PATH : .env
182+ HARDHAT_NETWORK : staging
183+ CHAIN_ID_GATEWAY : 54321
184+ RPC_URL : http://localhost:8546
185+ run : |
186+ npx hardhat task:upgradeInputVerification \
187+ --current-implementation previous-contracts/InputVerification.sol:InputVerification \
188+ --new-implementation contracts/InputVerification.sol:InputVerification \
189+ --use-internal-proxy-address true \
190+ --verify-contract false
189191
190192 # TODO: We should instead automatically detect if the contract needs to be upgraded
191193 # See https://github.com/zama-ai/fhevm-internal/issues/379
192- # - name: Upgrade MultichainACL contract
193- # working-directory: current-fhevm/gateway-contracts
194- # env:
195- # DOTENV_CONFIG_PATH: .env
196- # HARDHAT_NETWORK: staging
197- # CHAIN_ID_GATEWAY: 54321
198- # RPC_URL: http://localhost:8546
199- # run: |
200- # npx hardhat task:upgradeMultichainACL \
201- # --current-implementation previous-contracts/MultichainACL.sol:MultichainACL \
202- # --new-implementation contracts/MultichainACL.sol:MultichainACL \
203- # --use-internal-proxy-address true \
204- # --verify-contract false
194+ - name : Upgrade MultichainACL contract
195+ working-directory : current-fhevm/gateway-contracts
196+ env :
197+ DOTENV_CONFIG_PATH : .env
198+ HARDHAT_NETWORK : staging
199+ CHAIN_ID_GATEWAY : 54321
200+ RPC_URL : http://localhost:8546
201+ run : |
202+ npx hardhat task:upgradeMultichainACL \
203+ --current-implementation previous-contracts/MultichainACL.sol:MultichainACL \
204+ --new-implementation contracts/MultichainACL.sol:MultichainACL \
205+ --use-internal-proxy-address true \
206+ --verify-contract false
205207
206208 # TODO: We should instead automatically detect if the contract needs to be upgraded
207- # See https://github.com/zama-ai/fhevm-internal/issues/379
208- # - name: Upgrade KmsManagement contract
209- # working-directory: current-fhevm/gateway-contracts
210- # env:
211- # DOTENV_CONFIG_PATH: .env
212- # HARDHAT_NETWORK: staging
213- # CHAIN_ID_GATEWAY: 54321
214- # RPC_URL: http://localhost:8546
215- # run: |
216- # npx hardhat task:upgradeKmsManagement \
217- # --current-implementation previous-contracts/KmsManagement .sol:KmsManagement \
218- # --new-implementation contracts/KmsManagement .sol:KmsManagement \
219- # --use-internal-proxy-address true \
220- # --verify-contract false
209+ # See https://github.com/zama-ai/fhevm-internal/issues/379
210+ - name : Upgrade KMSGeneration contract
211+ working-directory : current-fhevm/gateway-contracts
212+ env :
213+ DOTENV_CONFIG_PATH : .env
214+ HARDHAT_NETWORK : staging
215+ CHAIN_ID_GATEWAY : 54321
216+ RPC_URL : http://localhost:8546
217+ run : |
218+ npx hardhat task:upgradeKmsGeneration \
219+ --current-implementation previous-contracts/KmsGeneration .sol:KmsGeneration \
220+ --new-implementation contracts/KmsGeneration .sol:KmsGeneration \
221+ --use-internal-proxy-address true \
222+ --verify-contract false
221223
222224 - name : Clean up
223225 working-directory : previous-fhevm/gateway-contracts
0 commit comments