ObligationUtils - corda

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

# ObligationUtils

`object ObligationUtils`

### Functions

#### generateCashIssue | Puts together an issuance transaction for the specified currency obligation amount that starts out being owned by the given pubkey. `fun generateCashIssue(tx: TransactionBuilder, obligor: AbstractParty, acceptableContract: SecureHash, amount: Amount<Issued<Currency>>, dueBefore: Instant, beneficiary: AbstractParty, notary: Party): Unit`
#### generateCloseOutNetting | Generate a transaction performing close-out netting of two or more states. `fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<State<P>>): Unit`
#### generateExit | Generate an transaction exiting an obligation from the ledger. `fun <P : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<Terms<P>>>, assetStates: List<StateAndRef<State<P>>>): Set<PublicKey>`
#### generateIssue | Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey. `fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Terms<P>, pennies: Long, beneficiary: AbstractParty, notary: Party): Set<PublicKey>`
#### generatePaymentNetting | `fun <P : Any> generatePaymentNetting(tx: TransactionBuilder, issued: Issued<Terms<P>>, notary: Party, vararg inputs: StateAndRef<State<P>>): Unit`
#### generateSetLifecycle | Generate a transaction changing the lifecycle of one or more state objects. `fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<State<P>>>, lifecycle: Lifecycle, notary: Party): Unit`
#### generateSettle | `fun <P : Any> generateSettle(tx: TransactionBuilder, statesAndRefs: Iterable<StateAndRef<State<P>>>, assetStatesAndRefs: Iterable<StateAndRef<FungibleAsset<P>>>, moveCommand: MoveCommand, notary: Party): Unit`