From 44c22abed5485a8fecd30ad2146babb998c9a9d8 Mon Sep 17 00:00:00 2001 From: cbe Date: Tue, 11 Feb 2025 18:27:49 -0800 Subject: [PATCH] chore: update contract deployment docs We don't use nx in the contract repo, so these deploy instructions need a little update. --- README.md | 2 +- docs/nx-cheatsheet.md | 1 - examples/bank-demo/README.md | 6 ++++-- examples/nft-quest/README.md | 4 ++-- packages/auth-server/README.md | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b29dd576..a041b368 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ To execute the end-to-end tests for the `demo-app` (or similarly for 1. Start `era_test_node` (In a separate terminal, run `npx zksync-cli dev start`) -2. Deploy the smart contracts, `pnpm nx deploy contracts` +2. Deploy the smart contracts, `pnpm --dir packages/contracts run deploy` Once the local node is configured with the smart contracts deployed, you can run the e2e tests: diff --git a/docs/nx-cheatsheet.md b/docs/nx-cheatsheet.md index 0e006084..e1b0dc04 100644 --- a/docs/nx-cheatsheet.md +++ b/docs/nx-cheatsheet.md @@ -11,7 +11,6 @@ in the workspace's `project.json`, not the directory name. ```bash pnpm nx # examples -# pnpm nx deploy contracts # pnpm nx serve auth-server # pnpm nx build sdk ``` diff --git a/examples/bank-demo/README.md b/examples/bank-demo/README.md index 7a022265..6c300980 100644 --- a/examples/bank-demo/README.md +++ b/examples/bank-demo/README.md @@ -26,10 +26,12 @@ Account session and data is stored via the browser Local storage. ## Deploying the Bank demo to Firebase -The Bank demo app uses Demo Node (`https://node.nvillanueva.com`). +The Bank demo app uses Demo Node (`https://node.nvillanueva.com`). Add your +deployer private key to the .env file (packages/contracts/.env) 1. Deploy the latest contracts with - `pnpm nx deploy contracts -- --network demoNode`. + + `pnpm --dir packages/contracts run deploy --network demoNode`. 2. Update `nuxt.config.ts` contract addresses under `$production`. diff --git a/examples/nft-quest/README.md b/examples/nft-quest/README.md index 16da1531..e654abb9 100644 --- a/examples/nft-quest/README.md +++ b/examples/nft-quest/README.md @@ -8,8 +8,8 @@ Run the following (be sure a local node is running, e.g. `era_test_node`[https://docs.zksync.io/build/zksync-cli/running-a-node]): ```sh -# Deploy the ZKsync SSO contracts -pnpm nx deploy contracts +# Deploy the ZKsync SSO contracts (when run from the root) +pnpm --dir packages/contracts run deploy # Deploy the contracts for the NFT Quest Demo pnpm nx deploy:local nft-quest-contracts diff --git a/packages/auth-server/README.md b/packages/auth-server/README.md index 8ee2f66d..2d75571a 100644 --- a/packages/auth-server/README.md +++ b/packages/auth-server/README.md @@ -7,7 +7,7 @@ ZKsync SSO Auth Server ```sh # Ensure era_test_node is already running (npx zksync-cli dev start) # Deploy ZKsync SSO smart contracts -pnpm nx deploy contracts +pnpm --dir packages/contracts run deploy # Start Auth Server pnpm nx dev auth-server