Skip to content

s-di-cola/alchemy

Repository files navigation

🏗 Alchemy dApp

This repository contains a dApp that mimic the functionality of a forgery. There are few rules in this dApp:

  • Iron, Copper and Silver are the only materials that can be used to create a forgery.
  • Gold can be forged by burning Iron and Copper
  • Platinum can be forged by burning Copper and Silver
  • Palladium can be forger by burning Iron and Silver
  • Rhodium can be forged by burning Iron, Copper and Silver
  • Gold Platinum, Palladium and Rhodium cannot be forged into another
  • Everything can be traded to Iron, Copper and Silver

There is a cool down of 1 minute between each forging.

The application is available at https://alchemist-q6w3w3pyk-s-di-colas-projects.vercel.app/

Warning: The contract is deployed on holesky network at https://holesky.etherscan.io/address/0x90B78FF67D038557B93aF531866e0Ff7FB7bC010. Since holesky is not supported by OpenSea, the NFTs are not visible on OpenSea.

Requirements

Before you begin, you need to install the following tools:

Quickstart

  1. Install the dependencies
yarn install
  1. Run a local network in the first terminal:
yarn chain

This command starts a local Ethereum network using Hardhat. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in hardhat.config.ts.

  1. On a second terminal, deploy the test contract:
yarn deploy

This command deploys a test smart contract to the local network. The contract is located in packages/hardhat/contracts and can be modified to suit your needs. The yarn deploy command uses the deploy script located in packages/hardhat/deploy to deploy the contract to the network. You can also customize the deploy script.

  1. On a third terminal, start your NextJS app:
yarn start

Visit your app on: http://localhost:3000. You can interact with your smart contract using the Debug Contracts page. You can tweak the app config in packages/nextjs/scaffold.config.ts.

About

A dApp that mimics the functionality of a forgery

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published