Empty

Author: Accord Project

empty@0.8.0 Clause ^0.21.0 e0f225e4af2b609c238f578b3a5e84da23c78e3e7fc4b893b2dabd3a1a2c9002

This is an empty clause template to get you started.

Download Archive Download Compiled Archive Open in Template Studio Open in VSCode Web

Empty clause template

This is an empty clause template to get you started.

Template Text

Write your clause template here

# Write your clause template here
# Write your clause template here
{
    "$class": "org.accordproject.empty.EmptyClause",
    "clauseId": "3acf1d31-4137-4836-ac4e-b312ed17b939"
}

Template Model

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 EmptyClause extends AccordClause {
}

// Request
transaction EmptyRequest extends Request {
}

// Response
transaction EmptyResponse extends Response {
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "5fae1011-cd1d-11ea-920c-ade26666d144"
}

Request Types

Type Sample JSON
org.accordproject.empty.EmptyRequest
{
    "$class": "org.accordproject.empty.EmptyRequest",
    "transactionId": "5fade900-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:43.120-04:00"
}

Response Types

Type Sample JSON
org.accordproject.empty.EmptyResponse
{
    "$class": "org.accordproject.empty.EmptyResponse",
    "transactionId": "5fae1010-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:43.121-04:00"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}

Technical Integration

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.