truffle struggle


finally got it to run, in a simplest way

installed VS Code extension with Ctrl+P => ext install [Enter] => search for Solidity extensions

truffle works good, but refused to run 0.4.22, had to set 0.4.19 - check for update?
installed ganache, works good

Compiling contracts *.sol files:
truffle.cmd compile –all (–all param means force recompiling despite the timestamp)

Deploying contract to the test network (Ganache):
truffle.cmd migrate –reset

also need Migrations.sol to be compiled from contracts folder
seemingly, truffle runs its function after successful deployment

Get into console: truffle console

truffle.console check address balance (get mapping)
Token.at(«0xf12b5dd4ead5f743c6baa640b0216200e89b60da»).balanceOf.call(«0x627306090abab3a6e1400e9345bc60c78a8bef57»)

same way:
Token.at(«0xf12b5dd4ead5f743c6baa640b0216200e89b60da»).owner.call()
Token.at(«0xf12b5dd4ead5f743c6baa640b0216200e89b60da»).symbol.call()
etc

Todo:
1. uncomment tokenRecipient and test the allowance
2. review the token against the open-zeppelin examples
3. review and test the ICO contract
4. deploy both to ropsten network