Last active
March 7, 2018 21:13
-
-
Save pandeykumar/7060fed50c5dd8c67a32a3718364e86f to your computer and use it in GitHub Desktop.
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.19; | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public constant returns (uint) { | |
return storedData; | |
} | |
} | |
###Acme Token | |
1st account in Ganache used to deploy the contract. | |
var acmeToken = AcmeToken.at(AcmeToken.address) | |
acmeToken.balanceOf('0x627306090abaB3A6e1400e9345bC60c78a8BEf57') | |
###Acme Token | |
1st account in Ganache used to deploy the contract. | |
var acmeToken = AcmeToken.at(AcmeToken.address) | |
acmeToken.balanceOf('0x627306090abaB3A6e1400e9345bC60c78a8BEf57') | |
### Token Vesting | |
var tokenVesting = TokenVesting.at(TokenVesting.address) | |
var simpleToken = SimpleToken.at(SimpleToken.address) | |
simpleToken.balanceOf(TokenVesting.address) | |
web3.fromWei(_.toString()) | |
simpleToken.balanceOf('0x627306090abaB3A6e1400e9345bC60c78a8BEf57') | |
#beneficiary | |
simpleToken.balanceOf('0xC5fdf4076b8F3A5357c5E395ab970B5B54098Fef') | |
tokenVesting.release(simpleToken.address) | |
tokenVesting.vestedAmount(simpleToken.address) | |
tokenVesting.releasableAmount(simpleToken.address) | |
#web app | |
npm start | |
#have metamask point to Ganache for the app to work | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment