cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.EraBased.Transaction.Internal.Common

Description

Helpers shared by the transaction and sub-transaction body builders.

Synopsis

Documentation

getAllReferenceInputs Source #

Arguments

:: [AnyWitness (LedgerEra era)] 
-> [AnyScriptWitness (LedgerEra era)] 
-> [AnyWitness (LedgerEra era)]

Certificate witnesses

-> [AnyWitness (LedgerEra era)] 
-> [AnyWitness (LedgerEra era)] 
-> [AnyWitness (LedgerEra era)] 
-> [TxIn]

Read only reference inputs

-> [TxIn] 

convertDirectDeposits :: [(StakeAddress, Lovelace)] -> Either TxCmdError DirectDeposits Source #

Reject duplicate recipients before converting deposits to the ledger map.

convertAccountBalanceIntervals :: String -> [(StakeAddress, AccountBalanceInterval era)] -> Either TxCmdError (AccountBalanceIntervals era) Source #

An account may occur once in each interval field. Never silently discard assertions by constructing a map before checking for duplicate addresses.

findDuplicates :: Ord a => [a] -> [a] Source #

Return repeated values in ascending order, with each value included only once.