mirror of
https://github.com/corda/corda.git
synced 2024-12-30 17:57:02 +00:00
Merged in mnesbit-cor-174-reorganise-for-bank-developers (pull request #89)
A proposal for how to restructure the gradle modules and namespaces to better support bank demos
This commit is contained in:
commit
bfeb768f2d
3
.idea/modules.xml
generated
3
.idea/modules.xml
generated
@ -11,6 +11,9 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated.iml" filepath="$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated.iml" group="contracts/isolated" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated_main.iml" filepath="$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated_main.iml" group="contracts/isolated" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated_test.iml" filepath="$PROJECT_DIR$/.idea/modules/contracts/isolated/isolated_test.iml" group="contracts/isolated" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/node/node.iml" filepath="$PROJECT_DIR$/.idea/modules/node/node.iml" group="node" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/node/node_main.iml" filepath="$PROJECT_DIR$/.idea/modules/node/node_main.iml" group="node" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/node/node_test.iml" filepath="$PROJECT_DIR$/.idea/modules/node/node_test.iml" group="node" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/r3prototyping.iml" filepath="$PROJECT_DIR$/.idea/modules/r3prototyping.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/r3prototyping_main.iml" filepath="$PROJECT_DIR$/.idea/modules/r3prototyping_main.iml" group="r3prototyping" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/r3prototyping_test.iml" filepath="$PROJECT_DIR$/.idea/modules/r3prototyping_test.iml" group="r3prototyping" />
|
||||
|
61
build.gradle
61
build.gradle
@ -51,73 +51,16 @@ configurations {
|
||||
// build/reports/project/dependencies/index.html for green highlighted parts of the tree.
|
||||
|
||||
dependencies {
|
||||
compile project(':contracts')
|
||||
|
||||
compile "com.google.code.findbugs:jsr305:3.0.1"
|
||||
compile "org.slf4j:slf4j-jdk14:1.7.13"
|
||||
compile project(':node')
|
||||
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
||||
compile "org.jetbrains.kotlinx:kotlinx-support-jdk8:0.1"
|
||||
|
||||
compile "com.google.guava:guava:19.0"
|
||||
|
||||
// JOpt: for command line flags.
|
||||
compile "net.sf.jopt-simple:jopt-simple:4.9"
|
||||
|
||||
// Quasar: for the bytecode rewriting for state machines.
|
||||
quasar "co.paralleluniverse:quasar-core:${quasar_version}:jdk8@jar"
|
||||
|
||||
// Artemis: for reliable p2p message queues.
|
||||
compile "org.apache.activemq:artemis-server:${artemis_version}"
|
||||
compile "org.apache.activemq:artemis-core-client:${artemis_version}"
|
||||
|
||||
// JAnsi: for drawing things to the terminal in nicely coloured ways.
|
||||
compile "org.fusesource.jansi:jansi:1.11"
|
||||
|
||||
// GraphStream: For visualisation
|
||||
compile "org.graphstream:gs-core:1.3"
|
||||
compile "org.graphstream:gs-ui:1.3"
|
||||
compile("com.intellij:forms_rt:7.0.3") {
|
||||
exclude group: "asm"
|
||||
}
|
||||
|
||||
// Force commons logging to version 1.2 to override Artemis, which pulls in 1.1.3 (ARTEMIS-424)
|
||||
compile "commons-logging:commons-logging:1.2"
|
||||
|
||||
// Web stuff: for HTTP[S] servlets
|
||||
compile "org.eclipse.jetty:jetty-servlet:${jetty_version}"
|
||||
compile "org.eclipse.jetty:jetty-webapp:${jetty_version}"
|
||||
compile "javax.servlet:javax.servlet-api:3.1.0"
|
||||
compile "org.jolokia:jolokia-agent-war:${jolokia_version}"
|
||||
compile "commons-fileupload:commons-fileupload:1.3.1"
|
||||
|
||||
// Jersey for JAX-RS implementation for use in Jetty
|
||||
compile "org.glassfish.jersey.core:jersey-server:${jersey_version}"
|
||||
compile "org.glassfish.jersey.containers:jersey-container-servlet-core:${jersey_version}"
|
||||
compile "org.glassfish.jersey.containers:jersey-container-jetty-http:${jersey_version}"
|
||||
// NOTE there is a Jackson version clash between jersey-media-json-jackson (v2.5.4) and jackson-module-kotlin (v.2.5.5)
|
||||
// Have not found an Issue in the issue tracker for Jersey for this issue
|
||||
compile ("org.glassfish.jersey.media:jersey-media-json-jackson:${jersey_version}") {
|
||||
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
|
||||
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
|
||||
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
|
||||
}
|
||||
compile ("com.fasterxml.jackson.module:jackson-module-kotlin:2.5.5-2") {
|
||||
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
|
||||
}
|
||||
compile "com.fasterxml.jackson.core:jackson-annotations:2.5.5"
|
||||
|
||||
// Coda Hale's Metrics: for monitoring of key statistics
|
||||
compile "io.dropwizard.metrics:metrics-core:3.1.2"
|
||||
|
||||
// JimFS: in memory java.nio filesystem. Used for test and simulation utilities.
|
||||
compile "com.google.jimfs:jimfs:1.1"
|
||||
|
||||
// TypeSafe Config: for simple and human friendly config files.
|
||||
compile "com.typesafe:config:1.3.0"
|
||||
|
||||
// Unit testing helpers.
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'org.assertj:assertj-core:3.4.1'
|
||||
@ -178,7 +121,7 @@ tasks.withType(CreateStartScripts)
|
||||
// TODO: Make this task incremental, as it can be quite slow.
|
||||
|
||||
//noinspection GroovyAssignabilityCheck
|
||||
task quasarScan(dependsOn: ['classes', 'core:classes', 'contracts:classes']) << {
|
||||
task quasarScan(dependsOn: ['classes', 'core:classes', 'contracts:classes', 'node:classes']) << {
|
||||
ant.taskdef(name:'scanSuspendables', classname:'co.paralleluniverse.fibers.instrument.SuspendablesScanner',
|
||||
classpath: "${sourceSets.main.output.classesDir}:${sourceSets.main.output.resourcesDir}:${configurations.runtime.asPath}")
|
||||
delete "$sourceSets.main.output.resourcesDir/META-INF/suspendables", "$sourceSets.main.output.resourcesDir/META-INF/suspendable-supers"
|
||||
|
@ -9,6 +9,8 @@
|
||||
package contracts.isolated
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
|
||||
// The dummy contract doesn't do anything useful. It exists for testing purposes.
|
||||
@ -36,6 +38,6 @@ class AnotherDummyContract : Contract, core.node.DummyContractBackdoor {
|
||||
return TransactionBuilder().withItems(state, Command(Commands.Create(), owner.party.owningKey))
|
||||
}
|
||||
|
||||
override fun inspectState(state: core.ContractState): Int = (state as State).magicNumber
|
||||
override fun inspectState(state: ContractState): Int = (state as State).magicNumber
|
||||
|
||||
}
|
@ -1,7 +1,12 @@
|
||||
package core.node
|
||||
|
||||
interface DummyContractBackdoor {
|
||||
fun generateInitial(owner: core.PartyAndReference, magicNumber: Int, notary: core.Party): core.TransactionBuilder
|
||||
import core.contracts.ContractState
|
||||
import core.crypto.Party
|
||||
import core.contracts.PartyAndReference
|
||||
import core.contracts.TransactionBuilder
|
||||
|
||||
fun inspectState(state: core.ContractState): Int
|
||||
interface DummyContractBackdoor {
|
||||
fun generateInitial(owner: PartyAndReference, magicNumber: Int, notary: Party): TransactionBuilder
|
||||
|
||||
fun inspectState(state: ContractState): Int
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
package contracts;
|
||||
|
||||
import core.*;
|
||||
import core.contracts.Amount;
|
||||
import core.contracts.ContractState;
|
||||
import core.contracts.PartyAndReference;
|
||||
|
||||
import java.security.*;
|
||||
import java.time.*;
|
||||
|
@ -1,8 +1,9 @@
|
||||
package contracts;
|
||||
|
||||
import core.*;
|
||||
import core.TransactionForVerification.InOutGroup;
|
||||
import core.contracts.TransactionForVerification.InOutGroup;
|
||||
import core.contracts.*;
|
||||
import core.crypto.NullPublicKey;
|
||||
import core.crypto.Party;
|
||||
import core.crypto.SecureHash;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@ -11,7 +12,7 @@ import java.security.PublicKey;
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
import static core.ContractsDSLKt.requireSingleCommand;
|
||||
import static core.contracts.ContractsDSLKt.requireSingleCommand;
|
||||
import static kotlin.collections.CollectionsKt.single;
|
||||
|
||||
|
||||
@ -119,7 +120,7 @@ public class JavaCommercialPaper implements Contract {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Commands implements core.CommandData {
|
||||
public static class Commands implements CommandData {
|
||||
public static class Move extends Commands {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
|
@ -3,6 +3,8 @@ package contracts
|
||||
import contracts.cash.CashIssuanceDefinition
|
||||
import contracts.cash.CommonCashState
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.toStringShort
|
||||
import core.utilities.Emoji
|
||||
@ -185,7 +187,7 @@ class Cash : Contract {
|
||||
*/
|
||||
@Throws(InsufficientBalanceException::class)
|
||||
fun generateSpend(tx: TransactionBuilder, amount: Amount, to: PublicKey,
|
||||
cashStates: List<StateAndRef<Cash.State>>, onlyFromParties: Set<Party>? = null): List<PublicKey> {
|
||||
cashStates: List<StateAndRef<State>>, onlyFromParties: Set<Party>? = null): List<PublicKey> {
|
||||
// Discussion
|
||||
//
|
||||
// This code is analogous to the Wallet.send() set of methods in bitcoinj, and has the same general outline.
|
||||
@ -215,7 +217,7 @@ class Cash : Contract {
|
||||
ofCurrency
|
||||
}
|
||||
|
||||
val gathered = arrayListOf<StateAndRef<Cash.State>>()
|
||||
val gathered = arrayListOf<StateAndRef<State>>()
|
||||
var gatheredAmount = Amount(0, currency)
|
||||
for (c in acceptableCoins) {
|
||||
if (gatheredAmount >= amount) break
|
||||
|
@ -1,7 +1,9 @@
|
||||
package contracts
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.NullPublicKey
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.toStringShort
|
||||
import core.utilities.Emoji
|
||||
|
@ -1,6 +1,8 @@
|
||||
package contracts
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import java.security.PublicKey
|
||||
import java.time.Instant
|
||||
@ -80,7 +82,7 @@ class CrowdFund : Contract {
|
||||
when (command.value) {
|
||||
is Commands.Register -> {
|
||||
requireThat {
|
||||
"there is no input state" by tx.inStates.filterIsInstance<CrowdFund.State>().isEmpty()
|
||||
"there is no input state" by tx.inStates.filterIsInstance<State>().isEmpty()
|
||||
"the transaction is signed by the owner of the crowdsourcing" by (command.signers.contains(outputCrowdFund.campaign.owner))
|
||||
"the output registration is empty of pledges" by (outputCrowdFund.pledges.isEmpty())
|
||||
"the output registration has a non-zero target" by (outputCrowdFund.campaign.target.pennies > 0)
|
||||
|
@ -1,6 +1,8 @@
|
||||
package contracts
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
|
||||
// The dummy contract doesn't do anything useful. It exists for testing purposes.
|
||||
|
@ -1,6 +1,8 @@
|
||||
package contracts
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import org.apache.commons.jexl3.JexlBuilder
|
||||
import org.apache.commons.jexl3.MapContext
|
||||
@ -503,8 +505,8 @@ class InterestRateSwap() : Contract {
|
||||
"There are no in states for an agreement" by inputs.isEmpty()
|
||||
"There are events in the fix schedule" by (irs.calculation.fixedLegPaymentSchedule.size > 0)
|
||||
"There are events in the float schedule" by (irs.calculation.floatingLegPaymentSchedule.size > 0)
|
||||
"All notionals must be non zero" by ( irs.fixedLeg.notional.pennies > 0 && irs.floatingLeg.notional.pennies > 0)
|
||||
"The fixed leg rate must be positive" by ( irs.fixedLeg.fixedRate.isPositive() )
|
||||
"All notionals must be non zero" by (irs.fixedLeg.notional.pennies > 0 && irs.floatingLeg.notional.pennies > 0)
|
||||
"The fixed leg rate must be positive" by (irs.fixedLeg.fixedRate.isPositive())
|
||||
"The currency of the notionals must be the same" by (irs.fixedLeg.notional.currency == irs.floatingLeg.notional.currency)
|
||||
"All leg notionals must be the same" by (irs.fixedLeg.notional == irs.floatingLeg.notional)
|
||||
|
||||
@ -539,7 +541,7 @@ class InterestRateSwap() : Contract {
|
||||
val fixValue = fixCommand.value
|
||||
// Need to check that everything is the same apart from the new fixed rate entry.
|
||||
requireThat {
|
||||
"The fixed leg parties are constant" by ( irs.fixedLeg.fixedRatePayer == prevIrs.fixedLeg.fixedRatePayer) // Although superseded by the below test, this is included for a regression issue
|
||||
"The fixed leg parties are constant" by (irs.fixedLeg.fixedRatePayer == prevIrs.fixedLeg.fixedRatePayer) // Although superseded by the below test, this is included for a regression issue
|
||||
"The fixed leg is constant" by (irs.fixedLeg == prevIrs.fixedLeg)
|
||||
"The floating leg is constant" by (irs.floatingLeg == prevIrs.floatingLeg)
|
||||
"The common values are constant" by (irs.common == prevIrs.common)
|
||||
@ -548,7 +550,7 @@ class InterestRateSwap() : Contract {
|
||||
"There is only one changed payment in the floating leg" by (paymentDifferences.size == 1)
|
||||
"There changed payment is a floating payment" by (oldFloatingRatePaymentEvent.rate is ReferenceRate)
|
||||
"The new payment is a fixed payment" by (newFixedRatePaymentEvent.rate is FixedRate)
|
||||
"The changed payments dates are aligned" by ( oldFloatingRatePaymentEvent.date == newFixedRatePaymentEvent.date)
|
||||
"The changed payments dates are aligned" by (oldFloatingRatePaymentEvent.date == newFixedRatePaymentEvent.date)
|
||||
"The new payment has the correct rate" by (newFixedRatePaymentEvent.rate.ratioUnit!!.value == fixValue.value)
|
||||
"The fixing is for the next required date" by (prevIrs.calculation.nextFixingDate() == fixValue.of.forDay)
|
||||
"The fix payment has the same currency as the notional" by (newFixedRatePaymentEvent.flow.currency == irs.floatingLeg.notional.currency)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package contracts
|
||||
|
||||
import core.Amount
|
||||
import core.Tenor
|
||||
import core.contracts.Amount
|
||||
import core.contracts.Tenor
|
||||
import java.math.BigDecimal
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package contracts.cash
|
||||
|
||||
import core.IssuanceDefinition
|
||||
import core.PartyAndReference
|
||||
import core.contracts.IssuanceDefinition
|
||||
import core.contracts.PartyAndReference
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,8 @@
|
||||
package contracts.cash
|
||||
|
||||
import core.Amount
|
||||
import core.OwnableState
|
||||
import core.PartyAndReference
|
||||
import core.contracts.Amount
|
||||
import core.contracts.OwnableState
|
||||
import core.contracts.PartyAndReference
|
||||
|
||||
/**
|
||||
* Common elements of cash contract states.
|
||||
|
@ -1,5 +1,7 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.*
|
||||
import core.crypto.Party
|
||||
import java.security.PublicKey
|
||||
import java.util.*
|
||||
|
@ -1,4 +1,4 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator
|
||||
import com.fasterxml.jackson.core.JsonParser
|
||||
@ -8,6 +8,7 @@ import com.fasterxml.jackson.databind.JsonSerializer
|
||||
import com.fasterxml.jackson.databind.SerializerProvider
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize
|
||||
import core.contracts.CommandData
|
||||
import java.math.BigDecimal
|
||||
import java.time.DayOfWeek
|
||||
import java.time.LocalDate
|
||||
@ -304,7 +305,7 @@ open class BusinessCalendar private constructor(val calendars: Array<out String>
|
||||
/** Calculates an event schedule that moves events around to ensure they fall on working days. */
|
||||
fun createGenericSchedule(startDate: LocalDate,
|
||||
period: Frequency,
|
||||
calendar: BusinessCalendar = BusinessCalendar.getInstance(),
|
||||
calendar: BusinessCalendar = getInstance(),
|
||||
dateRollConvention: DateRollConvention = DateRollConvention.Following,
|
||||
noOfAdditionalPeriods: Int = Integer.MAX_VALUE,
|
||||
endDate: LocalDate? = null,
|
@ -1,5 +1,10 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.contracts.TransactionBuilder
|
||||
import core.contracts.TransactionForVerification
|
||||
import core.contracts.Fix
|
||||
import core.contracts.FixOf
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.toStringShort
|
||||
import core.serialization.OpaqueBytes
|
||||
@ -126,14 +131,6 @@ inline fun <reified T : ContractState> List<StateAndRef<ContractState>>.filterSt
|
||||
return mapNotNull { if (it.state is T) StateAndRef(it.state, it.ref) else null }
|
||||
}
|
||||
|
||||
/** A [Party] is well known (name, pubkey) pair. In a real system this would probably be an X.509 certificate. */
|
||||
data class Party(val name: String, val owningKey: PublicKey) {
|
||||
override fun toString() = name
|
||||
|
||||
fun ref(bytes: OpaqueBytes) = PartyAndReference(this, bytes)
|
||||
fun ref(vararg bytes: Byte) = ref(OpaqueBytes.of(*bytes))
|
||||
}
|
||||
|
||||
/**
|
||||
* Reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal
|
||||
* ledger. The reference is intended to be encrypted so it's meaningless to anyone other than the party.
|
@ -1,6 +1,10 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.contracts.SignedTransaction
|
||||
import core.contracts.WireTransaction
|
||||
import core.contracts.*
|
||||
import core.crypto.DigitalSignature
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.signWithECDSA
|
||||
import core.serialization.serialize
|
@ -1,5 +1,8 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.contracts.SignedTransaction
|
||||
import core.contracts.WireTransaction
|
||||
import core.contracts.CommandData
|
||||
import core.crypto.SecureHash
|
||||
import java.util.*
|
||||
import java.util.concurrent.Callable
|
@ -1,5 +1,9 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.contracts.AuthenticatedObject
|
||||
import core.contracts.LedgerTransaction
|
||||
import core.contracts.SignedTransaction
|
||||
import core.contracts.WireTransaction
|
||||
import core.node.services.AttachmentStorage
|
||||
import core.node.services.IdentityService
|
||||
import java.io.FileNotFoundException
|
@ -1,5 +1,7 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import java.util.*
|
||||
|
@ -1,9 +1,11 @@
|
||||
package core
|
||||
package core.contracts
|
||||
|
||||
import com.esotericsoftware.kryo.Kryo
|
||||
import core.contracts.*
|
||||
import core.crypto.DigitalSignature
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.toStringShort
|
||||
import core.indexOfOrThrow
|
||||
import core.serialization.SerializedBytes
|
||||
import core.serialization.THREAD_LOCAL_KRYO
|
||||
import core.serialization.deserialize
|
@ -1,7 +1,7 @@
|
||||
package core.crypto
|
||||
|
||||
import com.google.common.io.BaseEncoding
|
||||
import core.Party
|
||||
import core.crypto.Party
|
||||
import core.serialization.OpaqueBytes
|
||||
import core.serialization.SerializedBytes
|
||||
import core.serialization.deserialize
|
||||
|
16
core/src/main/kotlin/core/crypto/Party.kt
Normal file
16
core/src/main/kotlin/core/crypto/Party.kt
Normal file
@ -0,0 +1,16 @@
|
||||
package core.crypto
|
||||
|
||||
import core.contracts.PartyAndReference
|
||||
import core.serialization.OpaqueBytes
|
||||
import java.security.PublicKey
|
||||
|
||||
/**
|
||||
* Created by matth on 14/05/2016.
|
||||
*/
|
||||
/** A [Party] is well known (name, pubkey) pair. In a real system this would probably be an X.509 certificate. */
|
||||
data class Party(val name: String, val owningKey: PublicKey) {
|
||||
override fun toString() = name
|
||||
|
||||
fun ref(bytes: OpaqueBytes) = PartyAndReference(this, bytes)
|
||||
fun ref(vararg bytes: Byte) = ref(OpaqueBytes.of(*bytes))
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
package core.node
|
||||
|
||||
import core.Attachment
|
||||
import core.contracts.Attachment
|
||||
import core.crypto.SecureHash
|
||||
import java.io.ByteArrayInputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
|
@ -1,6 +1,6 @@
|
||||
package core.node
|
||||
|
||||
import core.Party
|
||||
import core.crypto.Party
|
||||
import core.messaging.SingleMessageRecipient
|
||||
import core.node.services.ServiceType
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
package core.node
|
||||
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.SecureHash
|
||||
import core.messaging.MessagingService
|
||||
import core.node.services.IdentityService
|
||||
|
@ -1,6 +1,6 @@
|
||||
package core.node.services
|
||||
|
||||
import core.Attachment
|
||||
import core.contracts.Attachment
|
||||
import core.crypto.SecureHash
|
||||
import java.io.InputStream
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package core.node.services
|
||||
|
||||
import core.Party
|
||||
import core.crypto.Party
|
||||
import java.security.PublicKey
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,8 @@
|
||||
package core.node.services
|
||||
|
||||
import core.Party
|
||||
import core.StateRef
|
||||
import core.WireTransaction
|
||||
import core.crypto.Party
|
||||
import core.contracts.StateRef
|
||||
import core.contracts.WireTransaction
|
||||
import core.crypto.SecureHash
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,8 @@
|
||||
package core.node.subsystems
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture
|
||||
import core.Contract
|
||||
import core.Party
|
||||
import core.contracts.Contract
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.messaging.MessagingService
|
||||
import core.node.NodeInfo
|
||||
|
@ -2,6 +2,8 @@ package core.node.subsystems
|
||||
|
||||
import com.codahale.metrics.MetricRegistry
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.Party
|
||||
import core.crypto.SecureHash
|
||||
import core.node.services.AttachmentStorage
|
||||
import core.node.storage.CheckpointStorage
|
||||
|
@ -9,6 +9,7 @@ import com.esotericsoftware.kryo.io.Input
|
||||
import com.esotericsoftware.kryo.io.Output
|
||||
import com.esotericsoftware.kryo.serializers.JavaSerializer
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.generateKeyPair
|
||||
import core.crypto.sha256
|
||||
|
@ -1,6 +1,6 @@
|
||||
package protocols
|
||||
|
||||
import core.Attachment
|
||||
import core.contracts.Attachment
|
||||
import core.crypto.SecureHash
|
||||
import core.crypto.sha256
|
||||
import core.messaging.SingleMessageRecipient
|
||||
|
@ -1,7 +1,7 @@
|
||||
package protocols
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
import core.NamedByHash
|
||||
import core.contracts.NamedByHash
|
||||
import core.crypto.SecureHash
|
||||
import core.messaging.SingleMessageRecipient
|
||||
import core.protocols.ProtocolLogic
|
||||
|
@ -1,6 +1,6 @@
|
||||
package protocols
|
||||
|
||||
import core.SignedTransaction
|
||||
import core.contracts.SignedTransaction
|
||||
import core.crypto.SecureHash
|
||||
import core.messaging.SingleMessageRecipient
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package protocols
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
import core.Party
|
||||
import core.TimestampCommand
|
||||
import core.WireTransaction
|
||||
import core.crypto.Party
|
||||
import core.contracts.TimestampCommand
|
||||
import core.contracts.WireTransaction
|
||||
import core.crypto.DigitalSignature
|
||||
import core.crypto.SignedData
|
||||
import core.messaging.SingleMessageRecipient
|
||||
|
@ -2,6 +2,10 @@ package protocols
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
import core.*
|
||||
import core.contracts.Fix
|
||||
import core.contracts.FixOf
|
||||
import core.contracts.TransactionBuilder
|
||||
import core.contracts.WireTransaction
|
||||
import core.crypto.DigitalSignature
|
||||
import core.messaging.SingleMessageRecipient
|
||||
import core.node.NodeInfo
|
||||
|
@ -2,6 +2,7 @@ package protocols
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.SecureHash
|
||||
import core.messaging.SingleMessageRecipient
|
||||
import core.protocols.ProtocolLogic
|
||||
|
@ -2,7 +2,9 @@ package protocols
|
||||
|
||||
import co.paralleluniverse.fibers.Suspendable
|
||||
import core.*
|
||||
import core.contracts.*
|
||||
import core.crypto.DigitalSignature
|
||||
import core.crypto.Party
|
||||
import core.crypto.signWithECDSA
|
||||
import core.messaging.SingleMessageRecipient
|
||||
import core.node.NodeInfo
|
||||
|
@ -1,5 +1,6 @@
|
||||
package core
|
||||
|
||||
import core.contracts.*
|
||||
import org.junit.Test
|
||||
import java.time.LocalDate
|
||||
import java.util.*
|
||||
|
@ -200,7 +200,7 @@ Let's define a few commands now:
|
||||
|
||||
.. sourcecode:: java
|
||||
|
||||
public static class Commands implements core.Command {
|
||||
public static class Commands implements core.contract.Command {
|
||||
public static class Move extends Commands {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
|
84
docs/build/html/api/alltypes/index.html
vendored
84
docs/build/html/api/alltypes/index.html
vendored
@ -61,7 +61,7 @@ fields such as replyTo and replyToTopic.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-accrual-adjustment/index.html">core.AccrualAdjustment</a></td>
|
||||
<a href="../core/-accrual-adjustment/index.html">core.contracts.AccrualAdjustment</a></td>
|
||||
<td>
|
||||
<p>Simple enum for returning accurals adjusted or unadjusted.
|
||||
We dont actually do anything with this yet though, so its ignored for now.</p>
|
||||
@ -91,7 +91,7 @@ for ensuring code runs on the right thread, and also for unit testing.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-amount/index.html">core.Amount</a></td>
|
||||
<a href="../core/-amount/index.html">core.contracts.Amount</a></td>
|
||||
<td>
|
||||
<p>Amount represents a positive quantity of currency, measured in pennies, which are the smallest representable units.</p>
|
||||
</td>
|
||||
@ -108,7 +108,7 @@ as well.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-attachment/index.html">core.Attachment</a></td>
|
||||
<a href="../core/-attachment/index.html">core.contracts.Attachment</a></td>
|
||||
<td>
|
||||
<p>An attachment is a ZIP (or an optionally signed JAR) that contains one or more files. Attachments are meant to
|
||||
contain public static data which can be referenced from transactions and utilised from contracts. Good examples
|
||||
@ -142,7 +142,7 @@ file paths.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-authenticated-object/index.html">core.AuthenticatedObject</a></td>
|
||||
<a href="../core/-authenticated-object/index.html">core.contracts.AuthenticatedObject</a></td>
|
||||
<td>
|
||||
<p>Wraps an object that was signed by a public key, which may be a well known/recognised institutional key.</p>
|
||||
</td>
|
||||
@ -164,7 +164,7 @@ API call from a single party without bi-directional access to the database of of
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-business-calendar/index.html">core.BusinessCalendar</a></td>
|
||||
<a href="../core/-business-calendar/index.html">core.contracts.BusinessCalendar</a></td>
|
||||
<td>
|
||||
<p>A business calendar performs date calculations that take into account national holidays and weekends. This is a
|
||||
typical feature of financial contracts, in which a business may not want a payment event to fall on a day when
|
||||
@ -215,14 +215,14 @@ the same transaction.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-command/index.html">core.Command</a></td>
|
||||
<a href="../core/-command/index.html">core.contracts.Command</a></td>
|
||||
<td>
|
||||
<p>Command data/content plus pubkey pair: the signature is stored at the end of the serialized bytes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-command-data.html">core.CommandData</a></td>
|
||||
<a href="../core/-command-data.html">core.contracts.CommandData</a></td>
|
||||
<td>
|
||||
<p>Marker interface for classes that represent commands</p>
|
||||
</td>
|
||||
@ -249,7 +249,7 @@ and to organise serializers / deserializers for java.time.* classes as necessary
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-contract/index.html">core.Contract</a></td>
|
||||
<a href="../core/-contract/index.html">core.contracts.Contract</a></td>
|
||||
<td>
|
||||
<p>Implemented by a program that implements business logic on the shared ledger. All participants run this code for
|
||||
every <a href="../core/-ledger-transaction/index.html">LedgerTransaction</a> they see on the network, for every input and output state. All contracts must accept the
|
||||
@ -278,7 +278,7 @@ timestamp attached to the transaction itself i.e. it is NOT necessarily the curr
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-contract-state/index.html">core.ContractState</a></td>
|
||||
<a href="../core/-contract-state/index.html">core.contracts.ContractState</a></td>
|
||||
<td>
|
||||
<p>A contract state (or just "state") contains opaque data used by a contract program. It can be thought of as a disk
|
||||
file that the program can use to persist data across transactions. States are immutable: once created they are never
|
||||
@ -318,7 +318,7 @@ glue that sits between the network layer and the database layer.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-date-offset/index.html">core.DateOffset</a></td>
|
||||
<a href="../core/-date-offset/index.html">core.contracts.DateOffset</a></td>
|
||||
<td>
|
||||
<p>Date offset that the fixing is done prior to the accrual start date.
|
||||
Currently not used in the calculation.</p>
|
||||
@ -326,7 +326,7 @@ Currently not used in the calculation.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-date-roll-convention/index.html">core.DateRollConvention</a></td>
|
||||
<a href="../core/-date-roll-convention/index.html">core.contracts.DateRollConvention</a></td>
|
||||
<td>
|
||||
<p>This reflects what happens if a date on which a business event is supposed to happen actually falls upon a non-working day
|
||||
Depending on the accounting requirement, we can move forward until we get to a business day, or backwards
|
||||
@ -335,7 +335,7 @@ There are some additional rules which are explained in the individual cases belo
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-date-roll-direction/index.html">core.DateRollDirection</a></td>
|
||||
<a href="../core/-date-roll-direction/index.html">core.contracts.DateRollDirection</a></td>
|
||||
<td>
|
||||
<p>This is utilised in the <a href="../core/-date-roll-convention/index.html">DateRollConvention</a> class to determine which way we should initially step when
|
||||
finding a business day</p>
|
||||
@ -343,7 +343,7 @@ finding a business day</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-day-count-basis-day/index.html">core.DayCountBasisDay</a></td>
|
||||
<a href="../core/-day-count-basis-day/index.html">core.contracts.DayCountBasisDay</a></td>
|
||||
<td>
|
||||
<p>This forms the day part of the "Day Count Basis" used for interest calculation.
|
||||
Note that the first character cannot be a number (enum naming constraints), so we drop that
|
||||
@ -352,7 +352,7 @@ in the toString lest some people get confused.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-day-count-basis-year/index.html">core.DayCountBasisYear</a></td>
|
||||
<a href="../core/-day-count-basis-year/index.html">core.contracts.DayCountBasisYear</a></td>
|
||||
<td>
|
||||
<p>This forms the year part of the "Day Count Basis" used for interest calculation.</p>
|
||||
</td>
|
||||
@ -434,20 +434,20 @@ building partially signed transactions.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-expression/index.html">core.Expression</a></td>
|
||||
<a href="../core/-expression/index.html">core.contracts.Expression</a></td>
|
||||
<td>
|
||||
<p>Represents a textual expression of e.g. a formula</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-expression-deserializer/index.html">core.ExpressionDeserializer</a></td>
|
||||
<a href="../core/-expression-deserializer/index.html">core.contracts.ExpressionDeserializer</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-expression-serializer/index.html">core.ExpressionSerializer</a></td>
|
||||
<a href="../core/-expression-serializer/index.html">core.contracts.ExpressionSerializer</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
@ -475,14 +475,14 @@ attachments are saved to local storage automatically.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-fix/index.html">core.Fix</a></td>
|
||||
<a href="../core/-fix/index.html">core.contracts.Fix</a></td>
|
||||
<td>
|
||||
<p>A <a href="../core/-fix/index.html">Fix</a> represents a named interest rate, on a given day, for a given duration. It can be embedded in a tx.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-fix-of/index.html">core.FixOf</a></td>
|
||||
<a href="../core/-fix-of/index.html">core.contracts.FixOf</a></td>
|
||||
<td>
|
||||
<p>A <a href="../core/-fix-of/index.html">FixOf</a> identifies the question side of a fix: what day, tenor and type of fix ("LIBOR", "EURIBOR" etc)</p>
|
||||
</td>
|
||||
@ -526,7 +526,7 @@ If the rate is null returns a zero payment. // TODO: Is this the desired behavio
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-frequency/index.html">core.Frequency</a></td>
|
||||
<a href="../core/-frequency/index.html">core.contracts.Frequency</a></td>
|
||||
<td>
|
||||
<p>Frequency at which an event occurs - the enumerator also casts to an integer specifying the number of times per year
|
||||
that would divide into (eg annually = 1, semiannual = 2, monthly = 12 etc).</p>
|
||||
@ -671,7 +671,7 @@ call out to a hardware security module that enforces various auditing and freque
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-ledger-transaction/index.html">core.LedgerTransaction</a></td>
|
||||
<a href="../core/-ledger-transaction/index.html">core.contracts.LedgerTransaction</a></td>
|
||||
<td>
|
||||
<p>A LedgerTransaction wraps the data needed to calculate one or more successor states from a set of input states.
|
||||
It is the first step after extraction from a WireTransaction. The signatures at this point have been lined up
|
||||
@ -687,7 +687,7 @@ with the commands from the wire, and verified/looked up.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-linear-state/index.html">core.LinearState</a></td>
|
||||
<a href="../core/-linear-state/index.html">core.contracts.LinearState</a></td>
|
||||
<td>
|
||||
<p>A state that evolves by superseding itself, all of which share the common "thread"</p>
|
||||
</td>
|
||||
@ -798,7 +798,7 @@ This is not an interface because it is too lightweight to bother mocking out.</p
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-named-by-hash/index.html">core.NamedByHash</a></td>
|
||||
<a href="../core/-named-by-hash/index.html">core.contracts.NamedByHash</a></td>
|
||||
<td>
|
||||
<p>Implemented by anything that can be named by a secure hash value (e.g. transactions, attachments).</p>
|
||||
</td>
|
||||
@ -918,20 +918,20 @@ functionality to Java, but it wont arrive for a few years yet</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-ownable-state/index.html">core.OwnableState</a></td>
|
||||
<a href="../core/-ownable-state/index.html">core.contracts.OwnableState</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-party/index.html">core.Party</a></td>
|
||||
<a href="../core/-party/index.html">core.crypto.Party</a></td>
|
||||
<td>
|
||||
<p>A <a href="../core/-party/index.html">Party</a> is well known (name, pubkey) pair. In a real system this would probably be an X.509 certificate.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-party-and-reference/index.html">core.PartyAndReference</a></td>
|
||||
<a href="../core/-party-and-reference/index.html">core.contracts.PartyAndReference</a></td>
|
||||
<td>
|
||||
<p>Reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal
|
||||
ledger. The reference is intended to be encrypted so its meaningless to anyone other than the party.</p>
|
||||
@ -952,7 +952,7 @@ ledger. The reference is intended to be encrypted so its meaningless to anyone o
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-payment-rule/index.html">core.PaymentRule</a></td>
|
||||
<a href="../core/-payment-rule/index.html">core.contracts.PaymentRule</a></td>
|
||||
<td>
|
||||
<p>Whether the payment should be made before the due date, or after it.</p>
|
||||
</td>
|
||||
@ -1110,7 +1110,7 @@ e.g. LIBOR 6M as of 17 March 2016. Hence it requires a source (name) and a value
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-requirements/index.html">core.Requirements</a></td>
|
||||
<a href="../core/-requirements/index.html">core.contracts.Requirements</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
@ -1180,7 +1180,7 @@ contained within.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-signed-transaction/index.html">core.SignedTransaction</a></td>
|
||||
<a href="../core/-signed-transaction/index.html">core.contracts.SignedTransaction</a></td>
|
||||
<td>
|
||||
<p>Container for a <a href="../core/-wire-transaction/index.html">WireTransaction</a> and attached signatures.</p>
|
||||
</td>
|
||||
@ -1215,7 +1215,7 @@ Points at which polynomial pieces connect are known as <emph>knots</emph>.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-state-and-ref/index.html">core.StateAndRef</a></td>
|
||||
<a href="../core/-state-and-ref/index.html">core.contracts.StateAndRef</a></td>
|
||||
<td>
|
||||
<p>A StateAndRef is simply a (state, ref) pair. For instance, a wallet (which holds available assets) contains these.</p>
|
||||
</td>
|
||||
@ -1230,7 +1230,7 @@ Each such object represents an instantiation of a (two-party) protocol that has
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-state-ref/index.html">core.StateRef</a></td>
|
||||
<a href="../core/-state-ref/index.html">core.contracts.StateRef</a></td>
|
||||
<td>
|
||||
<p>A stateref is a pointer (reference) to a state, this is an equivalent of an "outpoint" in Bitcoin. It records which
|
||||
transaction defined the state and where in that transaction it was.</p>
|
||||
@ -1278,7 +1278,7 @@ anything like that, this interface is only big enough to support the prototyping
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-tenor/index.html">core.Tenor</a></td>
|
||||
<a href="../core/-tenor/index.html">core.contracts.Tenor</a></td>
|
||||
<td>
|
||||
<p>Placeholder class for the Tenor datatype - which is a standardised duration of time until maturity</p>
|
||||
</td>
|
||||
@ -1295,7 +1295,7 @@ way that ensures itll be released if theres an exception.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-timestamp-command/index.html">core.TimestampCommand</a></td>
|
||||
<a href="../core/-timestamp-command/index.html">core.contracts.TimestampCommand</a></td>
|
||||
<td>
|
||||
<p>If present in a transaction, contains a time that was verified by the timestamping authority/authorities whose
|
||||
public keys are identified in the containing <a href="../core/-command/index.html">Command</a> object. The true time must be between (after, before)</p>
|
||||
@ -1362,7 +1362,7 @@ then B and C trade with each other, then C and A etc).</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-builder/index.html">core.TransactionBuilder</a></td>
|
||||
<a href="../core/-transaction-builder/index.html">core.contracts.TransactionBuilder</a></td>
|
||||
<td>
|
||||
<p>A TransactionBuilder is a transaction class thats mutable (unlike the others which are all immutable). It is
|
||||
intended to be passed around contracts that may edit it by adding new states/commands or modifying the existing set.
|
||||
@ -1372,20 +1372,20 @@ multiple parties.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-conflict-exception/index.html">core.TransactionConflictException</a></td>
|
||||
<a href="../core/-transaction-conflict-exception/index.html">core.contracts.TransactionConflictException</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-for-verification/index.html">core.TransactionForVerification</a></td>
|
||||
<a href="../core/-transaction-for-verification/index.html">core.contracts.TransactionForVerification</a></td>
|
||||
<td>
|
||||
<p>A transaction in fully resolved and sig-checked form, ready for passing as input to a verification function.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-graph-search/index.html">core.TransactionGraphSearch</a></td>
|
||||
<a href="../core/-transaction-graph-search/index.html">core.contracts.TransactionGraphSearch</a></td>
|
||||
<td>
|
||||
<p>Given a map of transaction id to <a href="../core/-signed-transaction/index.html">SignedTransaction</a>, performs a breadth first search of the dependency graph from
|
||||
the starting point down in order to find transactions that match the given query criteria.</p>
|
||||
@ -1393,7 +1393,7 @@ the starting point down in order to find transactions that match the given query
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-group/index.html">core.TransactionGroup</a></td>
|
||||
<a href="../core/-transaction-group/index.html">core.contracts.TransactionGroup</a></td>
|
||||
<td>
|
||||
<p>A TransactionGroup defines a directed acyclic graph of transactions that can be resolved with each other and then
|
||||
verified. Successful verification does not imply the non-existence of other conflicting transactions: simply that
|
||||
@ -1402,13 +1402,13 @@ this subgraph does not contain conflicts and is accepted by the involved contrac
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-resolution-exception/index.html">core.TransactionResolutionException</a></td>
|
||||
<a href="../core/-transaction-resolution-exception/index.html">core.contracts.TransactionResolutionException</a></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-transaction-verification-exception/index.html">core.TransactionVerificationException</a></td>
|
||||
<a href="../core/-transaction-verification-exception/index.html">core.contracts.TransactionVerificationException</a></td>
|
||||
<td>
|
||||
<p>Thrown if a verification fails due to a contract rejection.</p>
|
||||
</td>
|
||||
@ -1439,7 +1439,7 @@ and seller) and the following steps:</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-type-only-command-data/index.html">core.TypeOnlyCommandData</a></td>
|
||||
<a href="../core/-type-only-command-data/index.html">core.contracts.TypeOnlyCommandData</a></td>
|
||||
<td>
|
||||
<p>Commands that inherit from this are intended to have no data items: its only their presence that matters.</p>
|
||||
</td>
|
||||
@ -1506,7 +1506,7 @@ consumed by someone else first</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="../core/-wire-transaction/index.html">core.WireTransaction</a></td>
|
||||
<a href="../core/-wire-transaction/index.html">core.contracts.WireTransaction</a></td>
|
||||
<td>
|
||||
<p>Transaction ready for serialisation, without any signatures attached.</p>
|
||||
</td>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServerImpl</a> / <a href=".">commitTransaction</a><br/>
|
||||
<br/>
|
||||
<h1>commitTransaction</h1>
|
||||
<a name="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><br/>
|
||||
<a name="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><br/>
|
||||
Overrides <a href="../-a-p-i-server/commit-transaction.html">APIServer.commitTransaction</a><br/>
|
||||
<p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
successful, otherwise exception is thrown.</p>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServerImpl</a> / <a href=".">fetchStates</a><br/>
|
||||
<br/>
|
||||
<h1>fetchStates</h1>
|
||||
<a name="api.APIServerImpl$fetchStates(kotlin.collections.List((core.StateRef)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$fetchStates(kotlin.collections.List((core.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code><br/>
|
||||
<a name="api.APIServerImpl$fetchStates(kotlin.collections.List((core.contracts.StateRef)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$fetchStates(kotlin.collections.List((core.contracts.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code><br/>
|
||||
Overrides <a href="../-a-p-i-server/fetch-states.html">APIServer.fetchStates</a><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServerImpl</a> / <a href=".">generateTransactionSignature</a><br/>
|
||||
<br/>
|
||||
<h1>generateTransactionSignature</h1>
|
||||
<a name="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><br/>
|
||||
<a name="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><br/>
|
||||
Overrides <a href="../-a-p-i-server/generate-transaction-signature.html">APIServer.generateTransactionSignature</a><br/>
|
||||
<p>Generate a signature for this transaction signed by us.</p>
|
||||
<br/>
|
||||
|
@ -48,7 +48,7 @@ which would automatically be passed as the first argument (wed need that to be a
|
||||
<td>
|
||||
<a href="commit-transaction.html">commitTransaction</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
<code><span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServerImpl$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
successful, otherwise exception is thrown.</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -63,7 +63,7 @@ successful, otherwise exception is thrown.</p>
|
||||
<td>
|
||||
<a href="fetch-states.html">fetchStates</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$fetchStates(kotlin.collections.List((core.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$fetchStates(kotlin.collections.List((core.contracts.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -76,7 +76,7 @@ successful, otherwise exception is thrown.</p>
|
||||
<td>
|
||||
<a href="generate-transaction-signature.html">generateTransactionSignature</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><p>Generate a signature for this transaction signed by us.</p>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServerImpl$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><p>Generate a signature for this transaction signed by us.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServer</a> / <a href=".">commitTransaction</a><br/>
|
||||
<br/>
|
||||
<h1>commitTransaction</h1>
|
||||
<a name="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><br/>
|
||||
<a name="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><br/>
|
||||
<p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
successful, otherwise exception is thrown.</p>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServer</a> / <a href=".">fetchStates</a><br/>
|
||||
<br/>
|
||||
<h1>fetchStates</h1>
|
||||
<a name="api.APIServer$fetchStates(kotlin.collections.List((core.StateRef)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$fetchStates(kotlin.collections.List((core.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code><br/>
|
||||
<a name="api.APIServer$fetchStates(kotlin.collections.List((core.contracts.StateRef)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$fetchStates(kotlin.collections.List((core.contracts.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">api</a> / <a href="index.html">APIServer</a> / <a href=".">generateTransactionSignature</a><br/>
|
||||
<br/>
|
||||
<h1>generateTransactionSignature</h1>
|
||||
<a name="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><br/>
|
||||
<a name="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><br/>
|
||||
<p>Generate a signature for this transaction signed by us.</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -31,7 +31,7 @@ which would automatically be passed as the first argument (wed need that to be a
|
||||
<td>
|
||||
<a href="commit-transaction.html">commitTransaction</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">commitTransaction</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="api.APIServer$commitTransaction(core.serialization.SerializedBytes((core.contracts.WireTransaction)), kotlin.collections.List((core.crypto.DigitalSignature.WithKey)))/signatures">signatures</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-secure-hash/index.html"><span class="identifier">SecureHash</span></a></code><p>Attempt to commit transaction (returned from build transaction) with the necessary signatures for that to be
|
||||
successful, otherwise exception is thrown.</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -46,7 +46,7 @@ successful, otherwise exception is thrown.</p>
|
||||
<td>
|
||||
<a href="fetch-states.html">fetchStates</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$fetchStates(kotlin.collections.List((core.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code></td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">fetchStates</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$fetchStates(kotlin.collections.List((core.contracts.StateRef)))/states">states</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Map</span><span class="symbol"><</span><a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">,</span> <a href="../../core/-contract-state/index.html"><span class="identifier">ContractState</span></a><span class="symbol">?</span><span class="symbol">></span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@ -59,7 +59,7 @@ successful, otherwise exception is thrown.</p>
|
||||
<td>
|
||||
<a href="generate-transaction-signature.html">generateTransactionSignature</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><p>Generate a signature for this transaction signed by us.</p>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateTransactionSignature</span><span class="symbol">(</span><span class="identifier" id="api.APIServer$generateTransactionSignature(core.serialization.SerializedBytes((core.contracts.WireTransaction)))/tx">tx</span><span class="symbol">:</span> <a href="../../core.serialization/-serialized-bytes/index.html"><span class="identifier">SerializedBytes</span></a><span class="symbol"><</span><a href="../../core/-wire-transaction/index.html"><span class="identifier">WireTransaction</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core.crypto/-digital-signature/-with-key/index.html"><span class="identifier">WithKey</span></a></code><p>Generate a signature for this transaction signed by us.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../../../index.html">contracts</a> / <a href="../../index.html">Cash</a> / <a href="../index.html">Commands</a> / <a href="index.html">Exit</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">Exit</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.Commands.Exit$<init>(core.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">Exit</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.Commands.Exit$<init>(core.contracts.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<p>A command stating that money has been withdrawn from the shared ledger and is now accounted for
|
||||
in some other way.</p>
|
||||
<br/>
|
||||
|
@ -19,7 +19,7 @@ in some other way.</p>
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">Exit</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.Commands.Exit$<init>(core.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><p>A command stating that money has been withdrawn from the shared ledger and is now accounted for
|
||||
<code><span class="identifier">Exit</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.Commands.Exit$<init>(core.contracts.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><p>A command stating that money has been withdrawn from the shared ledger and is now accounted for
|
||||
in some other way.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">Cash</a> / <a href="index.html">State</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/deposit">deposit</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/deposit">deposit</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span></code><br/>
|
||||
<p>A state representing a cash claim against some party</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/deposit">deposit</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.PartyAndReference, core.Amount, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span></code><p>A state representing a cash claim against some party</p>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/deposit">deposit</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash.State$<init>(core.contracts.PartyAndReference, core.contracts.Amount, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span></code><p>A state representing a cash claim against some party</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">Cash</a> / <a href=".">generateIssue</a><br/>
|
||||
<br/>
|
||||
<h1>generateIssue</h1>
|
||||
<a name="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/at">at</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/at">at</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<p>Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey.</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">Cash</a> / <a href=".">generateSpend</a><br/>
|
||||
<br/>
|
||||
<h1>generateSpend</h1>
|
||||
<a name="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateSpend</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/to">to</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/cashStates">cashStates</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/onlyFromParties">onlyFromParties</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">></span><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span></code><br/>
|
||||
<a name="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateSpend</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/to">to</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/cashStates">cashStates</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/onlyFromParties">onlyFromParties</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">></span><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span></code><br/>
|
||||
<p>Generate a transaction that consumes one or more of the given input states to move money to the given pubkey.
|
||||
Note that the wallet list is not updated: its up to you to do that.</p>
|
||||
<h3>Parameters</h3>
|
||||
|
@ -73,14 +73,14 @@ the same transaction.</p>
|
||||
<td>
|
||||
<a href="generate-issue.html">generateIssue</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/at">at</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.TransactionBuilder, core.Amount, core.PartyAndReference, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey.</p>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/at">at</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateIssue(core.contracts.TransactionBuilder, core.contracts.Amount, core.contracts.PartyAndReference, java.security.PublicKey)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="generate-spend.html">generateSpend</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateSpend</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/to">to</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/cashStates">cashStates</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.TransactionBuilder, core.Amount, java.security.PublicKey, kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.Party)))/onlyFromParties">onlyFromParties</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">></span><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span></code><p>Generate a transaction that consumes one or more of the given input states to move money to the given pubkey.
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateSpend</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/amount">amount</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/to">to</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/cashStates">cashStates</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.Cash$generateSpend(core.contracts.TransactionBuilder, core.contracts.Amount, java.security.PublicKey, kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))), kotlin.collections.Set((core.crypto.Party)))/onlyFromParties">onlyFromParties</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">></span><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span></code><p>Generate a transaction that consumes one or more of the given input states to move money to the given pubkey.
|
||||
Note that the wallet list is not updated: its up to you to do that.</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -88,7 +88,7 @@ Note that the wallet list is not updated: its up to you to do that.</p>
|
||||
<td>
|
||||
<a href="verify.html">verify</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>This is the function EVERYONE runs</p>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>This is the function EVERYONE runs</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">Cash</a> / <a href=".">verify</a><br/>
|
||||
<br/>
|
||||
<h1>verify</h1>
|
||||
<a name="contracts.Cash$verify(core.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.Cash$verify(core.contracts.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.Cash$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
Overrides <a href="../../core/-contract/verify.html">Contract.verify</a><br/>
|
||||
<p>This is the function EVERYONE runs</p>
|
||||
<br/>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">CommercialPaper</a> / <a href="index.html">State</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.PartyAndReference, java.security.PublicKey, core.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code></td>
|
||||
<code><span class="identifier">State</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper.State$<init>(core.contracts.PartyAndReference, java.security.PublicKey, core.contracts.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -71,13 +71,13 @@
|
||||
<td>
|
||||
<a href="with-face-value.html">withFaceValue</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withFaceValue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withFaceValue(core.Amount)/newFaceValue">newFaceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withFaceValue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withFaceValue(core.contracts.Amount)/newFaceValue">newFaceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="with-issuance.html">withIssuance</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withIssuance</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withIssuance(core.PartyAndReference)/newIssuance">newIssuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withIssuance</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withIssuance(core.contracts.PartyAndReference)/newIssuance">newIssuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">CommercialPaper</a> / <a href="index.html">State</a> / <a href=".">withFaceValue</a><br/>
|
||||
<br/>
|
||||
<h1>withFaceValue</h1>
|
||||
<a name="contracts.CommercialPaper.State$withFaceValue(core.Amount)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withFaceValue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withFaceValue(core.Amount)/newFaceValue">newFaceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code><br/>
|
||||
<a name="contracts.CommercialPaper.State$withFaceValue(core.contracts.Amount)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withFaceValue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withFaceValue(core.contracts.Amount)/newFaceValue">newFaceValue</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">CommercialPaper</a> / <a href="index.html">State</a> / <a href=".">withIssuance</a><br/>
|
||||
<br/>
|
||||
<h1>withIssuance</h1>
|
||||
<a name="contracts.CommercialPaper.State$withIssuance(core.PartyAndReference)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withIssuance</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withIssuance(core.PartyAndReference)/newIssuance">newIssuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code><br/>
|
||||
<a name="contracts.CommercialPaper.State$withIssuance(core.contracts.PartyAndReference)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">withIssuance</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper.State$withIssuance(core.contracts.PartyAndReference)/newIssuance">newIssuance</span><span class="symbol">:</span> <a href="../../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier"><ERROR CLASS></span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CommercialPaper</a> / <a href=".">generateIssue</a><br/>
|
||||
<br/>
|
||||
<h1>generateIssue</h1>
|
||||
<a name="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<a name="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<p>Returns a transaction that issues commercial paper, owned by the issuing parties key. Does not update
|
||||
an existing transaction because you arent able to issue multiple pieces of CP in a single transaction
|
||||
at the moment: this restriction is not fundamental and may be lifted later.</p>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CommercialPaper</a> / <a href=".">generateMove</a><br/>
|
||||
<br/>
|
||||
<h1>generateMove</h1>
|
||||
<a name="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateMove</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/newOwner">newOwner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateMove</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/newOwner">newOwner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<p>Updates the given partial transaction with an input/output/command to reassign ownership of the paper.</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CommercialPaper</a> / <a href=".">generateRedeem</a><br/>
|
||||
<br/>
|
||||
<h1>generateRedeem</h1>
|
||||
<a name="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRedeem</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRedeem</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<p>Intended to be called by the issuer of some commercial paper, when an owner has notified us that they wish
|
||||
to redeem the paper. We must therefore send enough money to the key that owns the paper to satisfy the face
|
||||
value, and then ensure the paper is removed from the ledger.</p>
|
||||
|
@ -58,7 +58,7 @@ the contracts contents).</p>
|
||||
<td>
|
||||
<a href="generate-issue.html">generateIssue</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.PartyAndReference, core.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><p>Returns a transaction that issues commercial paper, owned by the issuing parties key. Does not update
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateIssue</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/issuance">issuance</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/faceValue">faceValue</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateIssue(core.contracts.PartyAndReference, core.contracts.Amount, java.time.Instant)/maturityDate">maturityDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><p>Returns a transaction that issues commercial paper, owned by the issuing parties key. Does not update
|
||||
an existing transaction because you arent able to issue multiple pieces of CP in a single transaction
|
||||
at the moment: this restriction is not fundamental and may be lifted later.</p>
|
||||
</td>
|
||||
@ -67,14 +67,14 @@ at the moment: this restriction is not fundamental and may be lifted later.</p>
|
||||
<td>
|
||||
<a href="generate-move.html">generateMove</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateMove</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/newOwner">newOwner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Updates the given partial transaction with an input/output/command to reassign ownership of the paper.</p>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateMove</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateMove(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), java.security.PublicKey)/newOwner">newOwner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Updates the given partial transaction with an input/output/command to reassign ownership of the paper.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="generate-redeem.html">generateRedeem</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRedeem</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.TransactionBuilder, core.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Intended to be called by the issuer of some commercial paper, when an owner has notified us that they wish
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRedeem</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/paper">paper</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CommercialPaper$generateRedeem(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CommercialPaper.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Intended to be called by the issuer of some commercial paper, when an owner has notified us that they wish
|
||||
to redeem the paper. We must therefore send enough money to the key that owns the paper to satisfy the face
|
||||
value, and then ensure the paper is removed from the ledger.</p>
|
||||
</td>
|
||||
@ -83,7 +83,7 @@ value, and then ensure the paper is removed from the ledger.</p>
|
||||
<td>
|
||||
<a href="verify.html">verify</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
rather than an argument so that additional data can be added without breaking binary compatibility with
|
||||
existing contract code.</p>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CommercialPaper</a> / <a href=".">verify</a><br/>
|
||||
<br/>
|
||||
<h1>verify</h1>
|
||||
<a name="contracts.CommercialPaper$verify(core.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CommercialPaper$verify(core.contracts.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CommercialPaper$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
Overrides <a href="../../core/-contract/verify.html">Contract.verify</a><br/>
|
||||
<p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">CrowdFund</a> / <a href="index.html">Campaign</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">Campaign</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/name">name</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/target">target</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">Campaign</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/name">name</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/target">target</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">Campaign</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/name">name</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/target">target</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.Amount, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code></td>
|
||||
<code><span class="identifier">Campaign</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/name">name</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/target">target</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Campaign$<init>(java.security.PublicKey, kotlin.String, core.contracts.Amount, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../../index.html">contracts</a> / <a href="../index.html">CrowdFund</a> / <a href="index.html">Pledge</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">Pledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.Amount)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">Pledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.contracts.Amount)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.contracts.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">Pledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.Amount)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code></td>
|
||||
<code><span class="identifier">Pledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.contracts.Amount)/owner">owner</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund.Pledge$<init>(java.security.PublicKey, core.contracts.Amount)/amount">amount</span><span class="symbol">:</span> <a href="../../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CrowdFund</a> / <a href=".">generateClose</a><br/>
|
||||
<br/>
|
||||
<h1>generateClose</h1>
|
||||
<a name="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateClose</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateClose</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CrowdFund</a> / <a href=".">generatePledge</a><br/>
|
||||
<br/>
|
||||
<h1>generatePledge</h1>
|
||||
<a name="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generatePledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/subscriber">subscriber</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generatePledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/subscriber">subscriber</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<p>Updates the given partial transaction with an input/output/command to fund the opportunity.</p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CrowdFund</a> / <a href=".">generateRegister</a><br/>
|
||||
<br/>
|
||||
<h1>generateRegister</h1>
|
||||
<a name="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRegister</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/fundingTarget">fundingTarget</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/fundingName">fundingName</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<a name="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRegister</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/fundingTarget">fundingTarget</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/fundingName">fundingName</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<p>Returns a transaction that registers a crowd-funding campaing, owned by the issuing institutions key. Does not update
|
||||
an existing transaction because its not possible to register multiple campaigns in a single transaction</p>
|
||||
<br/>
|
||||
|
@ -91,20 +91,20 @@ the contracts contents).</p>
|
||||
<td>
|
||||
<a href="generate-close.html">generateClose</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateClose</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateClose</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateClose(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), kotlin.collections.List((core.contracts.StateAndRef((contracts.Cash.State)))))/wallet">wallet</span><span class="symbol">:</span> <span class="identifier">List</span><span class="symbol"><</span><a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="../-cash/-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="generate-pledge.html">generatePledge</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generatePledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.TransactionBuilder, core.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/subscriber">subscriber</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Updates the given partial transaction with an input/output/command to fund the opportunity.</p>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generatePledge</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/campaign">campaign</span><span class="symbol">:</span> <a href="../../core/-state-and-ref/index.html"><span class="identifier">StateAndRef</span></a><span class="symbol"><</span><a href="-state/index.html"><span class="identifier">State</span></a><span class="symbol">></span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generatePledge(core.contracts.TransactionBuilder, core.contracts.StateAndRef((contracts.CrowdFund.State)), java.security.PublicKey)/subscriber">subscriber</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Updates the given partial transaction with an input/output/command to fund the opportunity.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="generate-register.html">generateRegister</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRegister</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/fundingTarget">fundingTarget</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/fundingName">fundingName</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.PartyAndReference, core.Amount, kotlin.String, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><p>Returns a transaction that registers a crowd-funding campaing, owned by the issuing institutions key. Does not update
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateRegister</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/fundingTarget">fundingTarget</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/fundingName">fundingName</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">, </span><span class="identifier" id="contracts.CrowdFund$generateRegister(core.contracts.PartyAndReference, core.contracts.Amount, kotlin.String, java.time.Instant)/closingTime">closingTime</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/Instant.html"><span class="identifier">Instant</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><p>Returns a transaction that registers a crowd-funding campaing, owned by the issuing institutions key. Does not update
|
||||
an existing transaction because its not possible to register multiple campaigns in a single transaction</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -112,7 +112,7 @@ an existing transaction because its not possible to register multiple campaigns
|
||||
<td>
|
||||
<a href="verify.html">verify</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
rather than an argument so that additional data can be added without breaking binary compatibility with
|
||||
existing contract code.</p>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">CrowdFund</a> / <a href=".">verify</a><br/>
|
||||
<br/>
|
||||
<h1>verify</h1>
|
||||
<a name="contracts.CrowdFund$verify(core.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.CrowdFund$verify(core.contracts.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.CrowdFund$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
Overrides <a href="../../core/-contract/verify.html">Contract.verify</a><br/>
|
||||
<p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
|
@ -58,7 +58,7 @@ deal/agreement protocol to generate the necessary transaction for potential impl
|
||||
<td>
|
||||
<a href="with-public-key.html">withPublicKey</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">DealState</span></code></td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">DealState</span></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -69,7 +69,7 @@ deal/agreement protocol to generate the necessary transaction for potential impl
|
||||
<td>
|
||||
<a href="../../core/-linear-state/is-relevant.html">isRelevant</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">isRelevant</span><span class="symbol">(</span><span class="identifier" id="core.LinearState$isRelevant(kotlin.collections.Set((java.security.PublicKey)))/ourKeys">ourKeys</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code><p>true if this should be tracked by our wallet(s)</p>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">isRelevant</span><span class="symbol">(</span><span class="identifier" id="core.contracts.LinearState$isRelevant(kotlin.collections.Set((java.security.PublicKey)))/ourKeys">ourKeys</span><span class="symbol">:</span> <span class="identifier">Set</span><span class="symbol"><</span><a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code><p>true if this should be tracked by our wallet(s)</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">DealState</a> / <a href=".">withPublicKey</a><br/>
|
||||
<br/>
|
||||
<h1>withPublicKey</h1>
|
||||
<a name="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">DealState</span></a></code><br/>
|
||||
<a name="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">DealState</span></a></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<td>
|
||||
<a href="../../../../core/-type-only-command-data/equals.html">equals</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">equals</span><span class="symbol">(</span><span class="identifier" id="core.contracts.TypeOnlyCommandData$equals(kotlin.Any)/other">other</span><span class="symbol">:</span> <span class="identifier">Any</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">DummyContract</a> / <a href=".">generateInitial</a><br/>
|
||||
<br/>
|
||||
<h1>generateInitial</h1>
|
||||
<a name="contracts.DummyContract$generateInitial(core.PartyAndReference, kotlin.Int)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateInitial</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$generateInitial(core.PartyAndReference, kotlin.Int)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DummyContract$generateInitial(core.PartyAndReference, kotlin.Int)/magicNumber">magicNumber</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<a name="contracts.DummyContract$generateInitial(core.contracts.PartyAndReference, kotlin.Int)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateInitial</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$generateInitial(core.contracts.PartyAndReference, kotlin.Int)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DummyContract$generateInitial(core.contracts.PartyAndReference, kotlin.Int)/magicNumber">magicNumber</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -58,13 +58,13 @@ the contracts contents).</p>
|
||||
<td>
|
||||
<a href="generate-initial.html">generateInitial</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateInitial</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$generateInitial(core.PartyAndReference, kotlin.Int)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DummyContract$generateInitial(core.PartyAndReference, kotlin.Int)/magicNumber">magicNumber</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">generateInitial</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$generateInitial(core.contracts.PartyAndReference, kotlin.Int)/owner">owner</span><span class="symbol">:</span> <a href="../../core/-party-and-reference/index.html"><span class="identifier">PartyAndReference</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DummyContract$generateInitial(core.contracts.PartyAndReference, kotlin.Int)/magicNumber">magicNumber</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="verify.html">verify</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
rather than an argument so that additional data can be added without breaking binary compatibility with
|
||||
existing contract code.</p>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">DummyContract</a> / <a href=".">verify</a><br/>
|
||||
<br/>
|
||||
<h1>verify</h1>
|
||||
<a name="contracts.DummyContract$verify(core.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$verify(core.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.DummyContract$verify(core.contracts.TransactionForVerification)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">verify</span><span class="symbol">(</span><span class="identifier" id="contracts.DummyContract$verify(core.contracts.TransactionForVerification)/tx">tx</span><span class="symbol">:</span> <a href="../../core/-transaction-for-verification/index.html"><span class="identifier">TransactionForVerification</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
Overrides <a href="../../core/-contract/verify.html">Contract.verify</a><br/>
|
||||
<p>Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
|
||||
Must throw an exception if theres a problem that should prevent state transition. Takes a single object
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">FixableDealState</a> / <a href=".">generateFix</a><br/>
|
||||
<br/>
|
||||
<h1>generateFix</h1>
|
||||
<a name="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateFix</span><span class="symbol">(</span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/ptx">ptx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/oldStateRef">oldStateRef</span><span class="symbol">:</span> <a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/fix">fix</span><span class="symbol">:</span> <a href="../../core/-fix/index.html"><span class="identifier">Fix</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<a name="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)"></a>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateFix</span><span class="symbol">(</span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/ptx">ptx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/oldStateRef">oldStateRef</span><span class="symbol">:</span> <a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/fix">fix</span><span class="symbol">:</span> <a href="../../core/-fix/index.html"><span class="identifier">Fix</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
|
||||
<p>Generate a fixing command for this deal and fix</p>
|
||||
<p>TODO: This would also likely move to methods on the Contract once the changes to reference
|
||||
the Contract from the ContractState are in</p>
|
||||
|
@ -37,7 +37,7 @@
|
||||
<td>
|
||||
<a href="generate-fix.html">generateFix</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateFix</span><span class="symbol">(</span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/ptx">ptx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/oldStateRef">oldStateRef</span><span class="symbol">:</span> <a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.TransactionBuilder, core.StateRef, core.Fix)/fix">fix</span><span class="symbol">:</span> <a href="../../core/-fix/index.html"><span class="identifier">Fix</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Generate a fixing command for this deal and fix</p>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">generateFix</span><span class="symbol">(</span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/ptx">ptx</span><span class="symbol">:</span> <a href="../../core/-transaction-builder/index.html"><span class="identifier">TransactionBuilder</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/oldStateRef">oldStateRef</span><span class="symbol">:</span> <a href="../../core/-state-ref/index.html"><span class="identifier">StateRef</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixableDealState$generateFix(core.contracts.TransactionBuilder, core.contracts.StateRef, core.contracts.Fix)/fix">fix</span><span class="symbol">:</span> <a href="../../core/-fix/index.html"><span class="identifier">Fix</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><p>Generate a fixing command for this deal and fix</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -64,7 +64,7 @@ deal/agreement protocol to generate the necessary transaction for potential impl
|
||||
<td>
|
||||
<a href="../-deal-state/with-public-key.html">withPublicKey</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-deal-state/index.html"><span class="identifier">DealState</span></a></code></td>
|
||||
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">withPublicKey</span><span class="symbol">(</span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/before">before</span><span class="symbol">:</span> <a href="../../core/-party/index.html"><span class="identifier">Party</span></a><span class="symbol">, </span><span class="identifier" id="contracts.DealState$withPublicKey(core.crypto.Party, java.security.PublicKey)/after">after</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/security/PublicKey.html"><span class="identifier">PublicKey</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-deal-state/index.html"><span class="identifier">DealState</span></a></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">FixedRatePaymentEvent</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">FixedRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">FixedRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><br/>
|
||||
<p>Basic class for the Fixed Rate Payments on the fixed leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
Assumes that the rate is valid.</p>
|
||||
<br/>
|
||||
|
@ -19,7 +19,7 @@ Assumes that the rate is valid.</p>
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">FixedRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><p>Basic class for the Fixed Rate Payments on the fixed leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
<code><span class="identifier">FixedRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FixedRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><p>Basic class for the Fixed Rate Payments on the fixed leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
Assumes that the rate is valid.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">FloatingRatePaymentEvent</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">FloatingRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">FloatingRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><br/>
|
||||
<p>Basic class for the Floating Rate Payments on the floating leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
If the rate is null returns a zero payment. // TODO: Is this the desired behaviour?</p>
|
||||
<br/>
|
||||
|
@ -7,8 +7,8 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">FloatingRatePaymentEvent</a> / <a href=".">copy</a><br/>
|
||||
<br/>
|
||||
<h1>copy</h1>
|
||||
<a name="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">copy</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.date<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualStartDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualEndDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a> <span class="symbol">=</span> this.dayCountBasisDay<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a> <span class="symbol">=</span> this.dayCountBasisYear<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.fixingDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a> <span class="symbol">=</span> this.notional<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a> <span class="symbol">=</span> this.rate<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">FloatingRatePaymentEvent</span></a></code><br/>
|
||||
<a name="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)"></a>
|
||||
<code><span class="keyword">fun </span><span class="identifier">copy</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.date<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualStartDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualEndDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a> <span class="symbol">=</span> this.dayCountBasisDay<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a> <span class="symbol">=</span> this.dayCountBasisYear<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.fixingDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a> <span class="symbol">=</span> this.notional<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a> <span class="symbol">=</span> this.rate<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">FloatingRatePaymentEvent</span></a></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
@ -19,7 +19,7 @@ If the rate is null returns a zero payment. // TODO: Is this the desired behavio
|
||||
<td>
|
||||
<a href="-init-.html"><init></a></td>
|
||||
<td>
|
||||
<code><span class="identifier">FloatingRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><p>Basic class for the Floating Rate Payments on the floating leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
<code><span class="identifier">FloatingRatePaymentEvent</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$<init>(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a><span class="symbol">)</span></code><p>Basic class for the Floating Rate Payments on the floating leg - see <a href="../-rate-payment-event/index.html">RatePaymentEvent</a>
|
||||
If the rate is null returns a zero payment. // TODO: Is this the desired behaviour?</p>
|
||||
</td>
|
||||
</tr>
|
||||
@ -108,7 +108,7 @@ If the rate is null returns a zero payment. // TODO: Is this the desired behavio
|
||||
<td>
|
||||
<a href="copy.html">copy</a></td>
|
||||
<td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">copy</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.date<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualStartDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualEndDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a> <span class="symbol">=</span> this.dayCountBasisDay<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a> <span class="symbol">=</span> this.dayCountBasisYear<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.fixingDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a> <span class="symbol">=</span> this.notional<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.DayCountBasisDay, core.DayCountBasisYear, java.time.LocalDate, core.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a> <span class="symbol">=</span> this.rate<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">FloatingRatePaymentEvent</span></code></td>
|
||||
<code><span class="keyword">fun </span><span class="identifier">copy</span><span class="symbol">(</span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/date">date</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.date<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualStartDate">accrualStartDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualStartDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/accrualEndDate">accrualEndDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.accrualEndDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisDay">dayCountBasisDay</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-day/index.html"><span class="identifier">DayCountBasisDay</span></a> <span class="symbol">=</span> this.dayCountBasisDay<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/dayCountBasisYear">dayCountBasisYear</span><span class="symbol">:</span> <a href="../../core/-day-count-basis-year/index.html"><span class="identifier">DayCountBasisYear</span></a> <span class="symbol">=</span> this.dayCountBasisYear<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/fixingDate">fixingDate</span><span class="symbol">:</span> <a href="http://docs.oracle.com/javase/6/docs/api/java/time/LocalDate.html"><span class="identifier">LocalDate</span></a> <span class="symbol">=</span> this.fixingDate<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/notional">notional</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a> <span class="symbol">=</span> this.notional<span class="symbol">, </span><span class="identifier" id="contracts.FloatingRatePaymentEvent$copy(java.time.LocalDate, java.time.LocalDate, java.time.LocalDate, core.contracts.DayCountBasisDay, core.contracts.DayCountBasisYear, java.time.LocalDate, core.contracts.Amount, contracts.Rate)/rate">rate</span><span class="symbol">:</span> <a href="../-rate/index.html"><span class="identifier">Rate</span></a> <span class="symbol">=</span> this.rate<span class="symbol">)</span><span class="symbol">: </span><span class="identifier">FloatingRatePaymentEvent</span></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="../index.html">contracts</a> / <a href="index.html">InsufficientBalanceException</a> / <a href="."><init></a><br/>
|
||||
<br/>
|
||||
<h1><init></h1>
|
||||
<code><span class="identifier">InsufficientBalanceException</span><span class="symbol">(</span><span class="identifier" id="contracts.InsufficientBalanceException$<init>(core.Amount)/amountMissing">amountMissing</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<code><span class="identifier">InsufficientBalanceException</span><span class="symbol">(</span><span class="identifier" id="contracts.InsufficientBalanceException$<init>(core.contracts.Amount)/amountMissing">amountMissing</span><span class="symbol">:</span> <a href="../../core/-amount/index.html"><span class="identifier">Amount</span></a><span class="symbol">)</span></code><br/>
|
||||
<br/>
|
||||
<br/>
|
||||
</BODY>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user