BLOCKCHAIN/BlockChain

BLOCKCHAIN/BlockChain

Truffle 없이 Testnet 배포하기 (1)

1 기본세팅 (1) node, web3, ganache, web3, truffle, solc 세팅 (2) ECAC_Smartcontract 폴더 생성 > ECAC_Smartcontract.sol 생성 (3) npm init (4) 새로운 cmd 창에서 ganache-cli 가상 서버 구동 2 배포하기 (1) 솔리디티 파일 컴파일해서 .bin과 .abi 파일 얻기 * abi: 응용프로그램과 OS 또는 응용프로그램 구성요소 간에 사용되는 인터페이스 * bin: 컴퓨터가 사용하는 이진 바이너리 파일 (2) node 콘솔 > bin 값을 String 형태로 bytecode 변수에 담아주기 (3) abi값을 String 형태로 abi 변수에 담아주기 (4) Web3와 가나슈 연결하기 (5) 가나슈에서 서버를 "l..

BLOCKCHAIN/BlockChain

SmartContract 테스트넷 배포 (4)

* SmartContract 테스트넷 배포(3)의 4부터 다시 4 Testnet 배포 (1) infura.io 접속 후 로그인 Ethereum API | IPFS API & Gateway | ETH Nodes as a Service Infura's development suite provides instant, scalable API access to the Ethereum and IPFS networks. Connect your app to Ethereum and IPFS now, for free! infura.io (2) 새로운 Key 생성 Repsten EndPoint 사용하기 위해서는 Web3 선택해야 함 (3) Repsten 주소 복사 (4) truffle-config.js 수정 *provide..

BLOCKCHAIN/BlockChain

SmartContract 테스트넷 배포 (3)

1 ECAE_SmartContract 실행 - 지난번 계시물에서 컴파일 했던 것은 test 예제 - 이번 게시물에서는 실제 ECAC_SmartContract를 배포하고자 함 (1) 폴더 생성 및 truffle init (2) npm init -y * yes 옵션 안달면 하나하나 일일이 설정해줘야 함 그냥 yes하고 나중에 수정하는게 편함 (3) npm install -E openzeppelin-solidity (4) ATOM 에디터에서 새로운 폴더구조가 형성된 것 확인 * 예제와 달리 Migration.sol, intial_migration 생성 안됨 (5) npx truffle version 명령어로 솔리디티 버전 확인 (6) truffle-config.js 의 compilers 버전 수정 (7) EC..

BLOCKCHAIN/BlockChain

SmartContract 테스트넷 배포 (2)

1 ATOM 에디터에서 solidity 개발환경 구축 (1) ATOM Editer 설치 > exe 파일 Release 1.60.0 · atom/atom Notable Changes atom/tabs#531 - Activate panes on any click, not just left click #13414 - Adds context menu for cinnamon desktop enviroment (Linux) #19016 - Allow line endings to be converted when... github.com (2) autocomplete-solidity / linter-solidity 설치 2 Metacoin 예제 실행 (1) 예제 실행 폴더 및 Metacoin tutorial 설치 (2..