Skip to content

Commit eec623d

Browse files
authored
feat: add web3js to cli (#170)
1 parent 99ba776 commit eec623d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Run `npx zksync-cli dev` to see the full list of commands.
5353

5454
### Create Project commands
5555
- `npx zksync-cli create`: Create a project using updated templates.
56-
- **Frontend**: Rapid UI development with templates for Vue, React, Next.js, Nuxt, Vite, etc. Options include viem, ethers, web3modal, rainbowkit. [More Info](https://github.com/matter-labs/zksync-frontend-templates#readme)
56+
- **Frontend**: Rapid UI development with templates for Vue, React, Next.js, Nuxt, Vite, etc. Options include viem, ethers, web3.js, web3modal, rainbowkit. [More Info](https://github.com/matter-labs/zksync-frontend-templates#readme)
5757
- **Contracts**: Quick contract deployment and testing with tools like Hardhat on Solidity or Vyper. [Contract templates](https://github.com/matter-labs/zksync-contract-templates#readme)
5858
- **Scripting**: Automated interactions and advanced ZKsync operations using Node.js, with examples of wallet or contract interactions using viem, ethers or web3.js. [Scripting Templates](https://github.com/matter-labs/zksync-scripting-templates#readme)
5959

src/commands/create/groups/frontend.ts

+17-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type Template = GenericTemplate & {
1515
| "React - Vite"
1616
| "Svelte - SvelteKit"
1717
| "Svelte - Vite";
18-
ethereumFramework: "Ethers v6" | "viem";
18+
ethereumFramework: "Ethers v6" | "viem" | "Web3.js";
1919
requiresWalletConnectProjectId?: boolean;
2020
};
2121

@@ -109,6 +109,14 @@ export const templates: Template[] = [
109109
path: "templates/react/next-ethers",
110110
git: "https://github.com/matter-labs/zksync-frontend-templates",
111111
},
112+
{
113+
name: "Web3.js",
114+
value: "react_next_web3js",
115+
framework: "React - Next.js",
116+
ethereumFramework: "Web3.js",
117+
path: "templates/react/next-web3js",
118+
git: "https://github.com/matter-labs/zksync-frontend-templates",
119+
},
112120

113121
/* React Vite */
114122
{
@@ -136,6 +144,14 @@ export const templates: Template[] = [
136144
path: "templates/react/vite-ethers",
137145
git: "https://github.com/matter-labs/zksync-frontend-templates",
138146
},
147+
{
148+
name: "Web3.js",
149+
value: "react_vite_web3js",
150+
framework: "React - Vite",
151+
ethereumFramework: "Web3.js",
152+
path: "templates/react/vite-web3js",
153+
git: "https://github.com/matter-labs/zksync-frontend-templates",
154+
},
139155

140156
/* Svelte SvelteKit */
141157
{

0 commit comments

Comments
 (0)