ERC20Basic

function totalSupply

ERC20Basic.totalSupply() view 18160ddd

function balanceOf

ERC20Basic.balanceOf(who) view 70a08231

Inputs

type name description
address who undefined

function transfer

ERC20Basic.transfer(to, value) nonpayable a9059cbb

Inputs

type name description
address to undefined
uint256 value undefined

event Transfer

ERC20Basic.Transfer(from, to, value) ddf252ad

Arguments

type name description
address from indexed
address to indexed
uint256 value not indexed

ERC20Handler

function getBalance

ERC20Handler.getBalance() view 12065fe0

Gets token balance of the contract

Outputs

type name description
uint256   undefined

function totalSupply

ERC20Handler.totalSupply() view 18160ddd

Gets the total supply

Outputs

type name description
uint256   undefined

function balanceOf

ERC20Handler.balanceOf(who) view 70a08231

Gets the balance of an account

Inputs

type name description
address who undefined

Outputs

type name description
uint256   undefined

function tokenAddress

ERC20Handler.tokenAddress() view 9d76ea58

Gets the ERC20 address

Outputs

type name description
address   undefined

function transfer

ERC20Handler.transfer(to, value) nonpayable a9059cbb

Transfers tokens

Inputs

type name description
address to the address the tokens are sent to
     
uint256 value the amount to transfer
     

Outputs

| type | name | description | |-|-|-| | bool | | undefined |

event Transfer

ERC20Handler.Transfer(from, to, value) ddf252ad

Arguments

type name description
address from indexed
address to indexed
uint256 value not indexed

Field

function setPicture

Field.setPicture(_picture) nonpayable 00075f84

Updates the picture of the vineyard

Inputs

type name description
bytes _picture the new picture
     

Outputs

type name description
bool   undefined

function harvest

Field.harvest(_harvest) nonpayable 0e5c011e

Harvests the current vineyard and moves it to the harvested stage

Inputs

type name description
address _harvest Address of the harvest contract that called this function
     

function permissionedAccounts

Field.permissionedAccounts() view 101dfbc6

Inputs

type name description
uint256   undefined

function addTransaction

Field.addTransaction(_sender, _data) nonpayable 126e19be

Overloading the transaction function from TransactionOwner to check if a field can accept data

Inputs

type name description
address _sender Address of the sender
     
bytes _data data attached to the transaction
     

function getType

Field.getType() view 15dae03e

Gets the type of grapes of the vineyard

Outputs

type name description
string   undefined

function getName

Field.getName() view 17d7de7c

Gets the name of the vineyard

Outputs

type name description
string   undefined

function status

Field.status() view 200d2ed2

function getHarvestPointers

Field.getHarvestPointers(_harvest) view 317b823d

Gets the transaction pointer for a harvest

Inputs

type name description
address _harvest Address of a harvest contract
     

Outputs

type name description
uint256   undefined
uint256   undefined

function transactionsSinceLastHarvest

Field.transactionsSinceLastHarvest() view 3acf8b2a

Gets the number of transactions since last harvest

Outputs

type name description
uint256   undefined

function getPermissionedAccounts

Field.getPermissionedAccounts(_index) view 43c89ed2

Gets a permissioned account with an index from the array

Inputs

type name description
uint256 _index Index to retrieve from the array
     

Outputs

type name description
address   undefined

function getTotalTransactionCount

Field.getTotalTransactionCount() view 4a97b1b5

Gets the total transactions sent to this contract

Outputs

type name description
uint256   undefined

function getStatus

Field.getStatus() view 4e69d560

Gets the status of the contract

Outputs

type name description
bool   undefined

function isHarvestable

Field.isHarvestable() view 5175171e

Check if the current field is harvestable

Outputs

type name description
bool   undefined

function getTransactionCountFromSender

Field.getTransactionCountFromSender(_sender) view 53c70c98

Gets the amount of transactions a sender has sent

Inputs

type name description
address _sender the sender to check
     

Outputs

type name description
uint256   undefined

function getLongitude

Field.getLongitude() view 55b72f38

Gets the longitude of the vineyard

Outputs

type name description
string   undefined

function isField

Field.isField() pure 6e9f88e3

Check if the current contract is a field contract

Outputs

type name description
bool   undefined

function getTransactionTimeFromSenderAtIndex

Field.getTransactionTimeFromSenderAtIndex(_sender, _index) view 7402ab45

Gets the timestamp of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

type name description
uint256   undefined

function getHarvestPointer

Field.getHarvestPointer(_harvest) view 7c157727

Gets the transaction count at the time of harvest

Inputs

type name description
address _harvest Address of a harvest contract
     

Outputs

type name description
uint256   undefined

function harvestPointer

