chainline-contracts / chainline.contracts / HubContract / demand_create

demand_create

private fun demand_create(owner: ScriptHash, expiry: BigInteger, repRequired: BigInteger, itemSize: BigInteger, itemValue: BigInteger, infoBlob: ByteArray, nowTime: Int): Demand (source)

Creates a new Demand object.

Demand details:

Parameters

owner - the owner of the demand

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

repRequired - the reputation required of a traveller in order for this demand to be matched

itemSize - the size of the item (on a scale of 1-5)

itemValue - the value of the item in GAS as a fixed8 int

infoBlob - a 128 character string describing the desired item and the demand owner's contact details

nowTime - the current unix timestamp in seconds

Return
the serialized Demand or an empty byte array on failure