Giter Site home page Giter Site logo

cronos_cassini_brownie_template's Introduction

cronos_cassini_brownie_template

Description

A template to deploy/call smart contracts on Cronos Cassini using Brownie.

Installation

You need to grab Brownie before using this project.

pip3 install --user pipx
python3 -m pipx ensurepath
pipx install eth-brownie

How to use?

  1. Get TCRO from https://cronos.crypto.org/faucet
  2. Create .env file in the root directory of this template project
  3. Get the private key from metamask and add it into .env
export PRIVATE_KEY='0xxxxxxxxxxxxxxxxxxxxxxxxxx'
  1. Add cassini network
brownie networks add Ethereum cassini host=https://cronos-testnet-3.crypto.org:8545 chainid=338
  1. Run deploy.py to deploy contacts under contracts folder
brownie run scripts/deploy.py --network cassini # it would deploy to cassini testnet!
  1. Call fund.py to transfer TCRO to the contract we deployed in last step. Modify the TCRO value in fund.py if you would like to.
brownie run scripts/fund.py --network cassini
  1. Call withdraw.py to get all TCRO back
brownie run scripts/withdraw.py --network cassini

How to deploy your smart contrats?

  1. Just add your solidy contracts or modify the original contracts in contract folder and modify the deploy.py in scripts folder.
  2. Run brownie run scripts/deploy.py --network cassini

cronos_cassini_brownie_template's People

Contributors

damoncro avatar

Stargazers

Damon Chan avatar Roman Hossain Shaon 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.