Field.harvestPointer() view 7d8f9b18

Inputs

type name description
address   undefined

function getAllUniqueTransactionSender

Field.getAllUniqueTransactionSender() view 86d79921

Gets all addresses that sent transactions to the contract

Outputs

type name description
address[]   undefined

function switchStatus

Field.switchStatus() nonpayable 945e461d

Switches the status of the contract

function getTransactionTimeAtIndex

Field.getTransactionTimeAtIndex(_index) view 94917a42

Gets transaction timestamp at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
uint256   undefined

function setType

Field.setType(_type) nonpayable 96282ba3

Updates the grape type of the vineyard

Inputs

type name description
string _type the new type of grapes
     

Outputs

type name description
bool   undefined

function transactions

Field.transactions() view 9ace38c2

Inputs

type name description
uint256   undefined

function getTransactionSenderAtIndex

Field.getTransactionSenderAtIndex(_index) view ad437f17

Gets a sender address at an index from the sender list

Inputs

type name description
uint256 _index the pointer
     

Outputs

type name description
address   undefined

function getLatitude

Field.getLatitude() view ae7b6bd9

Gets the latitude of the vineyard

Outputs

type name description
string   undefined

function getLastHarvest

Field.getLastHarvest() view affd80b0

Gets the address of the last harvest

Outputs

type name description
address   undefined

function transactionSender

Field.transactionSender() view b4df21a8

Inputs

type name description
address   undefined

function totalTransactions

Field.totalTransactions() view b9a60038

function isAllowed

Field.isAllowed(_sender) view babcc539

Function to check if an address is allowed to interact

Inputs

type name description
address _sender Address of the address to check
     

Outputs

type name description
bool   undefined

function stage

Field.stage() view c040e6b8

function getPreviousHarvest

Field.getPreviousHarvest(_current) view c1a6d05b

Gets the previous harvest in relation to another

Inputs

type name description
address _current Address of a current harvest contract
     

Outputs

type name description
address   undefined

function setName

Field.setName(_name) nonpayable c47f0027

Updates the name of the vineyard

Inputs

type name description
string _name the new name
     

Outputs

type name description
bool   undefined

function getTransactionDataAtIndex

Field.getTransactionDataAtIndex(_index) view c5b3a70e

Gets transaction data at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
bytes   undefined

function getAllDetails

Field.getAllDetails() view ccc5d7d4

Gets all information from the contract

Outputs

type name description
uint8   undefined
address   undefined
address[]   undefined
string   undefined
bytes   undefined
string   undefined
string   undefined
uint256   undefined
address[]   undefined

function getLocation

Field.getLocation() view ce2ce3fc

Gets the location of the vineyard

Outputs

type name description
string   undefined
string   undefined

function createdAt

Field.createdAt() view cf09e0d0

function addPermissionedAccount

Field.addPermissionedAccount(_sender) nonpayable e29e3b24

Adds an address to the permissioend accounts array

Inputs

type name description
address _sender the address to add
     

Outputs

type name description
bool   undefined

function getTransactionDataFromSenderAtIndex

Field.getTransactionDataFromSenderAtIndex(_sender, _index) view e4a0646e

Gets the data of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

type name description
bytes   undefined

function previousHarvest

Field.previousHarvest() view ea8e0b95

Inputs

type name description
address   undefined

function nextStage

Field.nextStage() nonpayable ee3743ab

Moves the contract to the next stage

function lastHarvest

Field.lastHarvest() view f1a392da

function setLocation

Field.setLocation(_lat, _long) nonpayable fe586c9a

Updates the location of the vineyard

Inputs

type name description
string _lat the new latitude
     
string _long the new longitude
     

Outputs

type name description
bool   undefined

event NewStage

Field.NewStage(stage) 2813df25

Arguments

type name description
uint8 stage not indexed

event NewStatus

Field.NewStatus(status) af0a4d7c

Arguments

type name description
uint8 status not indexed

event NewTransaction

Field.NewTransaction(sender, data, time) ac19b069

Arguments

type name description
address sender not indexed
bytes data not indexed
uint256 time not indexed

Harvest

function balanceFromField

Harvest.balanceFromField(_fieldAddress) view 09dd2544

Gets the balance of grapes a field contributed

Inputs

type name description
address _fieldAddress address of the field
     

Outputs

type name description
uint256   undefined

function getBalance

Harvest.getBalance() view 12065fe0

Gets token balance of the contract

Outputs

type name description
uint256   undefined

function addTransaction

Harvest.addTransaction(_sender, _data) nonpayable 126e19be

Adds a new transaction to the contract

Inputs

type name description
address _sender the sender of the transaction
     
bytes _data the data in the transaction
     

