Giter Club home page Giter Club logo

dhlrequest's Introduction

Tracking and Delay Insurance (TADI)

DHL API Shipment Tracking via Chainlink Functions

This contract makes use of Chainlink Functions to get tracking data from the DHL API. The user (shipper) can store information about their shipments (shipping containers) and their respective tracking data. And the user can purchase delay protection which will earn them a payout in the event of a delay in their shipment's delivery. The user can buy delay protection to receive an instant payout if their shipment is late.

This repository has just a few files to show the critical components of the project. The entire file and codebase can be viewed upon request.

TO DO:

  1. Get access to Etherisc risk pools to allow the purchase of real delay protection.

TADIEngine.sol

The Solidity smart contract that lives on-chain, stores shipping data and executes insurance claims. Based contract.

DHLsource.js

The JavaScript source code that calls the DHL unified shipment tracking API. The Chainlink DON runs this script on 10 decentralised oracles and returns an aggregated response to us.

DHLrequest.js

This script puts everything together and acts as a test for the smart contract. We produce an instance of the contract on the Polygon Mumbai chain and test its various capabilities. Then a Chainlink Functions request is built, we feed it the source code that calls the DHL API along with the arguments and encrypted API keys, and get a response that gets fed back to our contract.

dhlrequest's People

Contributors

pyromaus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.