Skip to content

Instantly share code, notes, and snippets.

@johngriffin
Created July 12, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johngriffin/13d95497b64aaa410b5831d4b41f6a0b to your computer and use it in GitHub Desktop.
Save johngriffin/13d95497b64aaa410b5831d4b41f6a0b to your computer and use it in GitHub Desktop.
await deployer.deploy(FundFactory);
let factory = await FundFactory.deployed();
let registry = FundRegistry.at(await factory.fundRegistry());
await factory.createNewFund(owner, "S&P500 Index", 100, 20, 50, "S&P500 index, capital + dividends", {from: owner});
await factory.createNewFund(owner, "Gold Investment", 20, 7, 80, "London gold fix in USD", {from: owner});
await factory.createNewFund(owner, "US State Bonds", 5, 3, 100, "US 10-year Treasury Bonds", {from: owner});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment