Obligation Utils
object 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
fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<Obligation.State<P>>)
Generate a transaction performing close-out netting of two or more states.
Link copied to clipboard
fun <P : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<Obligation.Terms<P>>>, assetStates: List<StateAndRef<Obligation.State<P>>>): Set<PublicKey>
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
fun <P : Any> generatePaymentNetting(tx: TransactionBuilder, issued: Issued<Obligation.Terms<P>>, notary: Party, vararg inputs: StateAndRef<Obligation.State<P>>)
Link copied to clipboard
fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<Obligation.State<P>>>, lifecycle: Obligation.Lifecycle, notary: Party)
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)