Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix: updated cli create project command (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
amelnytskyi authored Feb 15, 2024
1 parent 8bcf115 commit 70f82b8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/build/test-and-debug/hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To test our contract, we are going to use Hardhat, and `era_test_node` for rapid
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:

```bash
npx zksync-cli@latest create-project test-greeter
npx zksync-cli create test-greeter
```

Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/Greeter.sol`.
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/how-to/send-transaction-l1-l2.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ User needs to perform next steps:

```npm
// install zksync-cli
npm i -g zksync-cli@latest
npm i -g zksync-cli
zksync-cli dev config
// choose: Dockerized node - Persistent state, includes L1 and L2 nodes
// choose: BE and Portal (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/

Using `zksync-cli` we will create a new project with the required dependencies and boilerplate paymaster implementations:

<pre class="language-bash"><code class="lang-bash"><strong>npx zksync-cli@latest create-project allowListPaymaster
<pre class="language-bash"><code class="lang-bash"><strong>npx zksync-cli create allowListPaymaster
</strong></code></pre>

Choose `Hardhat + Solidity` to setup our project repository. The contract we will be adjusting exists under `/contracts/GeneralPaymaster.sol`.;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Each paymaster should implement the `IPaymaster` interface. We will be using `zk
Using `zksync-cli` create a new project with required dependencies:

```bash
npx zksync-cli@latest create erc20FixedPaymaster
npx zksync-cli create erc20FixedPaymaster
```

Choose `Hardhat + Solidity` to setup our project repository. The contract we will be adjusting exists under `/contracts/ApprovalPaymaster.sol` and can be renamed to `ERC20fixedPaymaster.`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/

Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:

`npx zksync-cli@latest create-project gaslessPaymaster`
`npx zksync-cli create gaslessPaymaster`

Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/GeneralPaymaster.sol`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:

```bash
npx zksync-cli@latest create-project timeBasedPaymaster
npx zksync-cli create timeBasedPaymaster
```

Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/GeneralPaymaster.sol`.
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/tooling-guides/api3.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/

Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:

<pre class="language-bash"><code class="lang-bash"><strong>npx zksync-cli@latest create-project mockUSDCPaymaster
<pre class="language-bash"><code class="lang-bash"><strong>npx zksync-cli create mockUSDCPaymaster
</strong></code></pre>

Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/ApprovalPaymaster.sol`.
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/tooling-guides/dia.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The DIAOracle contract is designed to retrieve and store the latest price inform

Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:

`npx zksync-cli@latest create-project DIAOracle`
`npx zksync-cli create DIAOracle`

Choose `Hardhat + Solidity` to setup the project repository.

Expand Down
2 changes: 1 addition & 1 deletion docs/zk-stack/running-a-hyperchain/locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Your server contains both HTTPS as well as WebSocket (WS) services that are full
zkSync CLI allows you to easily interact and develop applications on your hyperchain. When executing any command with zksync-cli, you can specify RPC urls for both L1 and L2. Your local server contains RPCs for both. An example deposit command via the bridge would look like:

```bash
npx zksync-cli@latest bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
npx zksync-cli bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
```

### Using [Portal](https://github.com/matter-labs/dapp-portal)
Expand Down
2 changes: 1 addition & 1 deletion docs/zk-stack/running-a-hyperchain/using-hyperchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ By default your server is available at <http://localhost:3050> - but if you depl
When executing any command with zksync-cli, you can specify RPC urls for both L1 and L2 if you choose “localnet” as your network. An example deposit command would look like:

```bash
npx zksync-cli@latest bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
npx zksync-cli bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
```

## Using dApp Portal
Expand Down

0 comments on commit 70f82b8

Please sign in to comment.