Skip to content

ahmetson/mistransfer-website

 
 

Repository files navigation

Mistransfer website

Mistransfer is a platform to get back Tokens/NFTs sent to a wrong smartcontract.

This boilerplate is built with Moralis

πŸš€ Quick Start

Deploy with Vercel

πŸ’Ώ Install all dependencies:

cd mistransfer/website
yarn install

✏ Rename .env.local.example to .env.local and provide required data. Get your Web3 Api Key from the Moralis dashboard:

image

πŸ–ŠοΈ Fill the environment variables in your .env.local file in the app root:

  • MORALIS_API_KEY: You can get it here.
  • NEXTAUTH_URL: Your app address. In the development stage, use http://localhost:3000.
  • NEXTAUTH_SECRET: Used for encrypting JWT tokens of users. You can put any value here or generate it on https://generate-secret.now.sh/32.
  • USER_INTERFACE: UserInterface smartcontract address.

Example:

MORALIS_API_KEY=xxxx
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=7197b3e8dbee5ea6274cab37245eec212
USER_INTERFACE=0x1C5a4E5345E81db66EF3D739f7702DFb76a758b8

πŸš΄β€β™‚οΈ Run your App:

yarn start

🧭 Table of contents

πŸ— Ethereum Components

<Lost/ERC20Transfers />

location: src/component/templates/lost/ERC20/ERC20Transfers.tsx

πŸ’° <Lost/ERC20Transfers /> : displays the user's ERC20 transfers sent to a wrong contract. It shows the "Reclaim" button to get them back.

<Lost/NFTTransfers />

location: src/component/templates/lost/NFT/NFTTransfers.tsx

🎨 <Lost/NFTTransfers /> : displays the user's NFT transfers sent to a wrong contract. It shows the Reclaim button to recover lost NFTs.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.2%
  • JavaScript 0.8%