Skip to content

0xDVC/TokenShelf

Repository files navigation

Asset Token Management - TokenShelf

A decentralized asset token management system. Allows users to create, manage, and transfer tokens. Essentially a token factory for real-world assets. Convert all assets(properties, cars, etc) into tokens.

Smart Contract

The AssetToken contract uses OpenZeppelin's ERC721 and includes:

  • Asset struct with name, description, value, type, and image
  • Tokenization function with ETH value validation
  • Asset mapping and token tracking
  • Owner management

Tech Stack

  • Typescript/Javascript
  • Vite
  • Solidity + Hardhat
  • ether.js
  • React
  • MaterialUI

Setting it up

  • Install deps ```npm install``
  • Compile npx hardhat compile
  • Run local blockchain npx hardhat run
  • Deploy contracts (another terminal) npx hardhat run scripts/deploy.js --network localhost
  • Start frontend npm run dev

Configuration

  1. Install MetaMask(extension in Chrome or Firefox) and create an account

  2. Add Hardhat Network to MetaMask:

  3. Import test account:

    • Private Key: 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 PS: You can choose any other private key, from the node.

Demo

Launch

Launch Initial screen with the app name

Connect Wallet

Connect Wallet Initial connection screen with MetaMask integration

Create Asset

Create Asset Form to tokenize a new asset with ETH value

Asset Gallery

Asset Gallery View all tokenized assets in a clean grid layout

Transaction History

Transaction History Metamask transaction history

About

asset token management tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published