Abuhaneeph / Inheritance-Contract

Inheritance Smart-contract is a contract where the owner of an digital asset can share his/her asset to his/her inheritors and assigned a Lawyer to the contract that can only tell the contract the Owner is dead so that the asset will be distributed to his/her Inheritors

Home Page:https://insudor.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inheritance-Contract

Inheritance Smart-contract is a contract where the owner of an digital asset can share his/her asset to his/her inheritors and assigned a Lawyer to the contract that can only tell the contract the Owner is dead so that the asset will be distributed to his/her Inheritors

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • Nodejs
    • You'll know you've installed nodejs right if you can run:
      • node --version and get an ouput like: vx.x.x
  • Yarn instead of npm
    • You'll know you've installed yarn right if you can run:
      • yarn --version and get an output like: x.x.x
      • You might need to install it with npm or corepack

Quickstart

git clone https://github.com/Abuhaneeph/Inheritance-Contract
cd Inheritance-Contract/frontend/client
npm install
npm start

Deployment to a testnet or mainnet

  1. Setup environment variabltes

You'll want to set your GOERLI_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file, similar to what you see in the repo.

  • PRIVATE_KEY: The private key of your account (like from metamask). NOTE: FOR DEVELOPMENT, PLEASE USE A KEY THAT DOESN'T HAVE ANY REAL FUNDS ASSOCIATED WITH IT.
  • GOERLI_RPC_URL: This is url of the goerli testnet node you're working with. You can get setup with one for free from Alchemy
  1. Get testnet ETH

Head over to faucets.chain.link and get some tesnet ETH & LINK. You should see the ETH and LINK show up in your metamask. You can read more on setting up your wallet with LINK.

About

Inheritance Smart-contract is a contract where the owner of an digital asset can share his/her asset to his/her inheritors and assigned a Lawyer to the contract that can only tell the contract the Owner is dead so that the asset will be distributed to his/her Inheritors

https://insudor.netlify.app


Languages

Language:JavaScript 78.5%Language:CSS 20.1%Language:Solidity 0.9%Language:HTML 0.4%Language:PHP 0.1%