Empty

Author: Accord Project

empty@0.7.1 Clause ^0.20.10 ff1ba5aa9ffc315807a02db7eb5bd85b7403030ceacd8191d0cdeca8a6ee369a

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": "623195c0-00a2-409b-96dc-57e812a93526"
}

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": "cd3f1cf0-c07a-11ea-ad77-8b5ce7c057ac"
}

Request Types

Type Sample JSON
org.accordproject.empty.EmptyRequest
{
    "$class": "org.accordproject.empty.EmptyRequest",
    "transactionId": "cd3ef5e0-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:45.022+01:00"
}

Response Types

Type Sample JSON
org.accordproject.empty.EmptyResponse
{
    "$class": "org.accordproject.empty.EmptyResponse",
    "transactionId": "cd3ef5e1-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:45.022+01: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.