function totalSupply

Harvest.totalSupply() view 18160ddd

Gets the total supply

Outputs

type name description
uint256   undefined

function status

Harvest.status() view 200d2ed2

function addMultipleFields

Harvest.addMultipleFields(_fieldAddresses) nonpayable 378e3a37

Adds a multiple fields to the harvest

Inputs

type name description
address[] _fieldAddresses address array of the fields
     

function getTotalTransactionCount

Harvest.getTotalTransactionCount() view 4a97b1b5

Gets the total transactions sent to this contract

Outputs

type name description
uint256   undefined

function getStatus

Harvest.getStatus() view 4e69d560

Gets the status of the contract

Outputs

type name description
bool   undefined

function getTransactionPointer

Harvest.getTransactionPointer(_fieldAddress) view 4e906aff

Gets the transaction pointer of the current harvest on a field

Inputs

type name description
address _fieldAddress the address of the field
     

Outputs

type name description
uint256   undefined

function getTransactionCountFromSender

Harvest.getTransactionCountFromSender(_sender) view 53c70c98

Gets the amount of transactions a sender has sent

Inputs

type name description
address _sender the sender to check
     

Outputs

type name description
uint256   undefined

function balanceOf

Harvest.balanceOf(who) view 70a08231

Gets the balance of an account

Inputs

type name description
address who undefined

Outputs

type name description
uint256   undefined

function getTransactionTimeFromSenderAtIndex

Harvest.getTransactionTimeFromSenderAtIndex(_sender, _index) view 7402ab45

Gets the timestamp of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

type name description
uint256   undefined

function getAllUniqueTransactionSender

Harvest.getAllUniqueTransactionSender() view 86d79921

Gets all addresses that sent transactions to the contract

Outputs

type name description
address[]   undefined

function weightInput

Harvest.weightInput(_fieldAddress, _value) nonpayable 901a2374

Function that mints tokens based on the input weightInput

Inputs

type name description
address _fieldAddress address of the field
     
uint256 _value the amount of grapes to mint
     

function switchStatus

Harvest.switchStatus() nonpayable 945e461d

Switches the status of the contract

function getTransactionTimeAtIndex

Harvest.getTransactionTimeAtIndex(_index) view 94917a42

Gets transaction timestamp at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
uint256   undefined

function transactions

Harvest.transactions() view 9ace38c2

Inputs

type name description
uint256   undefined

function tokenAddress

Harvest.tokenAddress() view 9d76ea58

Gets the ERC20 address

Outputs

type name description
address   undefined

function transfer

Harvest.transfer(to, value) nonpayable a9059cbb

Overloading the default transfer function to check if account is empty

Inputs

type name description
address to address of the receiver
     
uint256 value the amount to transfer
     

function getTransactionSenderAtIndex

Harvest.getTransactionSenderAtIndex(_index) view ad437f17

Gets a sender address at an index from the sender list

Inputs

type name description
uint256 _index the pointer
     

Outputs

type name description
address   undefined

function harvestFields

Harvest.harvestFields() nonpayable aeaaad0a

Harvests all fields added to this contract

function transactionSender

Harvest.transactionSender() view b4df21a8

Inputs

type name description
address   undefined

function totalTransactions

Harvest.totalTransactions() view b9a60038

function getTransactionDataAtIndex

Harvest.getTransactionDataAtIndex(_index) view c5b3a70e

Gets transaction data at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
bytes   undefined

function getFields

Harvest.getFields() view ca602492

Gets all fields of the harvest

Outputs

type name description
address[]   undefined

function getAllDetails

Harvest.getAllDetails() view ccc5d7d4

Gets all details of the harvest

Outputs

type name description
address[]   undefined
uint256   undefined
address[]   undefined
uint256   undefined
address[]   undefined
uint256   undefined

function createdAt

Harvest.createdAt() view cf09e0d0

function finish

Harvest.finish() nonpayable d56b2889

Finished the harvest, disables it

function getTransactionDataFromSenderAtIndex

Harvest.getTransactionDataFromSenderAtIndex(_sender, _index) view e4a0646e

Gets the data of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

type name description
bytes   undefined

function getYear

Harvest.getYear() view fd08921b

Gets the year of the harvest contract

Outputs

type name description
uint256   undefined

event FieldAdded

Harvest.FieldAdded(field) 89b628c8

Arguments

type name description
address field not indexed

event WeightInput

Harvest.WeightInput(amount) 6522d286

Arguments

type name description
uint256 amount not indexed

event Transfer

Harvest.Transfer(from, to, value) ddf252ad

Arguments

type name description
address from indexed
address to indexed
uint256 value not indexed

event NewStatus

Harvest.NewStatus(status) af0a4d7c

