ganadara135 / token

token test on truffle test rule

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

에어드랍용 솔리디티 작성

에어드랍 호출 메소드

function mintAirDrop(address _to, uint256 _amount) public returns (bool)

토큰발행 정보(하드코딩)

string public constant name = "KING"; 토큰명
string public constant symbol = "KING"; 심볼
uint public constant decimals = 18;
uint public constant INITIAL_SUPPLY = 1000 * (10 ** decimals); 발행양

ABI 정보

build -> contracts -> *.json 파일 안에 있습니다.


Docker 실행 방법

열어주는 포트 9545, 8545, 7545, 3000

> docker run -it -p 9545:9545 -p 8545:8545 -p 7545:7545 -p 3000:3000 --volume=$(pwd):/king3/ --name king3 -d node
> npm i -g n
> n stable
> npm i
> npm i --unsafe-perm -g truffle
> truffle develop


---------------- truffle 내부에서

>> compile
>> migrate
>> test

mintAirdrop 메소드 테스트 결과

test reuslt

About

token test on truffle test rule


Languages

Language:JavaScript 100.0%