node.js 설치
truffle 설치 " npm install -g truffle@5.5.26 "
python 설치
brownie ethereum 설치 "pip3 install eth-brownie"
파이썬이 편하면 brownie 쓰고
자바스크립트가 편하면 truffle 쓰면 됨
ganache 설치
git bash 에서 진행
truffle 폴더 만든 후 "truffle init"
그 후 truffle compile 하면 build 라는 폴더가 생김
truffle deploy 컨트랙트 배포
ganache 가서 Transaction 확인
[python]
mkdir brownie
cd brownie
brownie init
brownie bake token
brownie compile
brownie run token.py (배포)
특정 시점 블록을 저장하고 다시 롤백 시킬 수 있음.
-https://eth-brownie.readthedocs.io/en/stable/install.html
chain.snapshot()
사용