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 Auction { | |
address currentLeader; | |
uint highestBid; | |
mapping (address => uint) usersBalance; | |
function bid () payable { | |
require (msg.value > highestBid); | |
// 現在の最高価格入札者の返金額を更新する | |
usersBalance[currentLeader] += highestBid; | |
currentLeader = 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 Auction { | |
address currentLeader; | |
uint highestBid; | |
function bid () payable { | |
require (msg.value > highestBid); | |
require (currentLeader.send(highestBid)); | |
currentLeader = 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
var DappsToken = artifacts.require("./DappsToken.sol"); | |
module.exports = function(deployer) { | |
var initialSupply = 1000e18; | |
deployer.deploy(DappsToken, initialSupply, { | |
gas: 2000000 | |
}); | |
}; |
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
var HDWalletProvider = require("truffle-hdwallet-provider"); | |
var mnemonic = $MNEMONIC; | |
var accessToken = $INFURA_ACCESS_TOKEN; | |
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", | |
port: 8545, | |
network_id: "10" |
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
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", | |
port: 8545, | |
network_id: "10" | |
}, | |
} | |
}; |
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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.0" | |
defaultConfig { | |
applicationId "net.akifumifukaya.kotlintrial" | |
minSdkVersion 19 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@drawable/ic_check_box_outline_blank_black_24dp" android:state_selected="false" /> | |
<item android:drawable="@drawable/ic_check_box_black_24dp" android:state_selected="true" /> | |
</selector> |
NewerOlder