Problem Statement- Government has 3 layers: Central, State and Local bodies of governance and every citizen interacts with either of the layer sharing same or different documents to prove who he say is and what he is requesting he has legal authority to request that document. Citizens avail various documents from 1 layer/department which may not be considered by other departments, conceptualize and build a document workflow system which enables the document sharing and auto validates and ensures traceability of the document reducing the verification cycle and doing auto validation without human involvement.
npm install
Make .env file
truffle compile
truffle migrate --network ropsten
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Migrations dry-run (simulation)
===============================
> Network name: 'ropsten-fork'
> Network id: 3
> Block gas limit: 0x7a121d
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
> block number: 7335138
> block timestamp: 1581804933
> account: 0x1c47ab2738e07114450F8a1B58a5DaFed1c01026
> balance: 8.403490559995
> gas used: 173483
> gas price: 2 gwei
> value sent: 0 ETH
> total cost: 0.000346966 ETH
-------------------------------------
> Total cost: 0.000346966 ETH
2_deploy_migration.js
=====================
Deploying 'TransparentGoverment'
--------------------------------
> block number: 7335140
> block timestamp: 1581804957
> account: 0x1c47ab2738e07114450F8a1B58a5DaFed1c01026
> balance: 8.401182229995
> gas used: 1127164
> gas price: 2 gwei
> value sent: 0 ETH
> total cost: 0.002254328 ETH
-------------------------------------
> Total cost: 0.002254328 ETH
Summary
=======
> Total deployments: 2
> Final cost: 0.002601294 ETH
Starting migrations...
======================
> Network name: 'ropsten'
> Network id: 3
> Block gas limit: 0x7a121d
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
> transaction hash: 0x09af58b3cbdff6e758c3d97f7dc1cfab82dc4e42c931e4e96d436f8f7d460530
> Blocks: 1 Seconds: 26
> contract address: 0xE1B416f3b2c3419211214012ca6bB32A1B699A6c
> block number: 7335143
> block timestamp: 1581804976
> account: 0x1c47ab2738e07114450F8a1B58a5DaFed1c01026
> balance: 8.400554025995
> gas used: 164175
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.0032835 ETH
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.0032835 ETH
2_deploy_migration.js
=====================
Deploying 'TransparentGoverment'
--------------------------------
> transaction hash: 0x150f9c942f96b6a364c5b96ec7b2f5ce08f49ef0e0cf3e647ae92ccb7c72d278
> Blocks: 2 Seconds: 54
> contract address: 0xD6B746F2C2aF6Dd0F83Cd6199E673B9ab9992a4F
> block number: 7335149
> block timestamp: 1581805069
> account: 0x1c47ab2738e07114450F8a1B58a5DaFed1c01026
> balance: 8.380731445995
> gas used: 948788
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01897576 ETH
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.01897576 ETH
Summary
=======
> Total deployments: 2
> Final cost: 0.02225926 ETH
https://www.myetherwallet.com/interface/interact-with-contract
- Connect with metamask.
- Provide Contract Address.
- Provide ABI Code.