LedgerDSLInterpreter

This interface defines the bare bone functionality that a Ledger DSL interpreter should implement.

TODO (Kotlin 1.1): Use type synonyms to make the type params less unwieldy

Inheritors

Functions

Link copied to clipboard
abstract fun _transaction(transactionLabel: String?, transactionBuilder: <Error class: unknown class>, dsl: T.() -> EnforceVerifyOrFail): <Error class: unknown class>

Creates and adds a transaction to the ledger.

Link copied to clipboard
abstract fun _tweak(dsl: LedgerDSLInterpreter<T>.() -> Unit)

Creates a local scoped copy of the ledger.

Link copied to clipboard
abstract fun _unverifiedTransaction(transactionLabel: String?, transactionBuilder: <Error class: unknown class>, dsl: T.() -> Unit): <Error class: unknown class>

Creates and adds a transaction to the ledger that will not be verified by verifies.

Link copied to clipboard
abstract fun attachment(attachment: InputStream): <Error class: unknown class>

Adds an attachment to the ledger.

Link copied to clipboard

Asserts that verifies throws, with no condition on the exception message.

Link copied to clipboard
open infix fun fails with(msg: String): EnforceVerifyOrFail
Link copied to clipboard
open fun failsWith(expectedMessage: String?): EnforceVerifyOrFail

Asserts that verifies() throws.

Link copied to clipboard
abstract fun <S> retrieveOutputStateAndRef(clazz: Class<S>, label: String): <Error class: unknown class><S>

Retrieves an output previously defined by TransactionDSLInterpreter.output with a label passed in.

Link copied to clipboard

Verifies the ledger/transaction, throws if the verification fails.