Skip to content

Instantly share code, notes, and snippets.

@goodjoon
goodjoon / HyundaiToken_v2.html
Created April 18, 2017 15:20
[HYUNDAI] HyundaiToken_v2.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Coin</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>New Coin (Own Token) Example</h2>
@goodjoon
goodjoon / IoTInsurance.html
Created April 18, 2017 15:19
[HYUNDAI] IoTInsurance.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Iot Insurance</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>IoT Insurance</h2>
@goodjoon
goodjoon / IotInsurance.sol
Created April 16, 2017 16:30
[HYUNDAI] IOT INSURANCE
pragma solidity ^0.4.2;
contract tokenReceipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData);
}
contract HyundaiToken {
function transferFrom(address _from, address _to, uint256 _value) returns (bool success_);
}
@goodjoon
goodjoon / HyundaiToken_v2.sol
Created April 16, 2017 16:30
[HYUNDAI] HYUNDAI TOKEN V2
pragma solidity ^0.4.2;
contract tokenReceipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData);
}
contract HyundaiToken {
// Token 의 Public 변수 들
string public standard = "Hyundai Token";
string public name;
@goodjoon
goodjoon / HyundaiToken.html
Created April 9, 2017 02:44
[HYUNDAI] Hyundai Token UI
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Coin</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>New Coin (Own Token) Example</h2>
@goodjoon
goodjoon / HyundaiToken.sol
Created April 8, 2017 13:24
[HYUNDAI] Hyundai Token
pragma solidity ^0.4.2;
contract tokenReceipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData);
}
contract HyundaiToken {
// Token 의 Public 변수 들
string public standard = "Hyundai Token";
string public name;
@goodjoon
goodjoon / CrowdFunding_New.sol
Created April 4, 2017 12:27
[HYUNDAI] Simple CrowdFund Smart Contract
pragma solidity ^0.4.2;
contract CrowdFunding {
// Fund Investors
struct Funder {
address addr;
uint amount;
}
// Fund Campaign
@goodjoon
goodjoon / crowdfund.html
Last active April 4, 2017 12:23
[HYUNDAI] Simple Crowd Fund Example
<!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>
@goodjoon
goodjoon / index.html
Last active March 29, 2017 12:30
[HYUNDAI] web3-test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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>
<title>Simple Wallet</title>
</head>
<body>
<h2>web3.js Transaction 및 Filter</h2>
enode://7b634ce3311c3fa94c0e131b3c4fea1932a471563a4ed3477c4705295c915fd9e3f0f60b06e337617c6732774e9253b39cca21ab89befc4a5eb3c01ea8e3cd8c@192.168.0.168:30305