corda / net.corda.finance.workflows.asset / ObligationUtils

ObligationUtils

object ObligationUtils

Functions

generateCashIssue

fun generateCashIssue(tx: TransactionBuilder, obligor: AbstractParty, acceptableContract: SecureHash, amount: Amount<Issued<Currency>>, dueBefore: Instant, beneficiary: AbstractParty, notary: Party): Unit

Puts together an issuance transaction for the specified currency obligation amount that starts out being owned by the given pubkey.

generateCloseOutNetting

fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<State<P>>): Unit

Generate a transaction performing close-out netting of two or more states.

generateExit

fun <P : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<Terms<P>>>, assetStates: List<StateAndRef<State<P>>>): Set<PublicKey>

Generate an transaction exiting an obligation from the ledger.

generateIssue

fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Terms<P>, pennies: Long, beneficiary: AbstractParty, notary: Party): Set<PublicKey>

Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey.

generatePaymentNetting

fun <P : Any> generatePaymentNetting(tx: TransactionBuilder, issued: Issued<Terms<P>>, notary: Party, vararg inputs: StateAndRef<State<P>>): Unit

generateSetLifecycle

fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<State<P>>>, lifecycle: Lifecycle, notary: Party): Unit

Generate a transaction changing the lifecycle of one or more state objects.

generateSettle

fun <P : Any> generateSettle(tx: TransactionBuilder, statesAndRefs: Iterable<StateAndRef<State<P>>>, assetStatesAndRefs: Iterable<StateAndRef<FungibleAsset<P>>>, moveCommand: MoveCommand, notary: Party): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.