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

ObligationUtils

object ObligationUtils

Functions

generateCashIssue

fun generateCashIssue(tx: <ERROR CLASS>, obligor: <ERROR CLASS>, acceptableContract: <ERROR CLASS>, amount: <ERROR CLASS><<ERROR CLASS><Currency>>, dueBefore: Instant, beneficiary: <ERROR CLASS>, notary: <ERROR CLASS>): 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: <ERROR CLASS>, signer: <ERROR CLASS>, vararg inputs: <ERROR CLASS><<ERROR CLASS><P>>): Unit

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

generateExit

fun <P : Any> generateExit(tx: <ERROR CLASS>, amountIssued: <ERROR CLASS><<ERROR CLASS><<ERROR CLASS><P>>>, assetStates: List<<ERROR CLASS><<ERROR CLASS><P>>>): Set<PublicKey>

Generate an transaction exiting an obligation from the ledger.

generateIssue

fun <P : Any> generateIssue(tx: <ERROR CLASS>, obligor: <ERROR CLASS>, issuanceDef: <ERROR CLASS><P>, pennies: Long, beneficiary: <ERROR CLASS>, notary: <ERROR CLASS>): 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: <ERROR CLASS>, issued: <ERROR CLASS><<ERROR CLASS><P>>, notary: <ERROR CLASS>, vararg inputs: <ERROR CLASS><<ERROR CLASS><P>>): Unit

generateSetLifecycle

fun <P : Any> generateSetLifecycle(tx: <ERROR CLASS>, statesAndRefs: List<<ERROR CLASS><<ERROR CLASS><P>>>, lifecycle: <ERROR CLASS>, notary: <ERROR CLASS>): Unit

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

generateSettle

fun <P : Any> generateSettle(tx: <ERROR CLASS>, statesAndRefs: Iterable<<ERROR CLASS><<ERROR CLASS><P>>>, assetStatesAndRefs: Iterable<<ERROR CLASS><<ERROR CLASS><P>>>, moveCommand: <ERROR CLASS>, notary: <ERROR CLASS>): Unit