Skip to content

sirlopu/brownie_simple_storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brownie Simple Storage

Pre-reqs

source: https://github.com/eth-brownie/brownie

  1. Install brownie
    pip install eth-brownie

NOTES:

  • Tried using pipx with Windows 10, but ran into a few issues.

  • Needed to add system environment variable for brownie - restart required


Notes

  • Natively integrate account into brownie

    brownie accounts new <account-name>
  • Delete account from brownie

    brownie accounts delete <account-name>
  • List accounts from brownie

    brownie accounts list
  • When running tests (pytest)...

    brownie test # complete test
    
    brownie test -k <testname> # test one particular test
    
    brownie test --pdb # returns a terminal
    
    brownie test -s # complete test with print lines
    
    Sample output:
    
        tests/test_simple_storage.py::test_deploy PASSED
        tests/test_simple_storage.py::test_updating_storage PASSED
    
        ================= 2 passed in 8.46s ======================== 
            
  • List available network

    brownie networks list
  • Deploy to a testnet

    Add your WEB3_INFURA_PROJECT_ID from Infura to your .env

    brownie run scripts/deploy.py --network rinkeby
  • Run

    brownie run script/deploy.py
  • Interactive brownie console

    brownie console
    
    quit()

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks