Skip to content

Instantly share code, notes, and snippets.

@yoon-asha
yoon-asha / contracts...KIP17.sol
Created August 13, 2022 23:56
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.
@yoon-asha
yoon-asha / contracts...count.sol
Created August 13, 2022 23:55
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=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.24 <=0.5.6;
contract Count {
uint256 public count = 0;
function getBlockNumber() public view returns (uint256) {
return block.number;
}
@yoon-asha
yoon-asha / diploma_practice.sol
Created April 6, 2022 01:59
졸업증명 DID
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.13;
abstract contract OwnerHelper {
address private owner;
event OwnerTransferPropose(address indexed _from, address indexed _to);
modifier onlyOwner {
require(msg.sender == owner);