Fork me on GitHub

Template helloworldstate@0.4.0

Clause Ergo ^0.5.0 8b3ca8581740ba4f2bcfce848f5cbb74a02ac21bd6e2288e9c6def2edbdbc498

This is the stateful Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request along with the number of times the clause has been called.

Download Archive

Hello World State

This is the stateful Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string Hello prepended to text that is passed in the request along with the number of times the clause has been called.

Sample

Name of the person to greet: "Fred Blogs".
Thank you!
                

Model Dependencies

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 on GitHub.

Sample Instance

{
    "$class": "org.accordproject.helloworldstate.HelloWorldClause",
    "clauseId": "46c0c428-7720-4480-90a4-e2befdf04f86",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "f2064921-966d-11e8-91eb-632e912d28eb"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Adipisicing commodo ut adipisicing.",
    "transactionId": "f2062210-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:59.089Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Quis ad magna eu.",
    "transactionId": "f2064920-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:59.090Z"
}

Events Types

Type Sample JSON
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}