data class TestTransactionDSLInterpreter : TransactionDSLInterpreter, OutputStateLookupThis 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.
| <init> |
TestTransactionDSLInterpreter(ledgerInterpreter: TestLedgerDSLInterpreter, transactionBuilder: TransactionBuilder) |
| ledgerInterpreter |
val ledgerInterpreter: TestLedgerDSLInterpreterA reference to the enclosing ledger{..}s interpreter. |
| services |
val services: ServiceHub |
| transactionBuilder |
val transactionBuilder: TransactionBuilder |
| _command |
fun _command(signers: List<PublicKey>, commandData: CommandData): UnitAdds a command to the transaction. |
| _output |
fun _output(label: String?, notary: Party, contractState: ContractState): UnitAdds an output to the transaction. |
| attachment |
fun attachment(attachmentId: SecureHash): UnitAdds an Attachment reference to the transaction. |
| input |
fun input(stateRef: StateRef): UnitAdds an input reference to the transaction. Note that verifies will resolve this reference. |
| timestamp |
fun timestamp(data: Timestamp): UnitAdds a timestamp to the transaction. |
| tweak |
fun tweak(dsl: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): EnforceVerifyOrFailCreates a local scoped copy of the transaction. |
| verifies |
fun verifies(): EnforceVerifyOrFailVerifies the ledger/transaction, throws if the verification fails. |
| ledger |
fun TransactionDSLInterpreter.Here follows implementations of the LedgerDSLInterpreter and TransactionDSLInterpreter interfaces to be used in tests. Top level primitives ledger and transaction that bind the interpreter types are also defined here. |
| transaction |
fun TransactionDSLInterpreter. |