Travel Record

UTILITYTOOLS

Exposed Methods

addPreviousTrip adds a previous trip to the list

| parameter name | type | details | | --------- | --------- | --------- | | _tripname | string | name of the previous trip | | _location | string | name of the location that has been visited | | _totalprice | uint | total price allocated for the trip | | _month | uint | month the trip took place | | _day | uint | day the trip took place | | _year | uint | year the trip took place |

addFutureTrip adds a future trip to the list

| parameter name | type | details | | --------- | --------- | --------- | | _tripname | string | name of the future trip | | _location | string | name of the location that will be visited | | _totalprice | uint | total price allocated for the trip | | _month | uint | month the trip is planned to be | | _day | uint | day the trip is planned to be | | _year | uint | year the trip is planned to be |

showPreviousTrip function for the dapp to return all previous trips

| parameter name | type | details | | --------- | --------- | --------- | | _index | uint | index number of the previous trip |

showFutureTrip function for the dapp to return all the future trips

| parameter name | type | details | | --------- | --------- | --------- | | _index | uint | index number of the future trip |

visit function called to transform a future trip to a trip that took place

| parameter name | type | details | | --------- | --------- | --------- | | _tripname | string | name of the future trip |

checkTripDate returns the trip's date, future or past

| parameter name | type | details | | --------- | --------- | --------- | | _tripname | string | name of the trip |

getPriceTrip return the total price allocated for a trip

| parameter name | type | details | | --------- | --------- | --------- | | _tripname | string | name of the trip |

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract