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

feat: uses zksync-cli for quickstart templates #31

Merged
merged 2 commits into from
May 6, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
---
title: Hardhat | Deploy Contract Factory
---
<!-- TODO: @dutterbutter determine best approach to leverage ZKsync cli for project
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-factories
npx zksync-cli create --template qs-factories contract-factory-quickstart
cd contract-factory-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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,11 @@ title: Hardhat | Deploy Contract

Run the following command in your terminal to initialize the project.

<!-- TODO: @dutterbutter determine best approach to leverage ZKsync cli for project
bootstrapping for this guide series. -->

```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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,13 @@ title: Approval Paymaster
description: Learn to deploy contract factories in the ZKsync environment.
---

<!-- TODO: @dutterbutter determine best approach to leverate ZKsync cli for project
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-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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,13 @@ title: General Paymaster
description: Learn to deploy contract factories in the ZKsync environment.
---

<!-- TODO: @dutterbutter determine best approach to leverate ZKsync cli for project
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-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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,13 @@
title: Hardhat | Contract Upgrading
---

<!-- TODO: @dutterbutter determine best approach to leverate ZKsync cli for project
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-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"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
---
title: Hardhat | Contract Upgrading
---
<!-- TODO: @dutterbutter determine best approach to leverate ZKsync cli for project
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-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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,13 @@
title: Hardhat | Contract Upgrading
---

<!-- TODO: @dutterbutter determine best approach to leverate ZKsync cli for project
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-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
```

::

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install dependencies step isn't needed anymore?

## Set up your wallet

:display-partial{path="build/quick-start/_partials/_setup-wallet"}
Expand Down
Loading