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
deployer.deploy(A); | |
deployer.deploy(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
// ROPSTEN_MNEMONICとINFURA_ACCESS_TOKEN環境変数は事前時設定されている前提 | |
// HDはどの言葉の略語だろう。。。 | |
var HDWalletProvider = require("truffle-hdwallet-provider"); | |
var mnemonic = process.env.ROPSTEN_MNEMONIC; | |
var accessToken = process.env.INFURA_ACCESS_TOKEN; | |
module.exports = { | |
networks: { | |
ropsten: { | |
provider: function() { |
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
mkdir my_token | |
cd my_token | |
yarn global add truffle | |
truffle init |
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
イーサリアム上で運営されるため、ゲーム運営会社が突然閉鎖してもトークンとよばれる一種の仮想通貨である仮想子猫は生き続けることだ。 |
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.0; | |
contract Cat { | |
function color() public constant returns (string); | |
} | |
// エラー内容 | |
This contract does not implement all functions and thus cannot be created. |
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
contract Ownable | |
contract ERC721 | |
contract GeneScienceInterface | |
contract KittyAccessControl | |
contract KittyBase is KittyAccessControl | |
contract ERC721Metadata | |
contract KittyOwnership is KittyBase, ERC721 | |
contract KittyBreeding is KittyOwnership | |
contract ClockAuctionBase | |
contract Pausable is Ownable |
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.11; | |
/* | |
* リポジトリを見つからなかったが、etherscanから直接にコントラクトソースを見える | |
* https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code | |
* | |
*/ | |
/** | |
* @title Ownable |
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.0; | |
contract StringSaver { | |
string storedData; | |
function set(string newString) public { | |
storedData = newString; | |
} | |
function get() public constant returns (string 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.0; | |
contract SingleNumRegister { | |
uint storedData; | |
address owner; | |
function SingleNumRegister() { | |
// デプロイするアカウントのアドレスをオーナーとして保持する | |
owner = msg.sender; | |
} |
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
contract SingleNumRegister { | |
uint storedData; | |
function set(uint x) { | |
storedData = x; | |
} | |
function get() constant returns (uint retVal) { | |
return storedData; | |
} |