Empty contract template
This is an empty contract template to get you started.
This is an empty contract template to get you started.
This is an empty contract template to get you started.
# Write your contract template here
Write your contract template here
====
{
"$class": "org.accordproject.empty.EmptyContract",
"contractId": "19390d27-9221-4a51-b96e-7adfd6e50956"
}
namespace org.accordproject.empty
import org.accordproject.cicero.contract.* from https://models.accordproject.org/cicero/contract.cto
import org.accordproject.cicero.runtime.* from https://models.accordproject.org/cicero/runtime.cto
// Template model
asset EmptyContract extends AccordContract {
}
// Request
transaction EmptyRequest extends Request {
}
// Response
transaction EmptyResponse extends Response {
}
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.cicero.contract.AccordContractState |
|
Type | Sample JSON |
---|---|
org.accordproject.empty.EmptyRequest |
|
Type | Sample JSON |
---|---|
org.accordproject.empty.EmptyResponse |
|
Type | Sample JSON |
---|---|
org.accordproject.base.Event |
|
Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.
View the Latest code for this template on GitHub.