Empty Contract

Author: Accord Project

empty-contract@0.6.1 Contract ^0.20.10 dbfb115d22c8eef773187001c355abdfa65654e962c044c19ed6d0eb7598fb87

This is an empty contract template to get you started.

Download Archive Open in Template Studio

Empty contract template

This is an empty contract template to get you started.

Template Text

Write your contract template here

# Write your contract template here
Write your contract template here
====
{
    "$class": "org.accordproject.empty.EmptyContract",
    "contractId": "0125d2e4-b736-45a2-a58a-70b3f0ffd7f9"
}

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 EmptyContract extends AccordContract {
}

// 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": "da30a680-7b6b-11ea-b280-c173749a9e96"
}

Request Types

Type Sample JSON
org.accordproject.empty.EmptyRequest
{
    "$class": "org.accordproject.empty.EmptyRequest",
    "transactionId": "da307f70-7b6b-11ea-b280-c173749a9e96",
    "timestamp": "2020-04-10T16:42:54.055-04:00"
}

Response Types

Type Sample JSON
org.accordproject.empty.EmptyResponse
{
    "$class": "org.accordproject.empty.EmptyResponse",
    "transactionId": "da307f71-7b6b-11ea-b280-c173749a9e96",
    "timestamp": "2020-04-10T16:42:54.055-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.