This project allows you to create a token named CakirToken.
In Brownie folder, create an .env file. This file should contain secret information for your Brownie part of your application:
WEB3_INFURA_PROJECT_ID={YOUR_ID}
ETHERSCAN_TOKEN={YOUR_ETHERSCAN_TOKEN}
WEB3_INFURA_PROJECT_ID is the ID of the project you've created on https://infura.io/
ETHERSCAN_TOKEN is a token that allows you to deploy your contract on chain
- Clone the project
git clone https://github.com/TekyaygilFethi/CakirToken.git
- First create a virtual environment. Assume we want to give myenv as a venv name.
python3 -m venv myvenv
- Activate the virtual environment FOR MAC:
source myvenv/bin/activate
FOR WINDOWS:
myvenv/Scripts/activate
- Install the required Brownie dependency
pip3 install eth-brownie
-
You can change your token's name in contracts/CakirCoin.sol file with any value
-
Compile the sol file in order to work with it
brownie compile
- Deploy your contract with running the deploy script:
brownie run scripts/deploy.py --network rinkeby
- After deployment check your token contract creation from https://rinkeby.etherscan.io/address/{your_contract_address}
📚 For Medium story, please follow here