chainline-contracts / chainline.contracts / HubContract / travel_overwriteExpiry

travel_overwriteExpiry

private fun Travel.travel_overwriteExpiry(owner: ScriptHash, expiry: BigInteger): Unit (source)

Re-reserves the deposit due by a traveller when they create a Travel with a revised expiry time. This method also updates a wallet's "state lock" with the new expiry time.

This method is to be used when a Travel has been matched with a Demand to match up the expiry times of both objects.

Note: Use of this method will overwrite the existing reserved funds record for the owner's wallet.

Parameters

owner - the traveller's script hash

expiry - the new expiry time