Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update contract deployment docs #63

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion docs/nx-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in the workspace's `project.json`, not the directory name.
```bash
pnpm nx <target> <project>
# examples
# pnpm nx deploy contracts
# pnpm nx serve auth-server
# pnpm nx build sdk
```
Expand Down
6 changes: 4 additions & 2 deletions examples/bank-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
4 changes: 2 additions & 2 deletions examples/nft-quest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading