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
import ERC20 as ERC20 | |
owner: public(address) | |
tokenAddress: public(address) | |
erc20: ERC20 | |
@public | |
def __init__(_tokenAddress: address): | |
self.owner = msg.sender | |
self.tokenAddress = _tokenAddress |
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 privateKeys = ["First Private Key", "Second Private Key"]; | |
module.exports = { | |
networks: { | |
development: { | |
host: "127.0.0.1", | |
port: 7545, | |
network_id: "*" | |
}, |
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 ERC20 = artifacts.require("ERC20"); | |
module.exports = function(deployer) { | |
deployer.deploy(ERC20, "Winnie the coin", "WTC", 2, 1000000); | |
}; |
NewerOlder