Coder Social home page Coder Social logo

parametric-crop-insurance's Introduction

Description

Example of a decentralized crop insurance insurance product that makes using of Chainlink Oracles to obtain external data from multiple weather APIs

Walkthrough

Please refer to the technical article on the Chainlink official blog

Run product

The contracts can be deployed to Kovan either via this Remix link, or via Truffle commands below.

Setup Environment Variables

You'll need a MNEMONIC and a kovan KOVAN_RPC_URL environment variable. Your MNEMONIC is your seed phrase of your wallet. You can find a KOVAN_RPC_URL from node provider services like Infura

Then, either set them in a bash_profile file or export them into your terminal like:

export MNEMONIC='cat dog frog....'
export KOVAN_RPC_URL='www.infura.io/abcdefg'

Install dependencies

# install packages.
npm install

# compile contract
truffle complie

# migrate contract
# First update truffle-config.js to contain correct key information for your wallet and infura provider

truffle deploy --reset --network kovan

Once the contract is deployed and you have the master contract address. You need to fund it with some ETH and LINK to be used in the creation of insurance contracts. Once that's done, you can then interact with the InsuranceContracts functions via any Contract interaction method, such as MyEtherWallet

parametric-crop-insurance's People

Contributors

pappas999 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.