Skip to content

Commit e7800af

Browse files
committed
docs: update docs for deploy app
1 parent 537a9c8 commit e7800af

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

docs/deployment.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,21 +173,23 @@ As a normal dstack app, it requires the app to be registered in the DstackKms co
173173

174174
```bash
175175
cd dstack/kms/auth-eth
176-
npx hardhat app:deploy --network phala
176+
npx hardhat kms:create-app --network phala --allow-any-device
177177
```
178178

179179
This will deploy an DstackApp contract in the DstackKms contract and print the app ID:
180180

181181
```
182-
Deploying proxy...
183-
Waiting for deployment...
184-
DstackApp Proxy deployed to: 0x539D0d59D1742780De41b85b2c3674b24369e292
185-
Implementation deployed to: 0x5aC1671E1Df54994D023F0B05806821d6D84e086
186-
Deployment completed successfully
187-
Transaction hash: 0xceac2ac6d56a40fef903b947d3a05df42ccce66da7f356c5d54afda68277f9a9
188-
Waiting for transaction 0xe144e9007208079e5e82c04f727d2383c58184e74d4f860e62557b5f330ab832 to be confirmed...
189-
App registered in KMS successfully
190-
Registered AppId: 0x31884c4b7775affe4c99735f6c2aff7d7bc6cfcd
182+
Deploying with account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
183+
Account balance: 9999.988063729279315546
184+
Initial device: 0xda2d377e04b7133ec1287a18d465fa44ae9dbb08d929166c6bdb414f38a2acd3
185+
Initial compose hash: none
186+
Using factory method for single-transaction deployment...
187+
Waiting for transaction 0x46cf1959abf309fcde86bcab2518dcf28dd9eec70c74214f0562e7bf847c50de to be confirmed...
188+
✅ App deployed and registered successfully!
189+
Proxy Address (App Id): 0x32467b43BFa67273FC7dDda0999Ee9A12F2AaA08
190+
Owner: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
191+
Transaction hash: 0x46cf1959abf309fcde86bcab2518dcf28dd9eec70c74214f0562e7bf847c50de
192+
Deployed with 1 initial device and 0 initial compose hash
191193
```
192194

193195
Now go to the `gateway/dstack-app/` directory and run the following command:

0 commit comments

Comments
 (0)