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
... | |
Prev. hash: | |
Data: Genesis Block | |
Hash: 00000093253acb814afb942e652a84a8f245069a67b5eaa709df8ac612075038 | |
PoW: true | |
Prev. hash: 00000093253acb814afb942e652a84a8f245069a67b5eaa709df8ac612075038 | |
Data: Send 1 BTC to Ivan | |
Hash: 0000003eeb3743ee42020e4a15262fd110a72823d804ce8e49643b5fd9d1062b |
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
Prev. hash: | |
Data: Genesis Block | |
Hash: aff955a50dc6cd2abfe81b8849eab15f99ed1dc333d38487024223b5fe0f1168 | |
Prev. hash: aff955a50dc6cd2abfe81b8849eab15f99ed1dc333d38487024223b5fe0f1168 | |
Data: Send 1 BTC to Ivan | |
Hash: d75ce22a840abb9b4e8fc3b60767c4ba3f46a0432d3ea15b71aef9fde6a314e1 | |
Prev. hash: d75ce22a840abb9b4e8fc3b60767c4ba3f46a0432d3ea15b71aef9fde6a314e1 | |
Data: Send 2 more BTC to Ivan |
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.22 <0.6.0; | |
interface token { | |
function transfer(address receiver, uint amount) external; | |
} | |
contract Crowdsale { | |
address public beneficiary; | |
uint public fundingGoal; | |
uint public amountRaised; |
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.22 <0.6.0; | |
interface token { | |
function transfer(address receiver, uint amount) external; | |
} | |
contract Crowdsale { | |
address public beneficiary; | |
uint public fundingGoal; | |
uint public amountRaised; |
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.16; | |
contract owned { | |
address public owner; | |
function owned() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { | |
require(msg.sender == owner); | |
_; |
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.16; | |
contract owned { | |
address public owner; | |
function owned() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { |
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.16; | |
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } | |
contract TokenERC20 { // 토큰의 이름과 심볼을 변경할 수 있습니다. | |
string public name; | |
string public symbol; | |
uint8 public decimals = 18; // 18자릿수가 권장되는 기본값이므로 변경하지 마십시오. | |
uint256 public totalSupply; |
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.20; | |
contract MyToken { // 모든 잔액에 대한 배열을 만듭니다. | |
mapping (address => uint256) public balanceOf; | |
// 컨트렉터에게 초기공급 토큰과의 계약을 초기화합니다. | |
function MyToken(uint256 initialSupply) public { | |
balanceOf[msg.sender] = initialSupply; // 컨트렉터에게 모든 초기토큰을 제공하십시오. | |
} | |
/* 코인 보내기 */ | |
function transfer(address _to, uint256 _value) public returns (bool success) { |