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
// Copyright (c) 2009-2010 Satoshi Nakamoto | |
// Copyright (c) 2009-2018 The Bitcoin Core developers | |
// Distributed under the MIT software license, see the accompanying | |
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#ifndef BITCOIN_PRIMITIVES_BLOCK_H | |
#define BITCOIN_PRIMITIVES_BLOCK_H | |
#include <primitives/transaction.h> | |
#include <serialize.h> |
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; | |
import "./KimChongMu.sol"; | |
contract ClubManager is KimChongMu{ // 동아리 관리에 필요한 Contract | |
event ClubCreated(string _clubId); // 동아리를 만들면 부르는 event | |
function clubCreate(string _clubId) | |
public | |
returns(bool) | |
{ // club을 생성하는 함수 |
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
0x347dcA05855DF1ED50838762d459978958F57CC0 |
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
//////cut | |
// Ethash proof-of-work protocol constants. | |
var ( | |
FrontierBlockReward *big.Int = big.NewInt(5e+18) // Block reward in wei for successfully mining a block | |
ByzantiumBlockReward *big.Int = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium | |
maxUncles = 2 // Maximum number of uncles allowed in a single block | |
allowedFutureBlockTime = 15 * time.Second // Max time from current time allowed for blocks, before they're considered future blocks | |
) | |
// Various error messages to mark blocks invalid. These should be private to |
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.19; | |
contract A { | |
uint b; | |
function saveB(uint _b) public { | |
b = _b; | |
} | |
} |
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
func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool) Message { | |
return Message{ | |
from: from, | |
to: to, | |
nonce: nonce, | |
amount: amount, | |
gasLimit: gasLimit, | |
gasPrice: gasPrice, | |
data: data, |
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; | |
contract KimChongMu{ | |
struct Club{ | |
bytes32 id; | |
uint32 numberOfMembers; | |
mapping(address => Member) members; | |
string rule; | |
uint256 balance; | |
} |