0.0.2 • Published 2 years ago

vrt-core v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vehicle Registration Token (VRT) - Core

Core infrastructure for Vehicle Registration Token Project, a protocol for trace vehicle's property and their history in Ethereum blockchain.

Prerequisites:

Local deployment

Install Truffle

npm install -g truffle

Install graph-cli

npm install -g @graphprotocol/graph-cli

Clone repository and install dependencies

git clone https://github.com/1M4nt0/tesi-uniud-2022-core

cd tesi-uniud-2022-core

npm install

Start docker containers

cd tesi-uniud-2022-core/docker

docker compose up

Generate contracts abis

truffle compile

npm run build-contract-abi

Migrate contracts to Ganache

truffle migrate

Deploy The Graph subgraph

npm run codegen

npm run create-local-graph

npm run deploy-local-graph

Interface

Check Vehicle Registration Token (VRT) - Interface