Custom Cordapp
data class CustomCordapp(val packages: Set<String> = emptySet(), val name: String = "custom-cordapp", val versionId: Int = 1, val targetPlatformVersion: Int = PLATFORM_VERSION, val classes: Set<Class<*>> = emptySet(), val fixups: List<<Error class: unknown class>> = emptyList(), val signingInfo: CustomCordapp.SigningInfo? = null, val config: Map<String, Any> = emptyMap()) : TestCordappInternal
Represents a completely custom CorDapp comprising of resources taken from packages on the existing classpath, even including individual disparate classes. The CorDapp metadata that's present in the MANIFEST can also be tailored.
Constructors
Link copied to clipboard
constructor(packages: Set<String> = emptySet(), name: String = "custom-cordapp", versionId: Int = 1, targetPlatformVersion: Int = PLATFORM_VERSION, classes: Set<Class<*>> = emptySet(), fixups: List<<Error class: unknown class>> = emptyList(), signingInfo: CustomCordapp.SigningInfo? = null, config: Map<String, Any> = emptyMap())
Functions
Link copied to clipboard
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
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.