Arguments

type name description
uint8 status not indexed

event NewTransaction

Harvest.NewTransaction(sender, data, time) ac19b069

Arguments

type name description
address sender not indexed
bytes data not indexed
uint256 time not indexed

Ownable

function owner

Ownable.owner() view 8da5cb5b

function transferOwnership

Ownable.transferOwnership(newOwner) nonpayable f2fde38b

Allows the current owner to transfer control of the contract to a newOwner.

Inputs

type name description
address newOwner The address to transfer ownership to.

event OwnershipTransferred

Ownable.OwnershipTransferred(previousOwner, newOwner) 8be0079c

Arguments

type name description
address previousOwner indexed
address newOwner indexed

TransactionOwner

function addTransaction

TransactionOwner.addTransaction(_sender, _data) nonpayable 126e19be

Adds a new transaction to the contract

Inputs

type name description
address _sender the sender of the transaction
     
bytes _data the data in the transaction
     

function status

TransactionOwner.status() view 200d2ed2

function getTotalTransactionCount

TransactionOwner.getTotalTransactionCount() view 4a97b1b5

Gets the total transactions sent to this contract

Outputs

type name description
uint256   undefined

function getStatus

TransactionOwner.getStatus() view 4e69d560

Gets the status of the contract

Outputs

type name description
bool   undefined

function getTransactionCountFromSender

TransactionOwner.getTransactionCountFromSender(_sender) view 53c70c98

Gets the amount of transactions a sender has sent

Inputs

type name description
address _sender the sender to check
     

Outputs

type name description
uint256   undefined

function getTransactionTimeFromSenderAtIndex

TransactionOwner.getTransactionTimeFromSenderAtIndex(_sender, _index) view 7402ab45

Gets the timestamp of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

type name description
uint256   undefined

function getAllUniqueTransactionSender

TransactionOwner.getAllUniqueTransactionSender() view 86d79921

Gets all addresses that sent transactions to the contract

Outputs

type name description
address[]   undefined

function switchStatus

TransactionOwner.switchStatus() nonpayable 945e461d

Switches the status of the contract

function getTransactionTimeAtIndex

TransactionOwner.getTransactionTimeAtIndex(_index) view 94917a42

Gets transaction timestamp at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
uint256   undefined

function transactions

TransactionOwner.transactions() view 9ace38c2

Inputs

type name description
uint256   undefined

function getTransactionSenderAtIndex

TransactionOwner.getTransactionSenderAtIndex(_index) view ad437f17

Gets a sender address at an index from the sender list

Inputs

type name description
uint256 _index the pointer
     

Outputs

type name description
address   undefined

function transactionSender

TransactionOwner.transactionSender() view b4df21a8

Inputs

type name description
address   undefined

function totalTransactions

TransactionOwner.totalTransactions() view b9a60038

function getTransactionDataAtIndex

TransactionOwner.getTransactionDataAtIndex(_index) view c5b3a70e

Gets transaction data at a index

Inputs

type name description
uint256 _index pointer to check
     

Outputs

type name description
bytes   undefined

function getTransactionDataFromSenderAtIndex

TransactionOwner.getTransactionDataFromSenderAtIndex(_sender, _index) view e4a0646e

Gets the data of a transaction from a specific sender at a position

Inputs

type name description
address _sender the sender to check
     
uint256 _index poiner
     

Outputs

| type | name | description | |-|-|-| | bytes | | undefined |

event NewStatus

TransactionOwner.NewStatus(status) af0a4d7c

Arguments

type name description
uint8 status not indexed

event NewTransaction

TransactionOwner.NewTransaction(sender, data, time) ac19b069

Arguments

type name description
address sender not indexed
bytes data not indexed
uint256 time not indexed

strings

function toHex

strings.toHex(s) pure 100bce92

Inputs

type name description
string s undefined

function addressToString

strings.addressToString(x) nonpayable 5e57966d

Inputs

type name description
address x undefined

function uintToBytes32

strings.uintToBytes32(v) view 886d3db9

Converts an unsigned integert to its string representation.

Inputs

type name description
uint256 v The number to be converted.
     

function uintToBytes

strings.uintToBytes(x) nonpayable 94e8767d

Inputs

type name description
uint256 x undefined

function fromHexChar

strings.fromHexChar(c) pure b7312707

Inputs

type name description
uint256 c undefined

function stringToBytes

strings.stringToBytes(source) nonpayable e106fb4b

Inputs

type name description
string source undefined

function uintToString

strings.uintToString(v) view e9395679

Inputs

type name description
uint256 v undefined

event log_bytemask

strings.log_bytemask(mask) f566b46a

Arguments

type name description
bytes32 mask not indexed