chainline-contracts / chainline.contracts / HubContract / demand_storeAndMatch

demand_storeAndMatch

private fun Demand.demand_storeAndMatch(owner: ScriptHash, cityPairHash: Hash160, nowTime: Int): Boolean (source)

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

Parameters

owner - the owner of the demand

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

Return
true on success