Empty Contract

Author: Accord Project

empty-contract@0.8.0 Contract ^0.22.0 d7e93ec1722b46bdb0390d2b684c4d51846653820e275f387644182efb5c39d3

This is an empty contract template to get you started.

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

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": "4cbc5e58-c899-477f-8805-6bdf4de6dd74",
    "$identifier": "4cbc5e58-c899-477f-8805-6bdf4de6dd74"
}

Template Model

namespace org.accordproject.empty

import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
import org.accordproject.runtime.* from https://models.accordproject.org/accordproject/runtime.cto

// Template model
asset EmptyContract extends Contract {
}

// 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.runtime.State
{
    "$class": "org.accordproject.runtime.State",
    "$identifier": "79f530a0-a77b-11eb-9770-7ddd576a12c2"
}

Request Types

Type Sample JSON
org.accordproject.empty.EmptyRequest
{
    "$class": "org.accordproject.empty.EmptyRequest",
    "$timestamp": "2021-04-27T13:10:33.386-04:00"
}

Response Types

Type Sample JSON
org.accordproject.empty.EmptyResponse
{
    "$class": "org.accordproject.empty.EmptyResponse",
    "$timestamp": "2021-04-27T13:10:33.386-04:00"
}

Events Types

Type Sample JSON
concerto.Event
{
    "abstract": "this is an abstract type"
}

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.