Created
January 1, 2018 07:31
-
-
Save kasajei/7110c0baf9fb87a2e674830a80a1d07e to your computer and use it in GitHub Desktop.
ERC20 TokenをRopstenにデプロイ
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.18; | |
import "zeppelin-solidity/contracts/token/StandardToken.sol"; | |
contract KasajeiToken is StandardToken { | |
string public name = "KasajeiToken"; | |
string public symbol = "KSJT"; | |
uint public decimals = 18; | |
function KasajeiToken(uint initialSupply) public { | |
totalSupply = initialSupply; | |
balances[msg.sender] = initialSupply; | |
} | |
} |
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
const KasajeiToken = artifacts.require('./KasajeiToken.sol') | |
module.exports = (deployer) => { | |
let initialSupply = 50000e18 | |
deployer.deploy(KasajeiToken, initialSupply) | |
} |
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
var HDWalletProvider = require("truffle-hdwallet-provider"); | |
var mnemonic = ""; | |
var infura_apikey = ""; | |
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", | |
port: 9545, | |
network_id: "*" // Match any network id | |
}, | |
ropsten: { | |
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey), | |
network_id: 3, | |
gas: 2000000 | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment