-
Install:
Run with administrator privileges:
npm install --global trufflenpm install --global ganache-cli -
Run inside the folder Web:
npm install -
Run inside the folder Smart Contract:
npm install
-
Rename .\Web\app\server\config\config.js.sample to .\Web\app\server\config\config.js
-
Write your own configuration
-
Start Ganache
1_start_ganache.bat -
Upload lastwill smart contract (if not uploaded or modified)
2_upload_contract.bat -
Start web
3-start_node.batOpen a browser (not EDGE) and go to http://localhost:3001
-
Install truffle-flattener
npm install truffle-flattener -g -
Run in "Smart Contract" folder:
truffle-flattener "contracts/BackToLife.sol" > Output.sol -
The generated file contains the code to paste in Etherscan
-
(Optional) Get the input parameters ABI:
-
Go to:
-
Code (example):
var abi = require("ethereumjs-abi") var parameterTypes = ["address"]; var parameterValues = ["0x337c204fa619a86b3608ae05be85d20bbaa2fc6f"]; console.log(abi.rawEncode(parameterTypes, parameterValues).toString('hex'));
-
-
Check the solidity compiler version with:
truffle version