Skip to content

Monitoring tools for road incident management and reducing traffic congestion. Crowdsourcing information sharing for better and safer roads.

License

Notifications You must be signed in to change notification settings

aspiringsecurity/EthTransport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transport DAO

Monitoring tools for road incident management and reducing traffic congestion. Crowdsourcing information sharing for better and safer roads.

Goal: Effective design, engineering and delivery of Chainlink, Infura & Metamask, Ethereum blockchain, IPFS, Near and Filecoin storage aided solution for vehicles and citizens to make roads safer and better for everyone using predictive analytics, Chainlink automation, Ethereum, Filecoin, IPFS and Web3 eco-system tools.

Solution: Technical solution for citizens, police officers and drivers to report and manage incidents, detect and prevent accidents on web and mobile.

Information Website for Civic Bodies: https://sites.google.com/view/aspiringroadsafety/home

Demo, Screencast, Slides: https://drive.google.com/drive/u/4/folders/1zpA8nhLPPaFk3CMUqGdHENzTFpAkLTPf

Vercel Website: https://aspiring-road-safety-infura-deploy.vercel.app/

Filecoin Microgrant Recepient 2022-23 (Eth Transport)

Details: We have developed a road incident management system using Javascript, HTML5, SAP's UI5 on the front end using open source video streaming system, Infura & Covalent API end points, Metamask SDK and Snaps, Linea, XMTP, IPFS and Filecoin, Chainlink, Tron's BTTC blockchain. We are starting an express server and storing data on the Filecoin Network for enabling sharing of government assets like toll prepaid card, car details information for interstate travel, driving license management and quarterly pollution check and control. Our solution is powered by Ethercalc (SocialCalc), Zora, Polygon NFT.Storage, Tableland, XMTP, Chainlink, Fluence, Litprotocol for security and live peer for online video streaming at the road incident spot for better coordination and immediate action.

How it works:

  1. Camera Management: Add/edit/delete cameras for snapshots of road incident.

  2. Object Detection using open source computer vision.

  3. Video analytics configuration using IPFS.

  4. Live streaming with Object Detection Video Analytics saving IPFS for screenshots.

  5. Alarm storage using Ethereum. Save/delete alarm metadata and image to/from IPFS. Store the hash returned from IPFS to Ethereum test network. Provide links to alarms and blockchain transaction details.

  6. Alarm Viewer: Add alarms with a single touch. Open the Alarm Settings menu from the home page. Add an alarm, set the wallpaper or choose an alarm tone. You can also delete an existing alarm.

Learning and Contributing in the Blockchain Eco-systems:

Chainlink and Web3 eco-system

Chainlink: Chainlink: We are extending and adapting the Chainlink project "Link My Ride" to develop a decentralized first aid and ambulance platform by using Chainlink External Adapter to connect a Tesla Vehicle API to a Chainlink oracle for a peer-to-peer vehicle rental app. We wish to use it for Maruti Vehicle API and Hyundai Vehicle API too. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/decentralized-ambulance

We are utilizing Chainlink VRF as follows:

E-Challan (Transport Receipt) Bill Generation: We are utilizing Chainlink Mix to work with Chainlink smart contracts. The bill script will deploy a smart contract to goerli and get a Random number via Chainlink VRF, which can used to identify a unique transaction/order number for the receipt or bill. Link: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/IPFS-Chainlink-Monitor-main

Parametric Insurance Solution in public transportation especially for project finance. We are utilizing an existing example at chainlink github repo to develop an insurance solution for public transportation. Link: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement

Fleet and Cab Drivers and Vehicle Service Organizations Payouts: Chainlink Parametric Insurance dapp at https://github.com/aspiringsecurity/EthTransport/tree/main/Fleet-cab-drivers-service-payout

NFT and Certificate for Good Services in Repair and Vehicle services: https://github.com/aspiringsecurity/EthTransport/tree/main/dapp-tools/NFT-giveaway-certificate-service-rating

Dynamic NFT for for Good Services in Repair and Vehicle servicing: https://github.com/aspiringsecurity/EthTransport/tree/main/dapp-tools/NFT-giveaway-certificate-service-rating/Transport-SxT-dNFT

Chainlink Functions: We are learning to utilize Chainlink Functions in Transport Monitor at https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement

Tools and Technologies by Consensys, Partners

  • Infura: Video analytics configuration using Infura RPC end-points, IPFS. Live streaming with Object Detection, Video Analytics using Infura RPC end-points. Alarm storage using Ethereum and Filecoin. Save/delete alarm metadata and image to/from IPFS. Store the hash returned from IPFS to the Ethereum test network. Provide links to alarms and blockchain transaction details.

