class CommercialPaper : Contract
interface Commands : CommandData |
|
data class State : OwnableState, QueryableState |
CommercialPaper() |
fun verify(tx: LedgerTransaction): Unit
Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense. Must throw an exception if there's a problem that should prevent state transition. Takes a single object rather than an argument so that additional data can be added without breaking binary compatibility with existing contract code. |
const val CP_PROGRAM_ID: ContractClassName |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |