Hello Module
This is the Hello World of Accord Project Templates, with two Ergo modules.
This is the Hello World of Accord Project Templates, with two Ergo modules.
This is the Hello World of Accord Project Templates, with two Ergo modules.
Name of the person to greet: "Fred Blogs". Thank you!
Name of the person to greet: "Fred Blogs".
Thank you!
Name of the person to greet: {{name}}.
Thank you!
{
"$class": "org.accordproject.hellomodule.HelloModuleClause",
"clauseId": "16b028e5-165a-4d90-aa26-5959b014e4ea",
"name": "Fred Blogs"
}
namespace org.accordproject.hellomodule
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
transaction MyRequest extends Request {
o String input
}
transaction MyResponse extends Response {
o String output
}
/**
* The template model
*/
asset HelloModuleClause extends AccordClause {
/**
* The name for the clause
*/
o String name
}
// this is a change!
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.cicero.contract.AccordContractState |
|
Type | Sample JSON |
---|---|
org.accordproject.hellomodule.MyRequest |
|
Type | Sample JSON |
---|---|
org.accordproject.hellomodule.MyResponse |
|
Type | Sample JSON |
---|---|
org.accordproject.base.Event |
|
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.