Screencasts: Please visit the 3 videos at the link: https://drive.google.com/drive/u/4/folders/1zpA8nhLPPaFk3CMUqGdHENzTFpAkLTPf

a. Screen Capture with Alarm Storage using Infura RPC endpoint and Gateway: demo_screen capture.mov file

b. 2 minute demo of Road Incident and Investigative Case Management Solution: ICM Overview.mov file

c. Detailed and complete solution with Infura implementation: ICM_demo.mp4 file

Please also visit XMTP integrations with the platform:

a. https://github.com/aspiringsecurity/EthTransport/tree/main/xmtp-loc-chat

b. https://github.com/aspiringsecurity/EthTransport/tree/main/xmtp-messaging

Filecoin and IPFS ecosystem and tools

1.a. Filecoin and IPFS: We are utilizing Filecoin with smart contracts compiled to FVM for:

  1. Creating a Transport NFT on the FVM for NFC tags of vehicle service and repair providers & vehicles to improve road incident management, decentralized NFT-based voting system for contract work by service providers, Votes are uploaded to IPFS with the most recent vote linking to one before. Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/transport-fvm-nft-nfc-tags and https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/nft-voting-dao/data-dao

Demo Video at https://drive.google.com/drive/u/0/folders/1-A3OA0GT21SBx8ipKeQkJHsj96Bb48AK

Decentralized NFT-based voting system for contract work for service & maintenance providers and companies and Ministry of Transportation. DAOs can issue NFTs to wallets based on service and maintenance performance and work completed, and the holders of these NFTs can create proposals and vote on other proposals whilst they have the NFTs of that contract work. Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/nft-voting-dao/metis-nft-voting-contract-dao

  1. To develop and use composable blocks and ensure effective design, engineering and delivery of a decentralized solution for road safety, monitoring and incident management using Ethereum & Filecoin eco-system tools. A FVM compatible DAO Quotation Portal for Maintenance and Transport Infrastructure Management: please visit https://github.com/aspiringsecurity/EthTransport/tree/main/Asset-Management-Spare-Parts/Maintenance-Contract-Quote-FVM-Transport-DAO

Automated Workflow for decentralized voting for service providers and DAOs:

  • Vehicle DAOs create a RFP for providing service or maintenance on the dapp.
  • Vehicle drivers can join a RFP by minting an NFT of that RFP. This NFT is created on FVM.
  • Vehicle drivers that have a certain RFP's NFT are eligible to create proposals and vote on them.
  • Voting is gasless and the vote is stored on IPFS and Filecoin with the most recent vote linking to one before.

Votes are uploaded to IPFS with the most recent vote linking to one before. This is done by storing the previous vote's CID in the file of the newest one. Therefore a chain of verifiable data is created. Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/nft-voting-dao/metiis-nft-voting-contract-dao

Bootstrapping Data DAOs on FVM: https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/nft-voting-dao/data-dao and https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/fevm-bootstrap

TRM custom token at FVM and Early experiments on Hyperspace testnet: please visit https://hyperspace.filfox.info/en/tx/0xd0a88d7d054e8babe6909523e0cc92147d35e0421b16af169eb78b1af6d6c25b and https://hyperspace.filfox.info/en/address/0x19df3bfd0f2020275436653931326ca417e02c73

We are using IPFS and Filecoin for storing a variety of offchain data like incident snapshots, alarm metadata and object types at the time of incident. Please find the video at https://drive.google.com/drive/u/0/folders/1-A3OA0GT21SBx8ipKeQkJHsj96Bb48AK (demo_screen capture.mov file under mobile screen capture and demos). We are storing Alarm metadata using IPFS. Also, Saving/deleting alarm metadata and image to/from Filecoin, IPFS. We are also storing the hash returned from IPFS to Ethereum test network. Further we are using IPFS for: Video analytics configuration using web3ui.Storage; Camera Management: Add/edit/delete cameras with integration with Livepeer, NFT.Storage; Live streaming with Object Detection Video Analytics using Livepeer for streaming, and web3ui.Storage for snapshots. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/w3ui-incident-storage

We are also extending the w3notes example app to develop an incident notes tool for the road administrators. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/w3ui-incident-notes

NFT.Storage for Filecoin: We are also learning to use NFT.Storage: Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incidentandalarmstorage

