diff --git a/frontend/.gitignore b/frontend/.gitignore index 42f2528..176c1aa 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,5 +1,3 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - # dependencies /node_modules /.pnp @@ -23,6 +21,7 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +tsconfig.tsbuildinfo # local env files .env diff --git a/frontend/src/helpers/useIPFS.ts b/frontend/src/helpers/useIPFS.ts index bdeff34..d238ed8 100644 --- a/frontend/src/helpers/useIPFS.ts +++ b/frontend/src/helpers/useIPFS.ts @@ -1,7 +1,7 @@ -import { create } from "ipfs-http-client"; -import axios from "axios"; +import { create } from 'ipfs-http-client'; +import axios from 'axios'; -const ipfs = create({ host: "ipfs.infura.io", port: 5001, protocol: "https" }); +const ipfs = create({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }); /** * Uploads the file to IPFS. @@ -25,14 +25,14 @@ export async function uploadIPFS(fileBuffer: Buffer) { */ export async function pinNFT(hash: string) { try { - const url = "https://api.pinata.cloud/pinning/pinByHash"; + const url = 'https://api.pinata.cloud/pinning/pinByHash'; await axios.post( url, { hashToPin: hash }, { headers: { - pinata_api_key: process.env.NEXT_PUBLIC_PINATA_API_KEY, - pinata_secret_api_key: process.env.NEXT_PUBLIC_PINATA_SECRET_KEY + pinata_api_key: process.env.NEXT_PUBLIC_PINATA_API_KEY!, + pinata_secret_api_key: process.env.NEXT_PUBLIC_PINATA_SECRET_KEY! } } ); diff --git a/hardhat/.gitignore b/hardhat/.gitignore index 77787c8..49faa17 100644 --- a/hardhat/.gitignore +++ b/hardhat/.gitignore @@ -1,5 +1,10 @@ -node_modules -.env +# dependencies +/node_modules +/.pnp +.pnp.js + +# production +/build #Hardhat files cache @@ -7,6 +12,31 @@ artifacts typechain-types typechain +# Zero-Installs (Yarn v2) +.yarn/* +!.yarn/cache +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + # Zero-Installs (Yarn v2) .yarn/* !.yarn/cache diff --git a/package.json b/package.json index 2b477e7..7a108b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-ether-dapp", "description": "A template for building Full-Stack Blockchain Dapps using Next.js (React), TypeScript, Tailwind CSS, Hardhat, Solidity, and many more!", - "version": "1.1.61", + "version": "1.1.62", "author": "Adrian Delgado", "license": "MIT", "bin": "./bin/index.js",