📗 문서 주소가 https://sce-tts.github.io/ 으로 변경되었습니다.
SCE-TTS와 관련한 최신 정보는 위 주소를 참고해주세요!
SCE-TTS와 관련한 최신 정보는 위 주소를 참고해주세요!
pragma solidity ^0.4.18; | |
import "./StandardToken.sol"; // ERC20 을 따르는 기본 Token Contract | |
import "../../ownership/Ownable.sol"; | |
// contract 의 owner 를 지정, 수정할 수 있게하는 역시 zeppelin-solidity 에 포함된 contract | |
contract MintableToken is StandardToken, Ownable { | |
/* 위에서 import 한 .sol 들에 포함된 StandardToken, Ownable Contract 를 다중상속하여 | |
그 특징들을 그대로 해당 MintableToken Contract 에서 사용, |
Previously described at: ERC20 critical problems medium article.
ERC20 is the most common Ethereum token standard. It should be noted that it is also the first Ethereum's token standard as well.
It is also important that the original ERC20 proposal is a definition of token interface. EIP20 does not define a reference implementation for this token standard. Here is OpenZeppelin implementation of ERC20 token: https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token/ERC20
ERC20 token standard implementation assumes two ways of token transferring: (1) transfer
function and (2) approve + transferFrom
pattern.