mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
universal: added split command
This commit is contained in:
parent
66692542bd
commit
607fd67519
@ -29,6 +29,10 @@ class UniversalContract : Contract {
|
||||
|
||||
// must be signed by all liable parties present in contract
|
||||
class Issue : TypeOnlyCommandData(), Commands
|
||||
|
||||
// Split contract in two, ratio must be positive and less than one.
|
||||
// todo: Who should sign this?
|
||||
class Split(val ratio: BigDecimal) : Commands
|
||||
}
|
||||
|
||||
fun eval(@Suppress("UNUSED_PARAMETER") tx: TransactionForContract, expr: Perceivable<Instant>): Instant? = when (expr) {
|
||||
|
Loading…
Reference in New Issue
Block a user