ethmarketplace

所属分类:以太坊
开发工具:TypeScript
文件大小:407KB
下载次数:0
上传日期:2022-11-10 09:49:35
上 传 者sh-1993
说明:  现实生活中的NFT的去中心化市场。
(a decentralized marketplace for real-life NFT s.)

文件列表:
.circleci (0, 2022-05-30)
.circleci\config.yml (659, 2022-05-30)
.eslintrc.json (40, 2022-05-30)
components (0, 2022-05-30)
components\ActionButton.tsx (995, 2022-05-30)
components\ChromeLink.tsx (522, 2022-05-30)
components\ConnectMetamask.tsx (814, 2022-05-30)
components\EthButton.tsx (1516, 2022-05-30)
components\EthInput.tsx (1332, 2022-05-30)
components\EthPrice.tsx (812, 2022-05-30)
components\Footer.tsx (284, 2022-05-30)
components\Header.tsx (190, 2022-05-30)
components\ModalView.tsx (386, 2022-05-30)
components\NavBar.tsx (2472, 2022-05-30)
components\NavBarItem.tsx (1200, 2022-05-30)
components\NavBarItemMobile.tsx (949, 2022-05-30)
components\PageTitle.tsx (230, 2022-05-30)
components\Product.tsx (1366, 2022-05-30)
components\ProductDetails (0, 2022-05-30)
components\ProductDetails\ProductDetailsItem.tsx (1807, 2022-05-30)
components\ProductDetails\ProductDetailsList.tsx (206, 2022-05-30)
components\TextInput.tsx (2216, 2022-05-30)
components\WarningBanner.tsx (1226, 2022-05-30)
constants (0, 2022-05-30)
constants\PageLayout.tsx (622, 2022-05-30)
constants\firebase.ts (647, 2022-05-30)
contexts (0, 2022-05-30)
contexts\AppContext.tsx (4960, 2022-05-30)
contracts (0, 2022-05-30)
contracts\Firechain.sol (2830, 2022-05-30)
contracts\Firechain.test.js (6135, 2022-05-30)
contracts\Migrations.sol (419, 2022-05-30)
jest.config.js (816, 2022-05-30)
jest.setup.js (36, 2022-05-30)
migrations (0, 2022-05-30)
migrations\1_initial_migration.js (126, 2022-05-30)
migrations\2_deploy.js (161, 2022-05-30)
... ...

The idea for Firechain was born after I noticed a problem with potential scams when I was selling my old furniture on Facebook Marketplace - I realized that smart contracts with built-in escrows and security could give users a safer experience. The front-end is a SPA built on React, Next.js, TailwindCSS and web3.js. There's pages to explore the marketplace, list a new item, view and buy individual products, as well as custom user profiles showing items for sale. They are server-side rendered and CDN cached through Vercel for fast loads, which means we have to check for data updates every ~15 seconds to generate the updated static files. The true back-end is Ethereum, as the smart contract (written in Solidity) keeps track of all the users, products and prices, as well as transaction execution and actual settlement of funds. The products' metadata is stored in IPFS, a decentralized file storage protocol similar to BitTorrent. We use Pinata's API pinning service to ensure that at least one IPFS node will store this data indefinitely. We also use a Firebase database caching the blockchain data to minimize loading times, as Ethereum calls can get slow. It has a user profile schema to enable additional functionality, such as custom usernames and profile pictures. Finally, we leverage Metamask (popular crypto wallet) to enable user authentication without any e-mail or OAuth sign up by essentially implementing asymmetric key encryption with Ethereum. This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started First, run the development server: ```bash npm run dev # or yarn dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

近期下载者

相关文件


收藏者