Skip to content

Instantly share code, notes, and snippets.

@jennharw
jennharw / contracts...KIP17Token.sol
Created January 16, 2022 10:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
// 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.
@jennharw
jennharw / contracts...Count.sol
Created January 16, 2022 10:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
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
@jennharw
jennharw / contracts...Practice.sol
Created January 16, 2022 10:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
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
@jennharw
jennharw / contracts...NFTSimple.sol
Created January 16, 2022 10:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
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)
@jennharw
jennharw / contracts...NFTNotSimple.sol
Created January 16, 2022 10:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
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)