Skip to content

Instantly share code, notes, and snippets.

View DownyBehind's full-sized avatar
🎯
Focusing

Leo Kim DownyBehind

🎯
Focusing
View GitHub Profile

공통부문 Smart Contract

Link

팀부문 Smart Contract

Link

Github 레포지토리

@DownyBehind
DownyBehind / contracts...Practice.sol
Created January 18, 2022 13:41
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.6+commit.b259423e.js&optimize=false&runs=200&gist=
//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) : 발행
@DownyBehind
DownyBehind / contracts...Practice2.sol
Created January 18, 2022 13:41
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.6+commit.b259423e.js&optimize=false&runs=200&gist=
//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
@DownyBehind
DownyBehind / contracts...KIP17Token.sol
Created January 18, 2022 13:41
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.6+commit.b259423e.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.
@DownyBehind
DownyBehind / contracts...NFTSimple.sol
Created January 18, 2022 13:40
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.6+commit.b259423e.js&optimize=false&runs=200&gist=
//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