Skip to content

Commit 26aa78a

Browse files
avkosJackHamer09uF4No
authored
feat: add web3js templates (#121)
Co-authored-by: Jack Hamer <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: Jack Hamer <[email protected]>
1 parent 24922e1 commit 26aa78a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Run `npx zksync-cli dev` to see the full list of commands.
3737
- `npx zksync-cli create`: Create a project using updated templates.
3838
- **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)
3939
- **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)
40-
- **Scripting**: Automated interactions and advanced zkSync operations using Node.js, with examples of wallet or contract interactions using viem or ethers. [Scripting Templates](https://github.com/matter-labs/zksync-scripting-templates#readme)
40+
- **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)
4141

4242
### Contract interaction commands
4343
See full documentation and advanced examples [here](./docs/contract-interaction.md).

src/commands/create/groups/scripting.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { GenericTemplate } from "../index.js";
88

99
type Template = GenericTemplate & {
1010
framework: "Node.js";
11-
ethereumFramework: "Ethers v5" | "Ethers v6" | "viem";
11+
ethereumFramework: "Ethers v5" | "Ethers v6" | "viem" | "Web3.js";
1212
};
1313

1414
export const templates: Template[] = [
@@ -36,6 +36,14 @@ export const templates: Template[] = [
3636
path: "templates/nodejs/ethers5",
3737
git: "https://github.com/matter-labs/zksync-scripting-templates",
3838
},
39+
{
40+
name: "Web3.js - Node.js",
41+
value: "node_web3js",
42+
framework: "Node.js",
43+
ethereumFramework: "Web3.js",
44+
path: "templates/nodejs/web3js",
45+
git: "https://github.com/matter-labs/zksync-scripting-templates",
46+
},
3947
];
4048

4149
export default async (folderLocation: string, folderRelativePath: string, templateKey?: string) => {

0 commit comments

Comments
 (0)