Git Product home page Git Product logo

brownie-starter-kit's Introduction

Brownie Starter Kit

An example smart contract toolkit

Installation

pip install --user pipx

pipx ensurepath

# restart your terminal
pipx install eth-brownie

Basic Use

Add network in brownie

Add Folkafoundry halongbay network

brownie networks add Polkafoundry halongbay host=https://rpc-halongbay.polkafoundry.com chainid=11

Set environment variables

You'll need the following environment variables. You can set them all in your .env file:

export WEB3_INFURA_PROJECT_ID=YourProjectID
export ETHERSCAN_TOKEN=''
export PRIVATE_KEY="0xasdfasdfasdfasd..."
export MNEMONIC=''
  • WEB3_INFURA_PROJECT_ID: Your connection to the blockchain. You can get a URL from a service like Infura
  • ETHERSCAN_TOKEN:
  • PRIVATE_KEY: Your Private Key from your Wallet. If using metamask, you'll have to add a 0x to the start of your private key.
  • MNEMONIC: Your menemonic phase

Run source .env

This doesn't auto-pull in your .env file at the start, so you have to set your environment variables at the start.

source .env

Run Scripts

brownie run scripts/deploy.py
brownie run scripts/deploy.py --network kovan
brownie run scripts/deploy.py --network halongbay

Testing

To run the tests:

brownie test
brownie test --network kovan
brownie test --network halongbay

Testing

Deploy and interact with the smart contracts via RPC

  • Hello World
  • Basic Storage
  • ERC20 Token
  • ERC-721 NFT
  • ChainLink

Contributing

Help is always appreciated! Feel free to open an issue if you find a problem, or a pull request if you've solved an issue.

License

This project is licensed under the MIT license.

brownie-starter-kit's People

Contributors

hieuha avatar

Stargazers

Shuhui Tang avatar

Watchers

James Cloos avatar  avatar Hoang Quoc Huy avatar

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.