UriTestCordapp

data class UriTestCordapp(val uri: URI, val config: Map<String, Any> = emptyMap(), val signed: Boolean = false) : TestCordappInternal

Constructors

Link copied to clipboard
constructor(uri: URI, config: Map<String, Any> = emptyMap(), signed: Boolean = false)

Properties

Link copied to clipboard
open override val config: Map<String, Any>

Returns the config for on this CorDapp, defaults to empty if not specified.

Link copied to clipboard
open override val jarFile: Path

The jar file this CorDapp represents. Different CorDapps may point to the same file.

Link copied to clipboard
val signed: Boolean = false
Link copied to clipboard
val uri: URI

Functions

Link copied to clipboard
open override fun asSigned(): TestCordapp

Returns a copy of this TestCordapp signed with a development signing key. The same signing key will be used for all signed TestCordapps. If the CorDapp jar is already signed, then the new jar created will its signing key replaced by the development key.

Link copied to clipboard
open override fun withConfig(config: Map<String, Any>): TestCordapp

Returns a copy of this TestCordapp but with the specified CorDapp config.

Link copied to clipboard

Return a copy of this TestCordappInternal but without any metadata, such as configs and signing information.