hydra-plutus-0.20.0: Hydra Plutus Contracts
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Contract.Deposit

Description

The validator used to deposit and recover locked funds

Synopsis

Documentation

data DepositRedeemer Source #

Constructors

Claim CurrencySymbol

Claims already deposited funds. FIXME: Make sure to change the spec and add head CS to the Claim redeemer.

Recover Integer

Recovers m number of deposited outputs.

Instances

Instances details
FromData DepositRedeemer Source # 
Instance details

Defined in Hydra.Contract.Deposit

Methods

fromBuiltinData :: BuiltinData -> Maybe DepositRedeemer

ToData DepositRedeemer Source # 
Instance details

Defined in Hydra.Contract.Deposit

Methods

toBuiltinData :: DepositRedeemer -> BuiltinData

UnsafeFromData DepositRedeemer Source # 
Instance details

Defined in Hydra.Contract.Deposit

Methods

unsafeFromBuiltinData :: BuiltinData -> DepositRedeemer

type DepositDatum = (CurrencySymbol, POSIXTime, [Commit]) Source #

Deposit datum containing HeadId, deadline and a list of deposits.