class LedgerDSL<out T : TransactionDSLInterpreter, out L : LedgerDSLInterpreter<T>> : LedgerDSLInterpreter<TransactionDSLInterpreter>
This is the class that defines the syntactic sugar of the ledger Test DSL and delegates to the contained interpreter,
and what is actually used in ledger{(...)}
. Add convenience functions here, or if you want to extend the DSL
functionality then first add your primitive to LedgerDSLInterpreter and then add the convenience defaults/extension
methods here.
<init> |
LedgerDSL(interpreter: L) This is the class that defines the syntactic sugar of the ledger Test DSL and delegates to the contained interpreter,
and what is actually used in |
interpreter |
val interpreter: L |
output |
fun <S : ContractState> String.output(): S Retrieves the output TransactionState based on the label. |
outputStateAndRef |
fun <S : ContractState> String.outputStateAndRef(): StateAndRef<S> |
retrieveOutput |
fun <S : ContractState> retrieveOutput(clazz: Class<S>, label: String): S |
transaction |
fun transaction(label: String? = null, transactionBuilder: TransactionBuilder = TransactionBuilder(notary = DUMMY_NOTARY), dsl: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): WireTransaction |
unverifiedTransaction |
fun unverifiedTransaction(label: String? = null, transactionBuilder: TransactionBuilder = TransactionBuilder(notary = DUMMY_NOTARY), dsl: TransactionDSL<TransactionDSLInterpreter>.() -> Unit): WireTransaction |
ledger |
fun LedgerDSLInterpreter<TransactionDSLInterpreter>. |
signAll |
fun LedgerDSL<TestTransactionDSLInterpreter, TestLedgerDSLInterpreter>.signAll(vararg extraKeys: KeyPair): <ERROR CLASS> Signs all transactions in the ledger. |