chainline-contracts / chainline.contracts / HubContract / travel_storeAndMatch

travel_storeAndMatch

private fun Travel.travel_storeAndMatch(owner: ScriptHash, cityPairHash: Hash160, nowTime: Int): Boolean (source)

Performs all the legwork necessary to store and match a Travel with a Demand.

Parameters

owner - the traveller

cityPairHash - the ripemd160 hash of: script hash (hex) (salt) + origin city + destination city (ascii)

Return
true on success