This file contains hidden or 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
| contract Ballot { | |
| // 하나의 투표자를 나타내기 위한 Complex Type | |
| struct Voter { | |
| uint weight; | |
| bool voted; | |
| address delegate; | |
| uint vote; | |
| } | |
| // 하나의 무기명 투표 후보 (Proposal) |
This file contains hidden or 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
| contract SimpleAuction { | |
| address public beneficiary; | |
| uint public auctionStart; | |
| uint public biddingTime; | |
| address public highestBidder; | |
| uint public highestBid; | |
| bool ended; | |
This file contains hidden or 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
| contract BlindAuction { | |
| struct Bid { | |
| bytes32 blindedBid; | |
| uint deposit; | |
| } | |
| address public beneficiary; | |
| uint public auctionStart; | |
| uint public biddingEnd; | |
| uint public revealEnd; |
This file contains hidden or 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
| contract Purchase { | |
| uint public value; | |
| address public seller; | |
| address public buyer; | |
| enum State { Created, Locked, Inactive } | |
| State public state; | |
| function Purchase() { | |
| seller = msg.sender; |
This file contains hidden or 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
| contract owned { | |
| address owner; | |
| function owned() { | |
| owner = msg.sender; | |
| } | |
| modifier onlyowner { | |
| if (msg.sender != owner) { | |
| throw; | |
| } |
This file contains hidden or 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
| { | |
| "alloc": { | |
| "d1c8b6e81af8ef16a7dbcd410234f12e10f1579d": { | |
| "balance": "5000000000000000000000000000" | |
| }, | |
| "2c6191a4792a3a33cbd2f8b7b7e583a61fb33b23": { | |
| "balance": "5000000000000000000000000000" | |
| } | |
| }, |
This file contains hidden or 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
| { | |
| "alloc": { | |
| "ea4f6280a67889f883147a5dfaaebc658795ae88": { | |
| "balance": "5000000000000000000000000000" | |
| } | |
| }, | |
| "nonce": "0x0000000000000000", | |
| "difficulty": "0x010000", | |
| "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", |
This file contains hidden or 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
| [ | |
| "enode://f004d682ccc3aab5a4c3ce7401183a11b402e79a0783e2bfbfcc37d67596d930ae92b6bb06ffedb1ce7afbfb7fbc44af51244d5e5e93dd01646ec15855867537@172.18.94.55:3031" | |
| ] |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Transfer Sample</title> | |
| <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> | |
| <script type="text/javascript" src="bower_components/web3/dist/web3.js"></script> | |
| </head> | |
| <body> | |
| <div> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Transfer Sample</title> | |
| <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> | |
| <script type="text/javascript" src="bower_components/web3/dist/web3.js"></script> | |
| </head> | |
| <body> | |
| <h2>Contract</h2> |
OlderNewer