data class TestLedgerDSLInterpreter : LedgerDSLInterpreter<TestTransactionDSLInterpreter>
class TypeMismatch : Exception |
|
class VerifiesFailed : Exception |
TestLedgerDSLInterpreter(services: ServiceHub) |
val services: ServiceHub |
|
val transactionsToVerify: List<WireTransaction> |
|
val transactionsUnverified: List<WireTransaction> |
|
val wireTransactions: List<WireTransaction> |
fun _transaction(transactionLabel: String?, transactionBuilder: TransactionBuilder, dsl: TestTransactionDSLInterpreter.() -> EnforceVerifyOrFail): WireTransaction
Creates and adds a transaction to the ledger. |
|
fun _tweak(dsl: LedgerDSLInterpreter<TestTransactionDSLInterpreter>.() -> Unit): Unit
Creates a local scoped copy of the ledger. |
|
fun _unverifiedTransaction(transactionLabel: String?, transactionBuilder: TransactionBuilder, dsl: TestTransactionDSLInterpreter.() -> Unit): WireTransaction
Creates and adds a transaction to the ledger that will not be verified by verifies. |
|
fun attachment(attachment: InputStream): SecureHash
Adds an attachment to the ledger. |
|
fun outputToLabel(state: ContractState): String? |
|
fun <S : ContractState> retrieveOutputStateAndRef(clazz: Class<S>, label: String): StateAndRef<S>
Retrieves an output previously defined by TransactionDSLInterpreter.output with a label passed in. |
|
fun transactionName(transactionHash: SecureHash): String? |
|
fun verifies(): EnforceVerifyOrFail
Verifies the ledger/transaction, throws if the verification fails. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |