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
pragma solidity >=0.4.24 <0.5.6; | |
//Hello Klaytn | |
contract Count { | |
//Storage variable count | |
uint256 public count = 0; | |
function getBlockNumber() public view returns(uint256){ | |
return block.number; | |
} // get current node's block number |
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
pragma solidity >=0.4.24 <0.5.6; | |
//NFT 발행, Solidity 기초 | |
contract Practice { //Practice 라는 이름의 contract | |
//Storage variable | |
uint256 private totalSupply = 10; | |
string public name = "KlayLion"; | |
address public owner; //contract deployer | |
mapping (uint256 => string) public tokenURIs; //map |
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
pragma solidity >=0.4.24 <0.5.6; | |
contract NFTSimple { //Simple NFG | |
string public name = "KlayLion"; | |
string public symbol = "KL"; // 단위 | |
//mint 발행 (tokenId, uri, owner) | |
//transform 전송 (from, to , uri) |
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
pragma solidity >=0.4.24 <0.5.6; | |
//0.5.6 | |
contract NFTSimple { //Simple NFG | |
string public name = "KlayLion"; | |
string public symbol = "KL"; // 단위 | |
//mint 발행 (tokenId, uri, owner) | |
//transform 전송 (from, to , uri) |