CommercialPaperUtils

Functions

Link copied to clipboard
fun generateIssue(issuance: <Error class: unknown class>, faceValue: <Error class: unknown class><<Error class: unknown class><Currency>>, maturityDate: Instant, notary: <Error class: unknown class>): <Error class: unknown class>

Returns a transaction that issues commercial paper, owned by the issuing parties key. Does not update an existing transaction because you aren't able to issue multiple pieces of CP in a single transaction at the moment: this restriction is not fundamental and may be lifted later.

Link copied to clipboard
fun generateMove(tx: <Error class: unknown class>, paper: <Error class: unknown class><<Error class: unknown class>>, newOwner: <Error class: unknown class>)

Updates the given partial transaction with an input/output/command to reassign ownership of the paper.

Link copied to clipboard
fun generateRedeem(tx: <Error class: unknown class>, paper: <Error class: unknown class><<Error class: unknown class>>, services: <Error class: unknown class>, ourIdentity: <Error class: unknown class>)

Intended to be called by the issuer of some commercial paper, when an owner has notified us that they wish to redeem the paper. We must therefore send enough money to the key that owns the paper to satisfy the face value, and then ensure the paper is removed from the ledger.