You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the dstack-vmm is ready, you can deploy an app on it following the steps below.
285
+
286
+
### 1. On-chain Registration
287
+
288
+
The on-chain registration process includes two steps:
289
+
290
+
1. Deploy an App's control contract AppAuth. Developers can develop their own or choose the reference contract from the Dstack repository. Custom contracts need to implement the IAppAuth interface.
291
+
2. Call KmsAuth.registerApp(appAuthAddress) to register and obtain the App Id
292
+
293
+
The Dstack repository provides scripts to complete these two steps:
Note the AppId, which needs to be filled in when deploying cvm.
319
+
320
+
If you need to upgrade the contract in the future, please backup the `.openzeppelin/unknown-2035.json` file.
321
+
322
+
### 2. Add the App compose hash to the whitelist
323
+
324
+
Build app-compose.json and calculate its sha256 to get compose-hash. The compose hash can also be previewed in the dstack-vmm UI.
325
+
326
+
Call the hardhat command to add it to the whitelist (using AppAuth as an example here; custom AppAuth follows its own custom permission control logic).
0 commit comments