From e57a95bd0682949f977099cec21182a097dd491e Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Thu, 3 Nov 2022 16:24:51 +0100 Subject: [PATCH] remove init templates --- packages/cli/src/cmds/init/init-template.json | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 packages/cli/src/cmds/init/init-template.json diff --git a/packages/cli/src/cmds/init/init-template.json b/packages/cli/src/cmds/init/init-template.json deleted file mode 100644 index a5f51e214a..0000000000 --- a/packages/cli/src/cmds/init/init-template.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "html": "\n\n \n Hello, Snaps!\n \n \n\n \n

Hello, Snaps!

\n
\n Instructions\n \n
\n
\n\n \n \n \n\n \n\n", - "source": "module.exports.onRpcRequest = async ({ origin, request }) => {\n switch (request.method) {\n case 'hello':\n return wallet.request({\n method: 'snap_confirm',\n params: [\n {\n prompt: `Hello, ${origin}!`,\n description:\n 'This custom confirmation is just for display purposes.',\n textAreaContent:\n 'But you can edit the snap source code to make it do something, if you want to!',\n },\n ],\n });\n default:\n throw new Error('Method not found.');\n }\n};\n", - "typescriptHtml": "\n\n \n Hello, Snaps!\n \n \n\n \n

Hello, Snaps!

\n
\n Instructions\n \n
\n
\n\n \n \n \n\n \n\n", - "typescriptSource": "import { OnRpcRequestHandler } from '@metamask/snap-types';\n\nexport const onRpcRequest: OnRpcRequestHandler = ({ origin, request }) => {\n switch (request.method) {\n case 'hello':\n return wallet.request({\n method: 'snap_confirm',\n params: [\n {\n prompt: `Hello, ${origin}!`,\n description:\n 'This custom confirmation is just for display purposes.',\n textAreaContent:\n 'But you can edit the snap source code to make it do something, if you want to!',\n },\n ],\n });\n default:\n throw new Error('Method not found.');\n }\n};\n", - "typescriptConfig": "{\n \"extends\": \"../../../../tsconfig.packages.json\",\n \"compilerOptions\": {\n \"typeRoots\": [\"../../../../node_modules/@types\"]\n },\n \"files\": [\"./node_modules/@metamask/snap-types/global.d.ts\"],\n \"include\": [\"src\"]\n}\n", - "icon": "" -}