Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove ethers v5 #156

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading