ObligationUtils

Functions

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

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

Link copied to clipboard

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

Link copied to clipboard

Generate an transaction exiting an obligation from the ledger.

Link copied to clipboard
fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Obligation.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.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
fun <P : Any> generateSettle(tx: TransactionBuilder, statesAndRefs: Iterable<StateAndRef<Obligation.State<P>>>, assetStatesAndRefs: Iterable<StateAndRef<FungibleAsset<P>>>, moveCommand: MoveCommand, notary: Party)