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

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

Transport

function getBalance

Transport.getBalance() view 12065fe0

Gets token balance of the contract

Outputs

type name description
uint256   undefined

function addTransaction

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

Transport.totalSupply() view 18160ddd

Gets the total supply

Outputs

type name description
uint256   undefined

function status

Transport.status() view 200d2ed2

function getStartCoordinates

Transport.getStartCoordinates() view 204559d4

Gets the starting coordinates of the transport

Outputs

type name description
string   undefined
string   undefined

function addHarvest

Transport.addHarvest(_harvest) nonpayable 33bbca0d

Adds a harvest to a transport

Inputs

type name description
address _harvest address of a harvest
     

function getTotalTransactionCount

Transport.getTotalTransactionCount() view 4a97b1b5

Gets the total transactions sent to this contract

Outputs

type name description
uint256   undefined

function getStatus

Transport.getStatus() view 4e69d560

Gets the status of the contract

Outputs

type name description
bool   undefined

function getTransactionCountFromSender

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

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

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

Transport.getAllUniqueTransactionSender() view 86d79921

Gets all addresses that sent transactions to the contract

Outputs

type name description
address[]   undefined

function owner

Transport.owner() view 8da5cb5b

function switchStatus

Transport.switchStatus() nonpayable 945e461d

Switches the status of the contract

function getTransactionTimeAtIndex

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

Transport.transactions() view 9ace38c2

Inputs

type name description
uint256   undefined

function tokenAddress

Transport.tokenAddress() view 9d76ea58

Gets the ERC20 address

Outputs

type name description
address   undefined

function setStartCoordinates

Transport.setStartCoordinates(_latitude, _longitude) nonpayable 9f0810dc

Sets the starting coordinates of the transport

Inputs

type name description
string _latitude Location latitude
     
string _longitude Location longitude
     

function transfer

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

Outputs

type name description
bool   undefined

function getID

Transport.getID() view ab9dbd07

Gets the ID of the transport

Outputs

type name description
uint256   undefined

function getTransactionSenderAtIndex

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

Transport.transactionSender() view b4df21a8

Inputs

type name description
address   undefined

function totalTransactions

Transport.totalTransactions() view b9a60038

function getTransactionDataAtIndex

Transport.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 setEndCoordinates

Transport.setEndCoordinates(_latitude, _longitude) nonpayable cb209a73

Sets the end coordinates of the transport

Inputs

type name description
string _latitude Location latitude
     
string _longitude Location longitude
     

function createdAt

Transport.createdAt() view cf09e0d0

function finish

Transport.finish() nonpayable d56b2889

Finished the transport and disables transactions to it

function getTransactionDataFromSenderAtIndex

Transport.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 transferOwnership

Transport.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 Transfer

Transport.Transfer(from, to, value) ddf252ad

Arguments

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

event OwnershipTransferred

Transport.OwnershipTransferred(previousOwner, newOwner) 8be0079c

Arguments

type name description
address previousOwner indexed
address newOwner indexed

event NewStatus

Transport.NewStatus(status) af0a4d7c

Arguments

type name description
uint8 status not indexed

event NewTransaction

Transport.NewTransaction(sender, data, time) ac19b069

Arguments

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

TransportHandler

function setTokenAddress

TransportHandler.setTokenAddress(_tokenAddress) nonpayable 26a4e8d2

Updates the token address

Inputs

type name description
address _tokenAddress the address of the token
     

function addAllFromHarvest

TransportHandler.addAllFromHarvest(_transport) nonpayable 5890f246

Adds the entire last harvest to a transport

Inputs

type name description
address _transport address of the transport
     

function getHarvestsFromTransport

TransportHandler.getHarvestsFromTransport(_transportAddress) view 652b0028

Returns the harvests added to a transport

Inputs

type name description
address _transportAddress undefined

Outputs

type name description
address[]   undefined

function company

TransportHandler.company() view 6904c94d

function newTransport

TransportHandler.newTransport(_lat, _long) nonpayable 7584c0d2

Creates a new transport contract and retieves the entire balance from the current harvest

Inputs

type name description
string _lat undefined
string _long undefined

Outputs

type name description
bool success undefined

function setHarvestHandler

TransportHandler.setHarvestHandler(_harvestHandler) nonpayable 7e6f4239

Updates the harvesthandler address

Inputs

type name description
address _harvestHandler the address of the handler
     

function harvestBalance

TransportHandler.harvestBalance(harvestAddress) view 88754ac3

Low level call function to retrieve the balance of a harvest from the harvestHandler

Inputs

type name description
address harvestAddress address of the harvest
     

Outputs

type name description
uint256 _balance undefined

function owner

TransportHandler.owner() view 8da5cb5b

function grapeToken

TransportHandler.grapeToken() view 982d68de

function getHarvestFromTransport

TransportHandler.getHarvestFromTransport(_transportAddress) view a752a63f

Returns the last harvest added to a transport

Inputs

type name description
address _transportAddress undefined

Outputs

type name description
address   undefined

function getTransport

TransportHandler.getTransport(_id) view bc5de5e0

Gets a specific transport

Inputs

type name description
uint256 _id the id to retrieve
     

Outputs

type name description
address   undefined

function harvestHandler

TransportHandler.harvestHandler() view cdb15335

function getTransports

TransportHandler.getTransports() view dfe4f978

Gets all transports

Outputs

type name description
address[]   undefined

function currentTransport

TransportHandler.currentTransport() view e1d55fff

Gets the latest transport

Outputs

type name description
address   undefined

function addFromHarvest

TransportHandler.addFromHarvest(_harvest, _transport, _value) nonpayable e7dc6346

Adds part of a harvest to a transport

Inputs

type name description
address _harvest address of the harvest
     
address _transport address of the transport
     
uint256 _value unit256 the value to transfer
     

function currentHarvest

TransportHandler.currentHarvest() view f030db8e

Low level call function to retrieve the current active harvest from the harvestHandler

Outputs

type name description
address current undefined

function transferOwnership

TransportHandler.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 NewTransport

TransportHandler.NewTransport(id, transport, creator) 410851c3

Arguments

type name description
uint256 id not indexed
address transport not indexed
address creator not indexed

event ReceiveHarvest

TransportHandler.ReceiveHarvest(harvest, amount) a52019d9

Arguments

type name description
address harvest not indexed
uint256 amount not indexed

event OwnershipTransferred

TransportHandler.OwnershipTransferred(previousOwner, newOwner) 8be0079c

Arguments

type name description
address previousOwner indexed
address newOwner indexed