From 68e91d61434aa811d0bf2e2255f6446f9bf851d3 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 25 Apr 2024 10:58:12 -0500 Subject: [PATCH] feat: uses zksync-cli for quickstart templates --- .../_hardhat_deploy_contract_factory.md | 30 ++---------------- .../_hello-zksync/_hardhat_deploy_contract.md | 29 ++--------------- .../_paymasters/_approval_paymaster_flow.md | 30 ++---------------- .../_paymasters/_general_paymaster_flow.md | 29 ++--------------- .../_testing/_hardhat_contract_testing.md | 31 +++---------------- .../_hardhat_beacon_contract_upgradability.md | 29 ++--------------- ...dhat_transparent_contract_upgradability.md | 30 ++---------------- .../_hardhat_uups_contract_upgradability.md | 29 ++--------------- 8 files changed, 20 insertions(+), 217 deletions(-) diff --git a/content/00.build/10.quick-start/_deploy_factory/_hardhat_deploy_contract_factory.md b/content/00.build/10.quick-start/_deploy_factory/_hardhat_deploy_contract_factory.md index f631c436..8345df32 100644 --- a/content/00.build/10.quick-start/_deploy_factory/_hardhat_deploy_contract_factory.md +++ b/content/00.build/10.quick-start/_deploy_factory/_hardhat_deploy_contract_factory.md @@ -1,38 +1,14 @@ --- title: Hardhat | Deploy Contract Factory --- - + Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-factories -``` - -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install +npx zksync-cli create --template qs-factories contract-factory-quickstart +cd contract-factory-quickstart ``` -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path="build/quick-start/_partials/_setup-wallet"} diff --git a/content/00.build/10.quick-start/_hello-zksync/_hardhat_deploy_contract.md b/content/00.build/10.quick-start/_hello-zksync/_hardhat_deploy_contract.md index 8c7a7956..9a8c29f3 100644 --- a/content/00.build/10.quick-start/_hello-zksync/_hardhat_deploy_contract.md +++ b/content/00.build/10.quick-start/_hello-zksync/_hardhat_deploy_contract.md @@ -4,36 +4,11 @@ title: Hardhat | Deploy Contract Run the following command in your terminal to initialize the project. - - ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -``` - -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install +npx zksync-cli create --template qs-hello-zksync hello-zksync-quickstart +cd hello-zksync-quickstart ``` -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path="build/quick-start/_partials/_setup-wallet"} diff --git a/content/00.build/10.quick-start/_paymasters/_approval_paymaster_flow.md b/content/00.build/10.quick-start/_paymasters/_approval_paymaster_flow.md index 1164ae5d..8d196002 100644 --- a/content/00.build/10.quick-start/_paymasters/_approval_paymaster_flow.md +++ b/content/00.build/10.quick-start/_paymasters/_approval_paymaster_flow.md @@ -3,39 +3,13 @@ title: Approval Paymaster description: Learn to deploy contract factories in the zkSync environment. --- - Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-paymaster +npx zksync-cli create --template qs-paymaster contract-paymaster-quickstart +cd contract-paymaster-quickstart ``` -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install - -``` - -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path = "/build/quick-start/_partials/_setup-wallet"} diff --git a/content/00.build/10.quick-start/_paymasters/_general_paymaster_flow.md b/content/00.build/10.quick-start/_paymasters/_general_paymaster_flow.md index 6c6f521c..5f38d51b 100644 --- a/content/00.build/10.quick-start/_paymasters/_general_paymaster_flow.md +++ b/content/00.build/10.quick-start/_paymasters/_general_paymaster_flow.md @@ -3,38 +3,13 @@ title: General Paymaster description: Learn to deploy contract factories in the zkSync environment. --- - Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-paymaster +npx zksync-cli create --template qs-paymaster contract-paymaster-quickstart +cd contract-paymaster-quickstart ``` -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install -``` - -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path = /build/quick-start/_partials/_setup-wallet"} diff --git a/content/00.build/10.quick-start/_testing/_hardhat_contract_testing.md b/content/00.build/10.quick-start/_testing/_hardhat_contract_testing.md index 8037252c..ba2444f1 100644 --- a/content/00.build/10.quick-start/_testing/_hardhat_contract_testing.md +++ b/content/00.build/10.quick-start/_testing/_hardhat_contract_testing.md @@ -5,33 +5,10 @@ title: Hardhat | Contract Testing bootstrapping for this guide series. --> Run the following command in your terminal to initialize the project. - ```sh - git clone https://github.com/dutterbutter/zksync-quickstart-guide.git - cd zksync-quickstart-guide - git checkout db/contract-testing - ``` - - Install the dependencies: - - ::code-group - - ```bash [npm] - npm install - ``` - - ```bash [yarn] - yarn install - ``` - - ```bash [pnpm] - pnpm install - ``` - - ```bash [bun] - bun install - ``` - - :: +```sh +npx zksync-cli create --template qs-testing contract-testing-quickstart +cd contract-testing-quickstart +``` --- diff --git a/content/00.build/10.quick-start/_upgrading/_beacon/_hardhat_beacon_contract_upgradability.md b/content/00.build/10.quick-start/_upgrading/_beacon/_hardhat_beacon_contract_upgradability.md index c6e951e3..6a3981d4 100644 --- a/content/00.build/10.quick-start/_upgrading/_beacon/_hardhat_beacon_contract_upgradability.md +++ b/content/00.build/10.quick-start/_upgrading/_beacon/_hardhat_beacon_contract_upgradability.md @@ -2,38 +2,13 @@ title: Hardhat | Contract Upgrading --- - Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-upgrade +npx zksync-cli create --template qs-upgrade contract-upgrade-quickstart +cd contract-upgrade-quickstart ``` -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install -``` - -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path = "/build/quick-start/_partials/_setup-wallet"} diff --git a/content/00.build/10.quick-start/_upgrading/_transparent/_hardhat_transparent_contract_upgradability.md b/content/00.build/10.quick-start/_upgrading/_transparent/_hardhat_transparent_contract_upgradability.md index 86ca3223..97be0ed4 100644 --- a/content/00.build/10.quick-start/_upgrading/_transparent/_hardhat_transparent_contract_upgradability.md +++ b/content/00.build/10.quick-start/_upgrading/_transparent/_hardhat_transparent_contract_upgradability.md @@ -1,38 +1,14 @@ --- title: Hardhat | Contract Upgrading --- - + Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-upgrade -``` - -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install +npx zksync-cli create --template qs-upgrade contract-upgrade-quickstart +cd contract-upgrade-quickstart ``` -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - --- ## Set up your wallet diff --git a/content/00.build/10.quick-start/_upgrading/_uups/_hardhat_uups_contract_upgradability.md b/content/00.build/10.quick-start/_upgrading/_uups/_hardhat_uups_contract_upgradability.md index a3414594..32f9566e 100644 --- a/content/00.build/10.quick-start/_upgrading/_uups/_hardhat_uups_contract_upgradability.md +++ b/content/00.build/10.quick-start/_upgrading/_uups/_hardhat_uups_contract_upgradability.md @@ -2,38 +2,13 @@ title: Hardhat | Contract Upgrading --- - Run the following command in your terminal to initialize the project. ```sh -git clone https://github.com/dutterbutter/zksync-quickstart-guide.git -cd zksync-quickstart-guide -git checkout db/contract-upgrade +npx zksync-cli create --template qs-upgrade contract-upgrade-quickstart +cd contract-upgrade-quickstart ``` -Install the dependencies: - -::code-group - -```bash [npm] -npm install -``` - -```bash [yarn] -yarn install -``` - -```bash [pnpm] -pnpm install -``` - -```bash [bun] -bun install -``` - -:: - ## Set up your wallet :display-partial{path="build/quick-start/_partials/_setup-wallet"}