This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Klaytn IDE uses solidity 0.4.24 0.5.6 versions. | |
pragma solidity >=0.4.24 <=0.5.6; | |
contract NFTSimple { | |
string public name = "KlayLion"; | |
string public symbol = "KL"; // 단위 | |
mapping(uint256 => address) public tokenOwner; // token owner mapping | |
mapping(uint256 => string) public tokenURIs; // key - value type declare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: contracts/introspection/IKIP13.sol | |
pragma solidity ^0.5.0; | |
/** | |
* @dev Interface of the KIP-13 standard, as defined in the | |
* [KIP-13](http://kips.klaytn.com/KIPs/kip-13-interface_query_standard). | |
* | |
* Implementers can declare support of contract interfaces, which can then be | |
* queried by others. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Klaytn IDE uses solidity 0.4.24 0.5.6 versions. | |
pragma solidity >=0.4.24 <=0.5.6; | |
contract Practice2 { | |
string public name = "KlayLion"; | |
string public symbol = "KL"; // 단위 | |
mapping(uint256 => address) public tokenOwner; // token owner mapping | |
mapping(uint256 => string) public tokenURIs; // key - value type declare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Klaytn IDE uses solidity 0.4.24 0.5.6 versions. | |
pragma solidity >=0.4.24 <=0.5.6; | |
contract Practice { | |
uint256 private totalSupply = 10; | |
string public name = "KlayLion"; | |
address public owner; // contract deployer | |
mapping(uint256 => string) public tokenURIs; // key - value type declare | |
// mint(tokenId, uri, owner) : 발행 |