Skip to content

A template to deploy smart contracts to Cronos Cassini using Brownie

Notifications You must be signed in to change notification settings

damoncro/cronos_cassini_brownie_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A template to deploy smart contracts to Cronos Cassini using Brownie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published