Harvests.js Documentation

Functions

weightInput(harvest, field, amount)

Function to mint the Grape Token when the grapes are weighed

loadDropdown()

Fills the dropdown with the harvests

newHarvest()

Creates a new Harvest

openHarvest(address)

Opens the details modal and adds the data of a single harvest

harvestAsJson(address)json

Loads the Harvest details and creates a JSON file with it

getFieldName(address)name

Loads the name of a field

weightInput(harvest, field, amount)

Function to mint the Grape Token when the grapes are weighed

Kind: global function

Param Type Description
harvest \* Address of the harvest the grapes should be added to
field \* Address of the vineyard, the grapes origin from
amount \* The weight of the grapes

loadDropdown()

Fills the dropdown with the harvests

Kind: global function

newHarvest()

Creates a new Harvest

Kind: global function

openHarvest(address)

Opens the details modal and adds the data of a single harvest

Kind: global function

Param Type Description
address \* Address of the harvest

harvestAsJson(address) ⇒ json

Loads the Harvest details and creates a JSON file with it

Kind: global function Returns: json - JSON file

Param Type Description
address \* The address of the harvest contract

getFieldName(address) ⇒ name

Loads the name of a field

Kind: global function Returns: name - String of the name

Param Type Description
address \* Address of the field contract