chainline-contracts / chainline.contracts / HubContract / travel_create

travel_create

private fun travel_create(owner: ScriptHash, expiry: BigInteger, repRequired: BigInteger, carrySpace: BigInteger, nowTime: Int): Travel (source)

Creates a new Travel object.

Travel details:

Parameters

owner - the owner of the demand

expiry - the time that the demand expires as a unix timestmap

repRequired - the reputation required of a demander in order for this travel to be matched

carrySpace - the carry space available (on a scale of 1-5)

nowTime - the current unix timestamp in seconds

Return
the serialized Travel or an empty byte array on failure