ERC-721
Last updated
Was this helpful?
Last updated
Was this helpful?
이 튜토리얼은 ()을 따르는 토큰을 만드는 방법을 소개합니다.
은 아래와 같은 3개의 이벤트와 10개의 메소드를 정의합니다. ERC-721의 supportsInterface
는 에서 파생되었으며 ERC-165는 ERC-721의 일부분입니다. ERC-721 호환 토큰은 ERC-721 및 ERC-165 인터페이스를 구현한 토큰 컨트랙트입니다.
Based on above interface, developers may customize tokens by adding new features and logics, and deploy on Klaytn network. 자세한 내용은 공식 을 참조하세요.
이 튜토리얼에서는 카드 타입의 대체 불가능한 토큰, 즉 ERC-721 토큰인 MyERC721Card
의 구현체인 MyERC721Card.sol
를 구현할 것입니다. 각 MyERC721Card
는 이름과 레벨, 가령 레벨 1의 "왕(King)", 레벨 1의 "여왕(Queen)"을 가집니다.
The rest of this tutorial is organized as follows.
1.1 전체 MyERC721Card
코드와 MyERC721Card
코드의 전체 구조
1.2 Take a look at important functions
2.1 Deploying smart contract using Remix Online IDE
2.2 Deploying smart contract using truffle
MyERC721Card.sol
은 OpenZeppelin의 ERC721 구현체를 기반으로 합니다. 이 튜토리얼에서 코드의 주요 부분은 에서 가져왔습니다.