Skip to content

aeyshubh/ethers-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

This repo is created for begineers starting into blockchain and want to learn ethers.js

Using this repo you can Read,Write data , Send ethers to the deployed smart contract and send ethers to a person.

How to use this repo ?


  • First Create a smart contract on remix,compile and deploy it

  • Copy the Abi and smart contract address

  • clone this repo in your local env.

  • Change the Contract Address in ./src/wallet.js

  • Change Abi in ./src/contract.js

  • A provider is used to read data from blockchain which dosen't require any wallet signature.

  • Solidity functions marked as View can be read using provider.I have created two objects,one for reading data and one for writing

  • contractRead is a Provider object for reading data

  • contractWrite is a writing object which requires a signer

  • In writeData() in wallet.js ,we are fetching the current addess of metamask and getting the one which is selected.

  • Surprise!Surprise! We are adding more and more features to our ethers boilerplate repo
  • All these new features will be found at "src/components" a few of them are :
  • Components

  • IPFS Boiler plate : This boiler plate repo is using Web3.storage for storing files to IPFS
  • How to use

  • Create a Account on Web3.Storage and get your API KEY
  • Paste your API KEY in storageKey Variable
  • Woohoo! you can now use this boiler plate and create exciting DApp
  • It's Main feature are : can upload files to IPFS & can fetch those uploaded files and display it.
  • Will be adding more & more features to it in future stay tune ;)

    By Straw Hats

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published