Skip to content

Instantly share code, notes, and snippets.

@tienshaoku
tienshaoku / SellToken.vy.py
Last active March 24, 2020 14:56
The filename ends with .py for Python syntax highlighting
import ERC20 as ERC20
owner: public(address)
tokenAddress: public(address)
erc20: ERC20
@public
def __init__(_tokenAddress: address):
self.owner = msg.sender
self.tokenAddress = _tokenAddress
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: "*"
},
var ERC20 = artifacts.require("ERC20");
module.exports = function(deployer) {
deployer.deploy(ERC20, "Winnie the coin", "WTC", 2, 1000000);
};