Skip to content

Instantly share code, notes, and snippets.

@Leenamkyu
Leenamkyu / DiceGame.sol
Created December 28, 2018 05:25
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.4.19+commit.c4cbbb05.js&optimize=true&gist=
pragma solidity ^0.4.19;
contract DiceGame {
uint userDice;//user input dice number
uint contractBalance = 10000000;// ether which contract has now
uint randNounce = 0;
uint randomDice;
//input dice number by user
function InputDiceByuser(uint _input) external {
@Leenamkyu
Leenamkyu / Ownable.sol
Created January 14, 2019 15:52
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
contract Ownable {
address owner;
constructor() public payable {
owner = msg.sender;
}
/* 접근 제어자 선언 */
modifier onlyOwner {
@Leenamkyu
Leenamkyu / A_token.sol
Created February 14, 2019 07:49
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity ^0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created February 14, 2019 13:06
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created February 20, 2019 12:13
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created February 24, 2019 05:28
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created February 24, 2019 05:58
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.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created March 5, 2019 08:33
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created March 5, 2019 08:33
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;
@Leenamkyu
Leenamkyu / A_token.sol
Created March 27, 2019 04:20
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.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./Mortal.sol";
import "./ERC20.sol";
contract A_token is Mortal,ERC20{
string public constant name = "A_token";
string public constant symbol = "A";
uint8 public constant decimals = 18;