Filecoin Data tools: We are developing FVM Calc, an open-source analytics tool and an OSS spreadsheet to enable data tabulation, visualization, organization, collaboration for incident image and video asset files on Filecoin network.

Filecoin saturn dapp for discovery and retrieval of NFTs uploaded to IPFS via NFT.Storage: We are developing a socially scalable and open-source metadata retrieval, indexing, and management tooling for decentralized bulk query and retrieval of incident data and user training. Bandwidth is a major issue in South Asian road traffic and Filecoin Data tools fit right at the spot for quick data retrieval where learning via video streaming is not possible due to high latency or unavailability of a network for streaming.

IPFS Helia implementation: We are developing a dapp using Helia (JS implementation of IPFS) along with NFT.storage that let us export the video & incident image file generated from Web3 video streaming tools as an NFT and upload it to IPFS using NFT.Storage. We are using the Electron example of Helia and are adding features like File (Edit/Delete), Save, save As, Email and print using ionic Capacitor framework plugins to our dapp.

Lilypad: Creating an NFT for the cad file on the Filecoin Virtual Machine (FVM / FEVM) with Bacalhau Stable Diffusion. Creating a Transport NFT on the FVM for NFC tags of vehicle service and repair providers & vehicles to improve road incident management, decentralized NFT-based voting system for contract work by service providers, Votes are uploaded to IPFS with the most recent vote linking to one before. Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/transport-fvm-nft-nfc-tags and https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-nft-gen-voting-dao/nft-voting-dao/data-dao

Demo Video at https://drive.google.com/drive/u/0/folders/1-A3OA0GT21SBx8ipKeQkJHsj96Bb48AK

Invoice Automation: We have developed an invoice dapp with integration with bacalhau for just in time invoicing for design contracts.

b. Polygon: We are utilizing ZoraModuleManager, and ZoraProtocolFeeSettings in our our dapp and deploying it on Polygon after registering the Zora market module. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/alarmviewer

Please find the video at https://drive.google.com/drive/u/3/folders/1vo_ZnHzqYwd7lDaZKGSXev3Vvya7DjJT (demo_screen capture.mov file under mobile screen capture and demos for NVP challenges directory ).

We are using the zora starter kit to access ZORA API, Creator Toolkit, and Marketplace Hyperstructure. Zora's Auction House template is being utilized for NFT marketplace of alarm clock wallpapers and background ringtones purchase and auction. We are also extending and adapting Turtle Music using NFT Experiments for music curators for alarm clock. We are using DAOtooling for coordination with a social focus around community collaboration for road incidents and alarms.

Optimism and Lit

Optimism NFT marketplace for spare parts of vehicles: Optimism NFT marketplace for NFC tags of spare parts of vehicles, enabling sharing of government assets and service/repair of vital assets, reduction in counterfeiting of vital spare parts of vehicles and transport infrastructure: please visit https://github.com/aspiringsecurity/EthTransport/tree/main/Asset-Management-Spare-Parts/optimism-parts-nft-marketplace

Work Order Manager and Billing Tool suite within OP Spare Parts NFT marketplace: please visit https://github.com/aspiringsecurity/EthTransport/tree/main/Asset-Management-Spare-Parts/OP-Work-Order-Suite

Lit : We are using Lit protocol to automate signing, reading, and writing road incident metadata (snapshots) and alarm viewer data to web3 decentralized networks (Ethereum and IPFS).

Token-gate the Incident Dashboard Page with 5 different personas using Lit Protocol: Please visit https://github.com/aspiringsecurity/EthTransport/tree/main/incidentandalarmstorage/Lit-Token-Gating-Access-Control

  • Lit Actions: We are using JS function bindings to do things like request a signature or a decryption. Please visit:

i) https://github.com/aspiringsecurity/EthTransport/tree/main/incidentandalarmstorage/lit-actions_conditional_signing

ii) https://github.com/aspiringsecurity/EthTransport/tree/main/incidentandalarmstorage/lit-actions_sign_api_response

  1. NFTPort Dashboard: We are using NFTPort to see all NFTs from different networks. This enables drivers, citizens, police officers and administrators to:
  • View their NFTs in different network when they enter their address and select the network such as Ethereum, Polygon (Matic), Avalanche, and Binance Smart Chain

  • View the contract of the NFT such as floor price, unique token ids sold today, gas quote rate day, and list of NFTs minted

Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/Asset-Management-Spare-Parts/NFT-Dashboard-NFTPort

  1. Tableland: We are using Tableland for implementing incident notes maintained by transport administrators. Please visit Incident Notes powered by Tableland at https://github.com/aspiringsecurity/EthTransport/tree/main/incidentnotestableland/incidentnotes

  2. XMTP: We are implementing XMTP Chat for Transport administrators in a particular region with CyberConnect functions. Please visit the implementation link: https://github.com/aspiringsecurity/EthTransport/tree/main/XMTPChat-with-cyberconnect

