Giter Club home page Giter Club logo

store-data-brownie's Introduction

Store-Data-Brownie

SimpleStorage.sol

A smart contract to:

  • Store and retrieve a value.
  • Store a person and their favourite number

Deploy.py

A python script to:

  • Connect to a Blockchain (Testnet, Mainnet)
  • Get an account safely:
    • From brownie if we want to test
    • A real one via the config & .env file
  • Deploy our contract
  • Retrieve the initial stored value
  • Create a new transaction to update the stored value
  • Retrieve the new stored value

Read_value.py

  • Retrieve the most recent deployed contract

Test_simple_storage.py

  • Test if the deployment is correct
  • Test if updating the value works correctly

Help with the project

To run the code there are some requirements. You must install:

pipx

Install pipx by running the following on the command line: python -m pip install --user pipx then python3 -m pipx ensurepath

For more information check: Install pipx

Brownie

Install Brownie by running the following on the command line: pip install eth-brownie

For more information check: Install Brownie

This is the Lesson 5 of the freeCodeCamp.org tutorial: https://www.youtube.com/watch?v=M576WGiDBdQ with more comments.

store-data-brownie's People

Contributors

k-konstantinidis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

totoro2205

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.