Modifier and Type | Class and Description |
---|---|
static class |
DummyContract.Companion |
static class |
DummyContract.MultiOwnerState
Alternative state with multiple owners. This exists primarily to provide a dummy state with multiple
participants, and could in theory be merged with
class DummyContract.SingleOwnerState by putting the additional participants
in a different field, however this is a good example of a contract with multiple states. |
static class |
DummyContract.SingleOwnerState |
Modifier and Type | Field and Description |
---|---|
static DummyContract.Companion |
Companion |
Constructor and Description |
---|
DummyContract(SecureHash legalContractReference) |
DummyContract() |
Modifier and Type | Method and Description |
---|---|
SecureHash |
component1()
Unparsed reference to the natural language contract that this code is supposed to express
|
DummyContract |
copy(SecureHash legalContractReference) |
boolean |
equals(java.lang.Object p) |
static TransactionBuilder |
generateInitial(PartyAndReference owner,
int magicNumber,
Party notary) |
SecureHash |
getLegalContractReference()
Unparsed reference to the natural language contract that this code is supposed to express
|
int |
hashCode() |
java.lang.String |
toString() |
void |
verify(TransactionForContract tx)
Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense.
Must throw an exception if there's 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.
|
getLegalContractReference, verify
public static DummyContract.Companion Companion
public DummyContract(SecureHash legalContractReference)
legalContractReference
- Unparsed reference to the natural language contract that this code is supposed to express(usually a hash ofthe contract's contents).public DummyContract()
public void verify(TransactionForContract tx)
Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense. Must throw an exception if there's 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.
public SecureHash getLegalContractReference()
Unparsed reference to the natural language contract that this code is supposed to express
(usually a hash ofthe contract's contents).
public SecureHash component1()
Unparsed reference to the natural language contract that this code is supposed to express
(usually a hash ofthe contract's contents).
public DummyContract copy(SecureHash legalContractReference)
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)
public static TransactionBuilder generateInitial(PartyAndReference owner, int magicNumber, Party notary)