Please also visit XMTP integrations with the platform:

a. https://github.com/aspiringsecurity/EthTransport/tree/main/xmtp-loc-chat

b. https://github.com/aspiringsecurity/EthTransport/tree/main/xmtp-messaging

  1. Fluence: We are using Fluence to develop a counter for road incidents reported by citizens and complains resolved by police authorities in a specific region which could be shared across citizens and government authorities. Our impact solution for citizens create a positive societal behavior and can be used for availing tax benefits, citizen rewards and ecommerce gift cards by Ministry of Road and Transportation.

Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/incident-counter-fluence/fluence-incident-count

  1. a. Livepeer: We are using Livepeer as the key infrastructure provider for online video streaming of critical road incidents. We are using Livepeer at: Live streaming with Object Detection Video Analytics using Livepeer for streaming; Camera Management: Add/edit/delete cameras with integration with Livepeer.

Functions: Live streaming with Object Detection Video Analytics using Livepeer for streaming; Camera Management: Add/edit/delete cameras with integration with Livepeer

Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/livepeer-decentralized-streaming

Livepeer Video NFT: https://github.com/aspiringsecurity/EthTransport/tree/main/roadincidentmanagement/livepeer-video-nft

b. Tron's BTTC blockchain: We are using DAOtooling for coordination with a social focus around community collaboration for road incidents and alarms using Tron DAO. Please visit https://github.com/seetadev/EtherMonitor/tree/main/zoracommunitymarketplace/tron-contracts

  1. Push Protocol: Push alerts integration for investigative case management by administrators and dispatchers. We are developing a dashboard and newsletter structure for recording the weekly minutes of the meeting for ICM (investigative case management) and improving road safety. Please visit the module link: https://github.com/aspiringsecurity/EthTransport/tree/main/Medium-Meeting-Reports/push-alerts-integration

  2. Covalent API end Points: We are using Covalent to see all NFTs for NFC tags of vehicles across different networks. Further, we have the following Covalent end-points APIs:

Get Log Events by Contract Address: to get log events like sold/listed nft for NFC tags/NFC Tags of vehicles on marketplace.

Get Log Events by Incident Types: to get log data for specific incident event along with its metadata

Get NFT External Metadata: To get metadata for NFT like attribute and snapshot images.

Get Historical Token Prices: To get price of token for currency that accept NFT/item on marketplace.

We are developing a Transport DAO platform using Covalent that enables fleet providers, cab aggregators and corporate organizations to keep track of all the details of their Transport assets, vehicle assets, DeFi investments, transactions, and assets across all multiple chains and also displays DAO data using a data visualization chart. We are building our solution on top of an existing web3 dashboard system and are planning to integrate it with an analytics, tabulation and collaboration tool namely EtherCalc. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/Covalent-Dashboard

Web3 Car Parts Dashboard powered by Covalent is a DAO platform that enables Transport Ministry and third party service and repair organizations to keep track of all the details of their transport assets, DeFi investments, transactions, and assets across all multiple chains and also displays DAO data using a data visualization chart. We are building our solution on top of an existing web3 dashboard system and are planning to integrate an analytics, tabulation and collaboration tool namely EtherCalc. Please visit: https://github.com/aspiringsecurity/EthTransport/tree/main/Car-Parts-Dashboard

  1. ZK Transport Wallet at https://github.com/aspiringsecurity/EthTransport/tree/main/Asset-Management-Spare-Parts/ZK-Transport-Wallet

ZK Transport wallet supports operations like the signing of the transaction and other cryptographic operations across multiple platforms and blockchains that improve the overall usability and interoperability. We used Zokrates for building the ZK Transport Wallet.

Please visit the demo at https://drive.google.com/drive/u/3/folders/1M2x5Qoq2YkzCyFiu9QJEciuqfDTKMM7a


Moralis: Deployment URL: https://3gtivnurtulj.usemoralis.com:2053/server (to be deployed to moralis)


About

Monitoring tools for road incident management and reducing traffic congestion. Crowdsourcing information sharing for better and safer roads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published