-
Notifications
You must be signed in to change notification settings - Fork 2
컨트랙트 배포하기
simon edited this page Sep 11, 2021
·
10 revisions
Ethereum API | IPFS API & Gateway | ETH Nodes as a Service | Infura
- 로그인하기
- 왼쪽 사이드 메뉴에서 Ethereum 선택
- Create New Project 버튼 클릭 (이름은 임의로 지정)
- infura ID를 복사한다. (-> .infurakey 파일에 붙여넣을 예정)
- ENDPOINT를 Mainnet에서 Ropsten으로 변경
Ropsten Ethereum (rETH) Faucet
- 메타마스크를 열어 네트워크를 ropsten으로 변경 후!
- 계정 주소를 복사해서 이더를 요청하자
- 위 3 사이트 중 아무 사이트 이용!
- 경로: chainserver 프로젝트 폴더 최상위
- 생성할 파일 이름: .secret, .infurakey
- .secret : mnmonic 코드를 삽입합니다. (word1 word2 ...)
- .infurakey : infura에서 획득한 키를 삽입합니다.
npm install @truffle/hdwallet-provider
- 프로젝트를 최신상태로 변경
- 터미널 코드
// develop 브랜치! 확인
git checkout develop
// 최신 상태 업데이트
git pull origin develop
- github Desktop 프로그램을 사용해도 됨
- 배포 (chainserver 프로젝트 경로)
truffle migrate --network ropsten