Empty

empty@0.7.0 Clause ^0.20.0 023750376164177ba57542a4687160b1bd57eaa2bc7313595f3130fd8466f748

This is an empty clause template to get you started.

Download 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": "c4b57ba8-a9a1-4bc8-8504-43b6132ea428"
}

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": "55a5fc21-42fa-11ea-8b78-dde257dbceb0"
}

Request Types

Type Sample JSON
org.accordproject.empty.EmptyRequest
{
    "$class": "org.accordproject.empty.EmptyRequest",
    "transactionId": "55a5d510-42fa-11ea-8b78-dde257dbceb0",
    "timestamp": "2020-01-29T19:49:13.441-05:00"
}

Response Types

Type Sample JSON
org.accordproject.empty.EmptyResponse
{
    "$class": "org.accordproject.empty.EmptyResponse",
    "transactionId": "55a5fc20-42fa-11ea-8b78-dde257dbceb0",
    "timestamp": "2020-01-29T19:49:13.442-05: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.