Skip to content

Commit

Permalink
fix: remove ethers v5 (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyg0 authored Aug 2, 2024
1 parent e57b1d7 commit 7aed822
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 78 deletions.
20 changes: 1 addition & 19 deletions src/commands/create/groups/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { GenericTemplate } from "../index.js";

type Template = GenericTemplate & {
framework: "Hardhat";
ethereumFramework: "Ethers v5" | "Ethers v6";
ethereumFramework: "Ethers v6";
language: "Solidity" | "Vyper";
};

Expand All @@ -33,24 +33,6 @@ export const templates: Template[] = [
path: "templates/hardhat/vyper",
git: "https://github.com/matter-labs/zksync-contract-templates/",
},
{
name: "Hardhat + Solidity",
value: "hardhat_solidity",
framework: "Hardhat",
ethereumFramework: "Ethers v5",
language: "Solidity",
path: "templates/hardhat_ethers5/solidity",
git: "https://github.com/matter-labs/zksync-contract-templates/",
},
{
name: "Hardhat + Vyper",
value: "hardhat_vyper",
framework: "Hardhat",
ethereumFramework: "Ethers v5",
language: "Vyper",
path: "templates/hardhat_ethers5/vyper",
git: "https://github.com/matter-labs/zksync-contract-templates/",
},
];

export default async (folderLocation: string, folderRelativePath: string, templateKey?: string) => {
Expand Down
50 changes: 1 addition & 49 deletions src/commands/create/groups/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Template = GenericTemplate & {
| "React - Vite"
| "Svelte - SvelteKit"
| "Svelte - Vite";
ethereumFramework: "Ethers v5" | "Ethers v6" | "viem";
ethereumFramework: "Ethers v6" | "viem";
requiresWalletConnectProjectId?: boolean;
};

Expand Down Expand Up @@ -46,14 +46,6 @@ export const templates: Template[] = [
path: "templates/vue/nuxt3-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "vue_nuxt3_ethers5",
framework: "Vue - Nuxt 3",
ethereumFramework: "Ethers v5",
path: "templates/vue/nuxt3-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},

/* Vue Vite */
{
Expand Down Expand Up @@ -81,14 +73,6 @@ export const templates: Template[] = [
path: "templates/vue/vite-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "vue_vite_ethers5",
framework: "Vue - Vite",
ethereumFramework: "Ethers v5",
path: "templates/vue/vite-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},

/* React Next.js */
{
Expand Down Expand Up @@ -125,14 +109,6 @@ export const templates: Template[] = [
path: "templates/react/next-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "react_next_ethers5",
framework: "React - Next.js",
ethereumFramework: "Ethers v5",
path: "templates/react/next-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},

/* React Vite */
{
Expand Down Expand Up @@ -160,14 +136,6 @@ export const templates: Template[] = [
path: "templates/react/vite-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "react_vite_ethers5",
framework: "React - Vite",
ethereumFramework: "Ethers v5",
path: "templates/react/vite-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},

/* Svelte SvelteKit */
{
Expand Down Expand Up @@ -195,14 +163,6 @@ export const templates: Template[] = [
path: "templates/svelte/sveltekit-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "sveltekit_ethers5",
framework: "Svelte - SvelteKit",
ethereumFramework: "Ethers v5",
path: "templates/svelte/sveltekit-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},

/* Svelte Vite */
{
Expand Down Expand Up @@ -230,14 +190,6 @@ export const templates: Template[] = [
path: "templates/svelte/vite-ethers",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
{
name: "Ethers v5",
value: "svelte_vite_ethers5",
framework: "Svelte - Vite",
ethereumFramework: "Ethers v5",
path: "templates/svelte/vite-ethers5",
git: "https://github.com/matter-labs/zksync-frontend-templates",
},
];

export default async (folderLocation: string, folderRelativePath: string, templateKey?: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/create/groups/quickstart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { GenericTemplate } from "../index.js";

export type Template = GenericTemplate & {
framework: "Hardhat" | "Foundry";
ethereumFramework: "Ethers v5" | "Ethers v6" | "Solidity";
ethereumFramework: "Ethers v6" | "Solidity";
language: "Solidity" | "Vyper";
};

Expand Down
10 changes: 1 addition & 9 deletions src/commands/create/groups/scripting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { GenericTemplate } from "../index.js";

type Template = GenericTemplate & {
framework: "Node.js";
ethereumFramework: "Ethers v5" | "Ethers v6" | "viem" | "Web3.js";
ethereumFramework: "Ethers v6" | "viem" | "Web3.js";
};

export const templates: Template[] = [
Expand All @@ -28,14 +28,6 @@ export const templates: Template[] = [
path: "templates/nodejs/ethers",
git: "https://github.com/matter-labs/zksync-scripting-templates",
},
{
name: "Ethers v5 - Node.js",
value: "node_ethers5",
framework: "Node.js",
ethereumFramework: "Ethers v5",
path: "templates/nodejs/ethers5",
git: "https://github.com/matter-labs/zksync-scripting-templates",
},
{
name: "Web3.js - Node.js",
value: "node_web3js",
Expand Down

0 comments on commit 7aed822

Please sign in to comment.