data class TestTransactionDSLInterpreter : TransactionDSLInterpreter, OutputStateLookup
This interpreter builds a transaction, and TransactionDSL.verifies that the resolved transaction is correct. Note that transactions corresponding to input states are not verified. Use LedgerDSL.verifies for that.
TestTransactionDSLInterpreter(ledgerInterpreter: TestLedgerDSLInterpreter, transactionBuilder: TransactionBuilder) |
val ledgerInterpreter: TestLedgerDSLInterpreter
A reference to the enclosing ledger{..}'s interpreter. |
|
val services: ServicesForResolution |
|
val transactionBuilder: TransactionBuilder |
fun _attachment(contractClassName: ContractClassName): Unit fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit
Attaches an attachment containing the named contract to the transaction fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit
Attaches an attachment containing the named contract to the transaction. |
|
fun _tweak(dsl: TransactionDSLInterpreter.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
Creates a local scoped copy of the transaction. |
|
fun attachment(attachmentId: SecureHash): Unit
Adds an Attachment reference to the transaction. |
|
fun command(signers: List<PublicKey>, commandData: CommandData): Unit
Adds a command to the transaction. |
|
fun input(stateRef: StateRef): Unit
Adds an input reference to the transaction. Note that verifies will resolve this reference. |
|
fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState): Unit
Adds an output to the transaction. |
|
fun reference(stateRef: StateRef): Unit
Add a reference input state to the transaction. Note that verifies will resolve this reference. |
|
fun timeWindow(data: TimeWindow): Unit
Sets the time-window of the transaction. |
|
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. |