From 7aed8227eccbce21796d95f1c4e87369e72f4988 Mon Sep 17 00:00:00 2001 From: Jen <60794961+jennyg0@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:16:50 -0700 Subject: [PATCH] fix: remove ethers v5 (#156) --- src/commands/create/groups/contracts.ts | 20 +--------- src/commands/create/groups/frontend.ts | 50 +----------------------- src/commands/create/groups/quickstart.ts | 2 +- src/commands/create/groups/scripting.ts | 10 +---- 4 files changed, 4 insertions(+), 78 deletions(-) diff --git a/src/commands/create/groups/contracts.ts b/src/commands/create/groups/contracts.ts index df6ee899..961c73a6 100644 --- a/src/commands/create/groups/contracts.ts +++ b/src/commands/create/groups/contracts.ts @@ -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"; }; @@ -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) => { diff --git a/src/commands/create/groups/frontend.ts b/src/commands/create/groups/frontend.ts index e4f1cdff..2b0d5ce0 100644 --- a/src/commands/create/groups/frontend.ts +++ b/src/commands/create/groups/frontend.ts @@ -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; }; @@ -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 */ { @@ -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 */ { @@ -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 */ { @@ -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 */ { @@ -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 */ { @@ -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) => { diff --git a/src/commands/create/groups/quickstart.ts b/src/commands/create/groups/quickstart.ts index a9460eb4..6c718512 100644 --- a/src/commands/create/groups/quickstart.ts +++ b/src/commands/create/groups/quickstart.ts @@ -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"; }; diff --git a/src/commands/create/groups/scripting.ts b/src/commands/create/groups/scripting.ts index dbdad968..025d64cb 100644 --- a/src/commands/create/groups/scripting.ts +++ b/src/commands/create/groups/scripting.ts @@ -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[] = [ @@ -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",