Contracts Tool

The Contracts Tool aims to help a developer quickly generate smart contract boilerplate code with the parametric specifications of their choosing. It helps a user codify what they learned in the Insights tool into smart contract boilerplate code. This code can then be extended to serve any application a developer might need.

Introduction

Below is an interface from the Contracts tool. The webmap on the left allows you to designate your area of interest while the panel on the right helps you codify the specifications for your parametric smart contract.

_images/defi_front.png

Landing page

_images/defi_drawing.png

Drawing section

_images/defi_params.png

Parameter setup

_images/defi_api_request.png

API request code

_images/defi_smart_code.png

Smart contract code

Usage

  1. First do some research to determine the parameters for your area of interest.

  2. The web map allows you to search for an area and designate its boundary.

  3. Use the search input to search by name and zoom into your area of interest.

  4. Use the drawing tools on the web map to specify what your area of interest is.

  5. This will generate some Json that describes the boundaries of this area.

  6. Next use the parameters tab to specify the input dataset and band.

  7. Select the option for each input field and submit the form to generate code.

  8. On the request tab, you will find the Json representation of your specification.

  9. On the code tab, you will find the smart contract boilerplate code with these specs.

  10. Copy this code from this tab and into your favorite development environment to extend.